xref: /openbmc/u-boot/arch/arm/dts/axp803.dtsi (revision 1adbf296)
1*68dd17c3SAndre Przywara/*
2*68dd17c3SAndre Przywara * Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz>
3*68dd17c3SAndre Przywara *
4*68dd17c3SAndre Przywara * This file is dual-licensed: you can use it either under the terms
5*68dd17c3SAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual
6*68dd17c3SAndre Przywara * licensing only applies to this file, and not this project as a
7*68dd17c3SAndre Przywara * whole.
8*68dd17c3SAndre Przywara *
9*68dd17c3SAndre Przywara *  a) This file is free software; you can redistribute it and/or
10*68dd17c3SAndre Przywara *     modify it under the terms of the GNU General Public License as
11*68dd17c3SAndre Przywara *     published by the Free Software Foundation; either version 2 of the
12*68dd17c3SAndre Przywara *     License, or (at your option) any later version.
13*68dd17c3SAndre Przywara *
14*68dd17c3SAndre Przywara *     This file is distributed in the hope that it will be useful,
15*68dd17c3SAndre Przywara *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*68dd17c3SAndre Przywara *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*68dd17c3SAndre Przywara *     GNU General Public License for more details.
18*68dd17c3SAndre Przywara *
19*68dd17c3SAndre Przywara * Or, alternatively,
20*68dd17c3SAndre Przywara *
21*68dd17c3SAndre Przywara *  b) Permission is hereby granted, free of charge, to any person
22*68dd17c3SAndre Przywara *     obtaining a copy of this software and associated documentation
23*68dd17c3SAndre Przywara *     files (the "Software"), to deal in the Software without
24*68dd17c3SAndre Przywara *     restriction, including without limitation the rights to use,
25*68dd17c3SAndre Przywara *     copy, modify, merge, publish, distribute, sublicense, and/or
26*68dd17c3SAndre Przywara *     sell copies of the Software, and to permit persons to whom the
27*68dd17c3SAndre Przywara *     Software is furnished to do so, subject to the following
28*68dd17c3SAndre Przywara *     conditions:
29*68dd17c3SAndre Przywara *
30*68dd17c3SAndre Przywara *     The above copyright notice and this permission notice shall be
31*68dd17c3SAndre Przywara *     included in all copies or substantial portions of the Software.
32*68dd17c3SAndre Przywara *
33*68dd17c3SAndre Przywara *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*68dd17c3SAndre Przywara *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*68dd17c3SAndre Przywara *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*68dd17c3SAndre Przywara *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*68dd17c3SAndre Przywara *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*68dd17c3SAndre Przywara *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*68dd17c3SAndre Przywara *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*68dd17c3SAndre Przywara *     OTHER DEALINGS IN THE SOFTWARE.
41*68dd17c3SAndre Przywara */
42*68dd17c3SAndre Przywara
43*68dd17c3SAndre Przywara/*
44*68dd17c3SAndre Przywara * AXP803 Integrated Power Management Chip
45*68dd17c3SAndre Przywara * http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf
46*68dd17c3SAndre Przywara */
47*68dd17c3SAndre Przywara
48*68dd17c3SAndre Przywara&axp803 {
49*68dd17c3SAndre Przywara	interrupt-controller;
50*68dd17c3SAndre Przywara	#interrupt-cells = <1>;
51*68dd17c3SAndre Przywara
52*68dd17c3SAndre Przywara	regulators {
53*68dd17c3SAndre Przywara		/* Default work frequency for buck regulators */
54*68dd17c3SAndre Przywara		x-powers,dcdc-freq = <3000>;
55*68dd17c3SAndre Przywara
56*68dd17c3SAndre Przywara		reg_aldo1: aldo1 {
57*68dd17c3SAndre Przywara			regulator-name = "aldo1";
58*68dd17c3SAndre Przywara		};
59*68dd17c3SAndre Przywara
60*68dd17c3SAndre Przywara		reg_aldo2: aldo2 {
61*68dd17c3SAndre Przywara			regulator-name = "aldo2";
62*68dd17c3SAndre Przywara		};
63*68dd17c3SAndre Przywara
64*68dd17c3SAndre Przywara		reg_aldo3: aldo3 {
65*68dd17c3SAndre Przywara			regulator-name = "aldo3";
66*68dd17c3SAndre Przywara		};
67*68dd17c3SAndre Przywara
68*68dd17c3SAndre Przywara		reg_dc1sw: dc1sw {
69*68dd17c3SAndre Przywara			regulator-name = "dc1sw";
70*68dd17c3SAndre Przywara		};
71*68dd17c3SAndre Przywara
72*68dd17c3SAndre Przywara		reg_dcdc1: dcdc1 {
73*68dd17c3SAndre Przywara			regulator-name = "dcdc1";
74*68dd17c3SAndre Przywara		};
75*68dd17c3SAndre Przywara
76*68dd17c3SAndre Przywara		reg_dcdc2: dcdc2 {
77*68dd17c3SAndre Przywara			regulator-name = "dcdc2";
78*68dd17c3SAndre Przywara		};
79*68dd17c3SAndre Przywara
80*68dd17c3SAndre Przywara		reg_dcdc3: dcdc3 {
81*68dd17c3SAndre Przywara			regulator-name = "dcdc3";
82*68dd17c3SAndre Przywara		};
83*68dd17c3SAndre Przywara
84*68dd17c3SAndre Przywara		reg_dcdc4: dcdc4 {
85*68dd17c3SAndre Przywara			regulator-name = "dcdc4";
86*68dd17c3SAndre Przywara		};
87*68dd17c3SAndre Przywara
88*68dd17c3SAndre Przywara		reg_dcdc5: dcdc5 {
89*68dd17c3SAndre Przywara			regulator-name = "dcdc5";
90*68dd17c3SAndre Przywara		};
91*68dd17c3SAndre Przywara
92*68dd17c3SAndre Przywara		reg_dcdc6: dcdc6 {
93*68dd17c3SAndre Przywara			regulator-name = "dcdc6";
94*68dd17c3SAndre Przywara		};
95*68dd17c3SAndre Przywara
96*68dd17c3SAndre Przywara		reg_dldo1: dldo1 {
97*68dd17c3SAndre Przywara			regulator-name = "dldo1";
98*68dd17c3SAndre Przywara		};
99*68dd17c3SAndre Przywara
100*68dd17c3SAndre Przywara		reg_dldo2: dldo2 {
101*68dd17c3SAndre Przywara			regulator-name = "dldo2";
102*68dd17c3SAndre Przywara		};
103*68dd17c3SAndre Przywara
104*68dd17c3SAndre Przywara		reg_dldo3: dldo3 {
105*68dd17c3SAndre Przywara			regulator-name = "dldo3";
106*68dd17c3SAndre Przywara		};
107*68dd17c3SAndre Przywara
108*68dd17c3SAndre Przywara		reg_dldo4: dldo4 {
109*68dd17c3SAndre Przywara			regulator-name = "dldo4";
110*68dd17c3SAndre Przywara		};
111*68dd17c3SAndre Przywara
112*68dd17c3SAndre Przywara		reg_eldo1: eldo1 {
113*68dd17c3SAndre Przywara			regulator-name = "eldo1";
114*68dd17c3SAndre Przywara		};
115*68dd17c3SAndre Przywara
116*68dd17c3SAndre Przywara		reg_eldo2: eldo2 {
117*68dd17c3SAndre Przywara			regulator-name = "eldo2";
118*68dd17c3SAndre Przywara		};
119*68dd17c3SAndre Przywara
120*68dd17c3SAndre Przywara		reg_eldo3: eldo3 {
121*68dd17c3SAndre Przywara			regulator-name = "eldo3";
122*68dd17c3SAndre Przywara		};
123*68dd17c3SAndre Przywara
124*68dd17c3SAndre Przywara		reg_fldo1: fldo1 {
125*68dd17c3SAndre Przywara			regulator-name = "fldo1";
126*68dd17c3SAndre Przywara		};
127*68dd17c3SAndre Przywara
128*68dd17c3SAndre Przywara		reg_fldo2: fldo2 {
129*68dd17c3SAndre Przywara			regulator-name = "fldo2";
130*68dd17c3SAndre Przywara		};
131*68dd17c3SAndre Przywara
132*68dd17c3SAndre Przywara		reg_ldo_io0: ldo-io0 {
133*68dd17c3SAndre Przywara			regulator-name = "ldo-io0";
134*68dd17c3SAndre Przywara			status = "disabled";
135*68dd17c3SAndre Przywara		};
136*68dd17c3SAndre Przywara
137*68dd17c3SAndre Przywara		reg_ldo_io1: ldo-io1 {
138*68dd17c3SAndre Przywara			regulator-name = "ldo-io1";
139*68dd17c3SAndre Przywara			status = "disabled";
140*68dd17c3SAndre Przywara		};
141*68dd17c3SAndre Przywara
142*68dd17c3SAndre Przywara		reg_rtc_ldo: rtc-ldo {
143*68dd17c3SAndre Przywara			/* RTC_LDO is a fixed, always-on regulator */
144*68dd17c3SAndre Przywara			regulator-always-on;
145*68dd17c3SAndre Przywara			regulator-min-microvolt = <3000000>;
146*68dd17c3SAndre Przywara			regulator-max-microvolt = <3000000>;
147*68dd17c3SAndre Przywara			regulator-name = "rtc-ldo";
148*68dd17c3SAndre Przywara		};
149*68dd17c3SAndre Przywara
150*68dd17c3SAndre Przywara		reg_drivevbus: drivevbus {
151*68dd17c3SAndre Przywara			regulator-name = "drivevbus";
152*68dd17c3SAndre Przywara			status = "disabled";
153*68dd17c3SAndre Przywara		};
154*68dd17c3SAndre Przywara	};
155*68dd17c3SAndre Przywara};
156