Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1609232 > unrolled thread

[PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro

Started byEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
First post2017-03-25 22:10 +0100
Last post2017-03-27 10:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> - 2017-03-25 22:10 +0100
    Re: [PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-03-27 10:50 +0200

#1609232 — [PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro

FromEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Date2017-03-25 22:10 +0100
Subject[PATCH] ARM: dts: sun7i: Use axp209.dtsi on A20-OLinuXino-Micro
Message-ID<tp16F-6tM-3@gated-at.bofh.it>
This commit makes use of the axp209.dtsi file to define the
AXP209 PMIC. While here, define the rails that are enabled on
this board.

Tested checking the regulator voltage varies according to the
CPU frequency.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
---
 arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 31 +++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index 6e868b24b83f..def0ad8395bb 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
@@ -88,6 +88,10 @@
 	status = "okay";
 };
 
+&cpu0 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
 &ehci0 {
 	status = "okay";
 };
@@ -114,13 +118,9 @@
 	status = "okay";
 
 	axp209: pmic@34 {
-		compatible = "x-powers,axp209";
 		reg = <0x34>;
 		interrupt-parent = <&nmi_intc>;
 		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
-
-		interrupt-controller;
-		#interrupt-cells = <1>;
 	};
 };
 
@@ -254,6 +254,29 @@
 	};
 };
 
+#include "axp209.dtsi"
+
+&reg_dcdc2 {
+	regulator-always-on;
+	regulator-min-microvolt = <1000000>;
+	regulator-max-microvolt = <1400000>;
+	regulator-name = "vdd-cpu";
+};
+
+&reg_dcdc3 {
+	regulator-always-on;
+	regulator-min-microvolt = <1000000>;
+	regulator-max-microvolt = <1400000>;
+	regulator-name = "vdd-int-dll";
+};
+
+&reg_ldo2 {
+	regulator-always-on;
+	regulator-min-microvolt = <3000000>;
+	regulator-max-microvolt = <3000000>;
+	regulator-name = "avcc";
+};
+
 &reg_ahci_5v {
 	status = "okay";
 };
-- 
2.11.0

[toc] | [next] | [standalone]


#1609577

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-03-27 10:50 +0200
Message-ID<tpyvD-5he-11@gated-at.bofh.it>
In reply to#1609232

[Multipart message — attachments visible in raw view] — view raw

On Sat, Mar 25, 2017 at 06:05:33PM -0300, Ezequiel Garcia wrote:
> This commit makes use of the axp209.dtsi file to define the
> AXP209 PMIC. While here, define the rails that are enabled on
> this board.
> 
> Tested checking the regulator voltage varies according to the
> CPU frequency.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>

Applied, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web