Skip to content

Commit 9ba5a8a

Browse files
grygoriySdavem330
authored andcommitted
arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs
AM654 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 am654 SoC 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 ba86a6e commit 9ba5a8a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

arch/arm64/boot/dts/ti/k3-am654-base-board.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "k3-am654.dtsi"
99
#include <dt-bindings/input/input.h>
10+
#include <dt-bindings/net/ti-dp83867.h>
1011

1112
/ {
1213
compatible = "ti,am654-evm", "ti,am654";
@@ -95,7 +96,30 @@
9596
wkup_pca554_default: wkup_pca554_default {
9697
pinctrl-single,pins = <
9798
AM65X_WKUP_IOPAD(0x0034, PIN_INPUT, 7) /* (T1) MCU_OSPI1_CLK.WKUP_GPIO0_25 */
99+
>;
100+
};
101+
102+
mcu_cpsw_pins_default: mcu_cpsw_pins_default {
103+
pinctrl-single,pins = <
104+
AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */
105+
AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
106+
AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
107+
AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
108+
AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
109+
AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
110+
AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
111+
AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
112+
AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
113+
AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
114+
AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
115+
AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
116+
>;
117+
};
98118

119+
mcu_mdio_pins_default: mcu_mdio1_pins_default {
120+
pinctrl-single,pins = <
121+
AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
122+
AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */
99123
>;
100124
};
101125
};
@@ -419,3 +443,21 @@
419443
data-lanes = <1 2>;
420444
};
421445
};
446+
447+
&mcu_cpsw {
448+
pinctrl-names = "default";
449+
pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
450+
};
451+
452+
&davinci_mdio {
453+
phy0: ethernet-phy@0 {
454+
reg = <0>;
455+
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
456+
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
457+
};
458+
};
459+
460+
&cpsw_port1 {
461+
phy-mode = "rgmii-rxid";
462+
phy-handle = <&phy0>;
463+
};

0 commit comments

Comments
 (0)