Commit | Line | Data |
---|---|---|
6bcf60f8 HS |
1 | /* |
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"; | |
ac4eba8e | 20 | compatible = "radxa,rock", "rockchip,rk3188"; |
6bcf60f8 HS |
21 | |
22 | memory { | |
23 | reg = <0x60000000 0x80000000>; | |
24 | }; | |
25 | ||
c3030d30 HS |
26 | gpio-keys { |
27 | compatible = "gpio-keys"; | |
28 | #address-cells = <1>; | |
29 | #size-cells = <0>; | |
30 | autorepeat; | |
6bcf60f8 | 31 | |
c3030d30 HS |
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>; | |
6bcf60f8 | 39 | }; |
c3030d30 | 40 | }; |
6bcf60f8 | 41 | |
c3030d30 HS |
42 | gpio-leds { |
43 | compatible = "gpio-leds"; | |
6bcf60f8 | 44 | |
c3030d30 HS |
45 | green { |
46 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | |
47 | default-state = "off"; | |
48 | }; | |
6bcf60f8 | 49 | |
c3030d30 HS |
50 | yellow { |
51 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | |
52 | default-state = "off"; | |
6bcf60f8 HS |
53 | }; |
54 | ||
c3030d30 HS |
55 | sleep { |
56 | gpios = <&gpio0 15 0>; | |
57 | default-state = "off"; | |
58 | }; | |
6bcf60f8 | 59 | }; |
b09e35a3 | 60 | |
08567053 BG |
61 | 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 | ||
b09e35a3 HS |
68 | 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 | }; | |
6bcf60f8 | 77 | }; |
fcbbf965 | 78 | |
fe2c89af BG |
79 | &i2c1 { |
80 | status = "okay"; | |
81 | clock-frequency = <400000>; | |
82 | ||
83 | act8846: act8846@5a { | |
84 | compatible = "active-semi,act8846"; | |
85 | reg = <0x5a>; | |
86 | status = "okay"; | |
87 | ||
88 | pinctrl-names = "default"; | |
89 | pinctrl-0 = <&act8846_dvs0_ctl>; | |
90 | ||
91 | regulators { | |
92 | vcc_ddr: REG1 { | |
93 | regulator-name = "VCC_DDR"; | |
94 | regulator-min-microvolt = <1200000>; | |
95 | regulator-max-microvolt = <1200000>; | |
96 | regulator-always-on; | |
97 | }; | |
98 | ||
99 | vdd_log: REG2 { | |
100 | regulator-name = "VDD_LOG"; | |
101 | regulator-min-microvolt = <1000000>; | |
102 | regulator-max-microvolt = <1000000>; | |
103 | regulator-always-on; | |
104 | }; | |
105 | ||
106 | vdd_arm: REG3 { | |
107 | regulator-name = "VDD_ARM"; | |
108 | regulator-min-microvolt = <875000>; | |
109 | regulator-max-microvolt = <1300000>; | |
110 | regulator-always-on; | |
111 | }; | |
112 | ||
113 | vcc_io: REG4 { | |
114 | regulator-name = "VCC_IO"; | |
115 | regulator-min-microvolt = <3300000>; | |
116 | regulator-max-microvolt = <3300000>; | |
117 | regulator-always-on; | |
118 | }; | |
119 | ||
120 | vdd_10: REG5 { | |
121 | regulator-name = "VDD_10"; | |
122 | regulator-min-microvolt = <1000000>; | |
123 | regulator-max-microvolt = <1000000>; | |
124 | regulator-always-on; | |
125 | }; | |
126 | ||
127 | vdd_hdmi: REG6 { | |
128 | regulator-name = "VDD_HDMI"; | |
129 | regulator-min-microvolt = <2500000>; | |
130 | regulator-max-microvolt = <2500000>; | |
131 | regulator-always-on; | |
132 | }; | |
133 | ||
134 | vcc18: REG7 { | |
135 | regulator-name = "VCC_18"; | |
136 | regulator-min-microvolt = <1800000>; | |
137 | regulator-max-microvolt = <1800000>; | |
138 | regulator-always-on; | |
139 | }; | |
140 | ||
141 | vcca_33: REG8 { | |
142 | regulator-name = "VCCA_33"; | |
143 | regulator-min-microvolt = <3300000>; | |
144 | regulator-max-microvolt = <3300000>; | |
145 | regulator-always-on; | |
146 | }; | |
147 | ||
148 | vcc_rmii: REG9 { | |
149 | regulator-name = "VCC_RMII"; | |
150 | regulator-min-microvolt = <3300000>; | |
151 | regulator-max-microvolt = <3300000>; | |
152 | regulator-always-on; | |
153 | }; | |
154 | ||
155 | vccio_wl: REG10 { | |
156 | regulator-name = "VCCIO_WL"; | |
157 | regulator-min-microvolt = <3300000>; | |
158 | regulator-max-microvolt = <3300000>; | |
159 | regulator-always-on; | |
160 | }; | |
161 | ||
162 | vcc_18: REG11 { | |
163 | regulator-name = "VCC18_IO"; | |
164 | regulator-min-microvolt = <1800000>; | |
165 | regulator-max-microvolt = <1800000>; | |
166 | regulator-always-on; | |
167 | }; | |
168 | ||
169 | vcc28: REG12 { | |
170 | regulator-name = "VCC_28"; | |
171 | regulator-min-microvolt = <2800000>; | |
172 | regulator-max-microvolt = <2800000>; | |
173 | regulator-always-on; | |
174 | }; | |
175 | }; | |
176 | }; | |
177 | }; | |
178 | ||
b09e35a3 HS |
179 | &mmc0 { |
180 | num-slots = <1>; | |
181 | status = "okay"; | |
182 | vmmc-supply = <&vcc_sd0>; | |
183 | ||
184 | slot@0 { | |
185 | reg = <0>; | |
186 | bus-width = <4>; | |
187 | disable-wp; | |
188 | }; | |
189 | }; | |
190 | ||
fe2c89af BG |
191 | &pinctrl { |
192 | pcfg_output_low: pcfg-output-low { | |
193 | output-low; | |
194 | }; | |
195 | ||
196 | act8846 { | |
197 | act8846_dvs0_ctl: act8846-dvs0-ctl { | |
198 | rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>; | |
199 | }; | |
200 | }; | |
08567053 BG |
201 | |
202 | ir-receiver { | |
203 | ir_recv_pin: ir-recv-pin { | |
204 | rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>; | |
205 | }; | |
206 | }; | |
fe2c89af BG |
207 | }; |
208 | ||
fcbbf965 HS |
209 | &uart0 { |
210 | status = "okay"; | |
211 | }; | |
212 | ||
213 | &uart1 { | |
214 | status = "okay"; | |
215 | }; | |
216 | ||
217 | &uart2 { | |
fcbbf965 HS |
218 | status = "okay"; |
219 | }; | |
220 | ||
221 | &uart3 { | |
222 | status = "okay"; | |
223 | }; | |
eb2b9d47 HS |
224 | |
225 | &wdt { | |
226 | status = "okay"; | |
227 | }; |