sunxi: backport late clock fixes from 3.15
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 105-dt-sun4i-add-linksprite-pcduino.patch
1 From 2fc6dcd5e7c76c203d2e174e70ef21393a231163 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 --- 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-pcduino.dtb \
25 sun5i-a10s-olinuxino-micro.dtb \
26 sun5i-a13-olinuxino.dtb \
27 sun5i-a13-olinuxino-micro.dtb \
28 --- /dev/null
29 +++ b/arch/arm/boot/dts/sun4i-a10-pcduino.dts
30 @@ -0,0 +1,48 @@
31 +/*
32 + * Copyright 2014 Zoltan HERPAI
33 + * Zoltan HERPAI <wigyori@uid0.hu>
34 + *
35 + * The code contained herein is licensed under the GNU General Public
36 + * License. You may obtain a copy of the GNU General Public License
37 + * Version 2 or later at the following locations:
38 + *
39 + * http://www.opensource.org/licenses/gpl-license.html
40 + * http://www.gnu.org/copyleft/gpl.html
41 + */
42 +
43 +/dts-v1/;
44 +/include/ "sun4i-a10.dtsi"
45 +
46 +/ {
47 + model = "LinkSprite pcDuino";
48 + compatible = "linksprite,a10-pcduino", "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 + uart0: serial@01c28000 {
67 + pinctrl-names = "default";
68 + pinctrl-0 = <&uart0_pins_a>;
69 + status = "okay";
70 + };
71 +
72 + i2c0: i2c@01c2ac00 {
73 + pinctrl-names = "default";
74 + pinctrl-0 = <&i2c0_pins_a>;
75 + status = "okay";
76 + };
77 + };
78 +};