Skip to content

Commit 6e204aa

Browse files
cristiccConchuOD
authored andcommitted
riscv: dts: starfive: jh7100-common: Setup pinmux and enable gmac
Add pinmux configuration for DWMAC found on the JH7100 based boards and enable the related DT node, providing a basic PHY configuration. Co-developed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Cristian Ciocaltea <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Reviewed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 5ca37ca commit 6e204aa

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

arch/riscv/boot/dts/starfive/jh7100-common.dtsi

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,91 @@
7272
};
7373
};
7474

75+
&gmac {
76+
pinctrl-names = "default";
77+
pinctrl-0 = <&gmac_pins>;
78+
phy-mode = "rgmii-id";
79+
status = "okay";
80+
81+
mdio: mdio {
82+
#address-cells = <1>;
83+
#size-cells = <0>;
84+
compatible = "snps,dwmac-mdio";
85+
};
86+
};
87+
7588
&gpio {
89+
gmac_pins: gmac-0 {
90+
gtxclk-pins {
91+
pins = <PAD_FUNC_SHARE(115)>;
92+
bias-pull-up;
93+
drive-strength = <35>;
94+
input-enable;
95+
input-schmitt-enable;
96+
slew-rate = <0>;
97+
};
98+
miitxclk-pins {
99+
pins = <PAD_FUNC_SHARE(116)>;
100+
bias-pull-up;
101+
drive-strength = <14>;
102+
input-enable;
103+
input-schmitt-disable;
104+
slew-rate = <0>;
105+
};
106+
tx-pins {
107+
pins = <PAD_FUNC_SHARE(117)>,
108+
<PAD_FUNC_SHARE(119)>,
109+
<PAD_FUNC_SHARE(120)>,
110+
<PAD_FUNC_SHARE(121)>,
111+
<PAD_FUNC_SHARE(122)>,
112+
<PAD_FUNC_SHARE(123)>,
113+
<PAD_FUNC_SHARE(124)>,
114+
<PAD_FUNC_SHARE(125)>,
115+
<PAD_FUNC_SHARE(126)>;
116+
bias-pull-up;
117+
drive-strength = <35>;
118+
input-disable;
119+
input-schmitt-disable;
120+
slew-rate = <0>;
121+
};
122+
rxclk-pins {
123+
pins = <PAD_FUNC_SHARE(127)>;
124+
bias-pull-up;
125+
drive-strength = <14>;
126+
input-enable;
127+
input-schmitt-disable;
128+
slew-rate = <6>;
129+
};
130+
rxer-pins {
131+
pins = <PAD_FUNC_SHARE(129)>;
132+
bias-pull-up;
133+
drive-strength = <14>;
134+
input-enable;
135+
input-schmitt-disable;
136+
slew-rate = <0>;
137+
};
138+
rx-pins {
139+
pins = <PAD_FUNC_SHARE(128)>,
140+
<PAD_FUNC_SHARE(130)>,
141+
<PAD_FUNC_SHARE(131)>,
142+
<PAD_FUNC_SHARE(132)>,
143+
<PAD_FUNC_SHARE(133)>,
144+
<PAD_FUNC_SHARE(134)>,
145+
<PAD_FUNC_SHARE(135)>,
146+
<PAD_FUNC_SHARE(136)>,
147+
<PAD_FUNC_SHARE(137)>,
148+
<PAD_FUNC_SHARE(138)>,
149+
<PAD_FUNC_SHARE(139)>,
150+
<PAD_FUNC_SHARE(140)>,
151+
<PAD_FUNC_SHARE(141)>;
152+
bias-pull-up;
153+
drive-strength = <14>;
154+
input-enable;
155+
input-schmitt-enable;
156+
slew-rate = <0>;
157+
};
158+
};
159+
76160
i2c0_pins: i2c0-0 {
77161
i2c-pins {
78162
pinmux = <GPIOMUX(62, GPO_LOW,

0 commit comments

Comments
 (0)