| .. | .. |
|---|
| 63 | 63 | |
|---|
| 64 | 64 | leds { |
|---|
| 65 | 65 | compatible = "gpio-leds"; |
|---|
| 66 | | - pinctrl-names = "default"; |
|---|
| 67 | | - pinctrl-0 = <&led_pins_orangepi>; |
|---|
| 68 | 66 | |
|---|
| 69 | 67 | green { |
|---|
| 70 | 68 | label = "orangepi:green:usr"; |
|---|
| .. | .. |
|---|
| 74 | 72 | |
|---|
| 75 | 73 | reg_gmac_3v3: gmac-3v3 { |
|---|
| 76 | 74 | compatible = "regulator-fixed"; |
|---|
| 77 | | - pinctrl-names = "default"; |
|---|
| 78 | | - pinctrl-0 = <&gmac_power_pin_orangepi>; |
|---|
| 79 | 75 | regulator-name = "gmac-3v3"; |
|---|
| 80 | 76 | regulator-min-microvolt = <3300000>; |
|---|
| 81 | 77 | regulator-max-microvolt = <3300000>; |
|---|
| .. | .. |
|---|
| 99 | 95 | |
|---|
| 100 | 96 | &gmac { |
|---|
| 101 | 97 | pinctrl-names = "default"; |
|---|
| 102 | | - pinctrl-0 = <&gmac_pins_rgmii_a>; |
|---|
| 103 | | - phy = <&phy1>; |
|---|
| 98 | + pinctrl-0 = <&gmac_rgmii_pins>; |
|---|
| 99 | + phy-handle = <&phy1>; |
|---|
| 104 | 100 | phy-mode = "rgmii"; |
|---|
| 105 | 101 | phy-supply = <®_gmac_3v3>; |
|---|
| 106 | 102 | status = "okay"; |
|---|
| 107 | | - |
|---|
| 108 | | - phy1: ethernet-phy@1 { |
|---|
| 109 | | - reg = <1>; |
|---|
| 110 | | - }; |
|---|
| 111 | 103 | }; |
|---|
| 112 | 104 | |
|---|
| 113 | 105 | &i2c0 { |
|---|
| 114 | | - pinctrl-names = "default"; |
|---|
| 115 | | - pinctrl-0 = <&i2c0_pins_a>; |
|---|
| 116 | 106 | status = "okay"; |
|---|
| 117 | 107 | |
|---|
| 118 | 108 | axp209: pmic@34 { |
|---|
| .. | .. |
|---|
| 126 | 116 | |
|---|
| 127 | 117 | &ir0 { |
|---|
| 128 | 118 | pinctrl-names = "default"; |
|---|
| 129 | | - pinctrl-0 = <&ir0_rx_pins_a>; |
|---|
| 119 | + pinctrl-0 = <&ir0_rx_pin>; |
|---|
| 130 | 120 | status = "okay"; |
|---|
| 131 | 121 | }; |
|---|
| 132 | 122 | |
|---|
| 123 | +&gmac_mdio { |
|---|
| 124 | + phy1: ethernet-phy@1 { |
|---|
| 125 | + reg = <1>; |
|---|
| 126 | + }; |
|---|
| 127 | +}; |
|---|
| 128 | + |
|---|
| 133 | 129 | &mmc0 { |
|---|
| 134 | | - pinctrl-names = "default"; |
|---|
| 135 | | - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_orangepi>; |
|---|
| 136 | 130 | vmmc-supply = <®_vcc3v3>; |
|---|
| 137 | 131 | bus-width = <4>; |
|---|
| 138 | 132 | cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ |
|---|
| .. | .. |
|---|
| 141 | 135 | |
|---|
| 142 | 136 | &otg_sram { |
|---|
| 143 | 137 | status = "okay"; |
|---|
| 144 | | -}; |
|---|
| 145 | | - |
|---|
| 146 | | -&pio { |
|---|
| 147 | | - usb0_id_detect_pin: usb0_id_detect_pin@0 { |
|---|
| 148 | | - pins = "PH4"; |
|---|
| 149 | | - function = "gpio_in"; |
|---|
| 150 | | - bias-pull-up; |
|---|
| 151 | | - }; |
|---|
| 152 | | - |
|---|
| 153 | | - mmc0_cd_pin_orangepi: mmc0_cd_pin@0 { |
|---|
| 154 | | - pins = "PH10"; |
|---|
| 155 | | - function = "gpio_in"; |
|---|
| 156 | | - bias-pull-up; |
|---|
| 157 | | - }; |
|---|
| 158 | | - |
|---|
| 159 | | - usb2_vbus_pin_bananapro: usb2_vbus_pin@0 { |
|---|
| 160 | | - pins = "PH22"; |
|---|
| 161 | | - function = "gpio_out"; |
|---|
| 162 | | - }; |
|---|
| 163 | | - |
|---|
| 164 | | - gmac_power_pin_orangepi: gmac_power_pin@0 { |
|---|
| 165 | | - pins = "PH23"; |
|---|
| 166 | | - function = "gpio_out"; |
|---|
| 167 | | - }; |
|---|
| 168 | | - |
|---|
| 169 | | - led_pins_orangepi: led_pins@0 { |
|---|
| 170 | | - pins = "PH24"; |
|---|
| 171 | | - function = "gpio_out"; |
|---|
| 172 | | - }; |
|---|
| 173 | | - |
|---|
| 174 | | - usb1_vbus_pin_bananapro: usb1_vbus_pin@0 { |
|---|
| 175 | | - pins = "PH26"; |
|---|
| 176 | | - function = "gpio_out"; |
|---|
| 177 | | - }; |
|---|
| 178 | 138 | }; |
|---|
| 179 | 139 | |
|---|
| 180 | 140 | ®_dcdc2 { |
|---|
| .. | .. |
|---|
| 207 | 167 | }; |
|---|
| 208 | 168 | |
|---|
| 209 | 169 | ®_usb1_vbus { |
|---|
| 210 | | - pinctrl-0 = <&usb1_vbus_pin_bananapro>; |
|---|
| 211 | 170 | gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */ |
|---|
| 212 | 171 | status = "okay"; |
|---|
| 213 | 172 | }; |
|---|
| 214 | 173 | |
|---|
| 215 | 174 | ®_usb2_vbus { |
|---|
| 216 | | - pinctrl-0 = <&usb2_vbus_pin_bananapro>; |
|---|
| 217 | 175 | gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */ |
|---|
| 218 | 176 | status = "okay"; |
|---|
| 219 | 177 | }; |
|---|
| 220 | 178 | |
|---|
| 221 | 179 | &uart0 { |
|---|
| 222 | 180 | pinctrl-names = "default"; |
|---|
| 223 | | - pinctrl-0 = <&uart0_pins_a>; |
|---|
| 181 | + pinctrl-0 = <&uart0_pb_pins>; |
|---|
| 224 | 182 | status = "okay"; |
|---|
| 225 | 183 | }; |
|---|
| 226 | 184 | |
|---|
| .. | .. |
|---|
| 234 | 192 | }; |
|---|
| 235 | 193 | |
|---|
| 236 | 194 | &usbphy { |
|---|
| 237 | | - pinctrl-names = "default"; |
|---|
| 238 | | - pinctrl-0 = <&usb0_id_detect_pin>; |
|---|
| 239 | | - usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ |
|---|
| 195 | + usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */ |
|---|
| 240 | 196 | usb0_vbus_power-supply = <&usb_power_supply>; |
|---|
| 241 | 197 | usb0_vbus-supply = <®_usb0_vbus>; |
|---|
| 242 | 198 | usb1_vbus-supply = <®_usb1_vbus>; |
|---|