1/*
2 * Spreadtrum SC2731 PMIC dts file
3 *
4 * Copyright (C) 2018, Spreadtrum Communications Inc.
5 *
6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 */
8
9&adi_bus {
10	sc2731_pmic: pmic@0 {
11		compatible = "sprd,sc2731";
12		reg = <0>;
13		spi-max-frequency = <26000000>;
14		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
15		interrupt-controller;
16		#interrupt-cells = <2>;
17		#address-cells = <1>;
18		#size-cells = <0>;
19
20		rtc@280 {
21			compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc";
22			reg = <0x280>;
23			interrupt-parent = <&sc2731_pmic>;
24			interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
25		};
26
27		regulators {
28			compatible = "sprd,sc27xx-regulator";
29
30			vddarm0: BUCK_CPU0 {
31				regulator-name = "vddarm0";
32				regulator-min-microvolt = <400000>;
33				regulator-max-microvolt = <1996875>;
34				regulator-ramp-delay = <25000>;
35				regulator-always-on;
36			};
37
38			vddarm1: BUCK_CPU1 {
39				regulator-name = "vddarm1";
40				regulator-min-microvolt = <400000>;
41				regulator-max-microvolt = <1996875>;
42				regulator-ramp-delay = <25000>;
43				regulator-always-on;
44			};
45
46			dcdcrf: BUCK_RF {
47				regulator-name = "dcdcrf";
48				regulator-min-microvolt = <600000>;
49				regulator-max-microvolt = <2196875>;
50				regulator-ramp-delay = <25000>;
51				regulator-enable-ramp-delay = <100>;
52				regulator-always-on;
53			};
54
55			vddcama0: LDO_CAMA0 {
56				regulator-name = "vddcama0";
57				regulator-min-microvolt = <1200000>;
58				regulator-max-microvolt = <3750000>;
59				regulator-enable-ramp-delay = <100>;
60			};
61
62			vddcama1: LDO_CAMA1 {
63				regulator-name = "vddcama1";
64				regulator-min-microvolt = <1200000>;
65				regulator-max-microvolt = <3750000>;
66				regulator-enable-ramp-delay = <100>;
67				regulator-ramp-delay = <25000>;
68			};
69
70			vddcammot: LDO_CAMMOT {
71				regulator-name = "vddcammot";
72				regulator-min-microvolt = <1200000>;
73				regulator-max-microvolt = <3750000>;
74				regulator-enable-ramp-delay = <100>;
75				regulator-ramp-delay = <25000>;
76			};
77
78			vddvldo: LDO_VLDO {
79				regulator-name = "vddvldo";
80				regulator-min-microvolt = <1200000>;
81				regulator-max-microvolt = <3750000>;
82				regulator-enable-ramp-delay = <100>;
83				regulator-ramp-delay = <25000>;
84			};
85
86			vddemmccore: LDO_EMMCCORE {
87				regulator-name = "vddemmccore";
88				regulator-min-microvolt = <1200000>;
89				regulator-max-microvolt = <3750000>;
90				regulator-enable-ramp-delay = <100>;
91				regulator-ramp-delay = <25000>;
92				regulator-boot-on;
93			};
94
95			vddsdcore: LDO_SDCORE {
96				regulator-name = "vddsdcore";
97				regulator-min-microvolt = <1200000>;
98				regulator-max-microvolt = <3750000>;
99				regulator-enable-ramp-delay = <100>;
100				regulator-ramp-delay = <25000>;
101			};
102
103			vddsdio: LDO_SDIO {
104				regulator-name = "vddsdio";
105				regulator-min-microvolt = <1200000>;
106				regulator-max-microvolt = <3750000>;
107				regulator-enable-ramp-delay = <100>;
108				regulator-ramp-delay = <25000>;
109			};
110
111			vddwifipa: LDO_WIFIPA {
112				regulator-name = "vddwifipa";
113				regulator-min-microvolt = <1200000>;
114				regulator-max-microvolt = <3750000>;
115				regulator-enable-ramp-delay = <100>;
116				regulator-ramp-delay = <25000>;
117			};
118
119			vddusb33: LDO_USB33 {
120				regulator-name = "vddusb33";
121				regulator-min-microvolt = <1200000>;
122				regulator-max-microvolt = <3750000>;
123				regulator-enable-ramp-delay = <100>;
124				regulator-ramp-delay = <25000>;
125			};
126
127			vddcamd0: LDO_CAMD0 {
128				regulator-name = "vddcamd0";
129				regulator-min-microvolt = <1000000>;
130				regulator-max-microvolt = <1793750>;
131				regulator-enable-ramp-delay = <100>;
132				regulator-ramp-delay = <25000>;
133			};
134
135			vddcamd1: LDO_CAMD1 {
136				regulator-name = "vddcamd1";
137				regulator-min-microvolt = <1000000>;
138				regulator-max-microvolt = <1793750>;
139				regulator-enable-ramp-delay = <100>;
140				regulator-ramp-delay = <25000>;
141			};
142
143			vddcon: LDO_CON {
144				regulator-name = "vddcon";
145				regulator-min-microvolt = <1000000>;
146				regulator-max-microvolt = <1793750>;
147				regulator-enable-ramp-delay = <100>;
148				regulator-ramp-delay = <25000>;
149			};
150
151			vddcamio: LDO_CAMIO {
152				regulator-name = "vddcamio";
153				regulator-min-microvolt = <1000000>;
154				regulator-max-microvolt = <1793750>;
155				regulator-enable-ramp-delay = <100>;
156				regulator-ramp-delay = <25000>;
157			};
158
159			vddsram: LDO_SRAM {
160				regulator-name = "vddsram";
161				regulator-min-microvolt = <1000000>;
162				regulator-max-microvolt = <1793750>;
163				regulator-enable-ramp-delay = <100>;
164				regulator-ramp-delay = <25000>;
165				regulator-always-on;
166			};
167		};
168	};
169};
170