Skip to content

Commit b4c354b

Browse files
Christophe RoullierAlexandre Torgue
authored andcommitted
arm64: dts: st: add eth2 pinctrl entries in stm32mp25-pinctrl.dtsi
Add pinctrl entry related to ETH2 in stm32mp25-pinctrl.dtsi ethernet2: RGMII with crystal. Signed-off-by: Christophe Roullier <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent ed4dd5b commit b4c354b

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,65 @@
66
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
77

88
&pinctrl {
9+
eth2_rgmii_pins_a: eth2-rgmii-0 {
10+
pins1 {
11+
pinmux = <STM32_PINMUX('C', 7, AF10)>, /* ETH_RGMII_TXD0 */
12+
<STM32_PINMUX('C', 8, AF10)>, /* ETH_RGMII_TXD1 */
13+
<STM32_PINMUX('C', 9, AF10)>, /* ETH_RGMII_TXD2 */
14+
<STM32_PINMUX('C', 10, AF10)>, /* ETH_RGMII_TXD3 */
15+
<STM32_PINMUX('C', 4, AF10)>; /* ETH_RGMII_TX_CTL */
16+
bias-disable;
17+
drive-push-pull;
18+
slew-rate = <3>;
19+
};
20+
pins2 {
21+
pinmux = <STM32_PINMUX('F', 8, AF10)>, /* ETH_RGMII_CLK125 */
22+
<STM32_PINMUX('F', 7, AF10)>, /* ETH_RGMII_GTX_CLK */
23+
<STM32_PINMUX('C', 6, AF10)>; /* ETH_MDC */
24+
bias-disable;
25+
drive-push-pull;
26+
slew-rate = <3>;
27+
};
28+
pins3 {
29+
pinmux = <STM32_PINMUX('C', 5, AF10)>; /* ETH_MDIO */
30+
bias-disable;
31+
drive-push-pull;
32+
slew-rate = <0>;
33+
};
34+
pins4 {
35+
pinmux = <STM32_PINMUX('G', 0, AF10)>, /* ETH_RGMII_RXD0 */
36+
<STM32_PINMUX('C', 12, AF10)>, /* ETH_RGMII_RXD1 */
37+
<STM32_PINMUX('F', 9, AF10)>, /* ETH_RGMII_RXD2 */
38+
<STM32_PINMUX('C', 11, AF10)>, /* ETH_RGMII_RXD3 */
39+
<STM32_PINMUX('C', 3, AF10)>; /* ETH_RGMII_RX_CTL */
40+
bias-disable;
41+
};
42+
pins5 {
43+
pinmux = <STM32_PINMUX('F', 6, AF10)>; /* ETH_RGMII_RX_CLK */
44+
bias-disable;
45+
};
46+
};
47+
48+
eth2_rgmii_sleep_pins_a: eth2-rgmii-sleep-0 {
49+
pins {
50+
pinmux = <STM32_PINMUX('C', 7, ANALOG)>, /* ETH_RGMII_TXD0 */
51+
<STM32_PINMUX('C', 8, ANALOG)>, /* ETH_RGMII_TXD1 */
52+
<STM32_PINMUX('C', 9, ANALOG)>, /* ETH_RGMII_TXD2 */
53+
<STM32_PINMUX('C', 10, ANALOG)>, /* ETH_RGMII_TXD3 */
54+
<STM32_PINMUX('C', 4, ANALOG)>, /* ETH_RGMII_TX_CTL */
55+
<STM32_PINMUX('F', 8, ANALOG)>, /* ETH_RGMII_CLK125 */
56+
<STM32_PINMUX('F', 7, ANALOG)>, /* ETH_RGMII_GTX_CLK */
57+
<STM32_PINMUX('C', 6, ANALOG)>, /* ETH_MDC */
58+
<STM32_PINMUX('C', 5, ANALOG)>, /* ETH_MDIO */
59+
<STM32_PINMUX('G', 0, ANALOG)>, /* ETH_RGMII_RXD0 */
60+
<STM32_PINMUX('C', 12, ANALOG)>, /* ETH_RGMII_RXD1 */
61+
<STM32_PINMUX('F', 9, ANALOG)>, /* ETH_RGMII_RXD2 */
62+
<STM32_PINMUX('C', 11, ANALOG)>, /* ETH_RGMII_RXD3 */
63+
<STM32_PINMUX('C', 3, ANALOG)>, /* ETH_RGMII_RX_CTL */
64+
<STM32_PINMUX('F', 6, ANALOG)>; /* ETH_RGMII_RX_CLK */
65+
};
66+
};
67+
968
i2c2_pins_a: i2c2-0 {
1069
pins {
1170
pinmux = <STM32_PINMUX('B', 5, AF9)>, /* I2C2_SCL */

0 commit comments

Comments
 (0)