GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / rk3066a-mk808.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2016 PaweÅ‚ Jarosz <paweljarosz3691@gmail.com>
4  */
5
6 /dts-v1/;
7 #include "rk3066a.dtsi"
8
9 / {
10         model = "Rikomagic MK808";
11         compatible = "rikomagic,mk808", "rockchip,rk3066a";
12
13         chosen {
14                 stdout-path = "serial2:115200n8";
15         };
16
17         memory@60000000 {
18                 reg = <0x60000000 0x40000000>;
19                 device_type = "memory";
20         };
21
22         gpio-leds {
23                 compatible = "gpio-leds";
24
25                 blue {
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         };
32
33         vcc_io: vcc-io {
34                 compatible = "regulator-fixed";
35                 regulator-name = "vcc_io";
36                 regulator-min-microvolt = <3300000>;
37                 regulator-max-microvolt = <3300000>;
38         };
39
40         vcc_host: usb-host-regulator {
41                 compatible = "regulator-fixed";
42                 enable-active-high;
43                 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
44                 pinctrl-0 = <&host_drv>;
45                 pinctrl-names = "default";
46                 regulator-always-on;
47                 regulator-name = "host-pwr";
48                 regulator-min-microvolt = <5000000>;
49                 regulator-max-microvolt = <5000000>;
50                 startup-delay-us = <100000>;
51                 vin-supply = <&vcc_io>;
52         };
53
54         vcc_otg: usb-otg-regulator {
55                 compatible = "regulator-fixed";
56                 enable-active-high;
57                 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
58                 pinctrl-0 = <&otg_drv>;
59                 pinctrl-names = "default";
60                 regulator-always-on;
61                 regulator-name = "vcc_otg";
62                 regulator-min-microvolt = <5000000>;
63                 regulator-max-microvolt = <5000000>;
64                 startup-delay-us = <100000>;
65                 vin-supply = <&vcc_io>;
66         };
67
68         vcc_sd: sdmmc-regulator {
69                 compatible = "regulator-fixed";
70                 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
71                 pinctrl-0 = <&sdmmc_pwr>;
72                 pinctrl-names = "default";
73                 regulator-name = "vcc_sd";
74                 regulator-min-microvolt = <3300000>;
75                 regulator-max-microvolt = <3300000>;
76                 startup-delay-us = <100000>;
77                 vin-supply = <&vcc_io>;
78         };
79
80         vcc_wifi: sdio-regulator {
81                 compatible = "regulator-fixed";
82                 enable-active-high;
83                 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
84                 pinctrl-0 = <&wifi_pwr>;
85                 pinctrl-names = "default";
86                 regulator-name = "vcc_wifi";
87                 regulator-min-microvolt = <3300000>;
88                 regulator-max-microvolt = <3300000>;
89                 startup-delay-us = <100000>;
90                 vin-supply = <&vcc_io>;
91         };
92 };
93
94 &mmc0 {
95         bus-width = <4>;
96         cap-mmc-highspeed;
97         cap-sd-highspeed;
98         vmmc-supply = <&vcc_sd>;
99         status = "okay";
100 };
101
102 &mmc1 {
103         bus-width = <4>;
104         disable-wp;
105         non-removable;
106         pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
107         pinctrl-names = "default";
108         vmmc-supply = <&vcc_wifi>;
109         status = "okay";
110 };
111
112 &pinctrl {
113         usb-host {
114                 host_drv: host-drv {
115                         rockchip,pins = <RK_GPIO0 6 RK_FUNC_GPIO &pcfg_pull_default>;
116                 };
117         };
118
119         usb-otg {
120                 otg_drv: otg-drv {
121                         rockchip,pins = <RK_GPIO0 5 RK_FUNC_GPIO &pcfg_pull_default>;
122                 };
123         };
124
125         sdmmc {
126                 sdmmc_pwr: sdmmc-pwr {
127                         rockchip,pins = <RK_GPIO3 7 RK_FUNC_GPIO &pcfg_pull_default>;
128                 };
129         };
130
131         sdio {
132                 wifi_pwr: wifi-pwr {
133                         rockchip,pins = <RK_GPIO3 24 RK_FUNC_GPIO &pcfg_pull_none>;
134                 };
135         };
136 };
137
138 &uart2 {
139         status = "okay";
140 };
141
142 &usb_host {
143         status = "okay";
144 };
145
146 &usb_otg {
147         status = "okay";
148 };
149
150 &usbphy {
151         status = "okay";
152 };
153
154 &wdt {
155         status = "okay";
156 };