Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2015 Chen-Yu Tsai
0003  *
0004  * Chen-Yu Tsai <wens@csie.org>
0005  *
0006  * This file is dual-licensed: you can use it either under the terms
0007  * of the GPL or the X11 license, at your option. Note that this dual
0008  * licensing only applies to this file, and not this project as a
0009  * whole.
0010  *
0011  *  a) This file is free software; you can redistribute it and/or
0012  *     modify it under the terms of the GNU General Public License as
0013  *     published by the Free Software Foundation; either version 2 of the
0014  *     License, or (at your option) any later version.
0015  *
0016  *     This file is distributed in the hope that it will be useful,
0017  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0019  *     GNU General Public License for more details.
0020  *
0021  * Or, alternatively,
0022  *
0023  *  b) Permission is hereby granted, free of charge, to any person
0024  *     obtaining a copy of this software and associated documentation
0025  *     files (the "Software"), to deal in the Software without
0026  *     restriction, including without limitation the rights to use,
0027  *     copy, modify, merge, publish, distribute, sublicense, and/or
0028  *     sell copies of the Software, and to permit persons to whom the
0029  *     Software is furnished to do so, subject to the following
0030  *     conditions:
0031  *
0032  *     The above copyright notice and this permission notice shall be
0033  *     included in all copies or substantial portions of the Software.
0034  *
0035  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0036  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0037  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0038  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0039  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0040  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0041  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0042  *     OTHER DEALINGS IN THE SOFTWARE.
0043  */
0044 
0045 /*
0046  * AXP221/221s/223 Integrated Power Management Chip
0047  * http://www.x-powers.com/product/AXP22X.php
0048  * http://dl.linux-sunxi.org/AXP/AXP221%20Datasheet%20V1.2%2020130326%20.pdf
0049  */
0050 
0051 &axp22x {
0052         interrupt-controller;
0053         #interrupt-cells = <1>;
0054 
0055         ac_power_supply: ac-power {
0056                 compatible = "x-powers,axp221-ac-power-supply";
0057                 status = "disabled";
0058         };
0059 
0060         axp_adc: adc {
0061                 compatible = "x-powers,axp221-adc";
0062                 #io-channel-cells = <1>;
0063         };
0064 
0065         battery_power_supply: battery-power {
0066                 compatible = "x-powers,axp221-battery-power-supply";
0067                 status = "disabled";
0068         };
0069 
0070         regulators {
0071                 /* Default work frequency for buck regulators */
0072                 x-powers,dcdc-freq = <3000>;
0073 
0074                 reg_dcdc1: dcdc1 {
0075                         regulator-name = "dcdc1";
0076                 };
0077 
0078                 reg_dcdc2: dcdc2 {
0079                         regulator-name = "dcdc2";
0080                 };
0081 
0082                 reg_dcdc3: dcdc3 {
0083                         regulator-name = "dcdc3";
0084                 };
0085 
0086                 reg_dcdc4: dcdc4 {
0087                         regulator-name = "dcdc4";
0088                 };
0089 
0090                 reg_dcdc5: dcdc5 {
0091                         regulator-name = "dcdc5";
0092                 };
0093 
0094                 reg_dc1sw: dc1sw {
0095                         regulator-name = "dc1sw";
0096                 };
0097 
0098                 reg_dc5ldo: dc5ldo {
0099                         regulator-name = "dc5ldo";
0100                 };
0101 
0102                 reg_aldo1: aldo1 {
0103                         regulator-name = "aldo1";
0104                 };
0105 
0106                 reg_aldo2: aldo2 {
0107                         regulator-name = "aldo2";
0108                 };
0109 
0110                 reg_aldo3: aldo3 {
0111                         regulator-name = "aldo3";
0112                 };
0113 
0114                 reg_dldo1: dldo1 {
0115                         regulator-name = "dldo1";
0116                 };
0117 
0118                 reg_dldo2: dldo2 {
0119                         regulator-name = "dldo2";
0120                 };
0121 
0122                 reg_dldo3: dldo3 {
0123                         regulator-name = "dldo3";
0124                 };
0125 
0126                 reg_dldo4: dldo4 {
0127                         regulator-name = "dldo4";
0128                 };
0129 
0130                 reg_eldo1: eldo1 {
0131                         regulator-name = "eldo1";
0132                 };
0133 
0134                 reg_eldo2: eldo2 {
0135                         regulator-name = "eldo2";
0136                 };
0137 
0138                 reg_eldo3: eldo3 {
0139                         regulator-name = "eldo3";
0140                 };
0141 
0142                 reg_ldo_io0: ldo_io0 {
0143                         regulator-name = "ldo_io0";
0144                         status = "disabled";
0145                 };
0146 
0147                 reg_ldo_io1: ldo_io1 {
0148                         regulator-name = "ldo_io1";
0149                         status = "disabled";
0150                 };
0151 
0152                 reg_rtc_ldo: rtc_ldo {
0153                         /* RTC_LDO is a fixed, always-on regulator */
0154                         regulator-always-on;
0155                         regulator-min-microvolt = <3000000>;
0156                         regulator-max-microvolt = <3000000>;
0157                         regulator-name = "rtc_ldo";
0158                 };
0159 
0160                 reg_drivevbus: drivevbus {
0161                         regulator-name = "drivevbus";
0162                         status = "disabled";
0163                 };
0164         };
0165 
0166         usb_power_supply: usb-power {
0167                 compatible = "x-powers,axp221-usb-power-supply";
0168                 status = "disabled";
0169         };
0170 };