From: Chen-Yu Tsai <wens@csie.org>
To: Lee Jones <lee.jones@linaro.org>,
Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@googlegroups.com
Subject: [PATCH v2 8/9] ARM: sun8i: a83t: h8homlet-v2: Enable PMIC part of AXP818 PMIC
Date: Wed, 26 Jul 2017 16:28:31 +0800 [thread overview]
Message-ID: <20170726082832.16789-9-wens@csie.org> (raw)
In-Reply-To: <20170726082832.16789-1-wens@csie.org>
The AXP813/AXP818 PMICs used with the A83T/H8 SoCs are actually 2 dies
in one package sharing the serial bus (I2C/RSB) pins. One die is the
actual PMIC. The other is an AC100 codec / RTC combo chip.
This patch enables the RSB controller and adds a device node for the
PMIC die to the h8homlet-v2 device tree. Since the AXP813 and AXP818
are virtually identical, this patch uses the compatible string for
the former as a fallback.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts
index 7afbaa4eea8d..7e92baa63f1c 100644
--- a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts
@@ -78,6 +78,17 @@
status = "okay";
};
+&r_rsb {
+ status = "okay";
+
+ axp81x: pmic@3a3 {
+ compatible = "x-powers,axp818", "x-powers,axp813";
+ reg = <0x3a3>;
+ interrupt-parent = <&r_intc>;
+ interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+ };
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pb_pins>;
--
2.13.3
next prev parent reply other threads:[~2017-07-26 8:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 8:28 [PATCH v2 0/9] mfd: axp20x: Add basic support for AXP813 Chen-Yu Tsai
2017-07-26 8:28 ` [PATCH v2 1/9] dt-bindings: mfd: axp20x: Add AXP806 to supported list of chips Chen-Yu Tsai
2017-08-07 15:43 ` Lee Jones
2017-07-26 8:28 ` [PATCH v2 2/9] dt-bindings: mfd: axp20x: Introduce bindings for AXP813 Chen-Yu Tsai
2017-08-07 15:43 ` Lee Jones
2017-07-26 8:28 ` [PATCH v2 3/9] mfd: axp20x: Add support for AXP813 PMIC Chen-Yu Tsai
2017-08-07 15:43 ` Lee Jones
2017-07-26 8:28 ` [PATCH v2 4/9] mfd: axp20x: use correct platform device id for many PEK Chen-Yu Tsai
2017-08-07 15:43 ` Lee Jones
2017-07-26 8:28 ` [PATCH v2 5/9] ARM: sun8i: a83t: Add device node and pinmux setting for RSB controller Chen-Yu Tsai
2017-07-26 8:28 ` [PATCH v2 6/9] ARM: sun8i: a83t: cubietruck-plus: Enable PMIC part of AXP818 PMIC Chen-Yu Tsai
2017-07-26 8:28 ` [PATCH v2 7/9] ARM: sun8i: a83t: cubietruck-plus: Enable AC100 combo chip in " Chen-Yu Tsai
2017-07-26 8:28 ` Chen-Yu Tsai [this message]
2017-07-26 8:28 ` [PATCH v2 9/9] ARM: sun8i: a83t: h8homlet-v2: " Chen-Yu Tsai
2017-07-26 8:32 ` [PATCH v2 0/9] mfd: axp20x: Add basic support for AXP813 Maxime Ripard
2017-08-08 4:05 ` Chen-Yu Tsai
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=20170726082832.16789-9-wens@csie.org \
--to=wens@csie.org \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=maxime.ripard@free-electrons.com \
/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).