xref: /freebsd-src/sys/contrib/device-tree/src/arm/nvidia/tegra30-asus-nexus7-grouper-ti-pmic.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot
3*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
4*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	i2c@7000d000 {
8*f126890aSEmmanuel Vadot		pmic: pmic@2d {
9*f126890aSEmmanuel Vadot			compatible = "ti,tps65911";
10*f126890aSEmmanuel Vadot			reg = <0x2d>;
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
13*f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
14*f126890aSEmmanuel Vadot			interrupt-controller;
15*f126890aSEmmanuel Vadot			wakeup-source;
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot			ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
18*f126890aSEmmanuel Vadot			ti,system-power-controller;
19*f126890aSEmmanuel Vadot			ti,sleep-keep-ck32k;
20*f126890aSEmmanuel Vadot			ti,sleep-enable;
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
23*f126890aSEmmanuel Vadot			gpio-controller;
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot			vcc1-supply = <&vdd_5v0_sys>;
26*f126890aSEmmanuel Vadot			vcc2-supply = <&vdd_5v0_sys>;
27*f126890aSEmmanuel Vadot			vcc3-supply = <&vdd_1v8>;
28*f126890aSEmmanuel Vadot			vcc4-supply = <&vdd_5v0_sys>;
29*f126890aSEmmanuel Vadot			vcc5-supply = <&vdd_5v0_sys>;
30*f126890aSEmmanuel Vadot			vcc6-supply = <&vdd2_reg>;
31*f126890aSEmmanuel Vadot			vcc7-supply = <&vdd_5v0_sys>;
32*f126890aSEmmanuel Vadot			vccio-supply = <&vdd_5v0_sys>;
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot			regulators {
35*f126890aSEmmanuel Vadot				vdd1 {
36*f126890aSEmmanuel Vadot					regulator-name = "vddio_ddr_1v2";
37*f126890aSEmmanuel Vadot					regulator-min-microvolt = <600000>;
38*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1500000>;
39*f126890aSEmmanuel Vadot					regulator-always-on;
40*f126890aSEmmanuel Vadot					regulator-boot-on;
41*f126890aSEmmanuel Vadot					ti,regulator-ext-sleep-control = <8>;
42*f126890aSEmmanuel Vadot				};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot				vdd2_reg: vdd2 {
45*f126890aSEmmanuel Vadot					regulator-name = "vdd2_1v2";
46*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1200000>;
47*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1200000>;
48*f126890aSEmmanuel Vadot					regulator-always-on;
49*f126890aSEmmanuel Vadot					regulator-boot-on;
50*f126890aSEmmanuel Vadot				};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot				vdd_cpu: vddctrl {
53*f126890aSEmmanuel Vadot					regulator-name = "vdd_cpu,vdd_sys";
54*f126890aSEmmanuel Vadot					regulator-min-microvolt = <800000>;
55*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1250000>;
56*f126890aSEmmanuel Vadot					regulator-coupled-with = <&vdd_core>;
57*f126890aSEmmanuel Vadot					regulator-coupled-max-spread = <300000>;
58*f126890aSEmmanuel Vadot					regulator-max-step-microvolt = <100000>;
59*f126890aSEmmanuel Vadot					regulator-always-on;
60*f126890aSEmmanuel Vadot					ti,regulator-ext-sleep-control = <1>;
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot					nvidia,tegra-cpu-regulator;
63*f126890aSEmmanuel Vadot				};
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot				vdd_1v8: vio {
66*f126890aSEmmanuel Vadot					regulator-name = "vdd_1v8_gen";
67*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1800000>;
68*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1800000>;
69*f126890aSEmmanuel Vadot					regulator-always-on;
70*f126890aSEmmanuel Vadot					regulator-boot-on;
71*f126890aSEmmanuel Vadot				};
72*f126890aSEmmanuel Vadot
73*f126890aSEmmanuel Vadot				vcore_emmc: ldo1 {
74*f126890aSEmmanuel Vadot					regulator-name = "vdd_pexa,vdd_pexb";
75*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1000000>;
76*f126890aSEmmanuel Vadot					regulator-max-microvolt = <3300000>;
77*f126890aSEmmanuel Vadot					regulator-always-on;
78*f126890aSEmmanuel Vadot				};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot				ldo2 {
81*f126890aSEmmanuel Vadot					regulator-name = "vdd_sata,avdd_plle";
82*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1050000>;
83*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1050000>;
84*f126890aSEmmanuel Vadot				};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot				/* LDO3 is not connected to anything */
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot				ldo4 {
89*f126890aSEmmanuel Vadot					regulator-name = "vdd_rtc";
90*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1200000>;
91*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1200000>;
92*f126890aSEmmanuel Vadot					regulator-always-on;
93*f126890aSEmmanuel Vadot				};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot				ldo5 {
96*f126890aSEmmanuel Vadot					regulator-name = "vddio_sdmmc,avdd_vdac";
97*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1800000>;
98*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1800000>;
99*f126890aSEmmanuel Vadot				};
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot				ldo6 {
102*f126890aSEmmanuel Vadot					regulator-name = "avdd_dsi_csi,pwrdet_mipi";
103*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1200000>;
104*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1200000>;
105*f126890aSEmmanuel Vadot				};
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot				ldo7 {
108*f126890aSEmmanuel Vadot					regulator-name = "vdd_pllm,x,u,a_p_c_s";
109*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1200000>;
110*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1200000>;
111*f126890aSEmmanuel Vadot					regulator-always-on;
112*f126890aSEmmanuel Vadot					regulator-boot-on;
113*f126890aSEmmanuel Vadot					ti,regulator-ext-sleep-control = <8>;
114*f126890aSEmmanuel Vadot				};
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot				ldo8 {
117*f126890aSEmmanuel Vadot					regulator-name = "vdd_ddr_hs";
118*f126890aSEmmanuel Vadot					regulator-min-microvolt = <1000000>;
119*f126890aSEmmanuel Vadot					regulator-max-microvolt = <1000000>;
120*f126890aSEmmanuel Vadot					regulator-always-on;
121*f126890aSEmmanuel Vadot					ti,regulator-ext-sleep-control = <8>;
122*f126890aSEmmanuel Vadot				};
123*f126890aSEmmanuel Vadot			};
124*f126890aSEmmanuel Vadot		};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot		vdd_core: core-regulator@60 {
127*f126890aSEmmanuel Vadot			compatible = "ti,tps62361";
128*f126890aSEmmanuel Vadot			reg = <0x60>;
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot			regulator-name = "tps62361-vout";
131*f126890aSEmmanuel Vadot			regulator-min-microvolt = <500000>;
132*f126890aSEmmanuel Vadot			regulator-max-microvolt = <1350000>;
133*f126890aSEmmanuel Vadot			regulator-coupled-with = <&vdd_cpu>;
134*f126890aSEmmanuel Vadot			regulator-coupled-max-spread = <300000>;
135*f126890aSEmmanuel Vadot			regulator-max-step-microvolt = <100000>;
136*f126890aSEmmanuel Vadot			regulator-boot-on;
137*f126890aSEmmanuel Vadot			regulator-always-on;
138*f126890aSEmmanuel Vadot			ti,enable-vout-discharge;
139*f126890aSEmmanuel Vadot			ti,vsel0-state-high;
140*f126890aSEmmanuel Vadot			ti,vsel1-state-high;
141*f126890aSEmmanuel Vadot
142*f126890aSEmmanuel Vadot			nvidia,tegra-core-regulator;
143*f126890aSEmmanuel Vadot		};
144*f126890aSEmmanuel Vadot	};
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot	vdd_3v3_sys: regulator-3v3 {
147*f126890aSEmmanuel Vadot		gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
148*f126890aSEmmanuel Vadot		enable-active-high;
149*f126890aSEmmanuel Vadot	};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot	pmc@7000e400 {
152*f126890aSEmmanuel Vadot		i2c-thermtrip {
153*f126890aSEmmanuel Vadot			nvidia,i2c-controller-id = <4>;
154*f126890aSEmmanuel Vadot			nvidia,bus-addr = <0x2d>;
155*f126890aSEmmanuel Vadot			nvidia,reg-addr = <0x3f>;
156*f126890aSEmmanuel Vadot			nvidia,reg-data = <0x80>;
157*f126890aSEmmanuel Vadot		};
158*f126890aSEmmanuel Vadot	};
159*f126890aSEmmanuel Vadot};
160