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  * AXP202/209 Integrated Power Management Chip
0047  * http://www.x-powers.com/product/AXP20X.php
0048  * http://dl.linux-sunxi.org/AXP/AXP209%20Datasheet%20v1.0_cn.pdf
0049  */
0050 
0051 &axp209 {
0052         compatible = "x-powers,axp209";
0053         interrupt-controller;
0054         #interrupt-cells = <1>;
0055 
0056         ac_power_supply: ac-power {
0057                 compatible = "x-powers,axp202-ac-power-supply";
0058                 status = "disabled";
0059         };
0060 
0061         axp_adc: adc {
0062                 compatible = "x-powers,axp209-adc";
0063                 #io-channel-cells = <1>;
0064         };
0065 
0066         axp_gpio: gpio {
0067                 compatible = "x-powers,axp209-gpio";
0068                 gpio-controller;
0069                 #gpio-cells = <2>;
0070         };
0071 
0072         battery_power_supply: battery-power {
0073                 compatible = "x-powers,axp209-battery-power-supply";
0074                 status = "disabled";
0075         };
0076 
0077         regulators {
0078                 /* Default work frequency for buck regulators */
0079                 x-powers,dcdc-freq = <1500>;
0080 
0081                 reg_dcdc2: dcdc2 {
0082                         regulator-name = "dcdc2";
0083                 };
0084 
0085                 reg_dcdc3: dcdc3 {
0086                         regulator-name = "dcdc3";
0087                 };
0088 
0089                 reg_ldo1: ldo1 {
0090                         /* LDO1 is a fixed output regulator */
0091                         regulator-always-on;
0092                         regulator-min-microvolt = <1300000>;
0093                         regulator-max-microvolt = <1300000>;
0094                         regulator-name = "ldo1";
0095                 };
0096 
0097                 reg_ldo2: ldo2 {
0098                         regulator-name = "ldo2";
0099                 };
0100 
0101                 reg_ldo3: ldo3 {
0102                         regulator-name = "ldo3";
0103                 };
0104 
0105                 reg_ldo4: ldo4 {
0106                         regulator-name = "ldo4";
0107                 };
0108 
0109                 reg_ldo5: ldo5 {
0110                         regulator-name = "ldo5";
0111                         status = "disabled";
0112                 };
0113         };
0114 
0115         usb_power_supply: usb-power {
0116                 compatible = "x-powers,axp202-usb-power-supply";
0117                 status = "disabled";
0118         };
0119 };