1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz>
3
4/*
5 * AXP803 Integrated Power Management Chip
6 * http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf
7 */
8
9&axp803 {
10	interrupt-controller;
11	#interrupt-cells = <1>;
12
13	ac_power_supply: ac-power {
14		compatible = "x-powers,axp803-ac-power-supply",
15			     "x-powers,axp813-ac-power-supply";
16		status = "disabled";
17	};
18
19	axp_adc: adc {
20		compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
21		#io-channel-cells = <1>;
22	};
23
24	axp_gpio: gpio {
25		compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio";
26		gpio-controller;
27		#gpio-cells = <2>;
28	};
29
30	battery_power_supply: battery-power {
31		compatible = "x-powers,axp803-battery-power-supply",
32			     "x-powers,axp813-battery-power-supply";
33		status = "disabled";
34	};
35
36	regulators {
37		/* Default work frequency for buck regulators */
38		x-powers,dcdc-freq = <3000>;
39
40		reg_aldo1: aldo1 {
41			regulator-name = "aldo1";
42		};
43
44		reg_aldo2: aldo2 {
45			regulator-name = "aldo2";
46		};
47
48		reg_aldo3: aldo3 {
49			regulator-name = "aldo3";
50		};
51
52		reg_dc1sw: dc1sw {
53			regulator-name = "dc1sw";
54		};
55
56		reg_dcdc1: dcdc1 {
57			regulator-name = "dcdc1";
58		};
59
60		reg_dcdc2: dcdc2 {
61			regulator-name = "dcdc2";
62		};
63
64		reg_dcdc3: dcdc3 {
65			regulator-name = "dcdc3";
66		};
67
68		reg_dcdc4: dcdc4 {
69			regulator-name = "dcdc4";
70		};
71
72		reg_dcdc5: dcdc5 {
73			regulator-name = "dcdc5";
74		};
75
76		reg_dcdc6: dcdc6 {
77			regulator-name = "dcdc6";
78		};
79
80		reg_dldo1: dldo1 {
81			regulator-name = "dldo1";
82		};
83
84		reg_dldo2: dldo2 {
85			regulator-name = "dldo2";
86		};
87
88		reg_dldo3: dldo3 {
89			regulator-name = "dldo3";
90		};
91
92		reg_dldo4: dldo4 {
93			regulator-name = "dldo4";
94		};
95
96		reg_eldo1: eldo1 {
97			regulator-name = "eldo1";
98		};
99
100		reg_eldo2: eldo2 {
101			regulator-name = "eldo2";
102		};
103
104		reg_eldo3: eldo3 {
105			regulator-name = "eldo3";
106		};
107
108		reg_fldo1: fldo1 {
109			regulator-name = "fldo1";
110		};
111
112		reg_fldo2: fldo2 {
113			regulator-name = "fldo2";
114		};
115
116		reg_ldo_io0: ldo-io0 {
117			regulator-name = "ldo-io0";
118			status = "disabled";
119		};
120
121		reg_ldo_io1: ldo-io1 {
122			regulator-name = "ldo-io1";
123			status = "disabled";
124		};
125
126		reg_rtc_ldo: rtc-ldo {
127			/* RTC_LDO is a fixed, always-on regulator */
128			regulator-always-on;
129			regulator-min-microvolt = <3000000>;
130			regulator-max-microvolt = <3000000>;
131			regulator-name = "rtc-ldo";
132		};
133
134		reg_drivevbus: drivevbus {
135			regulator-name = "drivevbus";
136			status = "disabled";
137		};
138	};
139
140	usb_power_supply: usb-power {
141		compatible = "x-powers,axp803-usb-power-supply",
142			     "x-powers,axp813-usb-power-supply";
143		status = "disabled";
144	};
145};
146