Skip to content

Commit f998dc4

Browse files
grygoriySdavem330
authored andcommitted
arm64: dts: ti: k3-j721e-common-proc-board: add mcu cpsw nuss pinmux and phy defs
The TI J721E EVM base board has TI DP83867 PHY connected to external CPSW NUSS Port 1 in rgmii-rxid mode. Hence, add pinmux and Ethernet PHY configuration for TI j721e SoC MCU Gigabit Ethernet two ports Switch subsystem (CPSW NUSS). Signed-off-by: Grygorii Strashko <[email protected]> Tested-by: Murali Karicheri <[email protected]> Tested-by: Peter Ujfalusi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ae7fdac commit f998dc4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "k3-j721e-som-p0.dtsi"
99
#include <dt-bindings/gpio/gpio.h>
1010
#include <dt-bindings/input/input.h>
11+
#include <dt-bindings/net/ti-dp83867.h>
1112

1213
/ {
1314
chosen {
@@ -128,6 +129,30 @@
128129
J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
129130
>;
130131
};
132+
133+
mcu_cpsw_pins_default: mcu_cpsw_pins_default {
134+
pinctrl-single,pins = <
135+
J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
136+
J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
137+
J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
138+
J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
139+
J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
140+
J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
141+
J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
142+
J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
143+
J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
144+
J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
145+
J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */
146+
J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
147+
>;
148+
};
149+
150+
mcu_mdio_pins_default: mcu_mdio1_pins_default {
151+
pinctrl-single,pins = <
152+
J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* MCU_MDIO0_MDC */
153+
J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */
154+
>;
155+
};
131156
};
132157

133158
&wkup_uart0 {
@@ -429,3 +454,21 @@
429454
#gpio-cells = <2>;
430455
};
431456
};
457+
458+
&mcu_cpsw {
459+
pinctrl-names = "default";
460+
pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
461+
};
462+
463+
&davinci_mdio {
464+
phy0: ethernet-phy@0 {
465+
reg = <0>;
466+
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
467+
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
468+
};
469+
};
470+
471+
&cpsw_port1 {
472+
phy-mode = "rgmii-rxid";
473+
phy-handle = <&phy0>;
474+
};

0 commit comments

Comments
 (0)