|
|
|
From d14c5523653ca6ce9f1487922c8ab4e571d17b62 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
|
Date: Tue, 11 Mar 2014 16:51:44 +0100
|
|
|
|
Subject: [PATCH] ARM: sun4i: dt: Add AXP209 support to various boards
|
|
|
|
|
|
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
|
---
|
|
|
|
arch/arm/boot/dts/sun4i-a10-a1000.dts | 9 +++++++++
|
|
|
|
arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 9 +++++++++
|
|
|
|
arch/arm/boot/dts/sun4i-a10-hackberry.dts | 15 +++++++++++++++
|
|
|
|
arch/arm/boot/dts/sun4i-a10-inet97fv2.dts | 9 +++++++++
|
|
|
|
arch/arm/boot/dts/sun4i-a10-mini-xplus.dts | 15 +++++++++++++++
|
|
|
|
arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 15 +++++++++++++++
|
|
|
|
arch/arm/boot/dts/sun4i-a10-pcduino.dts | 9 +++++++++
|
|
|
|
7 files changed, 81 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
|
|
|
|
@@ -65,6 +65,15 @@
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
+
|
|
|
|
+ axp: axp20x@34 {
|
|
|
|
+ reg = <0x34>;
|
|
|
|
+ interrupts = <0>;
|
|
|
|
+
|
|
|
|
+ axp,system-power-controller;
|
|
|
|
+
|
|
|
|
+ /include/ "x-powers-axp209.dtsi"
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
|
|
|
|
@@ -88,6 +88,15 @@
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
+
|
|
|
|
+ axp: axp20x@34 {
|
|
|
|
+ reg = <0x34>;
|
|
|
|
+ interrupts = <0>;
|
|
|
|
+
|
|
|
|
+ axp,system-power-controller;
|
|
|
|
+
|
|
|
|
+ /include/ "x-powers-axp209.dtsi"
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@01c2b000 {
|
|
|
|
--- a/arch/arm/boot/dts/sun4i-a10-hackberry.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun4i-a10-hackberry.dts
|
|
|
|
@@ -82,6 +82,21 @@
|
|
|
|
pinctrl-0 = <&uart0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ i2c0: i2c@01c2ac00 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ axp: axp20x@34 {
|
|
|
|
+ reg = <0x34>;
|
|
|
|
+ interrupts = <0>;
|
|
|
|
+
|
|
|
|
+ axp,system-power-controller;
|
|
|
|
+
|
|
|
|
+ /include/ "x-powers-axp209.dtsi"
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
regulators {
|
|
|
|
--- a/arch/arm/boot/dts/sun4i-a10-mini-xplus.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun4i-a10-mini-xplus.dts
|
|
|
|
@@ -55,6 +55,21 @@
|
|
|
|
pinctrl-0 = <&uart0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ i2c0: i2c@01c2ac00 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ axp: axp20x@34 {
|
|
|
|
+ reg = <0x34>;
|
|
|
|
+ interrupts = <0>;
|
|
|
|
+
|
|
|
|
+ axp,system-power-controller;
|
|
|
|
+
|
|
|
|
+ /include/ "x-powers-axp209.dtsi"
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
reg_usb1_vbus: usb1-vbus {
|
|
|
|
--- a/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
|
|
|
|
@@ -90,6 +90,21 @@
|
|
|
|
pinctrl-0 = <&uart0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ i2c0: i2c@01c2ac00 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ axp: axp20x@34 {
|
|
|
|
+ reg = <0x34>;
|
|
|
|
+ interrupts = <0>;
|
|
|
|
+
|
|
|
|
+ axp,system-power-controller;
|
|
|
|
+
|
|
|
|
+ /include/ "x-powers-axp209.dtsi"
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
--- a/arch/arm/boot/dts/sun4i-a10-pcduino.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun4i-a10-pcduino.dts
|
|
|
|
@@ -74,6 +74,15 @@
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
+
|
|
|
|
+ axp: axp20x@34 {
|
|
|
|
+ reg = <0x34>;
|
|
|
|
+ interrupts = <0>;
|
|
|
|
+
|
|
|
|
+ axp,system-power-controller;
|
|
|
|
+
|
|
|
|
+ /include/ "x-powers-axp209.dtsi"
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|