5872d8448ae8e92a8b4e76d1dc12123db3248842
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 135-dt-sun5i-a13-add-olinuxino-micro.patch
1 From aad62992a2921436ec7c054f8b80bc916b8cc9d7 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Sat, 14 Dec 2013 16:26:17 +0100
4 Subject: [PATCH] ARM: dts: sun5i: Add new sun5i-a13-olinuxino-micro board
5
6 The A13-OLinuXino-MICRO is a small dev-board with the Allwinner A13 SoC:
7 https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino-MICRO/
8
9 Features:
10 A13 Cortex A8 processor at 1GHz, 3D Mali400 GPU
11 256 MB RAM (128Mbit x 16)
12 5VDC input power supply with own ICs, noise immune design
13 1 USB host
14 1 USB OTG which can power the board
15 SD-card connector for booting the Linux image
16 VGA video output
17 LCD signals available on connector so you still can use LCD if you disable VGA/HDMI
18 Audio output
19 Microphone input pads (no connector)
20
21 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
22 ---
23 arch/arm/boot/dts/Makefile | 1 +
24 arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 68 +++++++++++++++++++++++++
25 2 files changed, 69 insertions(+)
26 create mode 100644 arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
27
28 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
29 index d57c1a6..b663ed7 100644
30 --- a/arch/arm/boot/dts/Makefile
31 +++ b/arch/arm/boot/dts/Makefile
32 @@ -255,6 +255,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
33 sun4i-a10-hackberry.dtb \
34 sun5i-a10s-olinuxino-micro.dtb \
35 sun5i-a13-olinuxino.dtb \
36 + sun5i-a13-olinuxino-micro.dtb \
37 sun6i-a31-colombus.dtb \
38 sun7i-a20-cubieboard2.dtb \
39 sun7i-a20-cubietruck.dtb \
40 diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
41 new file mode 100644
42 index 0000000..fe2ce0a
43 --- /dev/null
44 +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
45 @@ -0,0 +1,68 @@
46 +/*
47 + * Copyright 2012 Maxime Ripard
48 + * Copyright 2013 Hans de Goede <hdegoede@redhat.com>
49 + *
50 + * Maxime Ripard <maxime.ripard@free-electrons.com>
51 + *
52 + * The code contained herein is licensed under the GNU General Public
53 + * License. You may obtain a copy of the GNU General Public License
54 + * Version 2 or later at the following locations:
55 + *
56 + * http://www.opensource.org/licenses/gpl-license.html
57 + * http://www.gnu.org/copyleft/gpl.html
58 + */
59 +
60 +/dts-v1/;
61 +/include/ "sun5i-a13.dtsi"
62 +
63 +/ {
64 + model = "Olimex A13-Olinuxino Micro";
65 + compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13";
66 +
67 + soc@01c00000 {
68 + pinctrl@01c20800 {
69 + led_pins_olinuxinom: led_pins@0 {
70 + allwinner,pins = "PG9";
71 + allwinner,function = "gpio_out";
72 + allwinner,drive = <1>;
73 + allwinner,pull = <0>;
74 + };
75 + };
76 +
77 + uart1: serial@01c28400 {
78 + pinctrl-names = "default";
79 + pinctrl-0 = <&uart1_pins_b>;
80 + status = "okay";
81 + };
82 +
83 + i2c0: i2c@01c2ac00 {
84 + pinctrl-names = "default";
85 + pinctrl-0 = <&i2c0_pins_a>;
86 + status = "okay";
87 + };
88 +
89 + i2c1: i2c@01c2b000 {
90 + pinctrl-names = "default";
91 + pinctrl-0 = <&i2c1_pins_a>;
92 + status = "okay";
93 + };
94 +
95 + i2c2: i2c@01c2b400 {
96 + pinctrl-names = "default";
97 + pinctrl-0 = <&i2c2_pins_a>;
98 + status = "okay";
99 + };
100 + };
101 +
102 + leds {
103 + compatible = "gpio-leds";
104 + pinctrl-names = "default";
105 + pinctrl-0 = <&led_pins_olinuxinom>;
106 +
107 + power {
108 + label = "a13-olinuxino-micro:green:power";
109 + gpios = <&pio 6 9 0>;
110 + default-state = "on";
111 + };
112 + };
113 +};
114 --
115 1.8.5.1
116