Skip to content

Commit aae6b18

Browse files
wenyouyaNicolas Ferre
authored andcommitted
ARM: dts: at91: sama5d4ek: add phy address and IRQ for macb0
On SAMA5D4EK board, the Ethernet doesn't work after resuming from the suspend state. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> [nicolas.ferre@atmel.com: adapt to newer kernel] Fixes: 38153a0 ("ARM: at91/dt: sama5d4: add dts for sama5d4 xplained board") Cc: <stable@vger.kernel.org> # 4.1+ Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
1 parent 6c482fd commit aae6b18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

arch/arm/boot/dts/at91-sama5d4ek.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,15 @@
160160
};
161161

162162
macb0: ethernet@f8020000 {
163+
pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
163164
phy-mode = "rmii";
164165
status = "okay";
166+
167+
ethernet-phy@1 {
168+
reg = <0x1>;
169+
interrupt-parent = <&pioE>;
170+
interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
171+
};
165172
};
166173

167174
mmc1: mmc@fc000000 {
@@ -193,6 +200,10 @@
193200

194201
pinctrl@fc06a000 {
195202
board {
203+
pinctrl_macb0_phy_irq: macb0_phy_irq {
204+
atmel,pins =
205+
<AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
206+
};
196207
pinctrl_mmc0_cd: mmc0_cd {
197208
atmel,pins =
198209
<AT91_PIOE 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;

0 commit comments

Comments
 (0)