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 | ||
4721ab85 HS |
83 | rtc@51 { |
84 | compatible = "haoyu,hym8563"; | |
85 | reg = <0x51>; | |
86 | interrupt-parent = <&gpio0>; | |
87 | interrupts = <13 IRQ_TYPE_EDGE_FALLING>; | |
88 | pinctrl-names = "default"; | |
89 | pinctrl-0 = <&rtc_int>; | |
90 | #clock-cells = <0>; | |
91 | clock-output-names = "xin32k"; | |
92 | }; | |
93 | ||
fe2c89af BG |
94 | act8846: act8846@5a { |
95 | compatible = "active-semi,act8846"; | |
96 | reg = <0x5a>; | |
97 | status = "okay"; | |
98 | ||
99 | pinctrl-names = "default"; | |
100 | pinctrl-0 = <&act8846_dvs0_ctl>; | |
101 | ||
102 | regulators { | |
103 | vcc_ddr: REG1 { | |
104 | regulator-name = "VCC_DDR"; | |
105 | regulator-min-microvolt = <1200000>; | |
106 | regulator-max-microvolt = <1200000>; | |
107 | regulator-always-on; | |
108 | }; | |
109 | ||
110 | vdd_log: REG2 { | |
111 | regulator-name = "VDD_LOG"; | |
112 | regulator-min-microvolt = <1000000>; | |
113 | regulator-max-microvolt = <1000000>; | |
114 | regulator-always-on; | |
115 | }; | |
116 | ||
117 | vdd_arm: REG3 { | |
118 | regulator-name = "VDD_ARM"; | |
119 | regulator-min-microvolt = <875000>; | |
120 | regulator-max-microvolt = <1300000>; | |
121 | regulator-always-on; | |
122 | }; | |
123 | ||
124 | vcc_io: REG4 { | |
125 | regulator-name = "VCC_IO"; | |
126 | regulator-min-microvolt = <3300000>; | |
127 | regulator-max-microvolt = <3300000>; | |
128 | regulator-always-on; | |
129 | }; | |
130 | ||
131 | vdd_10: REG5 { | |
132 | regulator-name = "VDD_10"; | |
133 | regulator-min-microvolt = <1000000>; | |
134 | regulator-max-microvolt = <1000000>; | |
135 | regulator-always-on; | |
136 | }; | |
137 | ||
138 | vdd_hdmi: REG6 { | |
139 | regulator-name = "VDD_HDMI"; | |
140 | regulator-min-microvolt = <2500000>; | |
141 | regulator-max-microvolt = <2500000>; | |
142 | regulator-always-on; | |
143 | }; | |
144 | ||
145 | vcc18: REG7 { | |
146 | regulator-name = "VCC_18"; | |
147 | regulator-min-microvolt = <1800000>; | |
148 | regulator-max-microvolt = <1800000>; | |
149 | regulator-always-on; | |
150 | }; | |
151 | ||
152 | vcca_33: REG8 { | |
153 | regulator-name = "VCCA_33"; | |
154 | regulator-min-microvolt = <3300000>; | |
155 | regulator-max-microvolt = <3300000>; | |
156 | regulator-always-on; | |
157 | }; | |
158 | ||
159 | vcc_rmii: REG9 { | |
160 | regulator-name = "VCC_RMII"; | |
161 | regulator-min-microvolt = <3300000>; | |
162 | regulator-max-microvolt = <3300000>; | |
163 | regulator-always-on; | |
164 | }; | |
165 | ||
166 | vccio_wl: REG10 { | |
167 | regulator-name = "VCCIO_WL"; | |
168 | regulator-min-microvolt = <3300000>; | |
169 | regulator-max-microvolt = <3300000>; | |
170 | regulator-always-on; | |
171 | }; | |
172 | ||
173 | vcc_18: REG11 { | |
174 | regulator-name = "VCC18_IO"; | |
175 | regulator-min-microvolt = <1800000>; | |
176 | regulator-max-microvolt = <1800000>; | |
177 | regulator-always-on; | |
178 | }; | |
179 | ||
180 | vcc28: REG12 { | |
181 | regulator-name = "VCC_28"; | |
182 | regulator-min-microvolt = <2800000>; | |
183 | regulator-max-microvolt = <2800000>; | |
184 | regulator-always-on; | |
185 | }; | |
186 | }; | |
187 | }; | |
188 | }; | |
189 | ||
b09e35a3 HS |
190 | &mmc0 { |
191 | num-slots = <1>; | |
192 | status = "okay"; | |
193 | vmmc-supply = <&vcc_sd0>; | |
194 | ||
356649ab JC |
195 | bus-width = <4>; |
196 | disable-wp; | |
b09e35a3 HS |
197 | }; |
198 | ||
fe2c89af BG |
199 | &pinctrl { |
200 | pcfg_output_low: pcfg-output-low { | |
201 | output-low; | |
202 | }; | |
203 | ||
204 | act8846 { | |
205 | act8846_dvs0_ctl: act8846-dvs0-ctl { | |
206 | rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>; | |
207 | }; | |
208 | }; | |
08567053 | 209 | |
4721ab85 HS |
210 | hym8563 { |
211 | rtc_int: rtc-int { | |
212 | rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>; | |
213 | }; | |
214 | }; | |
215 | ||
08567053 BG |
216 | ir-receiver { |
217 | ir_recv_pin: ir-recv-pin { | |
218 | rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>; | |
219 | }; | |
220 | }; | |
fe2c89af BG |
221 | }; |
222 | ||
fcbbf965 HS |
223 | &uart0 { |
224 | status = "okay"; | |
225 | }; | |
226 | ||
227 | &uart1 { | |
228 | status = "okay"; | |
229 | }; | |
230 | ||
231 | &uart2 { | |
fcbbf965 HS |
232 | status = "okay"; |
233 | }; | |
234 | ||
235 | &uart3 { | |
236 | status = "okay"; | |
237 | }; | |
eb2b9d47 HS |
238 | |
239 | &wdt { | |
240 | status = "okay"; | |
241 | }; |