2 * Copyright 2014 Hans de Goede <hdegoede@redhat.com>
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:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
13 /include/ "sun7i-a20.dtsi"
14 /include/ "sunxi-common-regulators.dtsi"
17 model = "I12 / Q5 / QT840A A20 tvbox";
18 compatible = "allwinner,i12-tvbox", "allwinner,sun7i-a20";
22 pinctrl-names = "default";
23 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
24 vmmc-supply = <®_vcc3v3>;
26 cd-gpios = <&pio 7 1 0>; /* PH1 */
32 pinctrl-names = "default";
33 pinctrl-0 = <&mmc3_pins_a>;
34 vmmc-supply = <®_vmmc3>;
40 usbphy: phy@01c13400 {
41 usb1_vbus-supply = <®_usb1_vbus>;
42 usb2_vbus-supply = <®_usb2_vbus>;
64 /* AP6210 / AP6330 requires pull-up */
68 vmmc3_pin_i12_tvbox: vmmc3_pin@0 {
69 allwinner,pins = "PH2";
70 allwinner,function = "gpio_out";
71 allwinner,drive = <0>;
75 vmmc3_io_pin_i12_tvbox: vmmc3_io_pin@0 {
76 allwinner,pins = "PH12";
77 allwinner,function = "gpio_out";
78 allwinner,drive = <0>;
82 gmac_power_pin_i12_tvbox: gmac_power_pin@0 {
83 allwinner,pins = "PH21";
84 allwinner,function = "gpio_out";
85 allwinner,drive = <0>;
89 led_pins_i12_tvbox: led_pins@0 {
90 allwinner,pins = "PH9", "PH20";
91 allwinner,function = "gpio_out";
92 allwinner,drive = <0>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&ir0_pins_a>;
103 uart0: serial@01c28000 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&uart0_pins_a>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&i2c0_pins_a>;
115 compatible = "x-powers,axp209";
117 interrupt-parent = <&nmi_intc>;
120 interrupt-controller;
121 #interrupt-cells = <1>;
125 gmac: ethernet@01c50000 {
126 pinctrl-names = "default";
127 pinctrl-0 = <&gmac_pins_mii_a>;
130 phy-supply = <®_gmac_3v3>;
133 phy1: ethernet-phy@1 {
140 compatible = "gpio-leds";
141 pinctrl-names = "default";
142 pinctrl-0 = <&led_pins_i12_tvbox>;
145 label = "i12_tvbox:red:usr";
146 gpios = <&pio 7 9 1>;
150 label = "i12_tvbox:blue:usr";
151 gpios = <&pio 7 20 0>;
155 reg_usb1_vbus: usb1-vbus {
159 reg_usb2_vbus: usb2-vbus {
164 compatible = "regulator-fixed";
165 pinctrl-names = "default";
166 pinctrl-0 = <&vmmc3_pin_i12_tvbox>;
167 regulator-name = "vmmc3";
168 regulator-min-microvolt = <3300000>;
169 regulator-max-microvolt = <3300000>;
174 reg_vmmc3_io: vmmc3-io {
175 compatible = "regulator-fixed";
176 pinctrl-names = "default";
177 pinctrl-0 = <&vmmc3_io_pin_i12_tvbox>;
178 regulator-name = "vmmc3-io";
179 regulator-min-microvolt = <3300000>;
180 regulator-max-microvolt = <3300000>;
181 /* This controls VCC-PI, must be always on! */
184 gpio = <&pio 7 12 0>;
187 reg_gmac_3v3: gmac-3v3 {
188 compatible = "regulator-fixed";
189 pinctrl-names = "default";
190 pinctrl-0 = <&gmac_power_pin_i12_tvbox>;
191 regulator-name = "gmac-3v3";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
194 startup-delay-us = <50000>;
196 gpio = <&pio 7 21 0>;