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>;
97 uart0: serial@01c28000 {
98 pinctrl-names = "default";
99 pinctrl-0 = <&uart0_pins_a>;
103 gmac: ethernet@01c50000 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&gmac_pins_mii_a>;
108 phy-supply = <®_gmac_3v3>;
111 phy1: ethernet-phy@1 {
118 compatible = "gpio-leds";
119 pinctrl-names = "default";
120 pinctrl-0 = <&led_pins_i12_tvbox>;
123 label = "i12_tvbox:red:usr";
124 gpios = <&pio 7 9 1>;
128 label = "i12_tvbox:blue:usr";
129 gpios = <&pio 7 20 0>;
133 reg_usb1_vbus: usb1-vbus {
137 reg_usb2_vbus: usb2-vbus {
142 compatible = "regulator-fixed";
143 pinctrl-names = "default";
144 pinctrl-0 = <&vmmc3_pin_i12_tvbox>;
145 regulator-name = "vmmc3";
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
152 reg_vmmc3_io: vmmc3-io {
153 compatible = "regulator-fixed";
154 pinctrl-names = "default";
155 pinctrl-0 = <&vmmc3_io_pin_i12_tvbox>;
156 regulator-name = "vmmc3-io";
157 regulator-min-microvolt = <3300000>;
158 regulator-max-microvolt = <3300000>;
159 /* This controls VCC-PI, must be always on! */
162 gpio = <&pio 7 12 0>;
165 reg_gmac_3v3: gmac-3v3 {
166 compatible = "regulator-fixed";
167 pinctrl-names = "default";
168 pinctrl-0 = <&gmac_power_pin_i12_tvbox>;
169 regulator-name = "gmac-3v3";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
172 startup-delay-us = <50000>;
174 gpio = <&pio 7 21 0>;