Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / tegra114-tn7.dts
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 };