Commit 7c798a11d499dbf5c1c12eedec6bd7299b906b2b
Committed by
Tom Rini
1 parent
1d5b5d2f8f
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
poplar: enable Ethernet driver support
The 'phy' reset of gmac device in kernel device tree is not generic enough for u-boot to use, so we need to overwrite the 'resets' property as needed. With this device tree fixup and poplar_defconfig changes, Ethernet starts working on Poplar board. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Showing 2 changed files with 17 additions and 0 deletions Side-by-side Diff
arch/arm/dts/hi3798cv200-u-boot.dtsi
... | ... | @@ -8,12 +8,26 @@ |
8 | 8 | * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> |
9 | 9 | */ |
10 | 10 | |
11 | +#include <dt-bindings/reset/ti-syscon.h> | |
12 | + | |
11 | 13 | &soc { |
14 | + rst: reset-controller@8a22000 { | |
15 | + compatible = "hisilicon,hi3798cv200-reset"; | |
16 | + reg = <0x8a22000 0x1000>; | |
17 | + #reset-cells = <3>; | |
18 | + }; | |
19 | + | |
12 | 20 | usb2: ehci@9890000 { |
13 | 21 | compatible = "generic-ehci"; |
14 | 22 | reg = <0x9890000 0x100>; |
15 | 23 | status = "okay"; |
16 | 24 | }; |
25 | +}; | |
26 | + | |
27 | +&gmac1 { | |
28 | + resets = <&rst 0xcc 9 ASSERT_SET>, | |
29 | + <&rst 0xcc 11 ASSERT_SET>, | |
30 | + <&rst 0xcc 13 DEASSERT_SET>; | |
17 | 31 | }; |
18 | 32 | |
19 | 33 | &uart0 { |
configs/poplar_defconfig