From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/9] ARM: dts: sun7i: Add AXP209 support to various boards
Date: Mon, 30 Jun 2014 23:57:53 +0200 [thread overview]
Message-ID: <1404165479-23785-4-git-send-email-hdegoede@redhat.com> (raw)
In-Reply-To: <1404165479-23785-1-git-send-email-hdegoede@redhat.com>
From: Carlo Caione <carlo@caione.org>
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 at redhat.com: Drop the regulator bits for now]
Signed-off-by: Hans de Goede <hdegoede@redhat.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 a70f0b4..5368098 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
@@ -82,6 +82,16 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
+
+ axp209: pmic at 34 {
+ compatible = "x-powers,axp209";
+ reg = <0x34>;
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 8>;
+
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
};
i2c1: i2c at 01c2b000 {
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
index 634d04b..f9ab5d4 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
@@ -127,6 +127,16 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
+
+ axp209: pmic at 34 {
+ compatible = "x-powers,axp209";
+ reg = <0x34>;
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 8>;
+
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
};
i2c1: i2c at 01c2b000 {
diff --git a/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts b/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
index 15c7922..4ee6b44 100644
--- a/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
+++ b/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
@@ -111,6 +111,22 @@
status = "okay";
};
+ i2c0: i2c at 01c2ac00 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins_a>;
+ status = "okay";
+
+ axp209: pmic at 34 {
+ compatible = "x-powers,axp209";
+ reg = <0x34>;
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 8>;
+
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
+ };
+
gmac: ethernet at 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 99faff1..aa384b5 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
@@ -131,6 +131,16 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";
+
+ axp209: pmic at 34 {
+ compatible = "x-powers,axp209";
+ reg = <0x34>;
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 8>;
+
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ };
};
i2c1: i2c at 01c2b000 {
--
2.0.0
next prev parent reply other threads:[~2014-06-30 21:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 21:57 [PATCH 0/9] ARM: dts: sunxi: Various sunxi dts patches Hans de Goede
2014-06-30 21:57 ` [PATCH 1/9] ARM: dts: sunxi: Add #interrupt-cells to pinctrl nodes Hans de Goede
2014-06-30 21:57 ` [PATCH 2/9] ARM: dts: sun4i: Add AXP209 support to various boards Hans de Goede
2014-06-30 21:57 ` Hans de Goede [this message]
2014-06-30 21:57 ` [PATCH 4/9] ARM: dts: sun7i: Rename sun7i-a20-ir to sun4i-a10-ir Hans de Goede
2014-06-30 21:57 ` [PATCH 5/9] ARM: dts: sun7i: Add ir receiver support to a20-i12-tvbox Hans de Goede
2014-06-30 21:57 ` [PATCH 6/9] ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3 Hans de Goede
2014-07-01 2:22 ` Chen-Yu Tsai
2014-07-01 7:12 ` Hans de Goede
2014-07-01 7:21 ` Chen-Yu Tsai
2014-07-01 7:30 ` Hans de Goede
2014-07-01 7:59 ` Maxime Ripard
2014-06-30 21:57 ` [PATCH 7/9] ARM: dts: sun7i: Add new ba10-tvbox board Hans de Goede
2014-07-01 2:16 ` Chen-Yu Tsai
2014-07-01 7:06 ` [linux-sunxi] " Hans de Goede
2014-07-01 8:01 ` Maxime Ripard
2014-06-30 21:57 ` [PATCH 8/9] ARM: dts: sun4i: Add ir controller nodes and pinmux Hans de Goede
2014-06-30 21:57 ` [PATCH 9/9] ARM: dts: sun4i: Add ir node to various boards Hans de Goede
2014-07-01 8:06 ` [PATCH 0/9] ARM: dts: sunxi: Various sunxi dts patches Maxime Ripard
2014-07-01 8:58 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1404165479-23785-4-git-send-email-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).