xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-apq8064-asus-nexus7-flo.dts (revision 0802de336a43e0de423dc35289613dc2c6eba12b)
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
187724ba675SRob Herring&rpm {
188724ba675SRob Herring	regulators {
189724ba675SRob Herring		vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
190724ba675SRob Herring		vin_lvs1_3_6-supply = <&pm8921_s4>;
191724ba675SRob Herring		vin_lvs4_5_7-supply = <&pm8921_s4>;
192724ba675SRob Herring
193724ba675SRob Herring
194724ba675SRob Herring		vdd_l24-supply = <&pm8921_s1>;
195724ba675SRob Herring		vdd_l25-supply = <&pm8921_s1>;
196724ba675SRob Herring		vin_lvs2-supply = <&pm8921_s1>;
197724ba675SRob Herring
198724ba675SRob Herring		vdd_l26-supply = <&pm8921_s7>;
199724ba675SRob Herring		vdd_l27-supply = <&pm8921_s7>;
200724ba675SRob Herring		vdd_l28-supply = <&pm8921_s7>;
201724ba675SRob Herring
202724ba675SRob Herring		vdd_ncp-supply = <&pm8921_l6>;
203724ba675SRob Herring
204724ba675SRob Herring		/* Buck SMPS */
205724ba675SRob Herring		s1 {
206724ba675SRob Herring			regulator-always-on;
207724ba675SRob Herring			regulator-min-microvolt = <1225000>;
208724ba675SRob Herring			regulator-max-microvolt = <1225000>;
209724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
210724ba675SRob Herring			bias-pull-down;
211724ba675SRob Herring		};
212724ba675SRob Herring
213724ba675SRob Herring		/* msm otg HSUSB_VDDCX */
214724ba675SRob Herring		s3 {
215724ba675SRob Herring			regulator-min-microvolt = <500000>;
216724ba675SRob Herring			regulator-max-microvolt = <1150000>;
217724ba675SRob Herring			qcom,switch-mode-frequency = <4800000>;
218724ba675SRob Herring		};
219724ba675SRob Herring
220724ba675SRob Herring		/*
221724ba675SRob Herring		 * msm_sdcc.1-sdc-vdd_io
222724ba675SRob Herring		 * tabla2x-slim-CDC_VDDA_RX
223724ba675SRob Herring		 * tabla2x-slim-CDC_VDDA_TX
224724ba675SRob Herring		 * tabla2x-slim-CDC_VDD_CP
225724ba675SRob Herring		 * tabla2x-slim-VDDIO_CDC
226724ba675SRob Herring		 */
227724ba675SRob Herring		s4 {
228724ba675SRob Herring			regulator-min-microvolt = <1800000>;
229724ba675SRob Herring			regulator-max-microvolt = <1800000>;
230724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
231724ba675SRob Herring			regulator-always-on;
232724ba675SRob Herring		};
233724ba675SRob Herring
234724ba675SRob Herring		s7 {
235724ba675SRob Herring			regulator-min-microvolt = <1300000>;
236724ba675SRob Herring			regulator-max-microvolt = <1300000>;
237724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
238724ba675SRob Herring		};
239724ba675SRob Herring
240724ba675SRob Herring		/* mipi_dsi.1-dsi1_pll_vdda */
241724ba675SRob Herring		l2 {
242724ba675SRob Herring			regulator-min-microvolt = <1200000>;
243724ba675SRob Herring			regulator-max-microvolt = <1200000>;
244724ba675SRob Herring			regulator-always-on;
245724ba675SRob Herring		};
246724ba675SRob Herring
247724ba675SRob Herring		/* msm_otg-HSUSB_3p3 */
248724ba675SRob Herring		l3 {
249724ba675SRob Herring			regulator-min-microvolt = <3075000>;
250724ba675SRob Herring			regulator-max-microvolt = <3075000>;
251724ba675SRob Herring			bias-pull-down;
252724ba675SRob Herring		};
253724ba675SRob Herring
254724ba675SRob Herring		/* msm_otg-HSUSB_1p8 */
255724ba675SRob Herring		l4 {
256724ba675SRob Herring			regulator-min-microvolt = <1800000>;
257724ba675SRob Herring			regulator-max-microvolt = <1800000>;
258724ba675SRob Herring			bias-pull-down;
259724ba675SRob Herring		};
260724ba675SRob Herring
261724ba675SRob Herring		/* msm_sdcc.1-sdc_vdd */
262724ba675SRob Herring		l5 {
263724ba675SRob Herring			regulator-min-microvolt = <2950000>;
264724ba675SRob Herring			regulator-max-microvolt = <2950000>;
265724ba675SRob Herring			regulator-always-on;
266724ba675SRob Herring			bias-pull-down;
267724ba675SRob Herring		};
268724ba675SRob Herring
269724ba675SRob Herring		l6 {
270724ba675SRob Herring			regulator-min-microvolt = <2950000>;
271724ba675SRob Herring			regulator-max-microvolt = <2950000>;
272724ba675SRob Herring		};
273724ba675SRob Herring
274724ba675SRob Herring		/* mipi_dsi.1-dsi1_avdd */
275724ba675SRob Herring		l11 {
276724ba675SRob Herring			regulator-min-microvolt = <3000000>;
277724ba675SRob Herring			regulator-max-microvolt = <3000000>;
278724ba675SRob Herring			bias-pull-down;
279724ba675SRob Herring			regulator-always-on;
280724ba675SRob Herring		};
281724ba675SRob Herring
282724ba675SRob Herring		/* pwm_power for backlight */
283724ba675SRob Herring		l17 {
284724ba675SRob Herring			regulator-min-microvolt = <3000000>;
285724ba675SRob Herring			regulator-max-microvolt = <3000000>;
286724ba675SRob Herring			regulator-always-on;
287724ba675SRob Herring		};
288724ba675SRob Herring
289724ba675SRob Herring		/* camera, qdsp6 */
290724ba675SRob Herring		l23 {
291724ba675SRob Herring			regulator-min-microvolt = <1800000>;
292724ba675SRob Herring			regulator-max-microvolt = <1800000>;
293724ba675SRob Herring			bias-pull-down;
294724ba675SRob Herring		};
295724ba675SRob Herring
296724ba675SRob Herring		/*
297724ba675SRob Herring		 * tabla2x-slim-CDC_VDDA_A_1P2V
298724ba675SRob Herring		 * tabla2x-slim-VDDD_CDC_D
299724ba675SRob Herring		 */
300724ba675SRob Herring		l25 {
301724ba675SRob Herring			regulator-min-microvolt = <1250000>;
302724ba675SRob Herring			regulator-max-microvolt = <1250000>;
303724ba675SRob Herring			bias-pull-down;
304724ba675SRob Herring		};
305724ba675SRob Herring
306724ba675SRob Herring		lvs1 {
307724ba675SRob Herring			bias-pull-down;
308724ba675SRob Herring		};
309724ba675SRob Herring
310724ba675SRob Herring		lvs4 {
311724ba675SRob Herring			bias-pull-down;
312724ba675SRob Herring		};
313724ba675SRob Herring
314724ba675SRob Herring		lvs5 {
315724ba675SRob Herring			bias-pull-down;
316724ba675SRob Herring		};
317724ba675SRob Herring
318724ba675SRob Herring		lvs6 {
319724ba675SRob Herring			bias-pull-down;
320724ba675SRob Herring		};
321724ba675SRob Herring		/*
322724ba675SRob Herring		 * mipi_dsi.1-dsi1_vddio
323724ba675SRob Herring		 * pil_riva-pll_vdd
324724ba675SRob Herring		 */
325724ba675SRob Herring		lvs7 {
326724ba675SRob Herring			bias-pull-down;
327724ba675SRob Herring		};
328724ba675SRob Herring	};
329724ba675SRob Herring};
330724ba675SRob Herring
331*0802de33SDmitry Baryshkov/* eMMC */
332*0802de33SDmitry Baryshkov&sdcc1 {
333*0802de33SDmitry Baryshkov	vmmc-supply = <&pm8921_l5>;
334*0802de33SDmitry Baryshkov	vqmmc-supply = <&pm8921_s4>;
335*0802de33SDmitry Baryshkov	status = "okay";
336*0802de33SDmitry Baryshkov};
337*0802de33SDmitry Baryshkov
338724ba675SRob Herring&usb_hs1_phy {
339724ba675SRob Herring	v3p3-supply = <&pm8921_l3>;
340724ba675SRob Herring	v1p8-supply = <&pm8921_l4>;
341724ba675SRob Herring};
342724ba675SRob Herring
343724ba675SRob Herring/* OTG */
344724ba675SRob Herring&usb1 {
345724ba675SRob Herring	dr_mode = "otg";
346724ba675SRob Herring	status = "okay";
347724ba675SRob Herring};
348