Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / boot / dts / rk3066a-mk808.dts
blobeed9e60cffa231ec7aec8cccd24eb8e4f0228d34
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2016 PaweÅ‚ Jarosz <paweljarosz3691@gmail.com>
4  */
6 /dts-v1/;
7 #include "rk3066a.dtsi"
9 / {
10         model = "Rikomagic MK808";
11         compatible = "rikomagic,mk808", "rockchip,rk3066a";
13         chosen {
14                 stdout-path = "serial2:115200n8";
15         };
17         memory@60000000 {
18                 reg = <0x60000000 0x40000000>;
19                 device_type = "memory";
20         };
22         gpio-leds {
23                 compatible = "gpio-leds";
25                 blue_led: led-0 {
26                         label = "mk808:blue:power";
27                         gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
28                         default-state = "off";
29                         linux,default-trigger = "default-on";
30                 };
31         };
33         hdmi_con {
34                 compatible = "hdmi-connector";
35                 type = "c";
37                 port {
38                         hdmi_con_in: endpoint {
39                                 remote-endpoint = <&hdmi_out_con>;
40                         };
41                 };
42         };
44         vcc_io: vcc-io {
45                 compatible = "regulator-fixed";
46                 regulator-name = "vcc_io";
47                 regulator-min-microvolt = <3300000>;
48                 regulator-max-microvolt = <3300000>;
49         };
51         vcc_host: usb-host-regulator {
52                 compatible = "regulator-fixed";
53                 enable-active-high;
54                 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
55                 pinctrl-0 = <&host_drv>;
56                 pinctrl-names = "default";
57                 regulator-always-on;
58                 regulator-name = "host-pwr";
59                 regulator-min-microvolt = <5000000>;
60                 regulator-max-microvolt = <5000000>;
61                 startup-delay-us = <100000>;
62                 vin-supply = <&vcc_io>;
63         };
65         vcc_otg: usb-otg-regulator {
66                 compatible = "regulator-fixed";
67                 enable-active-high;
68                 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
69                 pinctrl-0 = <&otg_drv>;
70                 pinctrl-names = "default";
71                 regulator-always-on;
72                 regulator-name = "vcc_otg";
73                 regulator-min-microvolt = <5000000>;
74                 regulator-max-microvolt = <5000000>;
75                 startup-delay-us = <100000>;
76                 vin-supply = <&vcc_io>;
77         };
79         vcc_sd: sdmmc-regulator {
80                 compatible = "regulator-fixed";
81                 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
82                 pinctrl-0 = <&sdmmc_pwr>;
83                 pinctrl-names = "default";
84                 regulator-name = "vcc_sd";
85                 regulator-min-microvolt = <3300000>;
86                 regulator-max-microvolt = <3300000>;
87                 startup-delay-us = <100000>;
88                 vin-supply = <&vcc_io>;
89         };
91         vcc_wifi: sdio-regulator {
92                 compatible = "regulator-fixed";
93                 enable-active-high;
94                 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
95                 pinctrl-0 = <&wifi_pwr>;
96                 pinctrl-names = "default";
97                 regulator-name = "vcc_wifi";
98                 regulator-min-microvolt = <3300000>;
99                 regulator-max-microvolt = <3300000>;
100                 startup-delay-us = <100000>;
101                 vin-supply = <&vcc_io>;
102         };
105 &hdmi {
106         status = "okay";
109 &hdmi_in_vop1 {
110         status = "disabled";
113 &hdmi_out {
114         hdmi_out_con: endpoint {
115                 remote-endpoint = <&hdmi_con_in>;
116         };
119 &mmc0 {
120         bus-width = <4>;
121         cap-mmc-highspeed;
122         cap-sd-highspeed;
123         vmmc-supply = <&vcc_sd>;
124         status = "okay";
127 &mmc1 {
128         bus-width = <4>;
129         non-removable;
130         pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
131         pinctrl-names = "default";
132         vmmc-supply = <&vcc_wifi>;
133         status = "okay";
136 &pinctrl {
137         usb-host {
138                 host_drv: host-drv {
139                         rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
140                 };
141         };
143         usb-otg {
144                 otg_drv: otg-drv {
145                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
146                 };
147         };
149         sdmmc {
150                 sdmmc_pwr: sdmmc-pwr {
151                         rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
152                 };
153         };
155         sdio {
156                 wifi_pwr: wifi-pwr {
157                         rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
158                 };
159         };
162 &uart2 {
163         status = "okay";
166 &usb_host {
167         status = "okay";
170 &usb_otg {
171         status = "okay";
174 &usbphy {
175         status = "okay";
178 &vop0 {
179         status = "okay";
182 &wdt {
183         status = "okay";