Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2017 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 /* AXP813/818 Integrated Power Management Chip */
0046 
0047 &axp81x {
0048         interrupt-controller;
0049         #interrupt-cells = <1>;
0050 
0051         ac_power_supply: ac-power {
0052                 compatible = "x-powers,axp813-ac-power-supply";
0053                 status = "disabled";
0054         };
0055 
0056         axp_adc: adc {
0057                 compatible = "x-powers,axp813-adc";
0058                 #io-channel-cells = <1>;
0059         };
0060 
0061         axp_gpio: gpio {
0062                 compatible = "x-powers,axp813-gpio";
0063                 gpio-controller;
0064                 #gpio-cells = <2>;
0065 
0066                 gpio0_ldo: gpio0-ldo-pin {
0067                         pins = "GPIO0";
0068                         function = "ldo";
0069                 };
0070 
0071                 gpio1_ldo: gpio1-ldo-pin {
0072                         pins = "GPIO1";
0073                         function = "ldo";
0074                 };
0075         };
0076 
0077         battery_power_supply: battery-power {
0078                 compatible = "x-powers,axp813-battery-power-supply";
0079                 status = "disabled";
0080         };
0081 
0082         regulators {
0083                 /* Default work frequency for buck regulators */
0084                 x-powers,dcdc-freq = <3000>;
0085 
0086                 reg_dcdc1: dcdc1 {
0087                 };
0088 
0089                 reg_dcdc2: dcdc2 {
0090                 };
0091 
0092                 reg_dcdc3: dcdc3 {
0093                 };
0094 
0095                 reg_dcdc4: dcdc4 {
0096                 };
0097 
0098                 reg_dcdc5: dcdc5 {
0099                 };
0100 
0101                 reg_dcdc6: dcdc6 {
0102                 };
0103 
0104                 reg_dcdc7: dcdc7 {
0105                 };
0106 
0107                 reg_aldo1: aldo1 {
0108                 };
0109 
0110                 reg_aldo2: aldo2 {
0111                 };
0112 
0113                 reg_aldo3: aldo3 {
0114                 };
0115 
0116                 reg_dldo1: dldo1 {
0117                 };
0118 
0119                 reg_dldo2: dldo2 {
0120                 };
0121 
0122                 reg_dldo3: dldo3 {
0123                 };
0124 
0125                 reg_dldo4: dldo4 {
0126                 };
0127 
0128                 reg_eldo1: eldo1 {
0129                 };
0130 
0131                 reg_eldo2: eldo2 {
0132                 };
0133 
0134                 reg_eldo3: eldo3 {
0135                 };
0136 
0137                 reg_fldo1: fldo1 {
0138                 };
0139 
0140                 reg_fldo2: fldo2 {
0141                 };
0142 
0143                 reg_fldo3: fldo3 {
0144                 };
0145 
0146                 reg_ldo_io0: ldo-io0 {
0147                         pinctrl-names = "default";
0148                         pinctrl-0 = <&gpio0_ldo>;
0149                         /* Disable by default to avoid conflicts with GPIO */
0150                         status = "disabled";
0151                 };
0152 
0153                 reg_ldo_io1: ldo-io1 {
0154                         pinctrl-names = "default";
0155                         pinctrl-0 = <&gpio1_ldo>;
0156                         /* Disable by default to avoid conflicts with GPIO */
0157                         status = "disabled";
0158                 };
0159 
0160                 reg_rtc_ldo: rtc-ldo {
0161                         /* RTC_LDO is a fixed, always-on regulator */
0162                         regulator-always-on;
0163                         regulator-min-microvolt = <1800000>;
0164                         regulator-max-microvolt = <1800000>;
0165                 };
0166 
0167                 reg_sw: sw {
0168                 };
0169 
0170                 reg_drivevbus: drivevbus {
0171                         status = "disabled";
0172                 };
0173         };
0174 
0175         usb_power_supply: usb-power {
0176                 compatible = "x-powers,axp813-usb-power-supply";
0177         };
0178 };