Commit b9f4bc30 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Maxime Ripard

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

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: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 2ca5fbc9
...@@ -88,6 +88,10 @@ &codec { ...@@ -88,6 +88,10 @@ &codec {
status = "okay"; status = "okay";
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&ehci0 { &ehci0 {
status = "okay"; status = "okay";
}; };
...@@ -114,13 +118,9 @@ &i2c0 { ...@@ -114,13 +118,9 @@ &i2c0 {
status = "okay"; status = "okay";
axp209: pmic@34 { axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>; reg = <0x34>;
interrupt-parent = <&nmi_intc>; interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#interrupt-cells = <1>;
}; };
}; };
...@@ -254,6 +254,29 @@ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { ...@@ -254,6 +254,29 @@ usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
}; };
}; };
#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 { &reg_ahci_5v {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment