Linux Audio

Check our new training course

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