blob: d63d685ea6cc9614ede71e7fbcd5755931036311 [file] [log] [blame]
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +02001/*
2 * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15/dts-v1/;
16#include "rk3188.dtsi"
17
18/ {
19 model = "Radxa Rock";
Beniamino Galvaniac4eba82014-05-06 19:10:11 +020020 compatible = "radxa,rock", "rockchip,rk3188";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020021
22 memory {
23 reg = <0x60000000 0x80000000>;
24 };
25
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020026 gpio-keys {
27 compatible = "gpio-keys";
28 #address-cells = <1>;
29 #size-cells = <0>;
30 autorepeat;
31
32 button@0 {
33 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
34 linux,code = <116>;
35 label = "GPIO Key Power";
36 linux,input-type = <1>;
37 gpio-key,wakeup = <1>;
38 debounce-interval = <100>;
39 };
40 };
41
42 gpio-leds {
43 compatible = "gpio-leds";
44
45 green {
46 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
47 default-state = "off";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020048 };
49
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020050 yellow {
51 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52 default-state = "off";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020053 };
54
Heiko Stuebnerc3030d32014-07-26 18:44:35 +020055 sleep {
56 gpios = <&gpio0 15 0>;
57 default-state = "off";
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020058 };
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020059 };
Heiko Stuebnerb09e35a2014-06-26 16:18:44 +020060
Beniamino Galvani08567052014-07-13 14:10:01 +020061 ir_recv: gpio-ir-receiver {
62 compatible = "gpio-ir-receiver";
63 gpios = <&gpio0 10 1>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&ir_recv_pin>;
66 };
67
Heiko Stuebnerb09e35a2014-06-26 16:18:44 +020068 vcc_sd0: sdmmc-regulator {
69 compatible = "regulator-fixed";
70 regulator-name = "sdmmc-supply";
71 regulator-min-microvolt = <3300000>;
72 regulator-max-microvolt = <3300000>;
73 gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
74 startup-delay-us = <100000>;
75 vin-supply = <&vcc_io>;
76 };
Heiko Stuebner6bcf60f2013-10-14 17:34:02 +020077};
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +020078
Romain Perierc6ec9562014-09-08 17:14:50 +000079&emac {
80 status = "okay";
81
82 pinctrl-names = "default";
83 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
84
85 phy = <&phy0>;
86 phy-supply = <&vcc_rmii>;
87
88 phy0: ethernet-phy@0 {
89 reg = <0>;
90 interrupt-parent = <&gpio3>;
91 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
92 };
93};
94
Beniamino Galvanife2c89a2014-06-22 16:41:09 +020095&i2c1 {
96 status = "okay";
97 clock-frequency = <400000>;
98
99 act8846: act8846@5a {
100 compatible = "active-semi,act8846";
101 reg = <0x5a>;
102 status = "okay";
103
104 pinctrl-names = "default";
105 pinctrl-0 = <&act8846_dvs0_ctl>;
106
107 regulators {
108 vcc_ddr: REG1 {
109 regulator-name = "VCC_DDR";
110 regulator-min-microvolt = <1200000>;
111 regulator-max-microvolt = <1200000>;
112 regulator-always-on;
113 };
114
115 vdd_log: REG2 {
116 regulator-name = "VDD_LOG";
117 regulator-min-microvolt = <1000000>;
118 regulator-max-microvolt = <1000000>;
119 regulator-always-on;
120 };
121
122 vdd_arm: REG3 {
123 regulator-name = "VDD_ARM";
124 regulator-min-microvolt = <875000>;
125 regulator-max-microvolt = <1300000>;
126 regulator-always-on;
127 };
128
129 vcc_io: REG4 {
130 regulator-name = "VCC_IO";
131 regulator-min-microvolt = <3300000>;
132 regulator-max-microvolt = <3300000>;
133 regulator-always-on;
134 };
135
136 vdd_10: REG5 {
137 regulator-name = "VDD_10";
138 regulator-min-microvolt = <1000000>;
139 regulator-max-microvolt = <1000000>;
140 regulator-always-on;
141 };
142
143 vdd_hdmi: REG6 {
144 regulator-name = "VDD_HDMI";
145 regulator-min-microvolt = <2500000>;
146 regulator-max-microvolt = <2500000>;
147 regulator-always-on;
148 };
149
150 vcc18: REG7 {
151 regulator-name = "VCC_18";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
154 regulator-always-on;
155 };
156
157 vcca_33: REG8 {
158 regulator-name = "VCCA_33";
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
161 regulator-always-on;
162 };
163
164 vcc_rmii: REG9 {
165 regulator-name = "VCC_RMII";
166 regulator-min-microvolt = <3300000>;
167 regulator-max-microvolt = <3300000>;
168 regulator-always-on;
169 };
170
171 vccio_wl: REG10 {
172 regulator-name = "VCCIO_WL";
173 regulator-min-microvolt = <3300000>;
174 regulator-max-microvolt = <3300000>;
175 regulator-always-on;
176 };
177
178 vcc_18: REG11 {
179 regulator-name = "VCC18_IO";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <1800000>;
182 regulator-always-on;
183 };
184
185 vcc28: REG12 {
186 regulator-name = "VCC_28";
187 regulator-min-microvolt = <2800000>;
188 regulator-max-microvolt = <2800000>;
189 regulator-always-on;
190 };
191 };
192 };
193};
194
Heiko Stuebnerb09e35a2014-06-26 16:18:44 +0200195&mmc0 {
196 num-slots = <1>;
197 status = "okay";
Heiko Stuebner1302d322014-08-11 19:51:44 +0200198 pinctrl-names = "default";
199 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
Heiko Stuebnerb09e35a2014-06-26 16:18:44 +0200200 vmmc-supply = <&vcc_sd0>;
201
202 slot@0 {
203 reg = <0>;
204 bus-width = <4>;
205 disable-wp;
206 };
207};
208
Beniamino Galvanife2c89a2014-06-22 16:41:09 +0200209&pinctrl {
210 pcfg_output_low: pcfg-output-low {
211 output-low;
212 };
213
214 act8846 {
215 act8846_dvs0_ctl: act8846-dvs0-ctl {
216 rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
217 };
218 };
Beniamino Galvani08567052014-07-13 14:10:01 +0200219
Romain Perierc6ec9562014-09-08 17:14:50 +0000220 lan8720a {
221 phy_int: phy-int {
222 rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
223 };
224 };
225
Beniamino Galvani08567052014-07-13 14:10:01 +0200226 ir-receiver {
227 ir_recv_pin: ir-recv-pin {
228 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
229 };
230 };
Beniamino Galvanife2c89a2014-06-22 16:41:09 +0200231};
232
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200233&uart0 {
234 status = "okay";
235};
236
237&uart1 {
238 status = "okay";
239};
240
241&uart2 {
Heiko Stuebnerfcbbf962014-07-26 23:08:06 +0200242 status = "okay";
243};
244
245&uart3 {
246 status = "okay";
247};
Heiko Stuebnereb2b9d42014-07-30 10:16:17 +0200248
249&wdt {
250 status = "okay";
251};