]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/boot/dts/sun5i-a10s-r7-tv-dongle.dts
Merge tag 'v3.17-rc3' into next
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / sun5i-a10s-r7-tv-dongle.dts
CommitLineData
de806b39
HG
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/ "sun5i-a10s.dtsi"
14/include/ "sunxi-common-regulators.dtsi"
15
16/ {
17 model = "R7 A10s hdmi tv-stick";
18 compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
19
20 soc@01c00000 {
21 mmc0: mmc@01c0f000 {
22 pinctrl-names = "default";
23 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_r7>;
24 vmmc-supply = <&reg_vcc3v3>;
25 bus-width = <4>;
26 cd-gpios = <&pio 6 1 0>; /* PG1 */
27 cd-inverted;
28 status = "okay";
29 };
30
31 mmc1: mmc@01c10000 {
32 pinctrl-names = "default";
33 pinctrl-0 = <&mmc1_pins_a>;
34 vmmc-supply = <&reg_vcc3v3>;
35 bus-width = <4>;
36 non-removable;
37 status = "okay";
38 };
39
40 usbphy: phy@01c13400 {
41 usb1_vbus-supply = <&reg_usb1_vbus>;
42 status = "okay";
43 };
44
45 ehci0: usb@01c14000 {
46 status = "okay";
47 };
48
49 ohci0: usb@01c14400 {
50 status = "okay";
51 };
52
53 pinctrl@01c20800 {
54 mmc0_cd_pin_r7: mmc0_cd_pin@0 {
55 allwinner,pins = "PG1";
56 allwinner,function = "gpio_in";
57 allwinner,drive = <0>;
58 allwinner,pull = <1>;
59 };
60
61 led_pins_r7: led_pins@0 {
62 allwinner,pins = "PB2";
63 allwinner,function = "gpio_out";
64 allwinner,drive = <1>;
65 allwinner,pull = <0>;
66 };
67
68 usb1_vbus_pin_r7: usb1_vbus_pin@0 {
69 allwinner,pins = "PG13";
70 allwinner,function = "gpio_out";
71 allwinner,drive = <0>;
72 allwinner,pull = <0>;
73 };
74 };
75
76 uart0: serial@01c28000 {
77 pinctrl-names = "default";
78 pinctrl-0 = <&uart0_pins_a>;
79 status = "okay";
80 };
81 };
82
83 leds {
84 compatible = "gpio-leds";
85 pinctrl-names = "default";
86 pinctrl-0 = <&led_pins_r7>;
87
88 green {
89 label = "r7-tv-dongle:green:usr";
90 gpios = <&pio 1 2 0>;
91 default-state = "on";
92 };
93 };
94
95 reg_usb1_vbus: usb1-vbus {
96 pinctrl-0 = <&usb1_vbus_pin_r7>;
97 gpio = <&pio 6 13 0>;
98 status = "okay";
99 };
100};