xref: /linux/scripts/dtc/include-prefixes/arm/allwinner/sun8i-a83t-tbs-a711.dts (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1724ba675SRob Herring/*
2724ba675SRob Herring * Copyright (C) 2017 Touchless Biometric Systems AG
3724ba675SRob Herring * Tomas Novotny <tomas@novotny.cz>
4724ba675SRob Herring *
5724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
6724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
7724ba675SRob Herring * licensing only applies to this file, and not this project as a
8724ba675SRob Herring * whole.
9724ba675SRob Herring *
10724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
11724ba675SRob Herring *     modify it under the terms of the GNU General Public License as
12724ba675SRob Herring *     published by the Free Software Foundation; either version 2 of the
13724ba675SRob Herring *     License, or (at your option) any later version.
14724ba675SRob Herring *
15724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
16724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18724ba675SRob Herring *     GNU General Public License for more details.
19724ba675SRob Herring *
20724ba675SRob Herring * Or, alternatively,
21724ba675SRob Herring *
22724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
23724ba675SRob Herring *     obtaining a copy of this software and associated documentation
24724ba675SRob Herring *     files (the "Software"), to deal in the Software without
25724ba675SRob Herring *     restriction, including without limitation the rights to use,
26724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
27724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
28724ba675SRob Herring *     Software is furnished to do so, subject to the following
29724ba675SRob Herring *     conditions:
30724ba675SRob Herring *
31724ba675SRob Herring *     The above copyright notice and this permission notice shall be
32724ba675SRob Herring *     included in all copies or substantial portions of the Software.
33724ba675SRob Herring *
34724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
42724ba675SRob Herring */
43724ba675SRob Herring
44724ba675SRob Herring/dts-v1/;
45724ba675SRob Herring#include "sun8i-a83t.dtsi"
46724ba675SRob Herring
47724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
48724ba675SRob Herring#include <dt-bindings/pwm/pwm.h>
49724ba675SRob Herring#include <dt-bindings/input/input.h>
50724ba675SRob Herring
51724ba675SRob Herring/ {
52724ba675SRob Herring	model = "TBS A711 Tablet";
53724ba675SRob Herring	compatible = "tbs-biometrics,a711", "allwinner,sun8i-a83t";
54724ba675SRob Herring
55724ba675SRob Herring	aliases {
56724ba675SRob Herring		serial0 = &uart0;
57724ba675SRob Herring		serial1 = &uart1;
58724ba675SRob Herring	};
59724ba675SRob Herring
60724ba675SRob Herring	chosen {
61724ba675SRob Herring		stdout-path = "serial0:115200n8";
62724ba675SRob Herring	};
63724ba675SRob Herring
64724ba675SRob Herring	backlight: backlight {
65724ba675SRob Herring		compatible = "pwm-backlight";
66724ba675SRob Herring		pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
67724ba675SRob Herring		enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
68724ba675SRob Herring		power-supply = <&reg_sw>;
69724ba675SRob Herring		brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
70724ba675SRob Herring		default-brightness-level = <9>;
71724ba675SRob Herring	};
72724ba675SRob Herring
73724ba675SRob Herring	panel {
74724ba675SRob Herring		compatible = "tbs,a711-panel", "panel-lvds";
75724ba675SRob Herring		backlight = <&backlight>;
76724ba675SRob Herring		power-supply = <&reg_sw>;
77724ba675SRob Herring
78724ba675SRob Herring		width-mm = <153>;
79724ba675SRob Herring		height-mm = <90>;
80724ba675SRob Herring		data-mapping = "vesa-24";
81724ba675SRob Herring
82724ba675SRob Herring		panel-timing {
83724ba675SRob Herring			/* 1024x600 @60Hz */
84724ba675SRob Herring			clock-frequency = <52000000>;
85724ba675SRob Herring			hactive = <1024>;
86724ba675SRob Herring			vactive = <600>;
87724ba675SRob Herring			hsync-len = <20>;
88724ba675SRob Herring			hfront-porch = <180>;
89724ba675SRob Herring			hback-porch = <160>;
90724ba675SRob Herring			vfront-porch = <12>;
91724ba675SRob Herring			vback-porch = <23>;
92724ba675SRob Herring			vsync-len = <5>;
93724ba675SRob Herring		};
94724ba675SRob Herring
95724ba675SRob Herring		port {
96724ba675SRob Herring			panel_input: endpoint {
97724ba675SRob Herring				remote-endpoint = <&tcon0_out_lcd>;
98724ba675SRob Herring			};
99724ba675SRob Herring		};
100724ba675SRob Herring	};
101724ba675SRob Herring
102724ba675SRob Herring	reg_gps: reg-gps {
103724ba675SRob Herring		compatible = "regulator-fixed";
104724ba675SRob Herring		regulator-name = "gps";
105724ba675SRob Herring		regulator-min-microvolt = <3000000>;
106724ba675SRob Herring		regulator-max-microvolt = <3000000>;
107724ba675SRob Herring	};
108724ba675SRob Herring
109724ba675SRob Herring	reg_vbat: reg-vbat {
110724ba675SRob Herring		compatible = "regulator-fixed";
111724ba675SRob Herring		regulator-name = "vbat";
112724ba675SRob Herring		regulator-min-microvolt = <3700000>;
113724ba675SRob Herring		regulator-max-microvolt = <3700000>;
114724ba675SRob Herring	};
115724ba675SRob Herring
116724ba675SRob Herring	reg_vmain: reg-vmain {
117724ba675SRob Herring		compatible = "regulator-fixed";
118724ba675SRob Herring		regulator-name = "vmain";
119724ba675SRob Herring		regulator-min-microvolt = <5000000>;
120724ba675SRob Herring		regulator-max-microvolt = <5000000>;
121724ba675SRob Herring		gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>;
122724ba675SRob Herring		enable-active-high;
123724ba675SRob Herring		vin-supply = <&reg_vbat>;
124724ba675SRob Herring	};
125724ba675SRob Herring
126*0f47ef3fSKrzysztof Kozlowski	wifi_pwrseq: pwrseq {
127724ba675SRob Herring		compatible = "mmc-pwrseq-simple";
128724ba675SRob Herring		reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
129724ba675SRob Herring
130724ba675SRob Herring		/*
131724ba675SRob Herring		 * This is actually Bluetooth's clock, but we have to
132724ba675SRob Herring		 * hook it up somewheere
133724ba675SRob Herring		 */
134724ba675SRob Herring		clocks = <&ac100_rtc 1>;
135724ba675SRob Herring		clock-names = "ext_clock";
136724ba675SRob Herring	};
137724ba675SRob Herring};
138724ba675SRob Herring
139724ba675SRob Herring&cpu0 {
140724ba675SRob Herring	cpu-supply = <&reg_dcdc2>;
141724ba675SRob Herring};
142724ba675SRob Herring
143724ba675SRob Herring&cpu100 {
144724ba675SRob Herring	cpu-supply = <&reg_dcdc3>;
145724ba675SRob Herring};
146724ba675SRob Herring
147724ba675SRob Herring&de {
148724ba675SRob Herring	status = "okay";
149724ba675SRob Herring};
150724ba675SRob Herring
151724ba675SRob Herring/*
152724ba675SRob Herring * An USB-2 hub is connected here, which also means we don't need to
153724ba675SRob Herring * enable the OHCI controller.
154724ba675SRob Herring */
155724ba675SRob Herring&ehci0 {
156724ba675SRob Herring	status = "okay";
157724ba675SRob Herring};
158724ba675SRob Herring
159724ba675SRob Herring/*
160724ba675SRob Herring * There's a modem connected here that needs to be initialised before
161724ba675SRob Herring * being able to be enumerated.
162724ba675SRob Herring */
163724ba675SRob Herring&ehci1 {
164724ba675SRob Herring	status = "okay";
165724ba675SRob Herring};
166724ba675SRob Herring
167724ba675SRob Herring&i2c0 {
168724ba675SRob Herring	clock-frequency = <400000>;
169724ba675SRob Herring	status = "okay";
170724ba675SRob Herring
171724ba675SRob Herring	touchscreen@38 {
172724ba675SRob Herring		compatible = "edt,edt-ft5206";
173724ba675SRob Herring		reg = <0x38>;
174724ba675SRob Herring		interrupt-parent = <&r_pio>;
175724ba675SRob Herring		interrupts = <0 7 IRQ_TYPE_EDGE_FALLING>; /* PL7 */
176724ba675SRob Herring		reset-gpios = <&pio 3 5 GPIO_ACTIVE_LOW>; /* PD5 */
177724ba675SRob Herring		vcc-supply = <&reg_ldo_io0>;
178724ba675SRob Herring		touchscreen-size-x = <1024>;
179724ba675SRob Herring		touchscreen-size-y = <600>;
180724ba675SRob Herring	};
181724ba675SRob Herring};
182724ba675SRob Herring
183724ba675SRob Herring&i2c1 {
184724ba675SRob Herring	clock-frequency = <400000>;
185724ba675SRob Herring	status = "okay";
186724ba675SRob Herring
187724ba675SRob Herring	accelerometer@18 {
188724ba675SRob Herring		compatible = "bosch,bma250";
189724ba675SRob Herring		reg = <0x18>;
190724ba675SRob Herring		interrupt-parent = <&pio>;
191724ba675SRob Herring		interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */
192724ba675SRob Herring	};
193724ba675SRob Herring};
194724ba675SRob Herring
195724ba675SRob Herring&mmc0 {
196724ba675SRob Herring	vmmc-supply = <&reg_dcdc1>;
197724ba675SRob Herring	pinctrl-names = "default";
198724ba675SRob Herring	pinctrl-0 = <&mmc0_pins>;
199724ba675SRob Herring	bus-width = <4>;
200724ba675SRob Herring	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
201724ba675SRob Herring	status = "okay";
202724ba675SRob Herring};
203724ba675SRob Herring
204724ba675SRob Herring&mmc1 {
205724ba675SRob Herring	mmc-pwrseq = <&wifi_pwrseq>;
206724ba675SRob Herring	bus-width = <4>;
207724ba675SRob Herring	vmmc-supply = <&reg_dldo1>;
208724ba675SRob Herring	vqmmc-supply = <&reg_dldo1>;
209724ba675SRob Herring	non-removable;
210724ba675SRob Herring	wakeup-source;
211724ba675SRob Herring	keep-power-in-suspend;
212724ba675SRob Herring	status = "okay";
213724ba675SRob Herring
214724ba675SRob Herring	brcmf: wifi@1 {
215724ba675SRob Herring		reg = <1>;
216724ba675SRob Herring		compatible = "brcm,bcm4329-fmac";
217724ba675SRob Herring		interrupt-parent = <&r_pio>;
218724ba675SRob Herring		interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 WL_WAKE_UP */
219724ba675SRob Herring		interrupt-names = "host-wake";
220724ba675SRob Herring	};
221724ba675SRob Herring};
222724ba675SRob Herring
223724ba675SRob Herring&mmc2 {
224724ba675SRob Herring	pinctrl-0 = <&mmc2_8bit_emmc_pins>;
225724ba675SRob Herring	pinctrl-names = "default";
226724ba675SRob Herring	vmmc-supply = <&reg_dcdc1>;
227724ba675SRob Herring	vqmmc-supply = <&reg_dcdc1>;
228724ba675SRob Herring	bus-width = <8>;
229724ba675SRob Herring	non-removable;
230724ba675SRob Herring	cap-mmc-hw-reset;
231724ba675SRob Herring	status = "okay";
232724ba675SRob Herring};
233724ba675SRob Herring
234724ba675SRob Herring&pwm {
235724ba675SRob Herring	pinctrl-names = "default";
236724ba675SRob Herring	pinctrl-0 = <&pwm_pin>;
237724ba675SRob Herring	status = "okay";
238724ba675SRob Herring};
239724ba675SRob Herring
240724ba675SRob Herring&r_lradc {
241724ba675SRob Herring	vref-supply = <&reg_aldo2>;
242724ba675SRob Herring	status = "okay";
243724ba675SRob Herring
244724ba675SRob Herring	button-210 {
245724ba675SRob Herring		label = "Volume Up";
246724ba675SRob Herring		linux,code = <KEY_VOLUMEUP>;
247724ba675SRob Herring		channel = <0>;
248724ba675SRob Herring		voltage = <210000>;
249724ba675SRob Herring	};
250724ba675SRob Herring
251724ba675SRob Herring	button-410 {
252724ba675SRob Herring		label = "Volume Down";
253724ba675SRob Herring		linux,code = <KEY_VOLUMEDOWN>;
254724ba675SRob Herring		channel = <0>;
255724ba675SRob Herring		voltage = <410000>;
256724ba675SRob Herring	};
257724ba675SRob Herring};
258724ba675SRob Herring
259724ba675SRob Herring&r_rsb {
260724ba675SRob Herring	status = "okay";
261724ba675SRob Herring
262724ba675SRob Herring	axp81x: pmic@3a3 {
263724ba675SRob Herring		compatible = "x-powers,axp813";
264724ba675SRob Herring		reg = <0x3a3>;
265724ba675SRob Herring		interrupt-parent = <&r_intc>;
266724ba675SRob Herring		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
267724ba675SRob Herring		swin-supply = <&reg_dcdc1>;
268724ba675SRob Herring		x-powers,drive-vbus-en;
269724ba675SRob Herring	};
270724ba675SRob Herring
271724ba675SRob Herring	ac100: codec@e89 {
272724ba675SRob Herring		compatible = "x-powers,ac100";
273724ba675SRob Herring		reg = <0xe89>;
274724ba675SRob Herring
275724ba675SRob Herring		ac100_codec: codec {
276724ba675SRob Herring			compatible = "x-powers,ac100-codec";
277724ba675SRob Herring			interrupt-parent = <&r_pio>;
278724ba675SRob Herring			interrupts = <0 12 IRQ_TYPE_LEVEL_LOW>; /* PL12 */
279724ba675SRob Herring			#clock-cells = <0>;
280724ba675SRob Herring			clock-output-names = "4M_adda";
281724ba675SRob Herring		};
282724ba675SRob Herring
283724ba675SRob Herring		ac100_rtc: rtc {
284724ba675SRob Herring			compatible = "x-powers,ac100-rtc";
285724ba675SRob Herring			interrupt-parent = <&r_intc>;
286724ba675SRob Herring			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
287724ba675SRob Herring			clocks = <&ac100_codec>;
288724ba675SRob Herring			#clock-cells = <1>;
289724ba675SRob Herring			clock-output-names = "cko1_rtc",
290724ba675SRob Herring					     "cko2_rtc",
291724ba675SRob Herring					     "cko3_rtc";
292724ba675SRob Herring		};
293724ba675SRob Herring	};
294724ba675SRob Herring
295724ba675SRob Herring};
296724ba675SRob Herring
297724ba675SRob Herring#include "axp81x.dtsi"
298724ba675SRob Herring
299724ba675SRob Herring&battery_power_supply {
300724ba675SRob Herring	status = "okay";
301724ba675SRob Herring};
302724ba675SRob Herring
303724ba675SRob Herring&reg_aldo1 {
304724ba675SRob Herring	regulator-min-microvolt = <1800000>;
305724ba675SRob Herring	regulator-max-microvolt = <1800000>;
306724ba675SRob Herring	regulator-name = "vcc-1.8";
307724ba675SRob Herring};
308724ba675SRob Herring
309724ba675SRob Herring&reg_aldo2 {
310724ba675SRob Herring	regulator-min-microvolt = <1800000>;
311724ba675SRob Herring	regulator-max-microvolt = <1800000>;
312724ba675SRob Herring	regulator-always-on;
313724ba675SRob Herring	regulator-name = "vdd-drampll";
314724ba675SRob Herring};
315724ba675SRob Herring
316724ba675SRob Herring&reg_aldo3 {
317724ba675SRob Herring	regulator-min-microvolt = <3000000>;
318724ba675SRob Herring	regulator-max-microvolt = <3000000>;
319724ba675SRob Herring	regulator-always-on;
320724ba675SRob Herring	regulator-name = "avcc";
321724ba675SRob Herring};
322724ba675SRob Herring
323724ba675SRob Herring&reg_dcdc1 {
324724ba675SRob Herring	regulator-min-microvolt = <3100000>;
325724ba675SRob Herring	regulator-max-microvolt = <3100000>;
326724ba675SRob Herring	regulator-always-on;
327724ba675SRob Herring	regulator-name = "vcc-io";
328724ba675SRob Herring};
329724ba675SRob Herring
330724ba675SRob Herring&reg_dcdc2 {
331724ba675SRob Herring	regulator-min-microvolt = <700000>;
332724ba675SRob Herring	regulator-max-microvolt = <1100000>;
333724ba675SRob Herring	regulator-always-on;
334724ba675SRob Herring	regulator-name = "vdd-cpu-A";
335724ba675SRob Herring};
336724ba675SRob Herring
337724ba675SRob Herring&reg_dcdc3 {
338724ba675SRob Herring	regulator-min-microvolt = <700000>;
339724ba675SRob Herring	regulator-max-microvolt = <1100000>;
340724ba675SRob Herring	regulator-always-on;
341724ba675SRob Herring	regulator-name = "vdd-cpu-B";
342724ba675SRob Herring};
343724ba675SRob Herring
344724ba675SRob Herring&reg_dcdc4 {
345724ba675SRob Herring	regulator-min-microvolt = <700000>;
346724ba675SRob Herring	regulator-max-microvolt = <1100000>;
347724ba675SRob Herring	regulator-name = "vdd-gpu";
348724ba675SRob Herring};
349724ba675SRob Herring
350724ba675SRob Herring&reg_dcdc5 {
351724ba675SRob Herring	regulator-min-microvolt = <1200000>;
352724ba675SRob Herring	regulator-max-microvolt = <1500000>;
353724ba675SRob Herring	regulator-always-on;
354724ba675SRob Herring	regulator-name = "vcc-dram";
355724ba675SRob Herring};
356724ba675SRob Herring
357724ba675SRob Herring&reg_dcdc6 {
358724ba675SRob Herring	regulator-min-microvolt = <900000>;
359724ba675SRob Herring	regulator-max-microvolt = <900000>;
360724ba675SRob Herring	regulator-always-on;
361724ba675SRob Herring	regulator-name = "vdd-sys";
362724ba675SRob Herring};
363724ba675SRob Herring
364724ba675SRob Herring&reg_dldo1 {
365724ba675SRob Herring	regulator-min-microvolt = <3100000>;
366724ba675SRob Herring	regulator-max-microvolt = <3100000>;
367724ba675SRob Herring	regulator-name = "vcc-wifi-io";
368724ba675SRob Herring};
369724ba675SRob Herring
370724ba675SRob Herring&reg_dldo2 {
371724ba675SRob Herring	regulator-min-microvolt = <2800000>;
372724ba675SRob Herring	regulator-max-microvolt = <4200000>;
373724ba675SRob Herring	regulator-name = "vcc-mipi";
374724ba675SRob Herring};
375724ba675SRob Herring
376724ba675SRob Herring&reg_dldo3 {
377724ba675SRob Herring	regulator-min-microvolt = <1800000>;
378724ba675SRob Herring	regulator-max-microvolt = <1800000>;
379724ba675SRob Herring	regulator-name = "vdd-csi";
380724ba675SRob Herring};
381724ba675SRob Herring
382724ba675SRob Herring&reg_dldo4 {
383724ba675SRob Herring	regulator-min-microvolt = <2800000>;
384724ba675SRob Herring	regulator-max-microvolt = <2800000>;
385724ba675SRob Herring	regulator-name = "avdd-csi";
386724ba675SRob Herring};
387724ba675SRob Herring
388724ba675SRob Herring&reg_drivevbus {
389724ba675SRob Herring	regulator-name = "usb0-vbus";
390724ba675SRob Herring	status = "okay";
391724ba675SRob Herring};
392724ba675SRob Herring
393724ba675SRob Herring&reg_eldo1 {
394724ba675SRob Herring	regulator-min-microvolt = <1200000>;
395724ba675SRob Herring	regulator-max-microvolt = <1800000>;
396724ba675SRob Herring	regulator-name = "dvdd-csi-r";
397724ba675SRob Herring};
398724ba675SRob Herring
399724ba675SRob Herring&reg_eldo2 {
400724ba675SRob Herring	regulator-min-microvolt = <1800000>;
401724ba675SRob Herring	regulator-max-microvolt = <1800000>;
402724ba675SRob Herring	regulator-name = "vcc-dsi";
403724ba675SRob Herring};
404724ba675SRob Herring
405724ba675SRob Herring&reg_eldo3 {
406724ba675SRob Herring	regulator-min-microvolt = <1200000>;
407724ba675SRob Herring	regulator-max-microvolt = <1800000>;
408724ba675SRob Herring	regulator-name = "dvdd-csi-f";
409724ba675SRob Herring};
410724ba675SRob Herring
411724ba675SRob Herring&reg_fldo1 {
412724ba675SRob Herring	regulator-min-microvolt = <1200000>;
413724ba675SRob Herring	regulator-max-microvolt = <1200000>;
414724ba675SRob Herring	regulator-name = "vcc-hsic";
415724ba675SRob Herring};
416724ba675SRob Herring
417724ba675SRob Herring&reg_fldo2 {
418724ba675SRob Herring	regulator-min-microvolt = <700000>;
419724ba675SRob Herring	regulator-max-microvolt = <1100000>;
420724ba675SRob Herring	regulator-always-on;
421724ba675SRob Herring	regulator-name = "vdd-cpus";
422724ba675SRob Herring};
423724ba675SRob Herring
424724ba675SRob Herring&reg_ldo_io0 {
425724ba675SRob Herring	regulator-min-microvolt = <3100000>;
426724ba675SRob Herring	regulator-max-microvolt = <3100000>;
427724ba675SRob Herring	regulator-name = "vcc-ctp";
428724ba675SRob Herring	status = "okay";
429724ba675SRob Herring};
430724ba675SRob Herring
431724ba675SRob Herring&reg_ldo_io1 {
432724ba675SRob Herring	regulator-min-microvolt = <3100000>;
433724ba675SRob Herring	regulator-max-microvolt = <3100000>;
434724ba675SRob Herring	regulator-name = "vcc-vb";
435724ba675SRob Herring	status = "okay";
436724ba675SRob Herring};
437724ba675SRob Herring
438724ba675SRob Herring&reg_sw {
439724ba675SRob Herring	regulator-min-microvolt = <3100000>;
440724ba675SRob Herring	regulator-max-microvolt = <3100000>;
441724ba675SRob Herring	regulator-name = "vcc-lcd";
442724ba675SRob Herring};
443724ba675SRob Herring
444724ba675SRob Herring&tcon0 {
445724ba675SRob Herring	pinctrl-names = "default";
446724ba675SRob Herring	pinctrl-0 = <&lcd_lvds_pins>;
447724ba675SRob Herring};
448724ba675SRob Herring
449724ba675SRob Herring&tcon0_out {
450724ba675SRob Herring	tcon0_out_lcd: endpoint {
451724ba675SRob Herring		remote-endpoint = <&panel_input>;
452724ba675SRob Herring	};
453724ba675SRob Herring};
454724ba675SRob Herring
455724ba675SRob Herring&uart0 {
456724ba675SRob Herring	pinctrl-names = "default";
457724ba675SRob Herring	pinctrl-0 = <&uart0_pb_pins>;
458724ba675SRob Herring	status = "okay";
459724ba675SRob Herring};
460724ba675SRob Herring
461724ba675SRob Herring/* There's the BT part of the AP6210 connected to that UART */
462724ba675SRob Herring&uart1 {
463724ba675SRob Herring	pinctrl-names = "default";
464724ba675SRob Herring	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
465724ba675SRob Herring	uart-has-rtscts;
466724ba675SRob Herring	status = "okay";
467724ba675SRob Herring
468724ba675SRob Herring	bluetooth {
469724ba675SRob Herring		compatible = "brcm,bcm20702a1";
470724ba675SRob Herring		clocks = <&ac100_rtc 1>;
471724ba675SRob Herring		clock-names = "lpo";
472724ba675SRob Herring		vbat-supply = <&reg_vbat>;
473724ba675SRob Herring		vddio-supply = <&reg_dldo1>;
474724ba675SRob Herring		device-wakeup-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
475724ba675SRob Herring		host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
476724ba675SRob Herring		shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
477724ba675SRob Herring		max-speed = <1500000>;
478724ba675SRob Herring	};
479724ba675SRob Herring};
480724ba675SRob Herring
481724ba675SRob Herring&uart2 {
482724ba675SRob Herring	pinctrl-names = "default";
483724ba675SRob Herring	pinctrl-0 = <&uart2_pb_pins>;
484724ba675SRob Herring	status = "okay";
485724ba675SRob Herring
486724ba675SRob Herring	gnss {
487724ba675SRob Herring		compatible = "u-blox,neo-6m";
488724ba675SRob Herring
489724ba675SRob Herring		v-bckp-supply = <&reg_rtc_ldo>;
490724ba675SRob Herring		vcc-supply = <&reg_gps>;
491724ba675SRob Herring		current-speed = <9600>;
492724ba675SRob Herring	};
493724ba675SRob Herring};
494724ba675SRob Herring
495724ba675SRob Herring&usb_otg {
496724ba675SRob Herring	status = "okay";
497724ba675SRob Herring};
498724ba675SRob Herring
499724ba675SRob Herring&usbphy {
500724ba675SRob Herring	usb0_id_det-gpios = <&pio 7 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH11 */
501724ba675SRob Herring	usb0_vbus_power-supply = <&usb_power_supply>;
502724ba675SRob Herring	usb0_vbus-supply = <&reg_drivevbus>;
503724ba675SRob Herring	usb1_vbus-supply = <&reg_vmain>;
504724ba675SRob Herring	usb2_vbus-supply = <&reg_vmain>;
505724ba675SRob Herring	status = "okay";
506724ba675SRob Herring};
507