blob: 10e9186a76bf7c60c059a3c0091ed619e8ec6082 [file] [log] [blame]
Samuel Holland26bc4e72020-10-24 10:21:55 -05001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz>
Andre Przywara0fcb8302018-07-04 14:16:35 +01003
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
Samuel Holland26bc4e72020-10-24 10:21:55 -050013 ac_power_supply: ac-power-supply {
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 gpio0_ldo: gpio0-ldo {
30 pins = "GPIO0";
31 function = "ldo";
32 };
33
34 gpio1_ldo: gpio1-ldo {
35 pins = "GPIO1";
36 function = "ldo";
37 };
38 };
39
40 battery_power_supply: battery-power-supply {
41 compatible = "x-powers,axp803-battery-power-supply",
42 "x-powers,axp813-battery-power-supply";
43 status = "disabled";
44 };
45
Andre Przywara0fcb8302018-07-04 14:16:35 +010046 regulators {
47 /* Default work frequency for buck regulators */
48 x-powers,dcdc-freq = <3000>;
49
50 reg_aldo1: aldo1 {
51 regulator-name = "aldo1";
52 };
53
54 reg_aldo2: aldo2 {
55 regulator-name = "aldo2";
56 };
57
58 reg_aldo3: aldo3 {
59 regulator-name = "aldo3";
60 };
61
62 reg_dc1sw: dc1sw {
63 regulator-name = "dc1sw";
64 };
65
66 reg_dcdc1: dcdc1 {
67 regulator-name = "dcdc1";
68 };
69
70 reg_dcdc2: dcdc2 {
71 regulator-name = "dcdc2";
72 };
73
74 reg_dcdc3: dcdc3 {
75 regulator-name = "dcdc3";
76 };
77
78 reg_dcdc4: dcdc4 {
79 regulator-name = "dcdc4";
80 };
81
82 reg_dcdc5: dcdc5 {
83 regulator-name = "dcdc5";
84 };
85
86 reg_dcdc6: dcdc6 {
87 regulator-name = "dcdc6";
88 };
89
90 reg_dldo1: dldo1 {
91 regulator-name = "dldo1";
92 };
93
94 reg_dldo2: dldo2 {
95 regulator-name = "dldo2";
96 };
97
98 reg_dldo3: dldo3 {
99 regulator-name = "dldo3";
100 };
101
102 reg_dldo4: dldo4 {
103 regulator-name = "dldo4";
104 };
105
106 reg_eldo1: eldo1 {
107 regulator-name = "eldo1";
108 };
109
110 reg_eldo2: eldo2 {
111 regulator-name = "eldo2";
112 };
113
114 reg_eldo3: eldo3 {
115 regulator-name = "eldo3";
116 };
117
118 reg_fldo1: fldo1 {
119 regulator-name = "fldo1";
120 };
121
122 reg_fldo2: fldo2 {
123 regulator-name = "fldo2";
124 };
125
126 reg_ldo_io0: ldo-io0 {
127 regulator-name = "ldo-io0";
128 status = "disabled";
129 };
130
131 reg_ldo_io1: ldo-io1 {
132 regulator-name = "ldo-io1";
133 status = "disabled";
134 };
135
136 reg_rtc_ldo: rtc-ldo {
137 /* RTC_LDO is a fixed, always-on regulator */
138 regulator-always-on;
139 regulator-min-microvolt = <3000000>;
140 regulator-max-microvolt = <3000000>;
141 regulator-name = "rtc-ldo";
142 };
143
144 reg_drivevbus: drivevbus {
145 regulator-name = "drivevbus";
146 status = "disabled";
147 };
148 };
Samuel Holland26bc4e72020-10-24 10:21:55 -0500149
150 usb_power_supply: usb-power-supply {
151 compatible = "x-powers,axp803-usb-power-supply",
152 "x-powers,axp813-usb-power-supply";
153 status = "disabled";
154 };
Andre Przywara0fcb8302018-07-04 14:16:35 +0100155};