| .. | .. |
|---|
| 1 | 1 | /* |
|---|
| 2 | | - * Copyright 2015 Adam Sampson <ats@offog.org> |
|---|
| 2 | + * Copyright 2015-2020 Adam Sampson <ats@offog.org> |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * This file is dual-licensed: you can use it either under the terms |
|---|
| 5 | 5 | * of the GPL or the X11 license, at your option. Note that this dual |
|---|
| .. | .. |
|---|
| 71 | 71 | |
|---|
| 72 | 72 | leds { |
|---|
| 73 | 73 | compatible = "gpio-leds"; |
|---|
| 74 | | - pinctrl-names = "default"; |
|---|
| 75 | | - pinctrl-0 = <&led_pins_pcduino3_nano>; |
|---|
| 76 | 74 | |
|---|
| 77 | 75 | /* Marked "LED3" on the PCB. */ |
|---|
| 78 | 76 | usr1 { |
|---|
| .. | .. |
|---|
| 115 | 113 | |
|---|
| 116 | 114 | &gmac { |
|---|
| 117 | 115 | pinctrl-names = "default"; |
|---|
| 118 | | - pinctrl-0 = <&gmac_pins_rgmii_a>; |
|---|
| 119 | | - phy = <&phy1>; |
|---|
| 120 | | - phy-mode = "rgmii"; |
|---|
| 116 | + pinctrl-0 = <&gmac_rgmii_pins>; |
|---|
| 117 | + phy-handle = <&phy1>; |
|---|
| 118 | + phy-mode = "rgmii-id"; |
|---|
| 121 | 119 | status = "okay"; |
|---|
| 122 | | - |
|---|
| 123 | | - phy1: ethernet-phy@1 { |
|---|
| 124 | | - reg = <1>; |
|---|
| 125 | | - }; |
|---|
| 126 | 120 | }; |
|---|
| 127 | 121 | |
|---|
| 128 | 122 | &hdmi { |
|---|
| .. | .. |
|---|
| 136 | 130 | }; |
|---|
| 137 | 131 | |
|---|
| 138 | 132 | &i2c0 { |
|---|
| 139 | | - pinctrl-names = "default"; |
|---|
| 140 | | - pinctrl-0 = <&i2c0_pins_a>; |
|---|
| 141 | 133 | status = "okay"; |
|---|
| 142 | 134 | |
|---|
| 143 | 135 | axp209: pmic@34 { |
|---|
| .. | .. |
|---|
| 149 | 141 | |
|---|
| 150 | 142 | &ir0 { |
|---|
| 151 | 143 | pinctrl-names = "default"; |
|---|
| 152 | | - pinctrl-0 = <&ir0_rx_pins_a>; |
|---|
| 144 | + pinctrl-0 = <&ir0_rx_pin>; |
|---|
| 153 | 145 | status = "okay"; |
|---|
| 154 | 146 | }; |
|---|
| 155 | 147 | |
|---|
| 148 | +&gmac_mdio { |
|---|
| 149 | + phy1: ethernet-phy@1 { |
|---|
| 150 | + reg = <1>; |
|---|
| 151 | + }; |
|---|
| 152 | +}; |
|---|
| 153 | + |
|---|
| 156 | 154 | &mmc0 { |
|---|
| 157 | | - pinctrl-names = "default"; |
|---|
| 158 | | - pinctrl-0 = <&mmc0_pins_a>; |
|---|
| 159 | 155 | vmmc-supply = <®_vcc3v3>; |
|---|
| 160 | 156 | bus-width = <4>; |
|---|
| 161 | 157 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ |
|---|
| .. | .. |
|---|
| 174 | 170 | status = "okay"; |
|---|
| 175 | 171 | }; |
|---|
| 176 | 172 | |
|---|
| 177 | | -&pio { |
|---|
| 178 | | - ahci_pwr_pin_pcduino3_nano: ahci_pwr_pin@0 { |
|---|
| 179 | | - pins = "PH2"; |
|---|
| 180 | | - function = "gpio_out"; |
|---|
| 181 | | - }; |
|---|
| 182 | | - |
|---|
| 183 | | - led_pins_pcduino3_nano: led_pins@0 { |
|---|
| 184 | | - pins = "PH16", "PH15"; |
|---|
| 185 | | - function = "gpio_out"; |
|---|
| 186 | | - }; |
|---|
| 187 | | - |
|---|
| 188 | | - usb0_id_detect_pin: usb0_id_detect_pin@0 { |
|---|
| 189 | | - pins = "PH4"; |
|---|
| 190 | | - function = "gpio_in"; |
|---|
| 191 | | - bias-pull-up; |
|---|
| 192 | | - }; |
|---|
| 193 | | - |
|---|
| 194 | | - usb1_vbus_pin_pcduino3_nano: usb1_vbus_pin@0 { |
|---|
| 195 | | - pins = "PD2"; |
|---|
| 196 | | - function = "gpio_out"; |
|---|
| 197 | | - }; |
|---|
| 198 | | -}; |
|---|
| 199 | | - |
|---|
| 200 | 173 | ®_ahci_5v { |
|---|
| 201 | | - pinctrl-0 = <&ahci_pwr_pin_pcduino3_nano>; |
|---|
| 202 | 174 | gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ |
|---|
| 203 | 175 | status = "okay"; |
|---|
| 204 | 176 | }; |
|---|
| .. | .. |
|---|
| 232 | 204 | |
|---|
| 233 | 205 | /* A single regulator (U24) powers both USB host ports. */ |
|---|
| 234 | 206 | ®_usb1_vbus { |
|---|
| 235 | | - pinctrl-0 = <&usb1_vbus_pin_pcduino3_nano>; |
|---|
| 236 | 207 | gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */ |
|---|
| 237 | 208 | status = "okay"; |
|---|
| 238 | 209 | }; |
|---|
| 239 | 210 | |
|---|
| 240 | 211 | &uart0 { |
|---|
| 241 | 212 | pinctrl-names = "default"; |
|---|
| 242 | | - pinctrl-0 = <&uart0_pins_a>; |
|---|
| 213 | + pinctrl-0 = <&uart0_pb_pins>; |
|---|
| 243 | 214 | status = "okay"; |
|---|
| 244 | 215 | }; |
|---|
| 245 | 216 | |
|---|
| .. | .. |
|---|
| 249 | 220 | }; |
|---|
| 250 | 221 | |
|---|
| 251 | 222 | &usbphy { |
|---|
| 252 | | - pinctrl-names = "default"; |
|---|
| 253 | | - pinctrl-0 = <&usb0_id_detect_pin>; |
|---|
| 254 | | - usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ |
|---|
| 223 | + usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */ |
|---|
| 255 | 224 | usb1_vbus-supply = <®_usb1_vbus>; |
|---|
| 256 | 225 | usb2_vbus-supply = <®_usb1_vbus>; |
|---|
| 257 | 226 | status = "okay"; |
|---|