Skip to content

Integrate meta-seco-rk/linux-seco-rk/ap/e09-eth-led

Commit: edgehog/layers/seco/meta-seco-rk@51a93f4a

Integrate linux-seco-rk/ap/e09-eth-led

--

Commit: edgehog/bsp/rockchip/linux-seco-rk@ee199ae5

Revert "[E09][DTS] increase drive strength of gmac1 pins and temporarily limit speed"

This reverts commit ad0b43254a4b133aa6cb18827eb60ec1698efeb4 because, after fixing the power domain configuration, changing the drive strength of the RGMII of gmac1 is no longer needed.

--

Commit: edgehog/bsp/rockchip/linux-seco-rk@fe35a130

[E09] fix RGMII delays

  • remove max-speed on gmac1 because now it works also at 1Gbps
  • set rgmii mode instead of rgmii-id for both ethernet ports
  • set correct delay values
  • remove internal delays which are no longer needed

The delay values have been obtained in kernel user space by issuing this command (e.g. for ETH1):

echo 1000 > /sys/devices/platform/fe010000.ethernet/phy_lb_scan

The kernel then outputs a rectangular map:

[   37.907959] Delayline scan speed set to 1000
[   38.374261] dwmac4: Master AXI performs any burst length
[   38.574168] RX(000):                                       OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   38.634355] RX(001):                                        OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   38.695935] RX(002):                                       OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   38.757324] RX(003):                                       OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   38.816601] RX(004):                                        OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
...
[   44.427832] RX(098):                                       OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.487272] RX(099):                                       OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.546596] RX(100):                                        OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.606243] RX(101):                                        OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.665735] RX(102):                                        OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.725365] RX(103):                                       OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.785045] RX(104):                                        OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[   44.844869] RX(105):                                          O  O  OOOO OOO OOOO O O OO OO OOOOOOOOO O O OOOOO OOO OOOO O O O  OO  OOOO OOOOOO
[   44.900120] RX(106):                                                O              O     O       O                    O O            O
[   44.946641] RX(107):
[   44.992244] RX(108):
[   45.037723] RX(109):
[   45.083025] RX(110):
[   45.128402] RX(111):
[   45.173707] RX(112):
[   45.219119] RX(113):
[   45.264372] RX(114):
[   45.309797] RX(115):
[   45.355210] RX(116):
[   45.400550] RX(117):
[   45.445923] RX(118):
[   45.491406] RX(119):
[   45.536655] RX(120):
[   45.582086] RX(121):
[   45.627557] RX(122):
[   45.672983] RX(123):
[   45.718401] RX(124):
[   45.763819] RX(125):
[   45.809263] RX(126):
[   45.854574] RX(127):
[   45.899835]

The horizontal axis represents the delayline in the TX direction (coordinate range <0x00, 0x7f>), and the vertical axis represents the delayline in the RX direction (the coordinate range is also <0x00, 0x7f>). The "O" in it means that the coordinates of the point can be passed, and the blank spaces are failed. The best values are those at the center of the rectangle, which are also printed in the last line for convenience.

--

Commit: edgehog/bsp/rockchip/linux-seco-rk@152892f9

[E09] fix io-domain power domains

Some power domains are configured incorrectly and this causes GMAC1 to work abnormally

--

Commit: edgehog/bsp/rockchip/linux-seco-rk@5fbc997c

[E09] configure ethernet leds

Configure mode and polarity of ethernet LEDs considering that, in E09 RevA, there are two hardware bugs:

  • Left LEDs (orange=1Gbps, green=100Mbps) are swapped
  • Right LED (activity) is active low

Merge request reports