|
20 | 20 | stdout-path = "serial0:115200n8"; |
21 | 21 | }; |
22 | 22 |
|
23 | | - //bl2_verify { |
24 | | - // bl2_compatible = "spim-nand"; |
25 | | - //}; |
26 | | - |
27 | | - |
28 | 23 | gpio-keys { |
29 | 24 | compatible = "gpio-keys"; |
30 | 25 |
|
|
74 | 69 | led-pattern = <1000>, <1000>; |
75 | 70 | }; |
76 | 71 |
|
77 | | - // there's another "syswatchdog" on gpio2 |
| 72 | + // there's another internal "syswatchdog": &watchdog |
78 | 73 | }; |
79 | 74 | }; |
80 | 75 | ð { |
81 | 76 | status = "okay"; |
82 | 77 | pinctrl-names = "default"; |
83 | | - //pinctrl-0 = <ð_led0>; |
| 78 | + pinctrl-0 = <&gbe_led0_pins>; |
| 79 | + |
84 | 80 | gmac0: mac@0 { |
85 | 81 | compatible = "mediatek,eth-mac"; |
86 | 82 | reg = <0>; |
87 | 83 | phy-mode = "2500base-x"; |
88 | 84 | phy-handle = <&phy5>; |
89 | 85 | nvmem-cell-names = "mac-address"; |
90 | 86 | nvmem-cells = <&macaddr_factory_2a>; |
91 | | - |
92 | 87 | }; |
93 | 88 |
|
94 | 89 | gmac1: mac@1 { |
95 | 90 | compatible = "mediatek,eth-mac"; |
96 | 91 | reg = <1>; |
97 | 92 | phy-mode = "gmii"; |
98 | | - phy-handle = <&phy0>; |
| 93 | + phy-handle = <&int_gbe_phy>; |
99 | 94 | nvmem-cell-names = "mac-address"; |
100 | 95 | nvmem-cells = <&macaddr_factory_24>; |
101 | 96 | }; |
| 97 | +}; |
102 | 98 |
|
103 | | - mdio: mdio-bus { |
104 | | - #address-cells = <1>; |
105 | | - #size-cells = <0>; |
106 | | - phy0: ethernet-phy@0 { |
107 | | - compatible = "ethernet-phy-id03a2.9461"; |
108 | | - reg = <0>; |
109 | | - phy-mode = "gmii"; |
110 | | - nvmem-cells = <&phy_calibration>; |
111 | | - nvmem-cell-names = "phy-cal-data"; |
112 | | - }; |
113 | | - phy5: phy@5 { |
114 | | - compatible = "ethernet-phy-id67c9.de0a"; |
115 | | - reg = <5>; |
116 | | - reset-gpios = <&pio 39 1>; |
117 | | - reset-assert-us = <600>; |
118 | | - reset-deassert-us = <20000>; |
119 | | - phy-mode = "2500base-x"; |
120 | | - label = "wan"; |
121 | | - }; |
| 99 | +&mdio_bus { |
| 100 | + phy5: phy@5 { |
| 101 | + compatible = "ethernet-phy-ieee802.3-c45"; |
| 102 | + reg = <5>; |
| 103 | + phy-mode = "2500base-x"; |
| 104 | + reset-gpios = <&pio 39 1>; |
| 105 | + reset-assert-us = <600>; |
| 106 | + reset-deassert-us = <20000>; |
| 107 | + |
| 108 | + // configures the led registers |
| 109 | + // see VSPEC1_LEDx registers in gpy211 manual |
| 110 | + mxl,led-config = <0x00f0 0x0 0x0 0x0>; |
122 | 111 | }; |
123 | 112 | }; |
| 113 | + |
124 | 114 | &pio { |
125 | 115 | spi0_flash_pins: spi0-pins { |
126 | 116 | mux { |
|
140 | 130 | }; |
141 | 131 |
|
142 | 132 | }; |
143 | | - |
144 | | - spi2_flash_pins: spi2-pins { |
145 | | - mux { |
146 | | - function = "spi"; |
147 | | - groups = "spi2", "spi2_wp_hold"; |
148 | | - }; |
149 | | - |
150 | | - conf-pu { |
151 | | - pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; |
152 | | - drive-strength = <8>; |
153 | | - bias-pull-up = <103>; |
154 | | - }; |
155 | | - |
156 | | - conf-pd { |
157 | | - pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; |
158 | | - drive-strength = <8>; |
159 | | - bias-pull-down = <103>; |
160 | | - }; |
161 | | - }; |
162 | 133 | }; |
163 | 134 |
|
164 | 135 | &spi0 { |
|
233 | 204 | label = "ubi"; |
234 | 205 | reg = <0x580000 0x4000000>; |
235 | 206 | }; |
236 | | - partition@4580000 { |
237 | | - compatible = "linux,ubi"; |
238 | | - label = "horst"; |
239 | | - reg = <0x4580000 0x3800000>; |
240 | | - }; |
241 | 207 | }; |
242 | 208 | }; |
243 | 209 | }; |
244 | 210 |
|
245 | | -&spi2 { |
246 | | - pinctrl-names = "default"; |
247 | | - pinctrl-0 = <&spi2_flash_pins>; |
248 | | - status = "disabled"; |
249 | | - |
250 | | -}; |
251 | | - |
252 | | - |
253 | 211 | &uart0 { |
254 | 212 | status = "okay"; |
255 | 213 | }; |
|
0 commit comments