Skip to content

Commit 6cd4b7c

Browse files
Siddharth-Vadapalli-at-TInmenon
authored andcommitted
arm64: dts: ti: k3-j784s4-evm: Enable MCU CPSW2G
Add device tree support to enable MCU CPSW with J784S4 EVM. Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Reviewed-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20230315042548.1500528-1-s-vadapalli@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent cf2aacf commit 6cd4b7c

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/k3-j784s4-evm.dts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,32 @@
140140
};
141141
};
142142

143+
&wkup_pmx0 {
144+
mcu_cpsw_pins_default: mcu-cpsw-pins-default {
145+
pinctrl-single,pins = <
146+
J784S4_WKUP_IOPAD(0x094, PIN_INPUT, 0) /* (A35) MCU_RGMII1_RD0 */
147+
J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (B36) MCU_RGMII1_RD1 */
148+
J784S4_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (C36) MCU_RGMII1_RD2 */
149+
J784S4_WKUP_IOPAD(0x088, PIN_INPUT, 0) /* (D36) MCU_RGMII1_RD3 */
150+
J784S4_WKUP_IOPAD(0x084, PIN_INPUT, 0) /* (B37) MCU_RGMII1_RXC */
151+
J784S4_WKUP_IOPAD(0x06c, PIN_INPUT, 0) /* (C37) MCU_RGMII1_RX_CTL */
152+
J784S4_WKUP_IOPAD(0x07c, PIN_OUTPUT, 0) /* (D37) MCU_RGMII1_TD0 */
153+
J784S4_WKUP_IOPAD(0x078, PIN_OUTPUT, 0) /* (D38) MCU_RGMII1_TD1 */
154+
J784S4_WKUP_IOPAD(0x074, PIN_OUTPUT, 0) /* (E37) MCU_RGMII1_TD2 */
155+
J784S4_WKUP_IOPAD(0x070, PIN_OUTPUT, 0) /* (E38) MCU_RGMII1_TD3 */
156+
J784S4_WKUP_IOPAD(0x080, PIN_OUTPUT, 0) /* (E36) MCU_RGMII1_TXC */
157+
J784S4_WKUP_IOPAD(0x068, PIN_OUTPUT, 0) /* (C38) MCU_RGMII1_TX_CTL */
158+
>;
159+
};
160+
161+
mcu_mdio_pins_default: mcu-mdio-pins-default {
162+
pinctrl-single,pins = <
163+
J784S4_WKUP_IOPAD(0x09c, PIN_OUTPUT, 0) /* (A36) MCU_MDIO0_MDC */
164+
J784S4_WKUP_IOPAD(0x098, PIN_INPUT, 0) /* (B35) MCU_MDIO0_MDIO */
165+
>;
166+
};
167+
};
168+
143169
&main_uart8 {
144170
status = "okay";
145171
pinctrl-names = "default";
@@ -194,3 +220,27 @@
194220
&main_gpio0 {
195221
status = "okay";
196222
};
223+
224+
&mcu_cpsw {
225+
status = "okay";
226+
pinctrl-names = "default";
227+
pinctrl-0 = <&mcu_cpsw_pins_default>;
228+
};
229+
230+
&davinci_mdio {
231+
pinctrl-names = "default";
232+
pinctrl-0 = <&mcu_mdio_pins_default>;
233+
234+
mcu_phy0: ethernet-phy@0 {
235+
reg = <0>;
236+
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
237+
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
238+
ti,min-output-impedance;
239+
};
240+
};
241+
242+
&mcu_cpsw_port1 {
243+
status = "okay";
244+
phy-mode = "rgmii-rxid";
245+
phy-handle = <&mcu_phy0>;
246+
};

0 commit comments

Comments
 (0)