ARM: sunxi: DT: Convert the DTs to use a header for the DMA arguments
[deliverable/linux.git] / arch / arm / boot / dts / sun7i-a20-i12-tvbox.dts
CommitLineData
c690d80b
HG
1/*
2 * Copyright 2014 Hans de Goede <hdegoede@redhat.com>
3 *
438989fa
MR
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
c690d80b 8 *
438989fa
MR
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 *
24 * Or, alternatively,
25 *
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
c690d80b
HG
46 */
47
48/dts-v1/;
71455701
MR
49#include "sun7i-a20.dtsi"
50#include "sunxi-common-regulators.dtsi"
c690d80b 51
bca12924
MR
52#include <dt-bindings/gpio/gpio.h>
53
c690d80b
HG
54/ {
55 model = "I12 / Q5 / QT840A A20 tvbox";
56 compatible = "allwinner,i12-tvbox", "allwinner,sun7i-a20";
57
58 soc@01c00000 {
59 mmc0: mmc@01c0f000 {
60 pinctrl-names = "default";
61 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
62 vmmc-supply = <&reg_vcc3v3>;
63 bus-width = <4>;
bca12924 64 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
c690d80b
HG
65 cd-inverted;
66 status = "okay";
67 };
68
69 mmc3: mmc@01c12000 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&mmc3_pins_a>;
72 vmmc-supply = <&reg_vmmc3>;
73 bus-width = <4>;
74 non-removable;
75 status = "okay";
76 };
77
78 usbphy: phy@01c13400 {
79 usb1_vbus-supply = <&reg_usb1_vbus>;
80 usb2_vbus-supply = <&reg_usb2_vbus>;
81 status = "okay";
82 };
83
84 ehci0: usb@01c14000 {
85 status = "okay";
86 };
87
88 ohci0: usb@01c14400 {
89 status = "okay";
90 };
91
92 ehci1: usb@01c1c000 {
93 status = "okay";
94 };
95
96 ohci1: usb@01c1c400 {
97 status = "okay";
98 };
99
100 pinctrl@01c20800 {
101 mmc3_pins_a: mmc3@0 {
102 /* AP6210 / AP6330 requires pull-up */
103 allwinner,pull = <1>;
104 };
105
106 vmmc3_pin_i12_tvbox: vmmc3_pin@0 {
107 allwinner,pins = "PH2";
108 allwinner,function = "gpio_out";
109 allwinner,drive = <0>;
110 allwinner,pull = <0>;
111 };
112
113 vmmc3_io_pin_i12_tvbox: vmmc3_io_pin@0 {
114 allwinner,pins = "PH12";
115 allwinner,function = "gpio_out";
116 allwinner,drive = <0>;
117 allwinner,pull = <0>;
118 };
119
120 gmac_power_pin_i12_tvbox: gmac_power_pin@0 {
121 allwinner,pins = "PH21";
122 allwinner,function = "gpio_out";
123 allwinner,drive = <0>;
124 allwinner,pull = <0>;
125 };
126
127 led_pins_i12_tvbox: led_pins@0 {
128 allwinner,pins = "PH9", "PH20";
129 allwinner,function = "gpio_out";
130 allwinner,drive = <0>;
131 allwinner,pull = <0>;
132 };
133 };
134
abe36869
HG
135 ir0: ir@01c21800 {
136 pinctrl-names = "default";
137 pinctrl-0 = <&ir0_pins_a>;
138 status = "okay";
139 };
140
c690d80b
HG
141 uart0: serial@01c28000 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&uart0_pins_a>;
144 status = "okay";
145 };
146
ec0c933d
CC
147 i2c0: i2c@01c2ac00 {
148 pinctrl-names = "default";
149 pinctrl-0 = <&i2c0_pins_a>;
150 status = "okay";
151
152 axp209: pmic@34 {
153 compatible = "x-powers,axp209";
154 reg = <0x34>;
155 interrupt-parent = <&nmi_intc>;
156 interrupts = <0 8>;
157
158 interrupt-controller;
159 #interrupt-cells = <1>;
160 };
161 };
162
c690d80b
HG
163 gmac: ethernet@01c50000 {
164 pinctrl-names = "default";
165 pinctrl-0 = <&gmac_pins_mii_a>;
166 phy = <&phy1>;
167 phy-mode = "mii";
168 phy-supply = <&reg_gmac_3v3>;
169 status = "okay";
170
171 phy1: ethernet-phy@1 {
172 reg = <1>;
173 };
174 };
175 };
176
177 leds {
178 compatible = "gpio-leds";
179 pinctrl-names = "default";
180 pinctrl-0 = <&led_pins_i12_tvbox>;
181
182 red {
183 label = "i12_tvbox:red:usr";
bca12924 184 gpios = <&pio 7 9 GPIO_ACTIVE_LOW>;
c690d80b
HG
185 };
186
187 blue {
188 label = "i12_tvbox:blue:usr";
bca12924 189 gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
c690d80b
HG
190 };
191 };
192
193 reg_usb1_vbus: usb1-vbus {
194 status = "okay";
195 };
196
197 reg_usb2_vbus: usb2-vbus {
198 status = "okay";
199 };
200
201 reg_vmmc3: vmmc3 {
202 compatible = "regulator-fixed";
203 pinctrl-names = "default";
204 pinctrl-0 = <&vmmc3_pin_i12_tvbox>;
205 regulator-name = "vmmc3";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
208 enable-active-high;
bca12924 209 gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>;
c690d80b
HG
210 };
211
212 reg_vmmc3_io: vmmc3-io {
213 compatible = "regulator-fixed";
214 pinctrl-names = "default";
215 pinctrl-0 = <&vmmc3_io_pin_i12_tvbox>;
216 regulator-name = "vmmc3-io";
217 regulator-min-microvolt = <3300000>;
218 regulator-max-microvolt = <3300000>;
219 /* This controls VCC-PI, must be always on! */
220 regulator-always-on;
221 enable-active-high;
bca12924 222 gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
c690d80b
HG
223 };
224
225 reg_gmac_3v3: gmac-3v3 {
226 compatible = "regulator-fixed";
227 pinctrl-names = "default";
228 pinctrl-0 = <&gmac_power_pin_i12_tvbox>;
229 regulator-name = "gmac-3v3";
230 regulator-min-microvolt = <3300000>;
231 regulator-max-microvolt = <3300000>;
232 startup-delay-us = <50000>;
233 enable-active-high;
bca12924 234 gpio = <&pio 7 21 GPIO_ACTIVE_HIGH>;
c690d80b
HG
235 };
236};
This page took 0.074232 seconds and 5 git commands to generate.