xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-apq8064-asus-nexus7-flo.dts (revision 7b22923c3f504114e3509b0577bbb3a42eb0c49e)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include "qcom-apq8064-v2.0.dtsi"
3724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
4724ba675SRob Herring#include <dt-bindings/input/input.h>
5724ba675SRob Herring#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
6724ba675SRob Herring/ {
7724ba675SRob Herring	model = "Asus Nexus7(flo)";
8724ba675SRob Herring	compatible = "asus,nexus7-flo", "qcom,apq8064";
9724ba675SRob Herring	chassis-type = "tablet";
10724ba675SRob Herring
11724ba675SRob Herring	aliases {
12724ba675SRob Herring		serial0 = &gsbi7_serial;
13724ba675SRob Herring		serial1 = &gsbi6_serial;
14724ba675SRob Herring	};
15724ba675SRob Herring
16724ba675SRob Herring	chosen {
17724ba675SRob Herring		stdout-path = "serial0:115200n8";
18724ba675SRob Herring	};
19724ba675SRob Herring
20724ba675SRob Herring	reserved-memory {
21724ba675SRob Herring		#address-cells = <1>;
22724ba675SRob Herring		#size-cells = <1>;
23724ba675SRob Herring		ranges;
24724ba675SRob Herring
25724ba675SRob Herring		ramoops@88d00000 {
26724ba675SRob Herring			compatible = "ramoops";
27724ba675SRob Herring			reg = <0x88d00000 0x100000>;
28724ba675SRob Herring			record-size = <0x00020000>;
29724ba675SRob Herring			console-size = <0x00020000>;
30724ba675SRob Herring			ftrace-size = <0x00020000>;
31724ba675SRob Herring		};
32724ba675SRob Herring	};
33724ba675SRob Herring
34724ba675SRob Herring	ext_3p3v: regulator-ext-3p3v {
35724ba675SRob Herring		compatible = "regulator-fixed";
36724ba675SRob Herring		regulator-min-microvolt = <3300000>;
37724ba675SRob Herring		regulator-max-microvolt = <3300000>;
38724ba675SRob Herring		regulator-name = "ext_3p3v";
39724ba675SRob Herring		startup-delay-us = <0>;
40724ba675SRob Herring		gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>;
41724ba675SRob Herring		enable-active-high;
42724ba675SRob Herring		regulator-boot-on;
43724ba675SRob Herring	};
44724ba675SRob Herring
45724ba675SRob Herring	gpio-keys {
46724ba675SRob Herring		compatible = "gpio-keys";
47724ba675SRob Herring		key-volume-up {
48724ba675SRob Herring			label = "Volume Up";
49724ba675SRob Herring			gpios = <&pm8921_gpio 4 GPIO_ACTIVE_HIGH>;
50724ba675SRob Herring			linux,code = <KEY_VOLUMEUP>;
51724ba675SRob Herring		};
52724ba675SRob Herring		key-volume-down {
53724ba675SRob Herring			label = "Volume Down";
54724ba675SRob Herring			gpios = <&pm8921_gpio 38 GPIO_ACTIVE_HIGH>;
55724ba675SRob Herring			linux,code = <KEY_VOLUMEDOWN>;
56724ba675SRob Herring		};
57724ba675SRob Herring	};
58724ba675SRob Herring
59724ba675SRob Herring	soc {
60724ba675SRob Herring		sram@2a03f000 {
61724ba675SRob Herring			compatible = "qcom,apq8064-imem", "syscon", "simple-mfd";
62724ba675SRob Herring			reg = <0x2a03f000 0x1000>;
63724ba675SRob Herring
64724ba675SRob Herring			reboot-mode {
65724ba675SRob Herring				compatible = "syscon-reboot-mode";
66724ba675SRob Herring				offset = <0x65c>;
67724ba675SRob Herring
68724ba675SRob Herring				mode-normal = <0x77665501>;
69724ba675SRob Herring				mode-bootloader = <0x77665500>;
70724ba675SRob Herring				mode-recovery = <0x77665502>;
71724ba675SRob Herring			};
72724ba675SRob Herring		};
73724ba675SRob Herring	};
74724ba675SRob Herring};
75724ba675SRob Herring
76724ba675SRob Herring&dsi0 {
77724ba675SRob Herring	vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 to 4*/
78724ba675SRob Herring	vdd-supply = <&pm8921_l8>;
79724ba675SRob Herring	vddio-supply = <&pm8921_lvs7>;
80724ba675SRob Herring	avdd-supply = <&pm8921_l11>;
81724ba675SRob Herring	status = "okay";
82724ba675SRob Herring
83724ba675SRob Herring	panel@0 {
84724ba675SRob Herring		reg = <0>;
85724ba675SRob Herring		compatible = "jdi,lt070me05000";
86724ba675SRob Herring
87724ba675SRob Herring		vddp-supply = <&pm8921_l17>;
88724ba675SRob Herring		iovcc-supply = <&pm8921_lvs7>;
89724ba675SRob Herring
90724ba675SRob Herring		enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
91724ba675SRob Herring		reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
92724ba675SRob Herring		dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
93724ba675SRob Herring
94724ba675SRob Herring		port {
95724ba675SRob Herring			panel_in: endpoint {
96724ba675SRob Herring				remote-endpoint = <&dsi0_out>;
97724ba675SRob Herring			};
98724ba675SRob Herring		};
99724ba675SRob Herring	};
100724ba675SRob Herring};
101724ba675SRob Herring
102724ba675SRob Herring&dsi0_in {
103724ba675SRob Herring	remote-endpoint = <&mdp_dsi1_out>;
104724ba675SRob Herring};
105724ba675SRob Herring
106724ba675SRob Herring&dsi0_out {
107724ba675SRob Herring	remote-endpoint = <&panel_in>;
108724ba675SRob Herring	data-lanes = <0 1 2 3>;
109724ba675SRob Herring};
110724ba675SRob Herring
111724ba675SRob Herring&dsi0_phy {
112724ba675SRob Herring	vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/
113724ba675SRob Herring	status = "okay";
114724ba675SRob Herring};
115724ba675SRob Herring
116724ba675SRob Herring&gsbi1 {
117724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C>;
118724ba675SRob Herring	status = "okay";
119724ba675SRob Herring};
120724ba675SRob Herring
121724ba675SRob Herring&gsbi1_i2c {
122724ba675SRob Herring	status = "okay";
123724ba675SRob Herring	clock-frequency = <200000>;
124724ba675SRob Herring	pinctrl-0 = <&i2c1_pins>;
125724ba675SRob Herring	pinctrl-names = "default";
126724ba675SRob Herring
127724ba675SRob Herring	eeprom@52 {
128724ba675SRob Herring		compatible = "atmel,24c128";
129724ba675SRob Herring		reg = <0x52>;
130724ba675SRob Herring		pagesize = <32>;
131724ba675SRob Herring	};
132724ba675SRob Herring
133724ba675SRob Herring	bq27541@55 {
134724ba675SRob Herring		compatible = "ti,bq27541";
135724ba675SRob Herring		reg = <0x55>;
136724ba675SRob Herring	};
137724ba675SRob Herring
138724ba675SRob Herring};
139724ba675SRob Herring
140724ba675SRob Herring&gsbi3 {
141724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C>;
142724ba675SRob Herring	status = "okay";
143724ba675SRob Herring};
144724ba675SRob Herring
145724ba675SRob Herring&gsbi3_i2c {
146724ba675SRob Herring	clock-frequency = <200000>;
147724ba675SRob Herring	pinctrl-0 = <&i2c3_pins>;
148724ba675SRob Herring	pinctrl-names = "default";
149724ba675SRob Herring	status = "okay";
150724ba675SRob Herring
151724ba675SRob Herring	trackpad@10 {
152724ba675SRob Herring		compatible = "elan,ekth3500";
153724ba675SRob Herring		reg = <0x10>;
154724ba675SRob Herring		interrupt-parent = <&tlmm_pinmux>;
155724ba675SRob Herring		interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
156724ba675SRob Herring	};
157724ba675SRob Herring};
158724ba675SRob Herring
159724ba675SRob Herring&gsbi6 {
160724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C_UART>;
161724ba675SRob Herring	status = "okay";
162724ba675SRob Herring};
163724ba675SRob Herring
164724ba675SRob Herring&gsbi6_serial {
165724ba675SRob Herring	pinctrl-names = "default";
166724ba675SRob Herring	pinctrl-0 = <&gsbi6_uart_4pins>;
167724ba675SRob Herring	status = "okay";
168724ba675SRob Herring};
169724ba675SRob Herring
170724ba675SRob Herring&gsbi7 {
171724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C_UART>;
172724ba675SRob Herring	status = "okay";
173724ba675SRob Herring};
174724ba675SRob Herring
175724ba675SRob Herring&gsbi7_serial {
176724ba675SRob Herring	status = "okay";
177724ba675SRob Herring};
178724ba675SRob Herring
179724ba675SRob Herring&mdp {
180724ba675SRob Herring	status = "okay";
181724ba675SRob Herring};
182724ba675SRob Herring
183724ba675SRob Herring&mdp_dsi1_out {
184724ba675SRob Herring	remote-endpoint = <&dsi0_in>;
185724ba675SRob Herring};
186724ba675SRob Herring
187*7b22923cSDmitry Baryshkov&pm8821 {
188*7b22923cSDmitry Baryshkov	interrupts-extended = <&tlmm_pinmux 76 IRQ_TYPE_LEVEL_LOW>;
189*7b22923cSDmitry Baryshkov};
190*7b22923cSDmitry Baryshkov
191*7b22923cSDmitry Baryshkov&pm8921 {
192*7b22923cSDmitry Baryshkov	interrupts-extended = <&tlmm_pinmux 74 IRQ_TYPE_LEVEL_LOW>;
193*7b22923cSDmitry Baryshkov};
194*7b22923cSDmitry Baryshkov
195724ba675SRob Herring&rpm {
196724ba675SRob Herring	regulators {
197724ba675SRob Herring		vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
198724ba675SRob Herring		vin_lvs1_3_6-supply = <&pm8921_s4>;
199724ba675SRob Herring		vin_lvs4_5_7-supply = <&pm8921_s4>;
200724ba675SRob Herring
201724ba675SRob Herring
202724ba675SRob Herring		vdd_l24-supply = <&pm8921_s1>;
203724ba675SRob Herring		vdd_l25-supply = <&pm8921_s1>;
204724ba675SRob Herring		vin_lvs2-supply = <&pm8921_s1>;
205724ba675SRob Herring
206724ba675SRob Herring		vdd_l26-supply = <&pm8921_s7>;
207724ba675SRob Herring		vdd_l27-supply = <&pm8921_s7>;
208724ba675SRob Herring		vdd_l28-supply = <&pm8921_s7>;
209724ba675SRob Herring
210724ba675SRob Herring		vdd_ncp-supply = <&pm8921_l6>;
211724ba675SRob Herring
212724ba675SRob Herring		/* Buck SMPS */
213724ba675SRob Herring		s1 {
214724ba675SRob Herring			regulator-always-on;
215724ba675SRob Herring			regulator-min-microvolt = <1225000>;
216724ba675SRob Herring			regulator-max-microvolt = <1225000>;
217724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
218724ba675SRob Herring			bias-pull-down;
219724ba675SRob Herring		};
220724ba675SRob Herring
221724ba675SRob Herring		/* msm otg HSUSB_VDDCX */
222724ba675SRob Herring		s3 {
223724ba675SRob Herring			regulator-min-microvolt = <500000>;
224724ba675SRob Herring			regulator-max-microvolt = <1150000>;
225724ba675SRob Herring			qcom,switch-mode-frequency = <4800000>;
226724ba675SRob Herring		};
227724ba675SRob Herring
228724ba675SRob Herring		/*
229724ba675SRob Herring		 * msm_sdcc.1-sdc-vdd_io
230724ba675SRob Herring		 * tabla2x-slim-CDC_VDDA_RX
231724ba675SRob Herring		 * tabla2x-slim-CDC_VDDA_TX
232724ba675SRob Herring		 * tabla2x-slim-CDC_VDD_CP
233724ba675SRob Herring		 * tabla2x-slim-VDDIO_CDC
234724ba675SRob Herring		 */
235724ba675SRob Herring		s4 {
236724ba675SRob Herring			regulator-min-microvolt = <1800000>;
237724ba675SRob Herring			regulator-max-microvolt = <1800000>;
238724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
239724ba675SRob Herring			regulator-always-on;
240724ba675SRob Herring		};
241724ba675SRob Herring
242724ba675SRob Herring		s7 {
243724ba675SRob Herring			regulator-min-microvolt = <1300000>;
244724ba675SRob Herring			regulator-max-microvolt = <1300000>;
245724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
246724ba675SRob Herring		};
247724ba675SRob Herring
248724ba675SRob Herring		/* mipi_dsi.1-dsi1_pll_vdda */
249724ba675SRob Herring		l2 {
250724ba675SRob Herring			regulator-min-microvolt = <1200000>;
251724ba675SRob Herring			regulator-max-microvolt = <1200000>;
252724ba675SRob Herring			regulator-always-on;
253724ba675SRob Herring		};
254724ba675SRob Herring
255724ba675SRob Herring		/* msm_otg-HSUSB_3p3 */
256724ba675SRob Herring		l3 {
257724ba675SRob Herring			regulator-min-microvolt = <3075000>;
258724ba675SRob Herring			regulator-max-microvolt = <3075000>;
259724ba675SRob Herring			bias-pull-down;
260724ba675SRob Herring		};
261724ba675SRob Herring
262724ba675SRob Herring		/* msm_otg-HSUSB_1p8 */
263724ba675SRob Herring		l4 {
264724ba675SRob Herring			regulator-min-microvolt = <1800000>;
265724ba675SRob Herring			regulator-max-microvolt = <1800000>;
266724ba675SRob Herring			bias-pull-down;
267724ba675SRob Herring		};
268724ba675SRob Herring
269724ba675SRob Herring		/* msm_sdcc.1-sdc_vdd */
270724ba675SRob Herring		l5 {
271724ba675SRob Herring			regulator-min-microvolt = <2950000>;
272724ba675SRob Herring			regulator-max-microvolt = <2950000>;
273724ba675SRob Herring			regulator-always-on;
274724ba675SRob Herring			bias-pull-down;
275724ba675SRob Herring		};
276724ba675SRob Herring
277724ba675SRob Herring		l6 {
278724ba675SRob Herring			regulator-min-microvolt = <2950000>;
279724ba675SRob Herring			regulator-max-microvolt = <2950000>;
280724ba675SRob Herring		};
281724ba675SRob Herring
282724ba675SRob Herring		/* mipi_dsi.1-dsi1_avdd */
283724ba675SRob Herring		l11 {
284724ba675SRob Herring			regulator-min-microvolt = <3000000>;
285724ba675SRob Herring			regulator-max-microvolt = <3000000>;
286724ba675SRob Herring			bias-pull-down;
287724ba675SRob Herring			regulator-always-on;
288724ba675SRob Herring		};
289724ba675SRob Herring
290724ba675SRob Herring		/* pwm_power for backlight */
291724ba675SRob Herring		l17 {
292724ba675SRob Herring			regulator-min-microvolt = <3000000>;
293724ba675SRob Herring			regulator-max-microvolt = <3000000>;
294724ba675SRob Herring			regulator-always-on;
295724ba675SRob Herring		};
296724ba675SRob Herring
297724ba675SRob Herring		/* camera, qdsp6 */
298724ba675SRob Herring		l23 {
299724ba675SRob Herring			regulator-min-microvolt = <1800000>;
300724ba675SRob Herring			regulator-max-microvolt = <1800000>;
301724ba675SRob Herring			bias-pull-down;
302724ba675SRob Herring		};
303724ba675SRob Herring
304724ba675SRob Herring		/*
305724ba675SRob Herring		 * tabla2x-slim-CDC_VDDA_A_1P2V
306724ba675SRob Herring		 * tabla2x-slim-VDDD_CDC_D
307724ba675SRob Herring		 */
308724ba675SRob Herring		l25 {
309724ba675SRob Herring			regulator-min-microvolt = <1250000>;
310724ba675SRob Herring			regulator-max-microvolt = <1250000>;
311724ba675SRob Herring			bias-pull-down;
312724ba675SRob Herring		};
313724ba675SRob Herring
314724ba675SRob Herring		lvs1 {
315724ba675SRob Herring			bias-pull-down;
316724ba675SRob Herring		};
317724ba675SRob Herring
318724ba675SRob Herring		lvs4 {
319724ba675SRob Herring			bias-pull-down;
320724ba675SRob Herring		};
321724ba675SRob Herring
322724ba675SRob Herring		lvs5 {
323724ba675SRob Herring			bias-pull-down;
324724ba675SRob Herring		};
325724ba675SRob Herring
326724ba675SRob Herring		lvs6 {
327724ba675SRob Herring			bias-pull-down;
328724ba675SRob Herring		};
329724ba675SRob Herring		/*
330724ba675SRob Herring		 * mipi_dsi.1-dsi1_vddio
331724ba675SRob Herring		 * pil_riva-pll_vdd
332724ba675SRob Herring		 */
333724ba675SRob Herring		lvs7 {
334724ba675SRob Herring			bias-pull-down;
335724ba675SRob Herring		};
336724ba675SRob Herring	};
337724ba675SRob Herring};
338724ba675SRob Herring
3390802de33SDmitry Baryshkov/* eMMC */
3400802de33SDmitry Baryshkov&sdcc1 {
3410802de33SDmitry Baryshkov	vmmc-supply = <&pm8921_l5>;
3420802de33SDmitry Baryshkov	vqmmc-supply = <&pm8921_s4>;
3430802de33SDmitry Baryshkov	status = "okay";
3440802de33SDmitry Baryshkov};
3450802de33SDmitry Baryshkov
346724ba675SRob Herring&usb_hs1_phy {
347724ba675SRob Herring	v3p3-supply = <&pm8921_l3>;
348724ba675SRob Herring	v1p8-supply = <&pm8921_l4>;
349724ba675SRob Herring};
350724ba675SRob Herring
351724ba675SRob Herring/* OTG */
352724ba675SRob Herring&usb1 {
353724ba675SRob Herring	dr_mode = "otg";
354724ba675SRob Herring	status = "okay";
355724ba675SRob Herring};
356