| .. | .. |
|---|
| 63 | 63 | pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; |
|---|
| 64 | 64 | brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; |
|---|
| 65 | 65 | default-brightness-level = <8>; |
|---|
| 66 | | - pinctrl-names = "default"; |
|---|
| 67 | | - pinctrl-0 = <&bl_enable_pin>; |
|---|
| 68 | 66 | enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ |
|---|
| 69 | 67 | }; |
|---|
| 70 | 68 | |
|---|
| .. | .. |
|---|
| 74 | 72 | }; |
|---|
| 75 | 73 | |
|---|
| 76 | 74 | &codec { |
|---|
| 77 | | - pinctrl-names = "default"; |
|---|
| 78 | | - pinctrl-0 = <&codec_pa_pin>; |
|---|
| 79 | 75 | allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */ |
|---|
| 80 | 76 | status = "okay"; |
|---|
| 81 | 77 | }; |
|---|
| .. | .. |
|---|
| 93 | 89 | }; |
|---|
| 94 | 90 | |
|---|
| 95 | 91 | &i2c0 { |
|---|
| 96 | | - pinctrl-names = "default"; |
|---|
| 97 | | - pinctrl-0 = <&i2c0_pins_a>; |
|---|
| 98 | 92 | status = "okay"; |
|---|
| 99 | 93 | |
|---|
| 100 | 94 | axp209: pmic@34 { |
|---|
| .. | .. |
|---|
| 107 | 101 | #include "axp209.dtsi" |
|---|
| 108 | 102 | |
|---|
| 109 | 103 | &i2c1 { |
|---|
| 110 | | - pinctrl-names = "default"; |
|---|
| 111 | | - pinctrl-0 = <&i2c1_pins_a>; |
|---|
| 112 | 104 | status = "okay"; |
|---|
| 113 | 105 | }; |
|---|
| 114 | 106 | |
|---|
| 115 | 107 | &i2c2 { |
|---|
| 116 | | - pinctrl-names = "default"; |
|---|
| 117 | | - pinctrl-0 = <&i2c2_pins_a>; |
|---|
| 118 | 108 | status = "okay"; |
|---|
| 119 | 109 | |
|---|
| 120 | 110 | gt911: touchscreen@5d { |
|---|
| .. | .. |
|---|
| 122 | 112 | reg = <0x5d>; |
|---|
| 123 | 113 | interrupt-parent = <&pio>; |
|---|
| 124 | 114 | interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */ |
|---|
| 125 | | - pinctrl-names = "default"; |
|---|
| 126 | | - pinctrl-0 = <&ts_reset_pin>; |
|---|
| 127 | 115 | irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */ |
|---|
| 128 | 116 | reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */ |
|---|
| 129 | 117 | touchscreen-swapped-x-y; |
|---|
| .. | .. |
|---|
| 134 | 122 | vref-supply = <®_vcc3v0>; |
|---|
| 135 | 123 | status = "okay"; |
|---|
| 136 | 124 | |
|---|
| 137 | | - button@571 { |
|---|
| 125 | + button-571 { |
|---|
| 138 | 126 | label = "Volume Up"; |
|---|
| 139 | 127 | linux,code = <KEY_VOLUMEUP>; |
|---|
| 140 | 128 | channel = <0>; |
|---|
| 141 | 129 | voltage = <571428>; |
|---|
| 142 | 130 | }; |
|---|
| 143 | 131 | |
|---|
| 144 | | - button@761 { |
|---|
| 132 | + button-761 { |
|---|
| 145 | 133 | label = "Volume Down"; |
|---|
| 146 | 134 | linux,code = <KEY_VOLUMEDOWN>; |
|---|
| 147 | 135 | channel = <0>; |
|---|
| .. | .. |
|---|
| 150 | 138 | }; |
|---|
| 151 | 139 | |
|---|
| 152 | 140 | &mmc0 { |
|---|
| 153 | | - pinctrl-names = "default"; |
|---|
| 154 | | - pinctrl-0 = <&mmc0_pins_a>; |
|---|
| 155 | 141 | vmmc-supply = <®_vcc3v3>; |
|---|
| 156 | 142 | bus-width = <4>; |
|---|
| 157 | 143 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ |
|---|
| .. | .. |
|---|
| 170 | 156 | status = "okay"; |
|---|
| 171 | 157 | }; |
|---|
| 172 | 158 | |
|---|
| 173 | | -&pio { |
|---|
| 174 | | - bl_enable_pin: bl_enable_pin@0 { |
|---|
| 175 | | - pins = "PH7"; |
|---|
| 176 | | - function = "gpio_out"; |
|---|
| 177 | | - }; |
|---|
| 178 | | - |
|---|
| 179 | | - codec_pa_pin: codec_pa_pin@0 { |
|---|
| 180 | | - pins = "PH15"; |
|---|
| 181 | | - function = "gpio_out"; |
|---|
| 182 | | - }; |
|---|
| 183 | | - |
|---|
| 184 | | - ts_reset_pin: ts_reset_pin@0 { |
|---|
| 185 | | - pins = "PB13"; |
|---|
| 186 | | - function = "gpio_out"; |
|---|
| 187 | | - }; |
|---|
| 188 | | - |
|---|
| 189 | | - usb0_id_detect_pin: usb0_id_detect_pin@0 { |
|---|
| 190 | | - pins = "PH4"; |
|---|
| 191 | | - function = "gpio_in"; |
|---|
| 192 | | - bias-pull-up; |
|---|
| 193 | | - }; |
|---|
| 194 | | -}; |
|---|
| 195 | | - |
|---|
| 196 | 159 | &pwm { |
|---|
| 197 | 160 | pinctrl-names = "default"; |
|---|
| 198 | | - pinctrl-0 = <&pwm0_pins_a>; |
|---|
| 161 | + pinctrl-0 = <&pwm0_pin>; |
|---|
| 199 | 162 | status = "okay"; |
|---|
| 200 | 163 | }; |
|---|
| 201 | 164 | |
|---|
| .. | .. |
|---|
| 238 | 201 | |
|---|
| 239 | 202 | &uart0 { |
|---|
| 240 | 203 | pinctrl-names = "default"; |
|---|
| 241 | | - pinctrl-0 = <&uart0_pins_a>; |
|---|
| 204 | + pinctrl-0 = <&uart0_pb_pins>; |
|---|
| 242 | 205 | status = "okay"; |
|---|
| 243 | 206 | }; |
|---|
| 244 | 207 | |
|---|
| .. | .. |
|---|
| 252 | 215 | }; |
|---|
| 253 | 216 | |
|---|
| 254 | 217 | &usbphy { |
|---|
| 255 | | - pinctrl-names = "default"; |
|---|
| 256 | | - pinctrl-0 = <&usb0_id_detect_pin>; |
|---|
| 257 | | - usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ |
|---|
| 218 | + usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */ |
|---|
| 258 | 219 | usb0_vbus_power-supply = <&usb_power_supply>; |
|---|
| 259 | 220 | usb0_vbus-supply = <®_usb0_vbus>; |
|---|
| 260 | 221 | usb1_vbus-supply = <®_usb1_vbus>; |
|---|