sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 301-1-dt-sun4i-add-pcduino.patch
1 From 248529e6c78ba746988f1313f7bfb7ae74eae785 Mon Sep 17 00:00:00 2001
2 From: Zoltan HERPAI <wigyori@uid0.hu>
3 Date: Mon, 13 Jan 2014 14:15:01 +0100
4 Subject: [PATCH] ARM: sun4i: dt: Add basic board support for LinkSprite
5  pcDuino
6
7 This patch will add a basic board support DT for the
8 LinkSprite pcDuino board.
9
10 Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
11 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
12 ---
13  arch/arm/boot/dts/Makefile              |  1 +
14  arch/arm/boot/dts/sun4i-a10-pcduino.dts | 48 +++++++++++++++++++++++++++++++++
15  2 files changed, 49 insertions(+)
16  create mode 100644 arch/arm/boot/dts/sun4i-a10-pcduino.dts
17
18 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
19 index 6d1e43d..0b127db 100644
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -283,6 +283,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
23         sun4i-a10-cubieboard.dtb \
24         sun4i-a10-mini-xplus.dtb \
25         sun4i-a10-hackberry.dtb \
26 +       sun4i-a10-pcduino.dtb \
27         sun5i-a10s-olinuxino-micro.dtb \
28         sun5i-a13-olinuxino.dtb \
29         sun5i-a13-olinuxino-micro.dtb \
30 diff --git a/arch/arm/boot/dts/sun4i-a10-pcduino.dts b/arch/arm/boot/dts/sun4i-a10-pcduino.dts
31 new file mode 100644
32 index 0000000..f5692a3
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/sun4i-a10-pcduino.dts
35 @@ -0,0 +1,48 @@
36 +/*
37 + * Copyright 2014 Zoltan HERPAI
38 + * Zoltan HERPAI <wigyori@uid0.hu>
39 + *
40 + * The code contained herein is licensed under the GNU General Public
41 + * License. You may obtain a copy of the GNU General Public License
42 + * Version 2 or later at the following locations:
43 + *
44 + * http://www.opensource.org/licenses/gpl-license.html
45 + * http://www.gnu.org/copyleft/gpl.html
46 + */
47 +
48 +/dts-v1/;
49 +/include/ "sun4i-a10.dtsi"
50 +
51 +/ {
52 +       model = "LinkSprite pcDuino";
53 +       compatible = "linksprite,a10-pcduino", "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 +               uart0: serial@01c28000 {
72 +                       pinctrl-names = "default";
73 +                       pinctrl-0 = <&uart0_pins_a>;
74 +                       status = "okay";
75 +               };
76 +
77 +               i2c0: i2c@01c2ac00 {
78 +                       pinctrl-names = "default";
79 +                       pinctrl-0 = <&i2c0_pins_a>;
80 +                       status = "okay";
81 +               };
82 +       };
83 +};
84 -- 
85 1.8.5.5
86