diff options
author | Olof Johansson <olof@lixom.net> | 2013-02-17 19:31:51 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-02-17 19:31:51 -0500 |
commit | c56cc512e2aaf22c45ecd894489132e6a063fa7c (patch) | |
tree | 78c85e22c689e5975f9e1b76b3ff43f14027b642 /arch/arm | |
parent | dd8b5c8dac143f2898def5bd49b651c81fad776b (diff) | |
parent | 867dc8beba816695485f61c2c4ad80f11073c280 (diff) |
Merge tag 'sunxi-dt-for-3.9' of https://github.com/mripard/linux into next/dt
From Maxime Ripard:
Allwinner sunXi DT additions for 3.9
* tag 'sunxi-dt-for-3.9' of https://github.com/mripard/linux:
sunxi: a13-olinuxino: Add user LED to the device tree
sunxi: a10-cubieboard: Add user LEDs to the device tree
ARM: sunxi: Add device tree for Miniand Hackberry
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 26 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun4i-a10-hackberry.dts | 30 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 20 |
4 files changed, 77 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 43c044b86e13..4b80c5c5ede0 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -135,6 +135,7 @@ dtb-$(CONFIG_ARCH_SPEAR3XX)+= spear300-evb.dtb \ | |||
135 | spear320-hmi.dtb | 135 | spear320-hmi.dtb |
136 | dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb | 136 | dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb |
137 | dtb-$(CONFIG_ARCH_SUNXI) += sun4i-a10-cubieboard.dtb \ | 137 | dtb-$(CONFIG_ARCH_SUNXI) += sun4i-a10-cubieboard.dtb \ |
138 | sun4i-a10-hackberry.dtb \ | ||
138 | sun5i-a13-olinuxino.dtb | 139 | sun5i-a13-olinuxino.dtb |
139 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ | 140 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ |
140 | tegra20-iris-512.dtb \ | 141 | tegra20-iris-512.dtb \ |
diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index 5cab82540437..88e2dc13fd4d 100644 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts | |||
@@ -27,6 +27,15 @@ | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | soc { | 29 | soc { |
30 | pinctrl@01c20800 { | ||
31 | led_pins_cubieboard: led_pins@0 { | ||
32 | allwinner,pins = "PH20", "PH21"; | ||
33 | allwinner,function = "gpio_out"; | ||
34 | allwinner,drive = <1>; | ||
35 | allwinner,pull = <0>; | ||
36 | }; | ||
37 | }; | ||
38 | |||
30 | uart0: uart@01c28000 { | 39 | uart0: uart@01c28000 { |
31 | status = "okay"; | 40 | status = "okay"; |
32 | }; | 41 | }; |
@@ -35,4 +44,21 @@ | |||
35 | status = "okay"; | 44 | status = "okay"; |
36 | }; | 45 | }; |
37 | }; | 46 | }; |
47 | |||
48 | leds { | ||
49 | compatible = "gpio-leds"; | ||
50 | pinctrl-names = "default"; | ||
51 | pinctrl-0 = <&led_pins_cubieboard>; | ||
52 | |||
53 | blue { | ||
54 | label = "cubieboard::blue"; | ||
55 | gpios = <&pio 7 21 0>; /* LED1 */ | ||
56 | }; | ||
57 | |||
58 | green { | ||
59 | label = "cubieboard::green"; | ||
60 | gpios = <&pio 7 20 0>; /* LED2 */ | ||
61 | linux,default-trigger = "heartbeat"; | ||
62 | }; | ||
63 | }; | ||
38 | }; | 64 | }; |
diff --git a/arch/arm/boot/dts/sun4i-a10-hackberry.dts b/arch/arm/boot/dts/sun4i-a10-hackberry.dts new file mode 100644 index 000000000000..f84549ad791e --- /dev/null +++ b/arch/arm/boot/dts/sun4i-a10-hackberry.dts | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Copyright 2012 Maxime Ripard | ||
3 | * | ||
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | ||
5 | * | ||
6 | * The code contained herein is licensed under the GNU General Public | ||
7 | * License. You may obtain a copy of the GNU General Public License | ||
8 | * Version 2 or later at the following locations: | ||
9 | * | ||
10 | * http://www.opensource.org/licenses/gpl-license.html | ||
11 | * http://www.gnu.org/copyleft/gpl.html | ||
12 | */ | ||
13 | |||
14 | /dts-v1/; | ||
15 | /include/ "sun4i-a10.dtsi" | ||
16 | |||
17 | / { | ||
18 | model = "Miniand Hackberry"; | ||
19 | compatible = "miniand,hackberry", "allwinner,sun4i-a10"; | ||
20 | |||
21 | chosen { | ||
22 | bootargs = "earlyprintk console=ttyS0,115200"; | ||
23 | }; | ||
24 | |||
25 | soc { | ||
26 | uart0: uart@01c28000 { | ||
27 | status = "okay"; | ||
28 | }; | ||
29 | }; | ||
30 | }; | ||
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts index 498a091a4ea2..ff5d0cd81b95 100644 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts | |||
@@ -23,8 +23,28 @@ | |||
23 | }; | 23 | }; |
24 | 24 | ||
25 | soc { | 25 | soc { |
26 | pinctrl@01c20800 { | ||
27 | led_pins_olinuxino: led_pins@0 { | ||
28 | allwinner,pins = "PG9"; | ||
29 | allwinner,function = "gpio_out"; | ||
30 | allwinner,drive = <1>; | ||
31 | allwinner,pull = <0>; | ||
32 | }; | ||
33 | }; | ||
34 | |||
26 | uart1: uart@01c28400 { | 35 | uart1: uart@01c28400 { |
27 | status = "okay"; | 36 | status = "okay"; |
28 | }; | 37 | }; |
29 | }; | 38 | }; |
39 | |||
40 | leds { | ||
41 | compatible = "gpio-leds"; | ||
42 | pinctrl-names = "default"; | ||
43 | pinctrl-0 = <&led_pins_olinuxino>; | ||
44 | |||
45 | power { | ||
46 | gpios = <&pio 6 9 0>; | ||
47 | default-state = "on"; | ||
48 | }; | ||
49 | }; | ||
30 | }; | 50 | }; |