.. | .. |
---|
46 | 46 | |
---|
47 | 47 | #include <dt-bindings/gpio/gpio.h> |
---|
48 | 48 | #include <dt-bindings/pwm/pwm.h> |
---|
| 49 | +#include <dt-bindings/input/input.h> |
---|
49 | 50 | |
---|
50 | 51 | / { |
---|
51 | 52 | model = "TBS A711 Tablet"; |
---|
.. | .. |
---|
96 | 97 | remote-endpoint = <&tcon0_out_lcd>; |
---|
97 | 98 | }; |
---|
98 | 99 | }; |
---|
| 100 | + }; |
---|
| 101 | + |
---|
| 102 | + reg_gps: reg-gps { |
---|
| 103 | + compatible = "regulator-fixed"; |
---|
| 104 | + regulator-name = "gps"; |
---|
| 105 | + regulator-min-microvolt = <3000000>; |
---|
| 106 | + regulator-max-microvolt = <3000000>; |
---|
99 | 107 | }; |
---|
100 | 108 | |
---|
101 | 109 | reg_vbat: reg-vbat { |
---|
.. | .. |
---|
156 | 164 | status = "okay"; |
---|
157 | 165 | }; |
---|
158 | 166 | |
---|
| 167 | +&i2c0 { |
---|
| 168 | + clock-frequency = <400000>; |
---|
| 169 | + status = "okay"; |
---|
| 170 | + |
---|
| 171 | + touchscreen@38 { |
---|
| 172 | + compatible = "edt,edt-ft5x06"; |
---|
| 173 | + reg = <0x38>; |
---|
| 174 | + interrupt-parent = <&r_pio>; |
---|
| 175 | + interrupts = <0 7 IRQ_TYPE_EDGE_FALLING>; /* PL7 */ |
---|
| 176 | + reset-gpios = <&pio 3 5 GPIO_ACTIVE_LOW>; /* PD5 */ |
---|
| 177 | + vcc-supply = <®_ldo_io0>; |
---|
| 178 | + touchscreen-size-x = <1024>; |
---|
| 179 | + touchscreen-size-y = <600>; |
---|
| 180 | + }; |
---|
| 181 | +}; |
---|
| 182 | + |
---|
| 183 | +&i2c1 { |
---|
| 184 | + clock-frequency = <400000>; |
---|
| 185 | + status = "okay"; |
---|
| 186 | + |
---|
| 187 | + accelerometer@18 { |
---|
| 188 | + compatible = "bosch,bma250"; |
---|
| 189 | + reg = <0x18>; |
---|
| 190 | + interrupt-parent = <&pio>; |
---|
| 191 | + interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */ |
---|
| 192 | + }; |
---|
| 193 | +}; |
---|
| 194 | + |
---|
159 | 195 | &mmc0 { |
---|
160 | 196 | vmmc-supply = <®_dcdc1>; |
---|
161 | 197 | pinctrl-names = "default"; |
---|
162 | 198 | pinctrl-0 = <&mmc0_pins>; |
---|
| 199 | + bus-width = <4>; |
---|
163 | 200 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; |
---|
164 | 201 | status = "okay"; |
---|
165 | 202 | }; |
---|
.. | .. |
---|
198 | 235 | pinctrl-names = "default"; |
---|
199 | 236 | pinctrl-0 = <&pwm_pin>; |
---|
200 | 237 | status = "okay"; |
---|
| 238 | +}; |
---|
| 239 | + |
---|
| 240 | +&r_lradc { |
---|
| 241 | + vref-supply = <®_aldo2>; |
---|
| 242 | + status = "okay"; |
---|
| 243 | + |
---|
| 244 | + button-210 { |
---|
| 245 | + label = "Volume Up"; |
---|
| 246 | + linux,code = <KEY_VOLUMEUP>; |
---|
| 247 | + channel = <0>; |
---|
| 248 | + voltage = <210000>; |
---|
| 249 | + }; |
---|
| 250 | + |
---|
| 251 | + button-410 { |
---|
| 252 | + label = "Volume Down"; |
---|
| 253 | + linux,code = <KEY_VOLUMEDOWN>; |
---|
| 254 | + channel = <0>; |
---|
| 255 | + voltage = <410000>; |
---|
| 256 | + }; |
---|
201 | 257 | }; |
---|
202 | 258 | |
---|
203 | 259 | &r_rsb { |
---|
.. | .. |
---|
391 | 447 | }; |
---|
392 | 448 | |
---|
393 | 449 | &tcon0_out { |
---|
394 | | - tcon0_out_lcd: endpoint@0 { |
---|
395 | | - reg = <0>; |
---|
| 450 | + tcon0_out_lcd: endpoint { |
---|
396 | 451 | remote-endpoint = <&panel_input>; |
---|
397 | 452 | }; |
---|
398 | 453 | }; |
---|
.. | .. |
---|
407 | 462 | &uart1 { |
---|
408 | 463 | pinctrl-names = "default"; |
---|
409 | 464 | pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; |
---|
| 465 | + uart-has-rtscts; |
---|
410 | 466 | status = "okay"; |
---|
| 467 | + |
---|
| 468 | + bluetooth { |
---|
| 469 | + compatible = "brcm,bcm20702a1"; |
---|
| 470 | + clocks = <&ac100_rtc 1>; |
---|
| 471 | + clock-names = "lpo"; |
---|
| 472 | + vbat-supply = <®_vbat>; |
---|
| 473 | + vddio-supply = <®_dldo1>; |
---|
| 474 | + device-wakeup-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ |
---|
| 475 | + host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ |
---|
| 476 | + shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ |
---|
| 477 | + max-speed = <1500000>; |
---|
| 478 | + }; |
---|
| 479 | +}; |
---|
| 480 | + |
---|
| 481 | +&uart2 { |
---|
| 482 | + pinctrl-names = "default"; |
---|
| 483 | + pinctrl-0 = <&uart2_pb_pins>; |
---|
| 484 | + status = "okay"; |
---|
| 485 | + |
---|
| 486 | + gnss { |
---|
| 487 | + compatible = "u-blox,neo-6m"; |
---|
| 488 | + |
---|
| 489 | + v-bckp-supply = <®_rtc_ldo>; |
---|
| 490 | + vcc-supply = <®_gps>; |
---|
| 491 | + current-speed = <9600>; |
---|
| 492 | + }; |
---|
411 | 493 | }; |
---|
412 | 494 | |
---|
413 | 495 | &usb_otg { |
---|
414 | | - dr_mode = "otg"; |
---|
415 | 496 | status = "okay"; |
---|
416 | 497 | }; |
---|
417 | 498 | |
---|
418 | 499 | &usbphy { |
---|
419 | | - usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ |
---|
| 500 | + usb0_id_det-gpios = <&pio 7 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH11 */ |
---|
| 501 | + usb0_vbus_power-supply = <&usb_power_supply>; |
---|
420 | 502 | usb0_vbus-supply = <®_drivevbus>; |
---|
421 | | - usb1_vbus_supply = <®_vmain>; |
---|
422 | | - usb2_vbus_supply = <®_vmain>; |
---|
| 503 | + usb1_vbus-supply = <®_vmain>; |
---|
| 504 | + usb2_vbus-supply = <®_vmain>; |
---|
423 | 505 | status = "okay"; |
---|
424 | 506 | }; |
---|