tegra114-tn7.dts revision 284090
1/dts-v1/;
2
3#include <dt-bindings/input/input.h>
4#include "tegra114.dtsi"
5
6/ {
7	model = "Tegra Note 7";
8	compatible = "nvidia,tn7", "nvidia,tegra114";
9
10	chosen {
11		/* TN7's bootloader's arguments need to be overridden */
12		bootargs = "console=ttyS0,115200n8 console=tty1 gpt fbcon=rotate:2";
13		/* TN7's bootloader will place initrd at this address */
14		linux,initrd-start = <0x82000000>;
15		linux,initrd-end = <0x82800000>;
16	};
17
18	aliases {
19		serial0 = &uartd;
20	};
21
22	firmware {
23		trusted-foundations {
24			compatible = "tlm,trusted-foundations";
25			tlm,version-major = <2>;
26			tlm,version-minor = <8>;
27		};
28	};
29
30	memory {
31		/* memory >= 0x37e00000 is reserved for firmware usage */
32		reg = <0x80000000 0x37e00000>;
33	};
34
35	host1x@50000000 {
36		dsi@54300000 {
37			status = "okay";
38
39			vdd-supply = <&vdd_1v2_ap>;
40
41			panel@0 {
42				compatible = "lg,ld070wx3-sl01";
43				reg = <0>;
44
45				power-supply = <&vdd_lcd>;
46				backlight = <&backlight>;
47			};
48		};
49	};
50
51	serial@70006300 {
52		status = "okay";
53	};
54
55	pwm@7000a000 {
56		status = "okay";
57	};
58
59	i2c@7000d000 {
60		status = "okay";
61		clock-frequency = <400000>;
62
63		palmas: pmic@58 {
64			compatible = "ti,palmas";
65			reg = <0x58>;
66			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
67
68			#interrupt-cells = <2>;
69			interrupt-controller;
70
71			ti,system-power-controller;
72
73			palmas_gpio: gpio {
74				compatible = "ti,palmas-gpio";
75				gpio-controller;
76				#gpio-cells = <2>;
77			};
78
79			pmic {
80				compatible = "ti,tps65913-pmic", "ti,palmas-pmic";
81
82				ldoln-in-supply = <&vdd_smps10_out2>;
83
84				regulators {
85					smps123 {
86						regulator-name = "vd-cpu";
87						regulator-min-microvolt = <1000000>;
88						regulator-max-microvolt = <1000000>;
89						regulator-always-on;
90						regulator-boot-on;
91					};
92
93					smps45 {
94						regulator-name = "vd-soc";
95						regulator-min-microvolt = <1100000>;
96						regulator-max-microvolt = <1100000>;
97						regulator-always-on;
98						regulator-boot-on;
99					};
100
101					smps6 {
102						regulator-name = "va-lcd-hv";
103						regulator-min-microvolt = <3000000>;
104						regulator-max-microvolt = <3000000>;
105						regulator-always-on;
106						regulator-boot-on;
107					};
108
109					smps7 {
110						regulator-name = "vd-ddr";
111						regulator-min-microvolt = <1350000>;
112						regulator-max-microvolt = <1350000>;
113						regulator-always-on;
114						regulator-boot-on;
115					};
116
117					vdd_1v8: smps8 {
118						regulator-name = "vs-pmu-1v8";
119						regulator-min-microvolt = <1800000>;
120						regulator-max-microvolt = <1800000>;
121						regulator-always-on;
122						regulator-boot-on;
123					};
124
125					vdd_2v9_sys: smps9 {
126						regulator-name = "vs-sys-2v9";
127						regulator-min-microvolt = <2900000>;
128						regulator-max-microvolt = <2900000>;
129						regulator-always-on;
130						regulator-boot-on;
131					};
132
133					vdd_smps10_out1: smps10_out1 {
134						regulator-name = "vd-smps10-out1";
135						regulator-min-microvolt = <5000000>;
136						regulator-max-microvolt = <5000000>;
137						regulator-always-on;
138						regulator-boot-on;
139					};
140
141					vdd_smps10_out2: smps10_out2 {
142						regulator-name = "vd-smps10-out2";
143						regulator-min-microvolt = <5000000>;
144						regulator-max-microvolt = <5000000>;
145						regulator-always-on;
146						regulator-boot-on;
147					};
148
149					ldo1 {
150						regulator-name = "va-pllx";
151						regulator-min-microvolt = <1050000>;
152						regulator-max-microvolt = <1050000>;
153						regulator-always-on;
154						regulator-boot-on;
155					};
156
157					vdd_1v2_ap: ldo2 {
158						regulator-name = "va-ap-1v2";
159						regulator-min-microvolt = <1200000>;
160						regulator-max-microvolt = <1200000>;
161						regulator-always-on;
162						regulator-boot-on;
163					};
164
165					ldo3 {
166						regulator-name = "vd-fuse";
167						regulator-min-microvolt = <1800000>;
168						regulator-max-microvolt = <1800000>;
169						regulator-always-on;
170						regulator-boot-on;
171					};
172
173					ldo4 {
174						regulator-name = "vd-ts-hv";
175						regulator-min-microvolt = <3200000>;
176						regulator-max-microvolt = <3200000>;
177						regulator-always-on;
178						regulator-boot-on;
179					};
180
181					ldo5 {
182						regulator-name = "va-cam2-hv";
183						regulator-min-microvolt = <2700000>;
184						regulator-max-microvolt = <2700000>;
185					};
186
187					ldo6 {
188						regulator-name = "va-sns-hv";
189						regulator-min-microvolt = <2850000>;
190						regulator-max-microvolt = <2850000>;
191					};
192
193					ldo7 {
194						regulator-name = "va-cam1-hv";
195						regulator-min-microvolt = <2700000>;
196						regulator-max-microvolt = <2700000>;
197					};
198
199					ldo8 {
200						regulator-name = "va-ap-rtc";
201						regulator-min-microvolt = <1100000>;
202						regulator-max-microvolt = <1100000>;
203						ti,enable-ldo8-tracking;
204						regulator-always-on;
205						regulator-boot-on;
206					};
207
208					ldo9 {
209						regulator-name = "vi-sdcard";
210						regulator-min-microvolt = <2900000>;
211						regulator-max-microvolt = <2900000>;
212					};
213
214					ldousb {
215						regulator-name = "avdd-usb";
216						regulator-min-microvolt = <3300000>;
217						regulator-max-microvolt = <3300000>;
218						regulator-always-on;
219						regulator-boot-on;
220					};
221
222					ldoln {
223						regulator-name = "va-hdmi";
224						regulator-min-microvolt = <3300000>;
225						regulator-max-microvolt = <3300000>;
226					};
227				};
228			};
229
230			rtc {
231				compatible = "ti,palmas-rtc";
232				interrupt-parent = <&palmas>;
233				interrupts = <8 0>;
234			};
235
236		};
237	};
238
239	pmc@7000e400 {
240		nvidia,invert-interrupt;
241	};
242
243	/* eMMC */
244	sdhci@78000600 {
245		status = "okay";
246		bus-width = <8>;
247		non-removable;
248	};
249
250	usb@7d000000 {
251		status = "okay";
252	};
253
254	usb-phy@7d000000 {
255		status = "okay";
256		nvidia,xcvr-setup = <7>;
257		nvidia,xcvr-lsfslew = <2>;
258		nvidia,xcvr-lsrslew = <2>;
259		interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
260		/* Should be changed to "otg" once we have vbus_supply */
261		/* As of now, USB devices need to be powered externally */
262		dr_mode = "host";
263	};
264
265	backlight: backlight {
266		compatible = "pwm-backlight";
267		pwms = <&pwm 1 40000>;
268
269		brightness-levels = <0 4 8 16 32 64 128 255>;
270		default-brightness-level = <6>;
271
272		power-supply = <&lcd_bl_en>;
273	};
274
275	clocks {
276		compatible = "simple-bus";
277		#address-cells = <1>;
278		#size-cells = <0>;
279
280		clk32k_in: clock {
281			compatible = "fixed-clock";
282			reg = <0>;
283			#clock-cells = <0>;
284			clock-frequency = <32768>;
285		};
286	};
287
288	gpio-keys {
289		compatible = "gpio-keys";
290
291		power {
292			label = "Power";
293			gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
294			linux,code = <KEY_POWER>;
295			gpio-key,wakeup;
296		};
297
298		volume_down {
299			label = "Volume Down";
300			gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>;
301			linux,code = <KEY_VOLUMEDOWN>;
302		};
303
304		volume_up {
305			label = "Volume Up";
306			gpios = <&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_LOW>;
307			linux,code = <KEY_VOLUMEUP>;
308		};
309	};
310
311	regulators {
312		compatible = "simple-bus";
313		#address-cells = <1>;
314		#size-cells = <0>;
315
316		/* FIXME: output of BQ24192 */
317		vs_sys: regulator@0 {
318			compatible = "regulator-fixed";
319			reg = <0>;
320			regulator-name = "VS_SYS";
321			regulator-min-microvolt = <4200000>;
322			regulator-max-microvolt = <4200000>;
323			regulator-always-on;
324			regulator-boot-on;
325		};
326
327		lcd_bl_en: regulator@1 {
328			compatible = "regulator-fixed";
329			reg = <1>;
330			regulator-name = "VDD_LCD_BL";
331			regulator-min-microvolt = <16500000>;
332			regulator-max-microvolt = <16500000>;
333			gpio = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
334			enable-active-high;
335			vin-supply = <&vs_sys>;
336			regulator-boot-on;
337		};
338
339		vdd_lcd: regulator@2 {
340			compatible = "regulator-fixed";
341			reg = <2>;
342			regulator-name = "VD_LCD_1V8";
343			regulator-min-microvolt = <1800000>;
344			regulator-max-microvolt = <1800000>;
345			gpio = <&palmas_gpio 4 GPIO_ACTIVE_HIGH>;
346			enable-active-high;
347			vin-supply = <&vdd_1v8>;
348			regulator-boot-on;
349		};
350	};
351};
352