sunxi: initial 3.14 patchset
[openwrt.git] / target / linux / sunxi / patches-3.14 / 214-1-dt-sun7i-add-axp209-to-cubieboard2.patch
1 From c792a05efcfebcf94ba925135a778961700965f5 Mon Sep 17 00:00:00 2001
2 From: Carlo Caione <carlo@caione.org>
3 Date: Sat, 1 Mar 2014 17:45:48 +0100
4 Subject: [PATCH] ARM: sun7i: dt: Add AXP209 support to the cubieboard2
5
6 AXP209 is the PMU used by Cubieboard2. This patch enables the AXP209
7 support in the dts file.
8
9 This patch requires: "ARM: sun7i/sun6i: irqchip: Add irqchip driver for
10 NMI controller"
11
12 Signed-off-by: Carlo Caione <carlo@caione.org>
13 ---
14  arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 10 ++++++++++
15  1 file changed, 10 insertions(+)
16
17 diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
18 index cd9d3c2..40e9c3a 100644
19 --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
20 +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
21 @@ -74,6 +74,16 @@
22                         pinctrl-names = "default";
23                         pinctrl-0 = <&i2c0_pins_a>;
24                         status = "okay";
25 +
26 +                       axp: axp20x@34 {
27 +                               reg = <0x34>;
28 +                               interrupt-parent = <&nmi_intc>;
29 +                               interrupts = <0 8>;
30 +
31 +                               axp,system-power-controller;
32 +
33 +                               /include/ "x-powers-axp209.dtsi"
34 +                       };
35                 };
36  
37                 i2c1: i2c@01c2b000 {
38 -- 
39 2.0.3
40