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>;
149 compatible = "x-powers,axp813";
151 interrupt-parent = <&r_intc>;
152 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
153 swin-supply = <®_dcdc1>;
154 x-powers,drive-vbus-en;
158 compatible = "x-powers,ac100";
162 compatible = "x-powers,ac100-codec";
163 interrupt-parent = <&r_pio>;
164 interrupts = <0 12 IRQ_TYPE_LEVEL_LOW>; /* PL12 */
166 clock-output-names = "4M_adda";
170 compatible = "x-powers,ac100-rtc";
171 interrupt-parent = <&r_intc>;
172 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
173 clocks = <&ac100_codec>;
175 clock-output-names = "cko1_rtc",
183 #include "axp81x.dtsi"
186 regulator-min-microvolt = <1800000>;
187 regulator-max-microvolt = <1800000>;
188 regulator-name = "vcc-1.8";
192 regulator-min-microvolt = <1800000>;
193 regulator-max-microvolt = <1800000>;
195 regulator-name = "vdd-drampll";
199 regulator-min-microvolt = <3000000>;
200 regulator-max-microvolt = <3000000>;
202 regulator-name = "avcc";
206 regulator-min-microvolt = <3100000>;
207 regulator-max-microvolt = <3100000>;
209 regulator-name = "vcc-io";
213 regulator-min-microvolt = <700000>;
214 regulator-max-microvolt = <1100000>;
216 regulator-name = "vdd-cpu-A";
220 regulator-min-microvolt = <700000>;
221 regulator-max-microvolt = <1100000>;
223 regulator-name = "vdd-cpu-B";
227 regulator-min-microvolt = <700000>;
228 regulator-max-microvolt = <1100000>;
229 regulator-name = "vdd-gpu";
233 regulator-min-microvolt = <1200000>;
234 regulator-max-microvolt = <1500000>;
236 regulator-name = "vcc-dram";
240 regulator-min-microvolt = <900000>;
241 regulator-max-microvolt = <900000>;
243 regulator-name = "vdd-sys";
247 regulator-min-microvolt = <3100000>;
248 regulator-max-microvolt = <3100000>;
249 regulator-name = "vcc-wifi-io";
253 regulator-min-microvolt = <2800000>;
254 regulator-max-microvolt = <4200000>;
255 regulator-name = "vcc-mipi";
259 regulator-min-microvolt = <2800000>;
260 regulator-max-microvolt = <2800000>;
261 regulator-name = "vdd-csi";
265 regulator-min-microvolt = <2800000>;
266 regulator-max-microvolt = <2800000>;
267 regulator-name = "avdd-csi";
271 regulator-name = "usb0-vbus";
276 regulator-min-microvolt = <1200000>;
277 regulator-max-microvolt = <1800000>;
278 regulator-name = "dvdd-csi-r";
282 regulator-min-microvolt = <1800000>;
283 regulator-max-microvolt = <1800000>;
284 regulator-name = "vcc-dsi";
288 regulator-min-microvolt = <1200000>;
289 regulator-max-microvolt = <1800000>;
290 regulator-name = "dvdd-csi-f";
294 regulator-min-microvolt = <1200000>;
295 regulator-max-microvolt = <1200000>;
296 regulator-name = "vcc-hsic";
300 regulator-min-microvolt = <700000>;
301 regulator-max-microvolt = <1100000>;
303 regulator-name = "vdd-cpus";
307 regulator-min-microvolt = <3100000>;
308 regulator-max-microvolt = <3100000>;
309 regulator-name = "vcc-ctp";
314 regulator-min-microvolt = <3100000>;
315 regulator-max-microvolt = <3100000>;
316 regulator-name = "vcc-vb";
321 regulator-min-microvolt = <3100000>;
322 regulator-max-microvolt = <3100000>;
323 regulator-name = "vcc-lcd";
327 pinctrl-names = "default";
328 pinctrl-0 = <&uart0_pb_pins>;
332 /* There's the BT part of the AP6210 connected to that UART */
334 pinctrl-names = "default";
335 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
345 usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
346 usb0_vbus-supply = <®_drivevbus>;
347 usb1_vbus_supply = <®_vmain>;
348 usb2_vbus_supply = <®_vmain>;