| .. | .. |
|---|
| 54 | 54 | pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; |
|---|
| 55 | 55 | brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; |
|---|
| 56 | 56 | default-brightness-level = <8>; |
|---|
| 57 | | - /* TODO: backlight uses axp gpio1 as enable pin */ |
|---|
| 57 | + enable-gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>; /* AXP GPIO1 */ |
|---|
| 58 | 58 | }; |
|---|
| 59 | 59 | |
|---|
| 60 | 60 | chosen { |
|---|
| .. | .. |
|---|
| 63 | 63 | }; |
|---|
| 64 | 64 | |
|---|
| 65 | 65 | &codec { |
|---|
| 66 | | - pinctrl-names = "default"; |
|---|
| 67 | | - pinctrl-0 = <&codec_pa_pin>; |
|---|
| 68 | 66 | allwinner,pa-gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; /* PG10 */ |
|---|
| 69 | 67 | status = "okay"; |
|---|
| 70 | 68 | }; |
|---|
| .. | .. |
|---|
| 96 | 94 | reg = <0x40>; |
|---|
| 97 | 95 | interrupt-parent = <&pio>; |
|---|
| 98 | 96 | interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; /* EINT11 (PG11) */ |
|---|
| 99 | | - pinctrl-names = "default"; |
|---|
| 100 | | - pinctrl-0 = <&ts_power_pin>; |
|---|
| 101 | 97 | power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */ |
|---|
| 102 | 98 | /* Tablet dts must provide reg and compatible */ |
|---|
| 103 | 99 | status = "disabled"; |
|---|
| .. | .. |
|---|
| 125 | 121 | |
|---|
| 126 | 122 | &mmc0 { |
|---|
| 127 | 123 | pinctrl-names = "default"; |
|---|
| 128 | | - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; |
|---|
| 124 | + pinctrl-0 = <&mmc0_pins>; |
|---|
| 129 | 125 | vmmc-supply = <®_vcc3v0>; |
|---|
| 130 | 126 | bus-width = <4>; |
|---|
| 131 | 127 | cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */ |
|---|
| .. | .. |
|---|
| 134 | 130 | |
|---|
| 135 | 131 | &otg_sram { |
|---|
| 136 | 132 | status = "okay"; |
|---|
| 137 | | -}; |
|---|
| 138 | | - |
|---|
| 139 | | -&pio { |
|---|
| 140 | | - codec_pa_pin: codec_pa_pin@0 { |
|---|
| 141 | | - pins = "PG10"; |
|---|
| 142 | | - function = "gpio_out"; |
|---|
| 143 | | - }; |
|---|
| 144 | | - |
|---|
| 145 | | - mmc0_cd_pin: mmc0_cd_pin@0 { |
|---|
| 146 | | - pins = "PG0"; |
|---|
| 147 | | - function = "gpio_in"; |
|---|
| 148 | | - bias-pull-up; |
|---|
| 149 | | - }; |
|---|
| 150 | | - |
|---|
| 151 | | - ts_power_pin: ts_power_pin { |
|---|
| 152 | | - pins = "PB3"; |
|---|
| 153 | | - function = "gpio_out"; |
|---|
| 154 | | - drive-strength = <10>; |
|---|
| 155 | | - bias-disable; |
|---|
| 156 | | - }; |
|---|
| 157 | | - |
|---|
| 158 | | - usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { |
|---|
| 159 | | - pins = "PG1"; |
|---|
| 160 | | - function = "gpio_in"; |
|---|
| 161 | | - bias-pull-down; |
|---|
| 162 | | - }; |
|---|
| 163 | | - |
|---|
| 164 | | - usb0_id_detect_pin: usb0_id_detect_pin@0 { |
|---|
| 165 | | - pins = "PG2"; |
|---|
| 166 | | - function = "gpio_in"; |
|---|
| 167 | | - bias-pull-up; |
|---|
| 168 | | - }; |
|---|
| 169 | | - |
|---|
| 170 | | - usb0_vbus_pin_a: usb0_vbus_pin@0 { |
|---|
| 171 | | - pins = "PG12"; |
|---|
| 172 | | - function = "gpio_out"; |
|---|
| 173 | | - }; |
|---|
| 174 | 133 | }; |
|---|
| 175 | 134 | |
|---|
| 176 | 135 | ®_dcdc2 { |
|---|
| .. | .. |
|---|
| 211 | 170 | |
|---|
| 212 | 171 | &uart1 { |
|---|
| 213 | 172 | pinctrl-names = "default"; |
|---|
| 214 | | - pinctrl-0 = <&uart1_pins_b>; |
|---|
| 173 | + pinctrl-0 = <&uart1_pg_pins>; |
|---|
| 215 | 174 | status = "okay"; |
|---|
| 216 | 175 | }; |
|---|
| 217 | 176 | |
|---|
| .. | .. |
|---|
| 225 | 184 | }; |
|---|
| 226 | 185 | |
|---|
| 227 | 186 | &usbphy { |
|---|
| 228 | | - pinctrl-names = "default"; |
|---|
| 229 | | - pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; |
|---|
| 230 | | - usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ |
|---|
| 231 | | - usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */ |
|---|
| 187 | + usb0_id_det-gpios = <&pio 6 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PG2 */ |
|---|
| 188 | + usb0_vbus_det-gpios = <&pio 6 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PG1 */ |
|---|
| 232 | 189 | usb0_vbus_power-supply = <&usb_power_supply>; |
|---|
| 233 | 190 | usb0_vbus-supply = <®_usb0_vbus>; |
|---|
| 234 | 191 | usb1_vbus-supply = <®_ldo3>; |
|---|