153ab4af3SHans de Goede/* 253ab4af3SHans de Goede * Copyright 2015 Chen-Yu Tsai 353ab4af3SHans de Goede * 453ab4af3SHans de Goede * Chen-Yu Tsai <wens@csie.org> 553ab4af3SHans de Goede * 653ab4af3SHans de Goede * This file is dual-licensed: you can use it either under the terms 753ab4af3SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 853ab4af3SHans de Goede * licensing only applies to this file, and not this project as a 953ab4af3SHans de Goede * whole. 1053ab4af3SHans de Goede * 1153ab4af3SHans de Goede * a) This file is free software; you can redistribute it and/or 1253ab4af3SHans de Goede * modify it under the terms of the GNU General Public License as 1353ab4af3SHans de Goede * published by the Free Software Foundation; either version 2 of the 1453ab4af3SHans de Goede * License, or (at your option) any later version. 1553ab4af3SHans de Goede * 1653ab4af3SHans de Goede * This file is distributed in the hope that it will be useful, 1753ab4af3SHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 1853ab4af3SHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1953ab4af3SHans de Goede * GNU General Public License for more details. 2053ab4af3SHans de Goede * 2153ab4af3SHans de Goede * Or, alternatively, 2253ab4af3SHans de Goede * 2353ab4af3SHans de Goede * b) Permission is hereby granted, free of charge, to any person 2453ab4af3SHans de Goede * obtaining a copy of this software and associated documentation 2553ab4af3SHans de Goede * files (the "Software"), to deal in the Software without 2653ab4af3SHans de Goede * restriction, including without limitation the rights to use, 2753ab4af3SHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 2853ab4af3SHans de Goede * sell copies of the Software, and to permit persons to whom the 2953ab4af3SHans de Goede * Software is furnished to do so, subject to the following 3053ab4af3SHans de Goede * conditions: 3153ab4af3SHans de Goede * 3253ab4af3SHans de Goede * The above copyright notice and this permission notice shall be 3353ab4af3SHans de Goede * included in all copies or substantial portions of the Software. 3453ab4af3SHans de Goede * 3553ab4af3SHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 3653ab4af3SHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 3753ab4af3SHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 3853ab4af3SHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 3953ab4af3SHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 4053ab4af3SHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 4153ab4af3SHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4253ab4af3SHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 4353ab4af3SHans de Goede */ 4453ab4af3SHans de Goede 4553ab4af3SHans de Goede/* 4653ab4af3SHans de Goede * AXP202/209 Integrated Power Management Chip 4753ab4af3SHans de Goede * http://www.x-powers.com/product/AXP20X.php 4853ab4af3SHans de Goede * http://dl.linux-sunxi.org/AXP/AXP209%20Datasheet%20v1.0_cn.pdf 4953ab4af3SHans de Goede */ 5053ab4af3SHans de Goede 5153ab4af3SHans de Goede&axp209 { 5253ab4af3SHans de Goede compatible = "x-powers,axp209"; 5353ab4af3SHans de Goede interrupt-controller; 5453ab4af3SHans de Goede #interrupt-cells = <1>; 5553ab4af3SHans de Goede 56*3c92cca3SJagan Teki ac_power_supply: ac-power-supply { 57*3c92cca3SJagan Teki compatible = "x-powers,axp202-ac-power-supply"; 58*3c92cca3SJagan Teki status = "disabled"; 59*3c92cca3SJagan Teki }; 60*3c92cca3SJagan Teki 61*3c92cca3SJagan Teki axp_adc: adc { 62*3c92cca3SJagan Teki compatible = "x-powers,axp209-adc"; 63*3c92cca3SJagan Teki #io-channel-cells = <1>; 64*3c92cca3SJagan Teki }; 65*3c92cca3SJagan Teki 666a3a226eSMaxime Ripard axp_gpio: gpio { 676a3a226eSMaxime Ripard compatible = "x-powers,axp209-gpio"; 686a3a226eSMaxime Ripard gpio-controller; 696a3a226eSMaxime Ripard #gpio-cells = <2>; 706a3a226eSMaxime Ripard }; 716a3a226eSMaxime Ripard 72*3c92cca3SJagan Teki battery_power_supply: battery-power-supply { 73*3c92cca3SJagan Teki compatible = "x-powers,axp209-battery-power-supply"; 74*3c92cca3SJagan Teki status = "disabled"; 75*3c92cca3SJagan Teki }; 76*3c92cca3SJagan Teki 7753ab4af3SHans de Goede regulators { 7853ab4af3SHans de Goede /* Default work frequency for buck regulators */ 7953ab4af3SHans de Goede x-powers,dcdc-freq = <1500>; 8053ab4af3SHans de Goede 8153ab4af3SHans de Goede reg_dcdc2: dcdc2 { 8253ab4af3SHans de Goede regulator-name = "dcdc2"; 8353ab4af3SHans de Goede }; 8453ab4af3SHans de Goede 8553ab4af3SHans de Goede reg_dcdc3: dcdc3 { 8653ab4af3SHans de Goede regulator-name = "dcdc3"; 8753ab4af3SHans de Goede }; 8853ab4af3SHans de Goede 8953ab4af3SHans de Goede reg_ldo1: ldo1 { 9053ab4af3SHans de Goede /* LDO1 is a fixed output regulator */ 9153ab4af3SHans de Goede regulator-always-on; 9253ab4af3SHans de Goede regulator-min-microvolt = <1300000>; 9353ab4af3SHans de Goede regulator-max-microvolt = <1300000>; 9453ab4af3SHans de Goede regulator-name = "ldo1"; 9553ab4af3SHans de Goede }; 9653ab4af3SHans de Goede 9753ab4af3SHans de Goede reg_ldo2: ldo2 { 9853ab4af3SHans de Goede regulator-name = "ldo2"; 9953ab4af3SHans de Goede }; 10053ab4af3SHans de Goede 10153ab4af3SHans de Goede reg_ldo3: ldo3 { 10253ab4af3SHans de Goede regulator-name = "ldo3"; 10353ab4af3SHans de Goede }; 10453ab4af3SHans de Goede 10553ab4af3SHans de Goede reg_ldo4: ldo4 { 10653ab4af3SHans de Goede regulator-name = "ldo4"; 10753ab4af3SHans de Goede }; 10853ab4af3SHans de Goede 10953ab4af3SHans de Goede reg_ldo5: ldo5 { 11053ab4af3SHans de Goede regulator-name = "ldo5"; 111860fbdd4SHans de Goede status = "disabled"; 11253ab4af3SHans de Goede }; 11353ab4af3SHans de Goede }; 114862ba7edSMaxime Ripard 115*3c92cca3SJagan Teki usb_power_supply: usb-power-supply { 116862ba7edSMaxime Ripard compatible = "x-powers,axp202-usb-power-supply"; 117862ba7edSMaxime Ripard status = "disabled"; 118862ba7edSMaxime Ripard }; 11953ab4af3SHans de Goede}; 120