kernel/generic: add ledtrig support to libata
[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 --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
18 +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
19 @@ -74,6 +74,16 @@
20                         pinctrl-names = "default";
21                         pinctrl-0 = <&i2c0_pins_a>;
22                         status = "okay";
23 +
24 +                       axp: axp20x@34 {
25 +                               reg = <0x34>;
26 +                               interrupt-parent = <&nmi_intc>;
27 +                               interrupts = <0 8>;
28 +
29 +                               axp,system-power-controller;
30 +
31 +                               /include/ "x-powers-axp209.dtsi"
32 +                       };
33                 };
34  
35                 i2c1: i2c@01c2b000 {