forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/arm64/boot/dts/allwinner/axp803.dtsi
....@@ -1,44 +1,5 @@
1
-/*
2
- * Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz>
3
- *
4
- * This file is dual-licensed: you can use it either under the terms
5
- * of the GPL or the X11 license, at your option. Note that this dual
6
- * licensing only applies to this file, and not this project as a
7
- * whole.
8
- *
9
- * a) This file is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation; either version 2 of the
12
- * License, or (at your option) any later version.
13
- *
14
- * This file is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * Or, alternatively,
20
- *
21
- * b) Permission is hereby granted, free of charge, to any person
22
- * obtaining a copy of this software and associated documentation
23
- * files (the "Software"), to deal in the Software without
24
- * restriction, including without limitation the rights to use,
25
- * copy, modify, merge, publish, distribute, sublicense, and/or
26
- * sell copies of the Software, and to permit persons to whom the
27
- * Software is furnished to do so, subject to the following
28
- * conditions:
29
- *
30
- * The above copyright notice and this permission notice shall be
31
- * included in all copies or substantial portions of the Software.
32
- *
33
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40
- * OTHER DEALINGS IN THE SOFTWARE.
41
- */
1
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
+// Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz>
423
434 /*
445 * AXP803 Integrated Power Management Chip
....@@ -48,6 +9,39 @@
489 &axp803 {
4910 interrupt-controller;
5011 #interrupt-cells = <1>;
12
+
13
+ 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
+ };
5145
5246 regulators {
5347 /* Default work frequency for buck regulators */
....@@ -152,4 +146,10 @@
152146 status = "disabled";
153147 };
154148 };
149
+
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
+ };
155155 };