summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts/rk3288-phycore-som.dts
blob: 67073b2d83d40e6919570b1894a2462754f5b050 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
 * Copyright (C) 2016 PHYTEC Messtechnik GmbH,
 * Author: Wadim Egorov <w.egorov@phytec.de>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/dts-v1/;

#include <arm/rk3288.dtsi>

/ {
	model = "phycore-rk3288";
	compatible = "phytec,rk3288-phycore-som", "rockchip,rk3288";

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x0 0x0 0x40000000>;
	};

	vcc33: fixedregulator@0 {
		compatible = "regulator-fixed";
		regulator-name = "vcc33";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		startup-delay-us = <100000>;
		regulator-boot-on;
		regulator-always-on;
	};

	vcc18: fixedregulator@1 {
		compatible = "regulator-fixed";
		regulator-name = "vcc18";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-boot-on;
		regulator-always-on;
	};

	chosen {
		stdout-path = &uart2;

		environment-emmc {
			compatible = "barebox,environment";
			device-path = &emmc, "partname:barebox-environment";
			status = "disabled";
		};

		environment-sdmmc {
			compatible = "barebox,environment";
			device-path = &sdmmc, "partname:barebox-environment";
			status = "disabled";
		};
	};
};

&pinctrl {
	sdmmc {
		sdmmc_pwr: sdmmc-pwr {
			rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
		};
	};
};

&i2c0 {
	clock-frequency = <400000>;
	status = "okay";
};

&emmc {
	broken-cd;
	bus-width = <8>;
	cap-mmc-highspeed;
	disable-wp;
	non-removable;
	num-slots = <1>;
	pinctrl-names = "default";
	pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
	vmmc-supply = <&vcc33>;
	vqmmc-supply = <&vcc18>;
	status = "okay";

	#size-cells = <1>;
	#address-cells = <1>;

	partition@8000 {
		label = "spl";
		reg = <0x8000 0x8000>;
	};

	partition@20000 {
		label = "barebox";
		reg = <0x20000 0x80000>;
	};

	partition@a0000 {
		label = "barebox-environment";
		reg = <0xa0000 0x20000>;
	};
};

&sdmmc {
	bus-width = <4>;
	cap-mmc-highspeed;
	cap-sd-highspeed;
	card-detect-delay = <200>;
	disable-wp;
	num-slots = <1>;
	pinctrl-names = "default";
	pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
	vmmc-supply = <&vcc33>;
	status = "okay";

	#address-cells = <1>;
	#size-cells = <1>;

	partition@8000 {
		label = "spl";
		reg = <0x8000 0x8000>;
	};

	partition@20000 {
		label = "barebox";
		reg = <0x20000 0x80000>;
	};

	partition@a0000 {
		label = "barebox-environment";
		reg = <0xa0000 0x20000>;
	};
};

&uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
	reg-shift = <2>;
	status = "okay";
};

&uart2 {
	status = "okay";
};