Skip to content

Commit 7116fb2

Browse files
ryan-wannerclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7d65: Enable GMAC interface
Enable GMAC0 interface for sama7d65_curiosity board. Signed-off-by: Ryan Wanner <[email protected]> Link: https://lore.kernel.org/r/fca0c1deb74006cdedbdd71061dec9dabf1e9b9a.1743523114.git.Ryan.Wanner@microchip.com [claudiu.beznea: move gmac0 node to keep the nodes alphanumerically sorted, dropped status property on the PHY node, added missing blank line] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent b51e4ae commit 7116fb2

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@
6060
status = "okay";
6161
};
6262

63+
&gmac0 {
64+
#address-cells = <1>;
65+
#size-cells = <0>;
66+
pinctrl-names = "default";
67+
pinctrl-0 = <&pinctrl_gmac0_default
68+
&pinctrl_gmac0_mdio_default
69+
&pinctrl_gmac0_txck_default
70+
&pinctrl_gmac0_phy_irq>;
71+
phy-mode = "rgmii-id";
72+
status = "okay";
73+
74+
ethernet-phy@7 {
75+
reg = <0x7>;
76+
interrupt-parent = <&pioa>;
77+
interrupts = <PIN_PC1 IRQ_TYPE_LEVEL_LOW>;
78+
};
79+
};
80+
6381
&i2c10 {
6482
dmas = <0>, <0>;
6583
i2c-analog-filter;
@@ -106,6 +124,39 @@
106124
};
107125

108126
&pioa {
127+
pinctrl_gmac0_default: gmac0-default {
128+
pinmux = <PIN_PA26__G0_TX0>,
129+
<PIN_PA27__G0_TX1>,
130+
<PIN_PB4__G0_TX2>,
131+
<PIN_PB5__G0_TX3>,
132+
<PIN_PA29__G0_RX0>,
133+
<PIN_PA30__G0_RX1>,
134+
<PIN_PB2__G0_RX2>,
135+
<PIN_PB6__G0_RX3>,
136+
<PIN_PA25__G0_TXCTL>,
137+
<PIN_PB3__G0_RXCK>,
138+
<PIN_PA28__G0_RXCTL>;
139+
slew-rate = <0>;
140+
bias-disable;
141+
};
142+
143+
pinctrl_gmac0_mdio_default: gmac0-mdio-default {
144+
pinmux = <PIN_PA31__G0_MDC>,
145+
<PIN_PB0__G0_MDIO>;
146+
bias-disable;
147+
};
148+
149+
pinctrl_gmac0_phy_irq: gmac0-phy-irq {
150+
pinmux = <PIN_PC1__GPIO>;
151+
bias-disable;
152+
};
153+
154+
pinctrl_gmac0_txck_default: gmac0-txck-default {
155+
pinmux = <PIN_PB1__G0_REFCK>;
156+
slew-rate = <0>;
157+
bias-pull-up;
158+
};
159+
109160
pinctrl_i2c10_default: i2c10-default{
110161
pinmux = <PIN_PB19__FLEXCOM10_IO1>,
111162
<PIN_PB20__FLEXCOM10_IO0>;

0 commit comments

Comments
 (0)