2 * Copyright (C) 2017 Touchless Biometric Systems AG
3 * Tomas Novotny <tomas@novotny.cz>
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
45 #include "sun8i-a83t.dtsi"
47 #include <dt-bindings/gpio/gpio.h>
48 #include <dt-bindings/pwm/pwm.h>
51 model = "TBS A711 Tablet";
52 compatible = "tbs-biometrics,a711", "allwinner,sun8i-a83t";
60 stdout-path = "serial0:115200n8";
63 backlight: backlight {
64 compatible = "pwm-backlight";
65 pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
66 enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
68 brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
69 default-brightness-level = <9>;
73 compatible = "tbs,a711-panel", "panel-lvds";
74 backlight = <&backlight>;
75 power-supply = <®_sw>;
79 data-mapping = "vesa-24";
83 clock-frequency = <52000000>;
95 panel_input: endpoint {
96 remote-endpoint = <&tcon0_out_lcd>;
102 compatible = "regulator-fixed";
103 regulator-name = "vbat";
104 regulator-min-microvolt = <3700000>;
105 regulator-max-microvolt = <3700000>;
108 reg_vmain: reg-vmain {
109 compatible = "regulator-fixed";
110 regulator-name = "vmain";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
113 gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>;
115 vin-supply = <®_vbat>;
118 wifi_pwrseq: wifi_pwrseq {
119 compatible = "mmc-pwrseq-simple";
120 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
123 * This is actually Bluetooth's clock, but we have to
124 * hook it up somewheere
126 clocks = <&ac100_rtc 1>;
127 clock-names = "ext_clock";
132 cpu-supply = <®_dcdc2>;
136 cpu-supply = <®_dcdc3>;
144 * An USB-2 hub is connected here, which also means we don't need to
145 * enable the OHCI controller.
152 * There's a modem connected here that needs to be initialised before
153 * being able to be enumerated.
160 vmmc-supply = <®_dcdc1>;
161 pinctrl-names = "default";
162 pinctrl-0 = <&mmc0_pins>;
164 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
169 mmc-pwrseq = <&wifi_pwrseq>;
171 vmmc-supply = <®_dldo1>;
172 vqmmc-supply = <®_dldo1>;
179 compatible = "brcm,bcm4329-fmac";
180 interrupt-parent = <&r_pio>;
181 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 WL_WAKE_UP */
182 interrupt-names = "host-wake";
187 pinctrl-0 = <&mmc2_8bit_emmc_pins>;
188 pinctrl-names = "default";
189 vmmc-supply = <®_dcdc1>;
190 vqmmc-supply = <®_dcdc1>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&pwm_pin>;
207 compatible = "x-powers,axp813";
209 interrupt-parent = <&r_intc>;
210 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
211 swin-supply = <®_dcdc1>;
212 x-powers,drive-vbus-en;
216 compatible = "x-powers,ac100";
220 compatible = "x-powers,ac100-codec";
221 interrupt-parent = <&r_pio>;
222 interrupts = <0 12 IRQ_TYPE_LEVEL_LOW>; /* PL12 */
224 clock-output-names = "4M_adda";
228 compatible = "x-powers,ac100-rtc";
229 interrupt-parent = <&r_intc>;
230 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
231 clocks = <&ac100_codec>;
233 clock-output-names = "cko1_rtc",
241 #include "axp81x.dtsi"
243 &battery_power_supply {
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
250 regulator-name = "vcc-1.8";
254 regulator-min-microvolt = <1800000>;
255 regulator-max-microvolt = <1800000>;
257 regulator-name = "vdd-drampll";
261 regulator-min-microvolt = <3000000>;
262 regulator-max-microvolt = <3000000>;
264 regulator-name = "avcc";
268 regulator-min-microvolt = <3100000>;
269 regulator-max-microvolt = <3100000>;
271 regulator-name = "vcc-io";
275 regulator-min-microvolt = <700000>;
276 regulator-max-microvolt = <1100000>;
278 regulator-name = "vdd-cpu-A";
282 regulator-min-microvolt = <700000>;
283 regulator-max-microvolt = <1100000>;
285 regulator-name = "vdd-cpu-B";
289 regulator-min-microvolt = <700000>;
290 regulator-max-microvolt = <1100000>;
291 regulator-name = "vdd-gpu";
295 regulator-min-microvolt = <1200000>;
296 regulator-max-microvolt = <1500000>;
298 regulator-name = "vcc-dram";
302 regulator-min-microvolt = <900000>;
303 regulator-max-microvolt = <900000>;
305 regulator-name = "vdd-sys";
309 regulator-min-microvolt = <3100000>;
310 regulator-max-microvolt = <3100000>;
311 regulator-name = "vcc-wifi-io";
315 regulator-min-microvolt = <2800000>;
316 regulator-max-microvolt = <4200000>;
317 regulator-name = "vcc-mipi";
321 regulator-min-microvolt = <2800000>;
322 regulator-max-microvolt = <2800000>;
323 regulator-name = "vdd-csi";
327 regulator-min-microvolt = <2800000>;
328 regulator-max-microvolt = <2800000>;
329 regulator-name = "avdd-csi";
333 regulator-name = "usb0-vbus";
338 regulator-min-microvolt = <1200000>;
339 regulator-max-microvolt = <1800000>;
340 regulator-name = "dvdd-csi-r";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <1800000>;
346 regulator-name = "vcc-dsi";
350 regulator-min-microvolt = <1200000>;
351 regulator-max-microvolt = <1800000>;
352 regulator-name = "dvdd-csi-f";
356 regulator-min-microvolt = <1200000>;
357 regulator-max-microvolt = <1200000>;
358 regulator-name = "vcc-hsic";
362 regulator-min-microvolt = <700000>;
363 regulator-max-microvolt = <1100000>;
365 regulator-name = "vdd-cpus";
369 regulator-min-microvolt = <3100000>;
370 regulator-max-microvolt = <3100000>;
371 regulator-name = "vcc-ctp";
376 regulator-min-microvolt = <3100000>;
377 regulator-max-microvolt = <3100000>;
378 regulator-name = "vcc-vb";
383 regulator-min-microvolt = <3100000>;
384 regulator-max-microvolt = <3100000>;
385 regulator-name = "vcc-lcd";
389 pinctrl-names = "default";
390 pinctrl-0 = <&lcd_lvds_pins>;
394 tcon0_out_lcd: endpoint {
395 remote-endpoint = <&panel_input>;
400 pinctrl-names = "default";
401 pinctrl-0 = <&uart0_pb_pins>;
405 /* There's the BT part of the AP6210 connected to that UART */
407 pinctrl-names = "default";
408 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
418 usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
419 usb0_vbus-supply = <®_drivevbus>;
420 usb1_vbus-supply = <®_vmain>;
421 usb2_vbus-supply = <®_vmain>;