[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401297069-7423-6-git-send-email-maxime.ripard@free-electrons.com>
Date: Wed, 28 May 2014 19:11:09 +0200
From: Maxime Ripard <maxime.ripard@...e-electrons.com>
To: carlo@...one.org, Boris Brezillon <boris@...e-electrons.com>,
Mark Brown <broonie@...nel.org>, lgirdwood@...il.com,
lee.jones@...aro.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kevin.z.m.zh@...il.com, sunny@...winnertech.com,
shuge@...winnertech.com, zhuzhenhua@...winnertech.com,
Maxime Ripard <maxime.ripard@...e-electrons.com>
Subject: [PATCH 5/5] ARM: sun7i: cubieboard2: Enable the AXP209
Add the AXP209 PMIC with the regulators in use on the cubie2.
The RTC regulator can be disabled, but since the RTC driver doesn't grab the
regulator for now, the driver wouldn't work anymore.
Signed-off-by: Maxime Ripard <maxime.ripard@...e-electrons.com>
---
arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 41 +++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
index a5ad945197e8..1b9983b3f45e 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
@@ -76,6 +76,39 @@
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>;
+
+ regulators {
+ x-powers,dcdc-freq = <1500>;
+
+ vdd_cpu: dcdc2 {
+ vin-supply = <®_axp_ipsout>;
+ regulator-always-on;
+ };
+
+ vdd_dll: dcdc3 {
+ vin-supply = <®_axp_ipsout>;
+ regulator-always-on;
+ };
+
+ vdd_rtc: ldo1 {
+ vin-supply = <®_axp_ipsout>;
+ };
+
+ avcc: ldo2 {
+ vin-supply = <®_axp_ipsout>;
+ regulator-always-on;
+ };
+ };
+ };
};
i2c1: i2c@...2b000 {
@@ -124,4 +157,12 @@
reg_usb2_vbus: usb2-vbus {
status = "okay";
};
+
+ reg_axp_ipsout: axp_ipsout {
+ compatible = "regulator-fixed";
+ regulator-name = "axp-ipsout";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-always-on;
+ };
};
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists