Loading...
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 <dt-bindings/input/input.h>
8#include "rk3066a.dtsi"
9
10/ {
11 model = "Rikomagic MK808";
12 compatible = "rikomagic,mk808", "rockchip,rk3066a";
13
14 aliases {
15 mmc0 = &mmc0;
16 mmc1 = &mmc1;
17 };
18
19 chosen {
20 stdout-path = "serial2:115200n8";
21 };
22
23 memory@60000000 {
24 reg = <0x60000000 0x40000000>;
25 device_type = "memory";
26 };
27
28 adc-keys {
29 compatible = "adc-keys";
30 io-channels = <&saradc 1>;
31 io-channel-names = "buttons";
32 keyup-threshold-microvolt = <2500000>;
33 poll-interval = <100>;
34
35 button-recovery {
36 label = "recovery";
37 linux,code = <KEY_VENDOR>;
38 press-threshold-microvolt = <0>;
39 };
40 };
41
42 gpio-leds {
43 compatible = "gpio-leds";
44
45 blue_led: led-0 {
46 label = "mk808:blue:power";
47 gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
48 default-state = "off";
49 linux,default-trigger = "default-on";
50 };
51 };
52
53 hdmi_con {
54 compatible = "hdmi-connector";
55 type = "c";
56
57 port {
58 hdmi_con_in: endpoint {
59 remote-endpoint = <&hdmi_out_con>;
60 };
61 };
62 };
63
64 vcc_2v5: vcc-2v5 {
65 compatible = "regulator-fixed";
66 regulator-name = "vcc_2v5";
67 regulator-min-microvolt = <2500000>;
68 regulator-max-microvolt = <2500000>;
69 };
70
71 vcc_io: vcc-io {
72 compatible = "regulator-fixed";
73 regulator-name = "vcc_io";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
76 };
77
78 vcc_host: usb-host-regulator {
79 compatible = "regulator-fixed";
80 enable-active-high;
81 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
82 pinctrl-0 = <&host_drv>;
83 pinctrl-names = "default";
84 regulator-always-on;
85 regulator-name = "host-pwr";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
88 startup-delay-us = <100000>;
89 vin-supply = <&vcc_io>;
90 };
91
92 vcc_otg: usb-otg-regulator {
93 compatible = "regulator-fixed";
94 enable-active-high;
95 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
96 pinctrl-0 = <&otg_drv>;
97 pinctrl-names = "default";
98 regulator-always-on;
99 regulator-name = "vcc_otg";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
102 startup-delay-us = <100000>;
103 vin-supply = <&vcc_io>;
104 };
105
106 vcc_sd: sdmmc-regulator {
107 compatible = "regulator-fixed";
108 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
109 pinctrl-0 = <&sdmmc_pwr>;
110 pinctrl-names = "default";
111 regulator-name = "vcc_sd";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
114 startup-delay-us = <100000>;
115 vin-supply = <&vcc_io>;
116 };
117
118 vcc_wifi: sdio-regulator {
119 compatible = "regulator-fixed";
120 enable-active-high;
121 gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
122 pinctrl-0 = <&wifi_pwr>;
123 pinctrl-names = "default";
124 regulator-name = "vcc_wifi";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 startup-delay-us = <100000>;
128 vin-supply = <&vcc_io>;
129 };
130};
131
132&hdmi {
133 status = "okay";
134};
135
136&hdmi_in_vop1 {
137 status = "disabled";
138};
139
140&hdmi_out {
141 hdmi_out_con: endpoint {
142 remote-endpoint = <&hdmi_con_in>;
143 };
144};
145
146&mmc0 {
147 bus-width = <4>;
148 cap-mmc-highspeed;
149 cap-sd-highspeed;
150 vmmc-supply = <&vcc_sd>;
151 status = "okay";
152};
153
154&mmc1 {
155 bus-width = <4>;
156 non-removable;
157 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
158 pinctrl-names = "default";
159 vmmc-supply = <&vcc_wifi>;
160 status = "okay";
161};
162
163&nfc {
164 #address-cells = <1>;
165 #size-cells = <0>;
166 status = "okay";
167
168 nand@0 {
169 reg = <0>;
170 label = "rk-nand";
171 nand-bus-width = <8>;
172 nand-ecc-mode = "hw";
173 nand-ecc-step-size = <1024>;
174 nand-ecc-strength = <40>;
175 nand-is-boot-medium;
176 rockchip,boot-blks = <8>;
177 rockchip,boot-ecc-strength = <24>;
178 };
179};
180
181&pinctrl {
182 usb-host {
183 host_drv: host-drv {
184 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
185 };
186 };
187
188 usb-otg {
189 otg_drv: otg-drv {
190 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
191 };
192 };
193
194 sdmmc {
195 sdmmc_pwr: sdmmc-pwr {
196 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
197 };
198 };
199
200 sdio {
201 wifi_pwr: wifi-pwr {
202 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
203 };
204 };
205};
206
207&saradc {
208 vref-supply = <&vcc_2v5>;
209 status = "okay";
210};
211
212&uart2 {
213 status = "okay";
214};
215
216&usb_host {
217 status = "okay";
218};
219
220&usb_otg {
221 status = "okay";
222};
223
224&usbphy {
225 status = "okay";
226};
227
228&vop0 {
229 status = "okay";
230};
231
232&wdt {
233 status = "okay";
234};
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 hdmi_con {
34 compatible = "hdmi-connector";
35 type = "c";
36
37 port {
38 hdmi_con_in: endpoint {
39 remote-endpoint = <&hdmi_out_con>;
40 };
41 };
42 };
43
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 };
50
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 };
64
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 };
78
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 };
90
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 };
103};
104
105&hdmi {
106 status = "okay";
107};
108
109&hdmi_in_vop1 {
110 status = "disabled";
111};
112
113&hdmi_out {
114 hdmi_out_con: endpoint {
115 remote-endpoint = <&hdmi_con_in>;
116 };
117};
118
119&mmc0 {
120 bus-width = <4>;
121 cap-mmc-highspeed;
122 cap-sd-highspeed;
123 vmmc-supply = <&vcc_sd>;
124 status = "okay";
125};
126
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";
134};
135
136&pinctrl {
137 usb-host {
138 host_drv: host-drv {
139 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
140 };
141 };
142
143 usb-otg {
144 otg_drv: otg-drv {
145 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
146 };
147 };
148
149 sdmmc {
150 sdmmc_pwr: sdmmc-pwr {
151 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
152 };
153 };
154
155 sdio {
156 wifi_pwr: wifi-pwr {
157 rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
158 };
159 };
160};
161
162&uart2 {
163 status = "okay";
164};
165
166&usb_host {
167 status = "okay";
168};
169
170&usb_otg {
171 status = "okay";
172};
173
174&usbphy {
175 status = "okay";
176};
177
178&vop0 {
179 status = "okay";
180};
181
182&wdt {
183 status = "okay";
184};