xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3066a-mk808.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1/*
2 * Copyright (c) 2017 Paweł Jarosz <paweljarosz3691@gmail.com>
3 *
4 * SPDX-License-Identifier:     GPL-2.0+ or X11
5 */
6
7/dts-v1/;
8#include "rk3066a.dtsi"
9
10/ {
11	model = "Rikomagic MK808";
12	compatible = "rikomagic,mk808", "rockchip,rk3066a";
13
14	chosen {
15		stdout-path = "serial2:115200n8";
16	};
17
18	memory@60000000 {
19		reg = <0x60000000 0x40000000>;
20		device_type = "memory";
21	};
22
23	gpio-leds {
24		compatible = "gpio-leds";
25
26		blue {
27			label = "mk808:blue:power";
28			gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
29			default-state = "off";
30			linux,default-trigger = "default-on";
31		};
32	};
33
34	vcc_io: vcc-io {
35		compatible = "regulator-fixed";
36		regulator-name = "vcc_io";
37		regulator-min-microvolt = <3300000>;
38		regulator-max-microvolt = <3300000>;
39	};
40
41	vcc_host: usb-host-regulator {
42		compatible = "regulator-fixed";
43		enable-active-high;
44		gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
45		pinctrl-0 = <&host_drv>;
46		pinctrl-names = "default";
47		regulator-always-on;
48		regulator-name = "host-pwr";
49		regulator-min-microvolt = <5000000>;
50		regulator-max-microvolt = <5000000>;
51		startup-delay-us = <100000>;
52		vin-supply = <&vcc_io>;
53	};
54
55	vcc_otg: usb-otg-regulator {
56		compatible = "regulator-fixed";
57		enable-active-high;
58		gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>;
59		pinctrl-0 = <&otg_drv>;
60		pinctrl-names = "default";
61		regulator-always-on;
62		regulator-name = "vcc_otg";
63		regulator-min-microvolt = <5000000>;
64		regulator-max-microvolt = <5000000>;
65		startup-delay-us = <100000>;
66		vin-supply = <&vcc_io>;
67	};
68
69	vcc_sd: sdmmc-regulator {
70		compatible = "regulator-fixed";
71		gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
72		pinctrl-0 = <&sdmmc_pwr>;
73		pinctrl-names = "default";
74		regulator-name = "vcc_sd";
75		regulator-min-microvolt = <3300000>;
76		regulator-max-microvolt = <3300000>;
77		startup-delay-us = <100000>;
78		vin-supply = <&vcc_io>;
79	};
80
81	vcc_wifi: sdio-regulator {
82		compatible = "regulator-fixed";
83		enable-active-high;
84		gpio = <&gpio3 24 GPIO_ACTIVE_HIGH>;
85		pinctrl-0 = <&wifi_pwr>;
86		pinctrl-names = "default";
87		regulator-name = "vcc_wifi";
88		regulator-min-microvolt = <3300000>;
89		regulator-max-microvolt = <3300000>;
90		startup-delay-us = <100000>;
91		vin-supply = <&vcc_io>;
92	};
93};
94
95&dmc {
96	compatible = "rockchip,rk3066-dmc", "syscon";
97	rockchip,pctl-timing = <0x12c 0xc8 0x1f4 0x1e 0x4e 0x4 0x69 0x6
98		0x3 0x0 0x6 0x5 0xc 0x10 0x6 0x4
99		0x4 0x5 0x4 0x200 0x3 0xa 0x40 0x0
100		0x1 0x5 0x5 0x3 0xc 0x1e 0x100 0x0
101		0x4 0x0>;
102	rockchip,phy-timing = <0x208c6690 0x690878 0x10022a00
103		0x220 0x40 0x0 0x0>;
104	rockchip,sdram-params = <0x24716310 0 2 300000000 3 9 0>;
105};
106
107&mmc0 {
108	bus-width = <4>;
109	cap-mmc-highspeed;
110	cap-sd-highspeed;
111	num-slots = <1>;
112	vmmc-supply = <&vcc_sd>;
113	status = "okay";
114};
115
116&mmc1 {
117	bus-width = <4>;
118	disable-wp;
119	non-removable;
120	num-slots = <1>;
121	pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
122	pinctrl-names = "default";
123	vmmc-supply = <&vcc_wifi>;
124	status = "okay";
125};
126
127&nandc {
128	u-boot,dm-spl;
129	status = "okay";
130	#address-cells = <1>;
131	#size-cells = <0>;
132
133	nand@0 {
134		u-boot,dm-spl;
135		reg = <0>;
136		nand-ecc-mode = "hw_syndrome";
137		nand-ecc-strength = <40>;
138		nand-ecc-step-size = <1024>;
139		rockchip,protect-bootrom-blocks;
140	};
141};
142
143&pinctrl {
144	usb-host {
145		host_drv: host-drv {
146			rockchip,pins = <RK_GPIO0 6 RK_FUNC_GPIO &pcfg_pull_default>;
147		};
148	};
149
150	usb-otg {
151		otg_drv: otg-drv {
152			rockchip,pins = <RK_GPIO0 5 RK_FUNC_GPIO &pcfg_pull_default>;
153		};
154	};
155
156	sdmmc {
157		sdmmc_pwr: sdmmc-pwr {
158			rockchip,pins = <RK_GPIO3 7 RK_FUNC_GPIO &pcfg_pull_default>;
159		};
160	};
161
162	sdio {
163		wifi_pwr: wifi-pwr {
164			rockchip,pins = <RK_GPIO3 24 RK_FUNC_GPIO &pcfg_pull_none>;
165		};
166	};
167};
168
169&uart2 {
170	status = "okay";
171	u-boot,dm-pre-reloc;
172};
173
174&usb_host {
175	status = "okay";
176};
177
178&usb_otg {
179	u-boot,dm-spl;
180	status = "okay";
181};
182
183&usbphy {
184	status = "okay";
185};
186
187&wdt {
188	status = "okay";
189};
190