|
7 | 7 |
|
8 | 8 | #include "k3-am654.dtsi"
|
9 | 9 | #include <dt-bindings/input/input.h>
|
| 10 | +#include <dt-bindings/net/ti-dp83867.h> |
10 | 11 |
|
11 | 12 | / {
|
12 | 13 | compatible = "ti,am654-evm", "ti,am654";
|
|
95 | 96 | wkup_pca554_default: wkup_pca554_default {
|
96 | 97 | pinctrl-single,pins = <
|
97 | 98 | 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 | + }; |
98 | 118 |
|
| 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 */ |
99 | 123 | >;
|
100 | 124 | };
|
101 | 125 | };
|
|
419 | 443 | data-lanes = <1 2>;
|
420 | 444 | };
|
421 | 445 | };
|
| 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