upgrade 3.13 targets to 3.13.2, refresh patches
[openwrt/staging/mkresin.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 --- a/arch/arm/boot/dts/Makefile
29 +++ b/arch/arm/boot/dts/Makefile
30 @@ -255,6 +255,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
31 sun4i-a10-hackberry.dtb \
32 sun5i-a10s-olinuxino-micro.dtb \
33 sun5i-a13-olinuxino.dtb \
34 + sun5i-a13-olinuxino-micro.dtb \
35 sun6i-a31-colombus.dtb \
36 sun7i-a20-cubieboard2.dtb \
37 sun7i-a20-cubietruck.dtb \
38 --- /dev/null
39 +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
40 @@ -0,0 +1,68 @@
41 +/*
42 + * Copyright 2012 Maxime Ripard
43 + * Copyright 2013 Hans de Goede <hdegoede@redhat.com>
44 + *
45 + * Maxime Ripard <maxime.ripard@free-electrons.com>
46 + *
47 + * The code contained herein is licensed under the GNU General Public
48 + * License. You may obtain a copy of the GNU General Public License
49 + * Version 2 or later at the following locations:
50 + *
51 + * http://www.opensource.org/licenses/gpl-license.html
52 + * http://www.gnu.org/copyleft/gpl.html
53 + */
54 +
55 +/dts-v1/;
56 +/include/ "sun5i-a13.dtsi"
57 +
58 +/ {
59 + model = "Olimex A13-Olinuxino Micro";
60 + compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13";
61 +
62 + soc@01c00000 {
63 + pinctrl@01c20800 {
64 + led_pins_olinuxinom: led_pins@0 {
65 + allwinner,pins = "PG9";
66 + allwinner,function = "gpio_out";
67 + allwinner,drive = <1>;
68 + allwinner,pull = <0>;
69 + };
70 + };
71 +
72 + uart1: serial@01c28400 {
73 + pinctrl-names = "default";
74 + pinctrl-0 = <&uart1_pins_b>;
75 + status = "okay";
76 + };
77 +
78 + i2c0: i2c@01c2ac00 {
79 + pinctrl-names = "default";
80 + pinctrl-0 = <&i2c0_pins_a>;
81 + status = "okay";
82 + };
83 +
84 + i2c1: i2c@01c2b000 {
85 + pinctrl-names = "default";
86 + pinctrl-0 = <&i2c1_pins_a>;
87 + status = "okay";
88 + };
89 +
90 + i2c2: i2c@01c2b400 {
91 + pinctrl-names = "default";
92 + pinctrl-0 = <&i2c2_pins_a>;
93 + status = "okay";
94 + };
95 + };
96 +
97 + leds {
98 + compatible = "gpio-leds";
99 + pinctrl-names = "default";
100 + pinctrl-0 = <&led_pins_olinuxinom>;
101 +
102 + power {
103 + label = "a13-olinuxino-micro:green:power";
104 + gpios = <&pio 6 9 0>;
105 + default-state = "on";
106 + };
107 + };
108 +};