120 lines
3.6 KiB
Diff
120 lines
3.6 KiB
Diff
From e0158776b23fba49749b776e4bb813572ea911f4 Mon Sep 17 00:00:00 2001
|
|
From: Carlo Caione <carlo@caione.org>
|
|
Date: Mon, 30 Jun 2014 23:57:53 +0200
|
|
Subject: [PATCH 2/7] ARM: dts: sun7i: Add AXP209 support to various boards
|
|
Origin: https://git.kernel.org/linus/ec0c933d972ba69f06251f7d215723f61535fc16
|
|
|
|
At a node for the axp209, and where necessary the i2c controller to the dts
|
|
for various boards. Note the axp209 regulators are omitted as we don't have
|
|
any use for them yet, and on some boards were not sure how exactly they are
|
|
wired up.
|
|
|
|
Adding support for just the axp209 without the regulators is still useful, as
|
|
it will give us power-button and poweroff support.
|
|
|
|
Signed-off-by: Carlo Caione <carlo@caione.org>
|
|
[hdegoede@redhat.com: Drop the regulator bits for now]
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
|
|
---
|
|
arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 10 ++++++++++
|
|
arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 10 ++++++++++
|
|
arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts | 16 ++++++++++++++++
|
|
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 10 ++++++++++
|
|
4 files changed, 46 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
|
|
index a5ad945..d4648cf 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
|
|
@@ -76,6 +76,16 @@
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c0_pins_a>;
|
|
status = "okay";
|
|
+
|
|
+ axp209: pmic@34 {
|
|
+ compatible = "x-powers,axp209";
|
|
+ reg = <0x34>;
|
|
+ interrupt-parent = <&nmi_intc>;
|
|
+ interrupts = <0 8>;
|
|
+
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <1>;
|
|
+ };
|
|
};
|
|
|
|
i2c1: i2c@01c2b000 {
|
|
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
|
|
index b87fea9..96aee60 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
|
|
@@ -110,6 +110,16 @@
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c0_pins_a>;
|
|
status = "okay";
|
|
+
|
|
+ axp209: pmic@34 {
|
|
+ compatible = "x-powers,axp209";
|
|
+ reg = <0x34>;
|
|
+ interrupt-parent = <&nmi_intc>;
|
|
+ interrupts = <0 8>;
|
|
+
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <1>;
|
|
+ };
|
|
};
|
|
|
|
i2c1: i2c@01c2b000 {
|
|
diff --git a/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts b/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
|
|
index b77308e..cba1567 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
|
|
@@ -100,6 +100,22 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+ i2c0: i2c@01c2ac00 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&i2c0_pins_a>;
|
|
+ status = "okay";
|
|
+
|
|
+ axp209: pmic@34 {
|
|
+ compatible = "x-powers,axp209";
|
|
+ reg = <0x34>;
|
|
+ interrupt-parent = <&nmi_intc>;
|
|
+ interrupts = <0 8>;
|
|
+
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
gmac: ethernet@01c50000 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&gmac_pins_mii_a>;
|
|
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
|
|
index b759630..9d669cdf 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
|
|
@@ -122,6 +122,16 @@
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c0_pins_a>;
|
|
status = "okay";
|
|
+
|
|
+ axp209: pmic@34 {
|
|
+ compatible = "x-powers,axp209";
|
|
+ reg = <0x34>;
|
|
+ interrupt-parent = <&nmi_intc>;
|
|
+ interrupts = <0 8>;
|
|
+
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <1>;
|
|
+ };
|
|
};
|
|
|
|
i2c1: i2c@01c2b000 {
|
|
--
|
|
2.1.4
|
|
|