Skip to content

Commit 943283e

Browse files
committed
Merge tag 'tegra-for-4.8-arm64-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/late
Merge "arm64: tegra: Device tree changes for v4.8-rc1" from Thierry Reding: A slew of updates for Tegra210 support: PMIC and regulator additions, which in turn allow a bunch of features to be enabled. Some assemblies of the Jetson TX1 come with a DSI panel that is now supported. For all other assemblies, this set of changes enables the HDMI output. Jetson TX1 can now also make use of the XUSB controller. PMIC and regulator support is also added for Smaug, which will allow a number of interesting feature additions in future releases. * tag 'tegra-for-4.8-arm64-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: arm64: tegra: Enable HDMI on Jetson TX1 arm64: tegra: Add sor1_src clock arm64: tegra: Add XUSB powergates on Tegra210 arm64: tegra: Add DPAUX pinctrl bindings arm64: tegra: Add ACONNECT bus node for Tegra210 arm64: tegra: Add audio powergate node for Tegra210 arm64: tegra: Add regulators for Tegra210 Smaug arm64: tegra: Correct Tegra210 XUSB mailbox interrupt arm64: tegra: Enable XUSB controller on Jetson TX1 arm64: tegra: Enable debug serial on Jetson TX1 arm64: tegra: Add Tegra210 XUSB controller arm64: tegra: Add Tegra210 XUSB pad controller arm64: tegra: Add DSI panel on Jetson TX1 arm64: tegra: p2597: Add SDMMC power supplies arm64: tegra: Add PMIC support on Jetson TX1
2 parents 73dd5c5 + 3499359 commit 943283e

File tree

5 files changed

+1218
-1
lines changed

5 files changed

+1218
-1
lines changed

arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1+
#include <dt-bindings/mfd/max77620.h>
2+
13
#include "tegra210.dtsi"
24

35
/ {
46
model = "NVIDIA Jetson TX1";
57
compatible = "nvidia,p2180", "nvidia,tegra210";
68

79
aliases {
10+
rtc0 = "/i2c@7000d000/pmic@3c";
811
rtc1 = "/rtc@7000e000";
912
serial0 = &uarta;
1013
};
1114

15+
chosen {
16+
stdout-path = "serial0:115200n8";
17+
};
18+
1219
memory {
1320
device_type = "memory";
1421
reg = <0x0 0x80000000 0x1 0x0>;
@@ -19,6 +26,248 @@
1926
status = "okay";
2027
};
2128

29+
i2c@7000d000 {
30+
status = "okay";
31+
clock-frequency = <400000>;
32+
33+
pmic: pmic@3c {
34+
compatible = "maxim,max77620";
35+
reg = <0x3c>;
36+
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
37+
38+
#interrupt-cells = <2>;
39+
interrupt-controller;
40+
41+
#gpio-cells = <2>;
42+
gpio-controller;
43+
44+
pinctrl-names = "default";
45+
pinctrl-0 = <&max77620_default>;
46+
47+
max77620_default: pinmux {
48+
gpio0 {
49+
pins = "gpio0";
50+
function = "gpio";
51+
};
52+
53+
gpio1 {
54+
pins = "gpio1";
55+
function = "fps-out";
56+
drive-push-pull = <1>;
57+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
58+
maxim,active-fps-power-up-slot = <7>;
59+
maxim,active-fps-power-down-slot = <0>;
60+
};
61+
62+
gpio2_3 {
63+
pins = "gpio2", "gpio3";
64+
function = "fps-out";
65+
drive-open-drain = <1>;
66+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
67+
};
68+
69+
gpio4 {
70+
pins = "gpio4";
71+
function = "32k-out1";
72+
};
73+
74+
gpio5_6_7 {
75+
pins = "gpio5", "gpio6", "gpio7";
76+
function = "gpio";
77+
drive-push-pull = <1>;
78+
};
79+
};
80+
81+
fps {
82+
fps0 {
83+
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
84+
maxim,suspend-fps-time-period-us = <1280>;
85+
};
86+
87+
fps1 {
88+
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
89+
maxim,suspend-fps-time-period-us = <1280>;
90+
};
91+
92+
fps2 {
93+
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
94+
};
95+
};
96+
97+
regulators {
98+
in-ldo0-1-supply = <&vdd_pre>;
99+
in-ldo7-8-supply = <&vdd_pre>;
100+
in-sd3-supply = <&vdd_5v0_sys>;
101+
102+
vdd_soc: sd0 {
103+
regulator-name = "VDD_SOC";
104+
regulator-min-microvolt = <600000>;
105+
regulator-max-microvolt = <1400000>;
106+
regulator-always-on;
107+
regulator-boot-on;
108+
109+
regulator-enable-ramp-delay = <146>;
110+
regulator-ramp-delay = <27500>;
111+
112+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
113+
};
114+
115+
vdd_ddr: sd1 {
116+
regulator-name = "VDD_DDR_1V1_PMIC";
117+
regulator-always-on;
118+
regulator-boot-on;
119+
120+
regulator-enable-ramp-delay = <130>;
121+
regulator-ramp-delay = <27500>;
122+
123+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
124+
};
125+
126+
vdd_pre: sd2 {
127+
regulator-name = "VDD_PRE_REG_1V35";
128+
regulator-min-microvolt = <1350000>;
129+
regulator-max-microvolt = <1350000>;
130+
131+
regulator-enable-ramp-delay = <176>;
132+
regulator-ramp-delay = <27500>;
133+
134+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
135+
};
136+
137+
vdd_1v8: sd3 {
138+
regulator-name = "VDD_1V8";
139+
regulator-min-microvolt = <1800000>;
140+
regulator-max-microvolt = <1800000>;
141+
regulator-always-on;
142+
regulator-boot-on;
143+
144+
regulator-enable-ramp-delay = <242>;
145+
regulator-ramp-delay = <27500>;
146+
147+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
148+
};
149+
150+
vdd_sys_1v2: ldo0 {
151+
regulator-name = "AVDD_SYS_1V2";
152+
regulator-min-microvolt = <1200000>;
153+
regulator-max-microvolt = <1200000>;
154+
regulator-always-on;
155+
regulator-boot-on;
156+
157+
regulator-enable-ramp-delay = <26>;
158+
regulator-ramp-delay = <100000>;
159+
160+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
161+
};
162+
163+
vdd_pex_1v05: ldo1 {
164+
regulator-name = "VDD_PEX_1V05";
165+
regulator-min-microvolt = <1050000>;
166+
regulator-max-microvolt = <1050000>;
167+
168+
regulator-enable-ramp-delay = <22>;
169+
regulator-ramp-delay = <100000>;
170+
171+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
172+
};
173+
174+
vddio_sdmmc: ldo2 {
175+
regulator-name = "VDDIO_SDMMC";
176+
/*
177+
* Technically this supply should have
178+
* a supported range from 1.8 - 3.3 V.
179+
* However, that would cause the SDHCI
180+
* driver to request 2.7 V upon access
181+
* and that in turn will cause traffic
182+
* to be broken. Leave it at 3.3 V for
183+
* now.
184+
*/
185+
regulator-min-microvolt = <3300000>;
186+
regulator-max-microvolt = <3300000>;
187+
regulator-always-on;
188+
regulator-boot-on;
189+
190+
regulator-enable-ramp-delay = <62>;
191+
regulator-ramp-delay = <100000>;
192+
193+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
194+
};
195+
196+
vdd_cam_hv: ldo3 {
197+
regulator-name = "VDD_CAM_HV";
198+
regulator-min-microvolt = <2800000>;
199+
regulator-max-microvolt = <2800000>;
200+
201+
regulator-enable-ramp-delay = <50>;
202+
regulator-ramp-delay = <100000>;
203+
204+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
205+
};
206+
207+
vdd_rtc: ldo4 {
208+
regulator-name = "VDD_RTC";
209+
regulator-min-microvolt = <850000>;
210+
regulator-max-microvolt = <850000>;
211+
regulator-always-on;
212+
regulator-boot-on;
213+
214+
regulator-enable-ramp-delay = <22>;
215+
regulator-ramp-delay = <100000>;
216+
217+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
218+
};
219+
220+
vdd_ts_hv: ldo5 {
221+
regulator-name = "VDD_TS_HV";
222+
regulator-min-microvolt = <3300000>;
223+
regulator-max-microvolt = <3300000>;
224+
225+
regulator-enable-ramp-delay = <62>;
226+
regulator-ramp-delay = <100000>;
227+
228+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
229+
};
230+
231+
vdd_ts: ldo6 {
232+
regulator-name = "VDD_TS_1V8";
233+
regulator-min-microvolt = <1800000>;
234+
regulator-max-microvolt = <1800000>;
235+
236+
regulator-enable-ramp-delay = <36>;
237+
regulator-ramp-delay = <100000>;
238+
239+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
240+
maxim,active-fps-power-up-slot = <7>;
241+
maxim,active-fps-power-down-slot = <0>;
242+
};
243+
244+
avdd_1v05_pll: ldo7 {
245+
regulator-name = "AVDD_1V05_PLL";
246+
regulator-min-microvolt = <1050000>;
247+
regulator-max-microvolt = <1050000>;
248+
regulator-always-on;
249+
regulator-boot-on;
250+
251+
regulator-enable-ramp-delay = <24>;
252+
regulator-ramp-delay = <100000>;
253+
254+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
255+
};
256+
257+
avdd_1v05: ldo8 {
258+
regulator-name = "AVDD_SATA_HDMI_DP_1V05";
259+
regulator-min-microvolt = <1050000>;
260+
regulator-max-microvolt = <1050000>;
261+
262+
regulator-enable-ramp-delay = <22>;
263+
regulator-ramp-delay = <100000>;
264+
265+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
266+
};
267+
};
268+
};
269+
};
270+
22271
pmc@7000e400 {
23272
nvidia,invert-interrupt;
24273
};

arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,49 @@
66
/ {
77
model = "NVIDIA Jetson TX1 Developer Kit";
88
compatible = "nvidia,p2371-2180", "nvidia,tegra210";
9+
10+
host1x@50000000 {
11+
dsi@54300000 {
12+
status = "okay";
13+
14+
avdd-dsi-csi-supply = <&vdd_dsi_csi>;
15+
16+
panel@0 {
17+
compatible = "auo,b080uan01";
18+
reg = <0>;
19+
20+
enable-gpios = <&gpio TEGRA_GPIO(V, 2)
21+
GPIO_ACTIVE_HIGH>;
22+
power-supply = <&vdd_5v0_io>;
23+
backlight = <&backlight>;
24+
};
25+
};
26+
};
27+
28+
i2c@7000c400 {
29+
backlight: backlight@2c {
30+
compatible = "ti,lp8557";
31+
reg = <0x2c>;
32+
33+
dev-ctrl = /bits/ 8 <0x80>;
34+
init-brt = /bits/ 8 <0xff>;
35+
36+
pwm-period = <29334>;
37+
38+
pwms = <&pwm 0 29334>;
39+
pwm-names = "lp8557";
40+
41+
/* 3 LED string */
42+
rom_14h {
43+
rom-addr = /bits/ 8 <0x14>;
44+
rom-val = /bits/ 8 <0x87>;
45+
};
46+
47+
/* boost frequency 1 MHz */
48+
rom_13h {
49+
rom-addr = /bits/ 8 <0x13>;
50+
rom-val = /bits/ 8 <0x01>;
51+
};
52+
};
53+
};
954
};

0 commit comments

Comments
 (0)