|
22 | 22 | "st,stm32mp135";
|
23 | 23 |
|
24 | 24 | aliases {
|
| 25 | + ethernet0 = ðernet1; |
| 26 | + ethernet1 = ðernet2; |
25 | 27 | serial2 = &usart1;
|
26 | 28 | serial3 = &usart2;
|
27 | 29 | };
|
|
72 | 74 | };
|
73 | 75 | };
|
74 | 76 |
|
| 77 | +ðernet1 { |
| 78 | + phy-handle = <ðphy1>; |
| 79 | + phy-mode = "rgmii-id"; |
| 80 | + pinctrl-0 = <ð1_rgmii_pins_a>; |
| 81 | + pinctrl-1 = <ð1_rgmii_sleep_pins_a>; |
| 82 | + pinctrl-names = "default", "sleep"; |
| 83 | + st,ext-phyclk; |
| 84 | + status = "okay"; |
| 85 | + |
| 86 | + mdio { |
| 87 | + #address-cells = <1>; |
| 88 | + #size-cells = <0>; |
| 89 | + compatible = "snps,dwmac-mdio"; |
| 90 | + |
| 91 | + ethphy1: ethernet-phy@1 { |
| 92 | + /* RTL8211F */ |
| 93 | + compatible = "ethernet-phy-id001c.c916"; |
| 94 | + interrupt-parent = <&gpiog>; |
| 95 | + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; |
| 96 | + reg = <1>; |
| 97 | + reset-assert-us = <15000>; |
| 98 | + reset-deassert-us = <55000>; |
| 99 | + reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>; |
| 100 | + }; |
| 101 | + }; |
| 102 | +}; |
| 103 | + |
| 104 | +ðernet2 { |
| 105 | + phy-handle = <ðphy2>; |
| 106 | + phy-mode = "rgmii-id"; |
| 107 | + pinctrl-0 = <ð2_rgmii_pins_a>; |
| 108 | + pinctrl-1 = <ð2_rgmii_sleep_pins_a>; |
| 109 | + pinctrl-names = "default", "sleep"; |
| 110 | + st,ext-phyclk; |
| 111 | + status = "okay"; |
| 112 | + |
| 113 | + mdio { |
| 114 | + #address-cells = <1>; |
| 115 | + #size-cells = <0>; |
| 116 | + compatible = "snps,dwmac-mdio"; |
| 117 | + |
| 118 | + ethphy2: ethernet-phy@1 { |
| 119 | + /* RTL8211F */ |
| 120 | + compatible = "ethernet-phy-id001c.c916"; |
| 121 | + interrupt-parent = <&gpiog>; |
| 122 | + interrupts = <15 IRQ_TYPE_LEVEL_LOW>; |
| 123 | + reg = <1>; |
| 124 | + reset-assert-us = <15000>; |
| 125 | + reset-deassert-us = <55000>; |
| 126 | + reset-gpios = <&gpiog 8 GPIO_ACTIVE_LOW>; |
| 127 | + }; |
| 128 | + }; |
| 129 | +}; |
| 130 | + |
75 | 131 | &gpioa {
|
76 | 132 | gpio-line-names = "", "", "", "",
|
77 | 133 | "", "DHSBC_USB_PWR_CC1", "", "",
|
|
0 commit comments