kernel: update 3.14 to 3.14.18
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 107-dt-sun4i-add-a10-lime.patch
1 From a1c70ed831e4d5356618834202b0da3aa34e218e Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Fri, 10 Jan 2014 23:23:06 +0100
4 Subject: [PATCH] ARM: sun4i: dt: Add support for the A10-OLinuXino-LIME board
5
6 This add support for the A10-OLinuXino-LIME:
7 https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME
8
9 A low cost Allwinner A10 based dev-board, with sata, ethernet, hdmi and 2x USB.
10
11 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 ---
13 arch/arm/boot/dts/Makefile | 1 +
14 arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 111 +++++++++++++++++++++++++
15 2 files changed, 112 insertions(+)
16 create mode 100644 arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
17
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -284,6 +284,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
21 sun4i-a10-cubieboard.dtb \
22 sun4i-a10-mini-xplus.dtb \
23 sun4i-a10-hackberry.dtb \
24 + sun4i-a10-olinuxino-lime.dtb \
25 sun4i-a10-pcduino.dtb \
26 sun5i-a10s-olinuxino-micro.dtb \
27 sun5i-a13-olinuxino.dtb \
28 --- /dev/null
29 +++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
30 @@ -0,0 +1,111 @@
31 +/*
32 + * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
33 + *
34 + * The code contained herein is licensed under the GNU General Public
35 + * License. You may obtain a copy of the GNU General Public License
36 + * Version 2 or later at the following locations:
37 + *
38 + * http://www.opensource.org/licenses/gpl-license.html
39 + * http://www.gnu.org/copyleft/gpl.html
40 + */
41 +
42 +/dts-v1/;
43 +/include/ "sun4i-a10.dtsi"
44 +/include/ "sunxi-common-regulators.dtsi"
45 +
46 +/ {
47 + model = "Olimex A10-OLinuXino-LIME";
48 + compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
49 +
50 + soc@01c00000 {
51 + emac: ethernet@01c0b000 {
52 + pinctrl-names = "default";
53 + pinctrl-0 = <&emac_pins_a>;
54 + phy = <&phy1>;
55 + status = "okay";
56 + };
57 +
58 + mdio@01c0b080 {
59 + status = "okay";
60 +
61 + phy1: ethernet-phy@1 {
62 + reg = <1>;
63 + };
64 + };
65 +
66 + usbphy: phy@01c13400 {
67 + usb1_vbus-supply = <&reg_usb1_vbus>;
68 + usb2_vbus-supply = <&reg_usb2_vbus>;
69 + status = "okay";
70 + };
71 +
72 + ehci0: usb@01c14000 {
73 + status = "okay";
74 + };
75 +
76 + ohci0: usb@01c14400 {
77 + status = "okay";
78 + };
79 +
80 + ahci: sata@01c18000 {
81 + target-supply = <&reg_ahci_5v>;
82 + status = "okay";
83 + };
84 +
85 + ehci1: usb@01c1c000 {
86 + status = "okay";
87 + };
88 +
89 + ohci1: usb@01c1c400 {
90 + status = "okay";
91 + };
92 +
93 + pinctrl@01c20800 {
94 + ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
95 + allwinner,pins = "PC3";
96 + allwinner,function = "gpio_out";
97 + allwinner,drive = <0>;
98 + allwinner,pull = <0>;
99 + };
100 +
101 + led_pins_olinuxinolime: led_pins@0 {
102 + allwinner,pins = "PH2";
103 + allwinner,function = "gpio_out";
104 + allwinner,drive = <1>;
105 + allwinner,pull = <0>;
106 + };
107 + };
108 +
109 + uart0: serial@01c28000 {
110 + pinctrl-names = "default";
111 + pinctrl-0 = <&uart0_pins_a>;
112 + status = "okay";
113 + };
114 + };
115 +
116 + leds {
117 + compatible = "gpio-leds";
118 + pinctrl-names = "default";
119 + pinctrl-0 = <&led_pins_olinuxinolime>;
120 +
121 + green {
122 + label = "a10-olinuxino-lime:green:usr";
123 + gpios = <&pio 7 2 0>;
124 + default-state = "on";
125 + };
126 + };
127 +
128 + reg_ahci_5v: ahci-5v {
129 + pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
130 + gpio = <&pio 2 3 0>;
131 + status = "okay";
132 + };
133 +
134 + reg_usb1_vbus: usb1-vbus {
135 + status = "okay";
136 + };
137 +
138 + reg_usb2_vbus: usb2-vbus {
139 + status = "okay";
140 + };
141 +};