You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
235 lines
6.6 KiB
235 lines
6.6 KiB
11 years ago
|
From 5bfbb46a8685de4c67f084aea983fc9a50c882ad Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?David=20Lanzend=C3=B6rfer?= <david.lanzendoerfer@o2s.ch>
|
||
|
Date: Sat, 15 Feb 2014 14:02:29 +0100
|
||
11 years ago
|
Subject: [PATCH] ARM: dts: sun5i: Add support for mmc
|
||
11 years ago
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
11 years ago
|
|
||
11 years ago
|
Signed-off-by: David Lanzendörfer <david.lanzendoerfer@o2s.ch>
|
||
11 years ago
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
||
|
---
|
||
11 years ago
|
arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 30 ++++++++++++++++
|
||
|
arch/arm/boot/dts/sun5i-a10s.dtsi | 44 ++++++++++++++++++++++++
|
||
|
arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 15 ++++++++
|
||
|
arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 15 ++++++++
|
||
|
arch/arm/boot/dts/sun5i-a13.dtsi | 37 ++++++++++++++++++++
|
||
|
5 files changed, 141 insertions(+)
|
||
11 years ago
|
|
||
11 years ago
|
diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
|
||
|
index 3c9f8b3..5c7b454 100644
|
||
11 years ago
|
--- a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
|
||
|
+++ b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
|
||
11 years ago
|
@@ -34,7 +34,37 @@
|
||
11 years ago
|
};
|
||
|
};
|
||
|
|
||
|
+ mmc0: mmc@01c0f000 {
|
||
11 years ago
|
+ pinctrl-names = "default", "default";
|
||
11 years ago
|
+ pinctrl-0 = <&mmc0_pins_a>;
|
||
|
+ pinctrl-1 = <&mmc0_cd_pin_olinuxino_micro>;
|
||
|
+ cd-gpios = <&pio 6 1 0>; /* PG1 */
|
||
|
+ status = "okay";
|
||
|
+ };
|
||
|
+
|
||
|
+ mmc1: mmc@01c10000 {
|
||
11 years ago
|
+ pinctrl-names = "default", "default";
|
||
11 years ago
|
+ pinctrl-0 = <&mmc1_pins_a>;
|
||
|
+ pinctrl-1 = <&mmc1_cd_pin_olinuxino_micro>;
|
||
|
+ cd-gpios = <&pio 6 13 0>; /* PG13 */
|
||
|
+ status = "okay";
|
||
|
+ };
|
||
|
+
|
||
|
pinctrl@01c20800 {
|
||
|
+ mmc0_cd_pin_olinuxino_micro: mmc0_cd_pin@0 {
|
||
|
+ allwinner,pins = "PG1";
|
||
|
+ allwinner,function = "gpio_in";
|
||
|
+ allwinner,drive = <0>;
|
||
11 years ago
|
+ allwinner,pull = <1>;
|
||
11 years ago
|
+ };
|
||
|
+
|
||
|
+ mmc1_cd_pin_olinuxino_micro: mmc1_cd_pin@0 {
|
||
|
+ allwinner,pins = "PG13";
|
||
|
+ allwinner,function = "gpio_in";
|
||
|
+ allwinner,drive = <0>;
|
||
11 years ago
|
+ allwinner,pull = <1>;
|
||
11 years ago
|
+ };
|
||
|
+
|
||
|
led_pins_olinuxino: led_pins@0 {
|
||
|
allwinner,pins = "PE3";
|
||
|
allwinner,function = "gpio_out";
|
||
11 years ago
|
diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi
|
||
|
index 3a9b33d..3a7039e 100644
|
||
11 years ago
|
--- a/arch/arm/boot/dts/sun5i-a10s.dtsi
|
||
|
+++ b/arch/arm/boot/dts/sun5i-a10s.dtsi
|
||
11 years ago
|
@@ -299,6 +299,36 @@
|
||
11 years ago
|
#size-cells = <0>;
|
||
|
};
|
||
|
|
||
|
+ mmc0: mmc@01c0f000 {
|
||
|
+ compatible = "allwinner,sun5i-a13-mmc";
|
||
|
+ reg = <0x01c0f000 0x1000>;
|
||
|
+ clocks = <&ahb_gates 8>, <&mmc0_clk>;
|
||
|
+ clock-names = "ahb", "mod";
|
||
|
+ interrupts = <32>;
|
||
|
+ bus-width = <4>;
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
|
+
|
||
|
+ mmc1: mmc@01c10000 {
|
||
|
+ compatible = "allwinner,sun5i-a13-mmc";
|
||
|
+ reg = <0x01c10000 0x1000>;
|
||
|
+ clocks = <&ahb_gates 9>, <&mmc1_clk>;
|
||
|
+ clock-names = "ahb", "mod";
|
||
|
+ interrupts = <33>;
|
||
|
+ bus-width = <4>;
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
11 years ago
|
+
|
||
|
+ mmc2: mmc@01c11000 {
|
||
|
+ compatible = "allwinner,sun5i-a13-mmc";
|
||
|
+ reg = <0x01c11000 0x1000>;
|
||
|
+ clocks = <&ahb_gates 10>, <&mmc2_clk>;
|
||
|
+ clock-names = "ahb", "mod";
|
||
|
+ interrupts = <34>;
|
||
|
+ bus-width = <4>;
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
11 years ago
|
+
|
||
|
intc: interrupt-controller@01c20400 {
|
||
|
compatible = "allwinner,sun4i-ic";
|
||
|
reg = <0x01c20400 0x400>;
|
||
11 years ago
|
@@ -369,6 +399,20 @@
|
||
11 years ago
|
allwinner,drive = <0>;
|
||
|
allwinner,pull = <0>;
|
||
|
};
|
||
|
+
|
||
|
+ mmc0_pins_a: mmc0@0 {
|
||
|
+ allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
|
||
|
+ allwinner,function = "mmc0";
|
||
|
+ allwinner,drive = <3>;
|
||
|
+ allwinner,pull = <0>;
|
||
|
+ };
|
||
|
+
|
||
|
+ mmc1_pins_a: mmc1@0 {
|
||
|
+ allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
|
||
|
+ allwinner,function = "mmc1";
|
||
|
+ allwinner,drive = <3>;
|
||
|
+ allwinner,pull = <0>;
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
timer@01c20c00 {
|
||
11 years ago
|
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
|
||
|
index fe2ce0a..2f08bb2 100644
|
||
11 years ago
|
--- a/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
|
||
|
+++ b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
|
||
11 years ago
|
@@ -20,7 +20,22 @@
|
||
11 years ago
|
compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13";
|
||
|
|
||
|
soc@01c00000 {
|
||
|
+ mmc0: mmc@01c0f000 {
|
||
11 years ago
|
+ pinctrl-names = "default", "default";
|
||
11 years ago
|
+ pinctrl-0 = <&mmc0_pins_a>;
|
||
|
+ pinctrl-1 = <&mmc0_cd_pin_olinuxinom>;
|
||
|
+ cd-gpios = <&pio 6 0 0>; /* PG0 */
|
||
|
+ status = "okay";
|
||
|
+ };
|
||
|
+
|
||
|
pinctrl@01c20800 {
|
||
|
+ mmc0_cd_pin_olinuxinom: mmc0_cd_pin@0 {
|
||
|
+ allwinner,pins = "PG0";
|
||
|
+ allwinner,function = "gpio_in";
|
||
|
+ allwinner,drive = <0>;
|
||
11 years ago
|
+ allwinner,pull = <1>;
|
||
11 years ago
|
+ };
|
||
|
+
|
||
|
led_pins_olinuxinom: led_pins@0 {
|
||
|
allwinner,pins = "PG9";
|
||
|
allwinner,function = "gpio_out";
|
||
11 years ago
|
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
|
||
|
index a4ba5ff..a7280f5 100644
|
||
11 years ago
|
--- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
|
||
|
+++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
|
||
11 years ago
|
@@ -19,7 +19,22 @@
|
||
|
compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13";
|
||
11 years ago
|
|
||
|
soc@01c00000 {
|
||
|
+ mmc0: mmc@01c0f000 {
|
||
11 years ago
|
+ pinctrl-names = "default", "default";
|
||
11 years ago
|
+ pinctrl-0 = <&mmc0_pins_a>;
|
||
|
+ pinctrl-1 = <&mmc0_cd_pin_olinuxino>;
|
||
|
+ cd-gpios = <&pio 6 0 0>; /* PG0 */
|
||
|
+ status = "okay";
|
||
|
+ };
|
||
|
+
|
||
|
pinctrl@01c20800 {
|
||
|
+ mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 {
|
||
|
+ allwinner,pins = "PG0";
|
||
|
+ allwinner,function = "gpio_in";
|
||
|
+ allwinner,drive = <0>;
|
||
11 years ago
|
+ allwinner,pull = <1>;
|
||
11 years ago
|
+ };
|
||
|
+
|
||
|
led_pins_olinuxino: led_pins@0 {
|
||
|
allwinner,pins = "PG9";
|
||
|
allwinner,function = "gpio_out";
|
||
11 years ago
|
diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
|
||
|
index 9612c52..63a35b8 100644
|
||
11 years ago
|
--- a/arch/arm/boot/dts/sun5i-a13.dtsi
|
||
|
+++ b/arch/arm/boot/dts/sun5i-a13.dtsi
|
||
11 years ago
|
@@ -281,6 +281,36 @@
|
||
11 years ago
|
#size-cells = <1>;
|
||
|
ranges;
|
||
|
|
||
|
+ mmc0: mmc@01c0f000 {
|
||
|
+ compatible = "allwinner,sun5i-a13-mmc";
|
||
|
+ reg = <0x01c0f000 0x1000>;
|
||
|
+ clocks = <&ahb_gates 8>, <&mmc0_clk>;
|
||
|
+ clock-names = "ahb", "mod";
|
||
|
+ interrupts = <32>;
|
||
|
+ bus-width = <4>;
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
11 years ago
|
+
|
||
|
+ mmc1: mmc@01c10000 {
|
||
|
+ compatible = "allwinner,sun5i-a13-mmc";
|
||
|
+ reg = <0x01c10000 0x1000>;
|
||
|
+ clocks = <&ahb_gates 9>, <&mmc1_clk>;
|
||
|
+ clock-names = "ahb", "mod";
|
||
|
+ interrupts = <33>;
|
||
|
+ bus-width = <4>;
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
|
+
|
||
|
+ mmc2: mmc@01c11000 {
|
||
|
+ compatible = "allwinner,sun5i-a13-mmc";
|
||
|
+ reg = <0x01c11000 0x1000>;
|
||
|
+ clocks = <&ahb_gates 10>, <&mmc2_clk>;
|
||
|
+ clock-names = "ahb", "mod";
|
||
|
+ interrupts = <34>;
|
||
|
+ bus-width = <4>;
|
||
|
+ status = "disabled";
|
||
|
+ };
|
||
11 years ago
|
+
|
||
|
intc: interrupt-controller@01c20400 {
|
||
|
compatible = "allwinner,sun4i-ic";
|
||
|
reg = <0x01c20400 0x400>;
|
||
11 years ago
|
@@ -333,6 +363,13 @@
|
||
11 years ago
|
allwinner,drive = <0>;
|
||
|
allwinner,pull = <0>;
|
||
|
};
|
||
|
+
|
||
|
+ mmc0_pins_a: mmc0@0 {
|
||
|
+ allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
|
||
|
+ allwinner,function = "mmc0";
|
||
|
+ allwinner,drive = <3>;
|
||
|
+ allwinner,pull = <0>;
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
timer@01c20c00 {
|
||
11 years ago
|
--
|
||
|
1.8.5.5
|
||
|
|