| .. | .. |
|---|
| 74 | 74 | |
|---|
| 75 | 75 | leds { |
|---|
| 76 | 76 | compatible = "gpio-leds"; |
|---|
| 77 | | - pinctrl-names = "default"; |
|---|
| 78 | | - pinctrl-0 = <&led_pins_cubietruck>; |
|---|
| 79 | 77 | |
|---|
| 80 | 78 | blue { |
|---|
| 81 | 79 | label = "cubietruck:blue:usr"; |
|---|
| .. | .. |
|---|
| 100 | 98 | |
|---|
| 101 | 99 | mmc3_pwrseq: mmc3_pwrseq { |
|---|
| 102 | 100 | compatible = "mmc-pwrseq-simple"; |
|---|
| 103 | | - pinctrl-names = "default"; |
|---|
| 104 | | - pinctrl-0 = <&mmc3_pwrseq_pin_cubietruck>; |
|---|
| 105 | 101 | reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */ |
|---|
| 102 | + clocks = <&ccu CLK_OUT_A>; |
|---|
| 103 | + clock-names = "ext_clock"; |
|---|
| 106 | 104 | }; |
|---|
| 107 | 105 | |
|---|
| 108 | 106 | sound { |
|---|
| .. | .. |
|---|
| 151 | 149 | |
|---|
| 152 | 150 | &gmac { |
|---|
| 153 | 151 | pinctrl-names = "default"; |
|---|
| 154 | | - pinctrl-0 = <&gmac_pins_rgmii_a>; |
|---|
| 155 | | - phy = <&phy1>; |
|---|
| 156 | | - phy-mode = "rgmii"; |
|---|
| 152 | + pinctrl-0 = <&gmac_rgmii_pins>; |
|---|
| 153 | + phy-handle = <&phy1>; |
|---|
| 154 | + phy-mode = "rgmii-id"; |
|---|
| 157 | 155 | status = "okay"; |
|---|
| 158 | | - |
|---|
| 159 | | - phy1: ethernet-phy@1 { |
|---|
| 160 | | - reg = <1>; |
|---|
| 161 | | - }; |
|---|
| 162 | 156 | }; |
|---|
| 163 | 157 | |
|---|
| 164 | 158 | &hdmi { |
|---|
| .. | .. |
|---|
| 172 | 166 | }; |
|---|
| 173 | 167 | |
|---|
| 174 | 168 | &i2c0 { |
|---|
| 175 | | - pinctrl-names = "default"; |
|---|
| 176 | | - pinctrl-0 = <&i2c0_pins_a>; |
|---|
| 177 | 169 | status = "okay"; |
|---|
| 178 | 170 | |
|---|
| 179 | 171 | axp209: pmic@34 { |
|---|
| .. | .. |
|---|
| 185 | 177 | |
|---|
| 186 | 178 | &i2c1 { |
|---|
| 187 | 179 | pinctrl-names = "default"; |
|---|
| 188 | | - pinctrl-0 = <&i2c1_pins_a>; |
|---|
| 189 | 180 | status = "okay"; |
|---|
| 190 | 181 | }; |
|---|
| 191 | 182 | |
|---|
| 192 | 183 | &i2c2 { |
|---|
| 193 | | - pinctrl-names = "default"; |
|---|
| 194 | | - pinctrl-0 = <&i2c2_pins_a>; |
|---|
| 195 | 184 | status = "okay"; |
|---|
| 196 | 185 | }; |
|---|
| 197 | 186 | |
|---|
| 198 | 187 | &ir0 { |
|---|
| 199 | 188 | pinctrl-names = "default"; |
|---|
| 200 | | - pinctrl-0 = <&ir0_rx_pins_a>; |
|---|
| 189 | + pinctrl-0 = <&ir0_rx_pin>; |
|---|
| 201 | 190 | status = "okay"; |
|---|
| 202 | 191 | }; |
|---|
| 203 | 192 | |
|---|
| 193 | +&gmac_mdio { |
|---|
| 194 | + phy1: ethernet-phy@1 { |
|---|
| 195 | + reg = <1>; |
|---|
| 196 | + }; |
|---|
| 197 | +}; |
|---|
| 198 | + |
|---|
| 204 | 199 | &mmc0 { |
|---|
| 205 | | - pinctrl-names = "default"; |
|---|
| 206 | | - pinctrl-0 = <&mmc0_pins_a>; |
|---|
| 207 | 200 | vmmc-supply = <®_vcc3v3>; |
|---|
| 208 | 201 | bus-width = <4>; |
|---|
| 209 | 202 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ |
|---|
| .. | .. |
|---|
| 211 | 204 | }; |
|---|
| 212 | 205 | |
|---|
| 213 | 206 | &mmc3 { |
|---|
| 214 | | - pinctrl-names = "default"; |
|---|
| 215 | | - pinctrl-0 = <&mmc3_pins_a>; |
|---|
| 216 | 207 | vmmc-supply = <®_vcc3v3>; |
|---|
| 217 | 208 | mmc-pwrseq = <&mmc3_pwrseq>; |
|---|
| 218 | 209 | bus-width = <4>; |
|---|
| .. | .. |
|---|
| 228 | 219 | }; |
|---|
| 229 | 220 | }; |
|---|
| 230 | 221 | |
|---|
| 231 | | -&mmc3_pins_a { |
|---|
| 232 | | - /* AP6210 requires pull-up */ |
|---|
| 233 | | - bias-pull-up; |
|---|
| 234 | | -}; |
|---|
| 235 | | - |
|---|
| 236 | 222 | &ohci0 { |
|---|
| 237 | 223 | status = "okay"; |
|---|
| 238 | 224 | }; |
|---|
| .. | .. |
|---|
| 246 | 232 | }; |
|---|
| 247 | 233 | |
|---|
| 248 | 234 | &pio { |
|---|
| 249 | | - ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 { |
|---|
| 250 | | - pins = "PH12"; |
|---|
| 251 | | - function = "gpio_out"; |
|---|
| 252 | | - }; |
|---|
| 253 | | - |
|---|
| 254 | | - led_pins_cubietruck: led_pins@0 { |
|---|
| 255 | | - pins = "PH7", "PH11", "PH20", "PH21"; |
|---|
| 256 | | - function = "gpio_out"; |
|---|
| 257 | | - }; |
|---|
| 258 | | - |
|---|
| 259 | | - mmc3_pwrseq_pin_cubietruck: mmc3_pwrseq_pin@0 { |
|---|
| 260 | | - pins = "PH9"; |
|---|
| 261 | | - function = "gpio_out"; |
|---|
| 262 | | - }; |
|---|
| 263 | | - |
|---|
| 264 | | - usb0_vbus_pin_a: usb0_vbus_pin@0 { |
|---|
| 265 | | - pins = "PH17"; |
|---|
| 266 | | - function = "gpio_out"; |
|---|
| 267 | | - }; |
|---|
| 268 | | - |
|---|
| 269 | | - usb0_id_detect_pin: usb0_id_detect_pin@0 { |
|---|
| 270 | | - pins = "PH19"; |
|---|
| 271 | | - function = "gpio_in"; |
|---|
| 272 | | - }; |
|---|
| 273 | | - |
|---|
| 274 | | - usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |
|---|
| 275 | | - pins = "PH22"; |
|---|
| 276 | | - function = "gpio_in"; |
|---|
| 277 | | - }; |
|---|
| 235 | + /* Pin outputs low power clock for WiFi and BT */ |
|---|
| 236 | + pinctrl-0 = <&clk_out_a_pin>; |
|---|
| 237 | + pinctrl-names = "default"; |
|---|
| 278 | 238 | }; |
|---|
| 279 | 239 | |
|---|
| 280 | 240 | &pwm { |
|---|
| 281 | 241 | pinctrl-names = "default"; |
|---|
| 282 | | - pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; |
|---|
| 242 | + pinctrl-0 = <&pwm0_pin>, <&pwm1_pin>; |
|---|
| 283 | 243 | status = "okay"; |
|---|
| 284 | 244 | }; |
|---|
| 285 | 245 | |
|---|
| 286 | 246 | ®_ahci_5v { |
|---|
| 287 | | - pinctrl-0 = <&ahci_pwr_pin_cubietruck>; |
|---|
| 288 | 247 | gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; |
|---|
| 289 | 248 | status = "okay"; |
|---|
| 290 | 249 | }; |
|---|
| .. | .. |
|---|
| 325 | 284 | }; |
|---|
| 326 | 285 | |
|---|
| 327 | 286 | ®_usb0_vbus { |
|---|
| 328 | | - pinctrl-0 = <&usb0_vbus_pin_a>; |
|---|
| 329 | 287 | gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>; |
|---|
| 330 | 288 | status = "okay"; |
|---|
| 331 | 289 | }; |
|---|
| .. | .. |
|---|
| 340 | 298 | |
|---|
| 341 | 299 | &spdif { |
|---|
| 342 | 300 | pinctrl-names = "default"; |
|---|
| 343 | | - pinctrl-0 = <&spdif_tx_pins_a>; |
|---|
| 301 | + pinctrl-0 = <&spdif_tx_pin>; |
|---|
| 344 | 302 | status = "okay"; |
|---|
| 345 | 303 | }; |
|---|
| 346 | 304 | |
|---|
| 347 | 305 | &uart0 { |
|---|
| 348 | 306 | pinctrl-names = "default"; |
|---|
| 349 | | - pinctrl-0 = <&uart0_pins_a>; |
|---|
| 307 | + pinctrl-0 = <&uart0_pb_pins>; |
|---|
| 350 | 308 | status = "okay"; |
|---|
| 309 | +}; |
|---|
| 310 | + |
|---|
| 311 | +&uart2 { |
|---|
| 312 | + pinctrl-names = "default"; |
|---|
| 313 | + pinctrl-0 = <&uart2_pi_pins>, <&uart2_cts_rts_pi_pins>; |
|---|
| 314 | + uart-has-rtscts; |
|---|
| 315 | + status = "okay"; |
|---|
| 316 | + |
|---|
| 317 | + bluetooth { |
|---|
| 318 | + compatible = "brcm,bcm20702a1"; |
|---|
| 319 | + clocks = <&ccu CLK_OUT_A>; |
|---|
| 320 | + clock-names = "lpo"; |
|---|
| 321 | + device-wakeup-gpios = <&pio 7 24 GPIO_ACTIVE_LOW>; /* PH24 */ |
|---|
| 322 | + host-wakeup-gpios = <&pio 7 25 GPIO_ACTIVE_LOW>; /* PH25 */ |
|---|
| 323 | + shutdown-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH18 */ |
|---|
| 324 | + max-speed = <1500000>; |
|---|
| 325 | + }; |
|---|
| 351 | 326 | }; |
|---|
| 352 | 327 | |
|---|
| 353 | 328 | &usb_otg { |
|---|
| .. | .. |
|---|
| 360 | 335 | }; |
|---|
| 361 | 336 | |
|---|
| 362 | 337 | &usbphy { |
|---|
| 363 | | - pinctrl-names = "default"; |
|---|
| 364 | | - pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; |
|---|
| 365 | 338 | usb0_id_det-gpios = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */ |
|---|
| 366 | 339 | usb0_vbus_det-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ |
|---|
| 367 | 340 | usb0_vbus_power-supply = <&usb_power_supply>; |
|---|