Merge branch 'locking-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / sun4i-a10-ba10-tvbox.dts
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 };