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>
50 model = "TBS A711 Tablet";
51 compatible = "tbs-biometrics,a711", "allwinner,sun8i-a83t";
59 stdout-path = "serial0:115200n8";
63 compatible = "regulator-fixed";
64 regulator-name = "vbat";
65 regulator-min-microvolt = <3700000>;
66 regulator-max-microvolt = <3700000>;
69 reg_vmain: reg-vmain {
70 compatible = "regulator-fixed";
71 regulator-name = "vmain";
72 regulator-min-microvolt = <5000000>;
73 regulator-max-microvolt = <5000000>;
74 gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>;
76 vin-supply = <®_vbat>;
79 wifi_pwrseq: wifi_pwrseq {
80 compatible = "mmc-pwrseq-simple";
81 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
84 * This is actually Bluetooth's clock, but we have to
85 * hook it up somewheere
87 clocks = <&ac100_rtc 1>;
88 clock-names = "ext_clock";
93 * An USB-2 hub is connected here, which also means we don't need to
94 * enable the OHCI controller.
101 * There's a modem connected here that needs to be initialised before
102 * being able to be enumerated.
109 vmmc-supply = <®_dcdc1>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&mmc0_pins>;
112 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
117 mmc-pwrseq = <&wifi_pwrseq>;
119 vmmc-supply = <®_dldo1>;
120 vqmmc-supply = <®_dldo1>;
127 compatible = "brcm,bcm4329-fmac";
128 interrupt-parent = <&r_pio>;
129 interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 WL_WAKE_UP */
130 interrupt-names = "host-wake";
135 pinctrl-0 = <&mmc2_8bit_emmc_pins>;
136 pinctrl-names = "default";
137 vmmc-supply = <®_dcdc1>;
138 vqmmc-supply = <®_dcdc1>;
150 interrupt-parent = <&r_intc>;
151 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
152 swin-supply = <®_dcdc1>;
153 x-powers,drive-vbus-en;
157 compatible = "x-powers,ac100";
161 compatible = "x-powers,ac100-codec";
162 interrupt-parent = <&r_pio>;
163 interrupts = <0 12 IRQ_TYPE_LEVEL_LOW>; /* PL12 */
165 clock-output-names = "4M_adda";
169 compatible = "x-powers,ac100-rtc";
170 interrupt-parent = <&r_intc>;
171 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
172 clocks = <&ac100_codec>;
174 clock-output-names = "cko1_rtc",
182 #include "axp81x.dtsi"
185 regulator-min-microvolt = <1800000>;
186 regulator-max-microvolt = <1800000>;
187 regulator-name = "vcc-1.8";
191 regulator-min-microvolt = <1800000>;
192 regulator-max-microvolt = <1800000>;
194 regulator-name = "vdd-drampll";
198 regulator-min-microvolt = <3000000>;
199 regulator-max-microvolt = <3000000>;
201 regulator-name = "avcc";
205 regulator-min-microvolt = <3100000>;
206 regulator-max-microvolt = <3100000>;
208 regulator-name = "vcc-io";
212 regulator-min-microvolt = <700000>;
213 regulator-max-microvolt = <1100000>;
215 regulator-name = "vdd-cpu-A";
219 regulator-min-microvolt = <700000>;
220 regulator-max-microvolt = <1100000>;
222 regulator-name = "vdd-cpu-B";
226 regulator-min-microvolt = <700000>;
227 regulator-max-microvolt = <1100000>;
228 regulator-name = "vdd-gpu";
232 regulator-min-microvolt = <1200000>;
233 regulator-max-microvolt = <1500000>;
235 regulator-name = "vcc-dram";
239 regulator-min-microvolt = <900000>;
240 regulator-max-microvolt = <900000>;
242 regulator-name = "vdd-sys";
246 regulator-min-microvolt = <3100000>;
247 regulator-max-microvolt = <3100000>;
248 regulator-name = "vcc-wifi-io";
252 regulator-min-microvolt = <2800000>;
253 regulator-max-microvolt = <4200000>;
254 regulator-name = "vcc-mipi";
258 regulator-min-microvolt = <2800000>;
259 regulator-max-microvolt = <2800000>;
260 regulator-name = "vdd-csi";
264 regulator-min-microvolt = <2800000>;
265 regulator-max-microvolt = <2800000>;
266 regulator-name = "avdd-csi";
270 regulator-name = "usb0-vbus";
275 regulator-min-microvolt = <1200000>;
276 regulator-max-microvolt = <1800000>;
277 regulator-name = "dvdd-csi-r";
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
283 regulator-name = "vcc-dsi";
287 regulator-min-microvolt = <1200000>;
288 regulator-max-microvolt = <1800000>;
289 regulator-name = "dvdd-csi-f";
293 regulator-min-microvolt = <1200000>;
294 regulator-max-microvolt = <1200000>;
295 regulator-name = "vcc-hsic";
299 regulator-min-microvolt = <700000>;
300 regulator-max-microvolt = <1100000>;
302 regulator-name = "vdd-cpus";
306 regulator-min-microvolt = <3100000>;
307 regulator-max-microvolt = <3100000>;
308 regulator-name = "vcc-ctp";
313 regulator-min-microvolt = <3100000>;
314 regulator-max-microvolt = <3100000>;
315 regulator-name = "vcc-vb";
320 regulator-min-microvolt = <3100000>;
321 regulator-max-microvolt = <3100000>;
322 regulator-name = "vcc-lcd";
326 pinctrl-names = "default";
327 pinctrl-0 = <&uart0_pb_pins>;
331 /* There's the BT part of the AP6210 connected to that UART */
333 pinctrl-names = "default";
334 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
344 usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
345 usb0_vbus-supply = <®_drivevbus>;
346 usb1_vbus_supply = <®_vmain>;
347 usb2_vbus_supply = <®_vmain>;