]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: sun8i: a83t: h8homlet-v2: Enable PMIC part of AXP818 PMIC
authorChen-Yu Tsai <wens@csie.org>
Thu, 20 Jul 2017 08:01:02 +0000 (16:01 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 8 Aug 2017 04:04:00 +0000 (12:04 +0800)
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>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts

index 7afbaa4eea8dd1556ccaf85f211860bfb3832907..7e92baa63f1c13764c3205aa2fcdf956efab5f7a 100644 (file)
@@ -78,6 +78,17 @@ &mmc2 {
        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>;