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