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
6 This add support for the A10-OLinuXino-LIME:
7 https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME
9 A low cost Allwinner A10 based dev-board, with sata, ethernet, hdmi and 2x USB.
11 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
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
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
32 index 0000000..66cf0c7
34 +++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
37 + * Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
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:
43 + * http://www.opensource.org/licenses/gpl-license.html
44 + * http://www.gnu.org/copyleft/gpl.html
48 +/include/ "sun4i-a10.dtsi"
49 +/include/ "sunxi-common-regulators.dtsi"
52 + model = "Olimex A10-OLinuXino-LIME";
53 + compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
56 + emac: ethernet@01c0b000 {
57 + pinctrl-names = "default";
58 + pinctrl-0 = <&emac_pins_a>;
66 + phy1: ethernet-phy@1 {
71 + usbphy: phy@01c13400 {
72 + usb1_vbus-supply = <®_usb1_vbus>;
73 + usb2_vbus-supply = <®_usb2_vbus>;
77 + ehci0: usb@01c14000 {
81 + ohci0: usb@01c14400 {
85 + ahci: sata@01c18000 {
86 + target-supply = <®_ahci_5v>;
90 + ehci1: usb@01c1c000 {
94 + ohci1: usb@01c1c400 {
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>;
106 + led_pins_olinuxinolime: led_pins@0 {
107 + allwinner,pins = "PH2";
108 + allwinner,function = "gpio_out";
109 + allwinner,drive = <1>;
110 + allwinner,pull = <0>;
114 + uart0: serial@01c28000 {
115 + pinctrl-names = "default";
116 + pinctrl-0 = <&uart0_pins_a>;
122 + compatible = "gpio-leds";
123 + pinctrl-names = "default";
124 + pinctrl-0 = <&led_pins_olinuxinolime>;
127 + label = "a10-olinuxino-lime:green:usr";
128 + gpios = <&pio 7 2 0>;
129 + default-state = "on";
133 + reg_ahci_5v: ahci-5v {
134 + pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
135 + gpio = <&pio 2 3 0>;
139 + reg_usb1_vbus: usb1-vbus {
143 + reg_usb2_vbus: usb2-vbus {