sunxi: update pcDuino3 profile to the new u-boot
[15.05/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 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
19 index 8e1d636..66d6df3 100644
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -284,6 +284,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
23         sun4i-a10-cubieboard.dtb \
24         sun4i-a10-mini-xplus.dtb \
25         sun4i-a10-hackberry.dtb \
26 +       sun4i-a10-olinuxino-lime.dtb \
27         sun4i-a10-pcduino.dtb \
28         sun5i-a10s-olinuxino-micro.dtb \
29         sun5i-a13-olinuxino.dtb \
30 diff --git a/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
31 new file mode 100644
32 index 0000000..66cf0c7
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
35 @@ -0,0 +1,111 @@
36 +/*
37 + * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
38 + *
39 + * The code contained herein is licensed under the GNU General Public
40 + * License. You may obtain a copy of the GNU General Public License
41 + * Version 2 or later at the following locations:
42 + *
43 + * http://www.opensource.org/licenses/gpl-license.html
44 + * http://www.gnu.org/copyleft/gpl.html
45 + */
46 +
47 +/dts-v1/;
48 +/include/ "sun4i-a10.dtsi"
49 +/include/ "sunxi-common-regulators.dtsi"
50 +
51 +/ {
52 +       model = "Olimex A10-OLinuXino-LIME";
53 +       compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
54 +
55 +       soc@01c00000 {
56 +               emac: ethernet@01c0b000 {
57 +                       pinctrl-names = "default";
58 +                       pinctrl-0 = <&emac_pins_a>;
59 +                       phy = <&phy1>;
60 +                       status = "okay";
61 +               };
62 +
63 +               mdio@01c0b080 {
64 +                       status = "okay";
65 +
66 +                       phy1: ethernet-phy@1 {
67 +                               reg = <1>;
68 +                       };
69 +               };
70 +
71 +               usbphy: phy@01c13400 {
72 +                       usb1_vbus-supply = <&reg_usb1_vbus>;
73 +                       usb2_vbus-supply = <&reg_usb2_vbus>;
74 +                       status = "okay";
75 +               };
76 +
77 +               ehci0: usb@01c14000 {
78 +                       status = "okay";
79 +               };
80 +
81 +               ohci0: usb@01c14400 {
82 +                       status = "okay";
83 +               };
84 +
85 +               ahci: sata@01c18000 {
86 +                       target-supply = <&reg_ahci_5v>;
87 +                       status = "okay";
88 +               };
89 +
90 +               ehci1: usb@01c1c000 {
91 +                       status = "okay";
92 +               };
93 +
94 +               ohci1: usb@01c1c400 {
95 +                       status = "okay";
96 +               };
97 +
98 +               pinctrl@01c20800 {
99 +                       ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
100 +                               allwinner,pins = "PC3";
101 +                               allwinner,function = "gpio_out";
102 +                               allwinner,drive = <0>;
103 +                               allwinner,pull = <0>;
104 +                       };
105 +
106 +                       led_pins_olinuxinolime: led_pins@0 {
107 +                               allwinner,pins = "PH2";
108 +                               allwinner,function = "gpio_out";
109 +                               allwinner,drive = <1>;
110 +                               allwinner,pull = <0>;
111 +                       };
112 +               };
113 +
114 +               uart0: serial@01c28000 {
115 +                       pinctrl-names = "default";
116 +                       pinctrl-0 = <&uart0_pins_a>;
117 +                       status = "okay";
118 +               };
119 +       };
120 +
121 +       leds {
122 +               compatible = "gpio-leds";
123 +               pinctrl-names = "default";
124 +               pinctrl-0 = <&led_pins_olinuxinolime>;
125 +
126 +               green {
127 +                       label = "a10-olinuxino-lime:green:usr";
128 +                       gpios = <&pio 7 2 0>;
129 +                       default-state = "on";
130 +               };
131 +       };
132 +
133 +       reg_ahci_5v: ahci-5v {
134 +               pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
135 +               gpio = <&pio 2 3 0>;
136 +               status = "okay";
137 +       };
138 +
139 +       reg_usb1_vbus: usb1-vbus {
140 +               status = "okay";
141 +       };
142 +
143 +       reg_usb2_vbus: usb2-vbus {
144 +               status = "okay";
145 +       };
146 +};
147 -- 
148 2.0.3
149