xref: /linux/arch/arm64/boot/dts/sprd/sc2731.dtsi (revision 307797159ac25fe5a2048bf5c6a5718298edca57)
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		pmic_eic: gpio@300 {
28			compatible = "sprd,sc27xx-eic";
29			reg = <0x300>;
30			interrupt-parent = <&sc2731_pmic>;
31			interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
32			gpio-controller;
33			#gpio-cells = <2>;
34			interrupt-controller;
35			#interrupt-cells = <2>;
36		};
37
38		regulators {
39			compatible = "sprd,sc27xx-regulator";
40
41			vddarm0: BUCK_CPU0 {
42				regulator-name = "vddarm0";
43				regulator-min-microvolt = <400000>;
44				regulator-max-microvolt = <1996875>;
45				regulator-ramp-delay = <25000>;
46				regulator-always-on;
47			};
48
49			vddarm1: BUCK_CPU1 {
50				regulator-name = "vddarm1";
51				regulator-min-microvolt = <400000>;
52				regulator-max-microvolt = <1996875>;
53				regulator-ramp-delay = <25000>;
54				regulator-always-on;
55			};
56
57			dcdcrf: BUCK_RF {
58				regulator-name = "dcdcrf";
59				regulator-min-microvolt = <600000>;
60				regulator-max-microvolt = <2196875>;
61				regulator-ramp-delay = <25000>;
62				regulator-enable-ramp-delay = <100>;
63				regulator-always-on;
64			};
65
66			vddcama0: LDO_CAMA0 {
67				regulator-name = "vddcama0";
68				regulator-min-microvolt = <1200000>;
69				regulator-max-microvolt = <3750000>;
70				regulator-enable-ramp-delay = <100>;
71			};
72
73			vddcama1: LDO_CAMA1 {
74				regulator-name = "vddcama1";
75				regulator-min-microvolt = <1200000>;
76				regulator-max-microvolt = <3750000>;
77				regulator-enable-ramp-delay = <100>;
78				regulator-ramp-delay = <25000>;
79			};
80
81			vddcammot: LDO_CAMMOT {
82				regulator-name = "vddcammot";
83				regulator-min-microvolt = <1200000>;
84				regulator-max-microvolt = <3750000>;
85				regulator-enable-ramp-delay = <100>;
86				regulator-ramp-delay = <25000>;
87			};
88
89			vddvldo: LDO_VLDO {
90				regulator-name = "vddvldo";
91				regulator-min-microvolt = <1200000>;
92				regulator-max-microvolt = <3750000>;
93				regulator-enable-ramp-delay = <100>;
94				regulator-ramp-delay = <25000>;
95			};
96
97			vddemmccore: LDO_EMMCCORE {
98				regulator-name = "vddemmccore";
99				regulator-min-microvolt = <1200000>;
100				regulator-max-microvolt = <3750000>;
101				regulator-enable-ramp-delay = <100>;
102				regulator-ramp-delay = <25000>;
103				regulator-boot-on;
104			};
105
106			vddsdcore: LDO_SDCORE {
107				regulator-name = "vddsdcore";
108				regulator-min-microvolt = <1200000>;
109				regulator-max-microvolt = <3750000>;
110				regulator-enable-ramp-delay = <100>;
111				regulator-ramp-delay = <25000>;
112			};
113
114			vddsdio: LDO_SDIO {
115				regulator-name = "vddsdio";
116				regulator-min-microvolt = <1200000>;
117				regulator-max-microvolt = <3750000>;
118				regulator-enable-ramp-delay = <100>;
119				regulator-ramp-delay = <25000>;
120			};
121
122			vddwifipa: LDO_WIFIPA {
123				regulator-name = "vddwifipa";
124				regulator-min-microvolt = <1200000>;
125				regulator-max-microvolt = <3750000>;
126				regulator-enable-ramp-delay = <100>;
127				regulator-ramp-delay = <25000>;
128			};
129
130			vddusb33: LDO_USB33 {
131				regulator-name = "vddusb33";
132				regulator-min-microvolt = <1200000>;
133				regulator-max-microvolt = <3750000>;
134				regulator-enable-ramp-delay = <100>;
135				regulator-ramp-delay = <25000>;
136			};
137
138			vddcamd0: LDO_CAMD0 {
139				regulator-name = "vddcamd0";
140				regulator-min-microvolt = <1000000>;
141				regulator-max-microvolt = <1793750>;
142				regulator-enable-ramp-delay = <100>;
143				regulator-ramp-delay = <25000>;
144			};
145
146			vddcamd1: LDO_CAMD1 {
147				regulator-name = "vddcamd1";
148				regulator-min-microvolt = <1000000>;
149				regulator-max-microvolt = <1793750>;
150				regulator-enable-ramp-delay = <100>;
151				regulator-ramp-delay = <25000>;
152			};
153
154			vddcon: LDO_CON {
155				regulator-name = "vddcon";
156				regulator-min-microvolt = <1000000>;
157				regulator-max-microvolt = <1793750>;
158				regulator-enable-ramp-delay = <100>;
159				regulator-ramp-delay = <25000>;
160			};
161
162			vddcamio: LDO_CAMIO {
163				regulator-name = "vddcamio";
164				regulator-min-microvolt = <1000000>;
165				regulator-max-microvolt = <1793750>;
166				regulator-enable-ramp-delay = <100>;
167				regulator-ramp-delay = <25000>;
168			};
169
170			vddsram: LDO_SRAM {
171				regulator-name = "vddsram";
172				regulator-min-microvolt = <1000000>;
173				regulator-max-microvolt = <1793750>;
174				regulator-enable-ramp-delay = <100>;
175				regulator-ramp-delay = <25000>;
176				regulator-always-on;
177			};
178		};
179	};
180};
181