kernel: update 3.14 to 3.14.18
[openwrt.git] / target / linux / sunxi / patches-3.14 / 213-dt-sunxi-add-x-powers.patch
1 From 7b42dc4ff2cca887e0c6e1ad291d65b30e64dd92 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Wed, 5 Mar 2014 20:30:41 +0100
4 Subject: [PATCH] ARM: sunxi: dt: Add x-powers-axp209.dtsi file
5
6 This dtsi describes the axp209 PMIC, and is to be included from inside
7 the i2c controller node to which the axp209 is connected.
8
9 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
10 ---
11  arch/arm/boot/dts/x-powers-axp209.dtsi | 60 ++++++++++++++++++++++++++++++++++
12  1 file changed, 60 insertions(+)
13  create mode 100644 arch/arm/boot/dts/x-powers-axp209.dtsi
14
15 --- /dev/null
16 +++ b/arch/arm/boot/dts/x-powers-axp209.dtsi
17 @@ -0,0 +1,60 @@
18 +/*
19 + * x-powers,axp209 common code to be include from inside the axp209 node
20 + *
21 + * Copyright 2014 - Carlo Caione <carlo@caione.org>
22 + *
23 + * The code contained herein is licensed under the GNU General Public
24 + * License. You may obtain a copy of the GNU General Public License
25 + * Version 2 or later at the following locations:
26 + *
27 + * http://www.opensource.org/licenses/gpl-license.html
28 + * http://www.gnu.org/copyleft/gpl.html
29 + */
30 +
31 +       compatible = "x-powers,axp209";
32 +       interrupt-controller;
33 +       #interrupt-cells = <1>;
34 +
35 +       regulators {
36 +               dcdc-freq = "8";
37 +
38 +               axp_dcdc2: dcdc2 {
39 +                       regulator-min-microvolt = <700000>;
40 +                       regulator-max-microvolt = <2275000>;
41 +                       dcdc-workmode = <0>;
42 +                       regulator-always-on;
43 +               };
44 +
45 +               axp_dcdc3: dcdc3 {
46 +                       regulator-min-microvolt = <700000>;
47 +                       regulator-max-microvolt = <3500000>;
48 +                       dcdc-workmode = <0>;
49 +                       regulator-always-on;
50 +               };
51 +
52 +               axp_ldo1: ldo1 {
53 +                       regulator-min-microvolt = <1300000>;
54 +                       regulator-max-microvolt = <1300000>;
55 +               };
56 +
57 +               axp_ldo2: ldo2 {
58 +                       regulator-min-microvolt = <1800000>;
59 +                       regulator-max-microvolt = <3300000>;
60 +                       regulator-always-on;
61 +               };
62 +
63 +               axp_ldo3: ldo3 {
64 +                       regulator-min-microvolt = <700000>;
65 +                       regulator-max-microvolt = <3500000>;
66 +               };
67 +
68 +               axp_ldo4: ldo4 {
69 +                       regulator-min-microvolt = <1250000>;
70 +                       regulator-max-microvolt = <3300000>;
71 +               };
72 +
73 +               axp_ldo5: ldo5 {
74 +                       regulator-min-microvolt = <1800000>;
75 +                       regulator-max-microvolt = <3300000>;
76 +               };
77 +       };