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