aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-06-30 17:57:57 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-07-01 04:01:16 -0400
commit97cb8f1ed91fd1d4993cd18168b600a8294a7c6f (patch)
treeca702a441289449e82749c5048e713480222a6d8
parent04089927981f295b42cd695485383b2d11283d59 (diff)
ARM: dts: sun4i: Add new ba10-tvbox board
The ba10 tvbox is an A10 based android tvbox, with 512M RAM, 8G nand flash, rtl8188ctv usb wifi 1 USB-A receptacle hooked up to an EHCI/OHCI controller, 1 USB-A receptacle hooked up to the OTG and 100Mbit ethernet using a rtl8201 phy. The PCB is labelled ba10 hence I've named the board ba10-tvbox. It is used in noname allwinner A10 tv-boxes. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts110
2 files changed, 111 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 796fea874183..c3ee9fba892b 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -360,6 +360,7 @@ dtb-$(CONFIG_ARCH_STI)+= stih407-b2120.dtb \
360 stih416-b2020-revE.dtb 360 stih416-b2020-revE.dtb
361dtb-$(CONFIG_MACH_SUN4I) += \ 361dtb-$(CONFIG_MACH_SUN4I) += \
362 sun4i-a10-a1000.dtb \ 362 sun4i-a10-a1000.dtb \
363 sun4i-a10-ba10-tvbox.dtb \
363 sun4i-a10-cubieboard.dtb \ 364 sun4i-a10-cubieboard.dtb \
364 sun4i-a10-mini-xplus.dtb \ 365 sun4i-a10-mini-xplus.dtb \
365 sun4i-a10-hackberry.dtb \ 366 sun4i-a10-hackberry.dtb \
diff --git a/arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts b/arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts
new file mode 100644
index 000000000000..1763cc7ec023
--- /dev/null
+++ b/arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts
@@ -0,0 +1,110 @@
1/*
2 * Copyright 2014 Hans de Goede <hdegoede@redhat.com>
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12/dts-v1/;
13/include/ "sun4i-a10.dtsi"
14/include/ "sunxi-common-regulators.dtsi"
15
16/ {
17 model = "BA10 tvbox";
18 compatible = "allwinner,ba10-tvbox", "allwinner,sun4i-a10";
19
20 soc@01c00000 {
21 emac: ethernet@01c0b000 {
22 pinctrl-names = "default";
23 pinctrl-0 = <&emac_pins_a>;
24 phy = <&phy1>;
25 status = "okay";
26 };
27
28 mdio@01c0b080 {
29 status = "okay";
30
31 phy1: ethernet-phy@1 {
32 reg = <1>;
33 };
34 };
35
36 mmc0: mmc@01c0f000 {
37 pinctrl-names = "default";
38 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
39 vmmc-supply = <&reg_vcc3v3>;
40 bus-width = <4>;
41 cd-gpios = <&pio 7 1 0>; /* PH1 */
42 cd-inverted;
43 status = "okay";
44 };
45
46 usbphy: phy@01c13400 {
47 usb1_vbus-supply = <&reg_usb1_vbus>;
48 usb2_vbus-supply = <&reg_usb2_vbus>;
49 status = "okay";
50 };
51
52 ehci0: usb@01c14000 {
53 status = "okay";
54 };
55
56 ohci0: usb@01c14400 {
57 status = "okay";
58 };
59
60 ehci1: usb@01c1c000 {
61 status = "okay";
62 };
63
64 ohci1: usb@01c1c400 {
65 status = "okay";
66 };
67
68 pinctrl@01c20800 {
69 usb2_vbus_pin_a: usb2_vbus_pin@0 {
70 allwinner,pins = "PH12";
71 };
72 };
73
74 ir0: ir@01c21800 {
75 pinctrl-names = "default";
76 pinctrl-0 = <&ir0_pins_a>;
77 status = "okay";
78 };
79
80 uart0: serial@01c28000 {
81 pinctrl-names = "default";
82 pinctrl-0 = <&uart0_pins_a>;
83 status = "okay";
84 };
85
86 i2c0: i2c@01c2ac00 {
87 pinctrl-names = "default";
88 pinctrl-0 = <&i2c0_pins_a>;
89 status = "okay";
90
91 axp209: pmic@34 {
92 compatible = "x-powers,axp209";
93 reg = <0x34>;
94 interrupts = <0>;
95
96 interrupt-controller;
97 #interrupt-cells = <1>;
98 };
99 };
100 };
101
102 reg_usb1_vbus: usb1-vbus {
103 status = "okay";
104 };
105
106 reg_usb2_vbus: usb2-vbus {
107 gpio = <&pio 7 12 0>;
108 status = "okay";
109 };
110};