2 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include <dt-bindings/pwm/pwm.h>
45 #include "rk3368.dtsi"
46 #include "rk3368-android.dtsi"
49 model = "Rockchip Sheep board";
50 compatible = "rockchip,sheep", "rockchip,rk3368";
53 compatible = "simple-audio-card";
54 simple-audio-card,format = "i2s";
55 simple-audio-card,name = "rockchip,rt5640-codec";
56 simple-audio-card,mclk-fs = <256>;
57 simple-audio-card,widgets =
58 "Microphone", "Mic Jack",
59 "Headphone", "Headphone Jack";
60 simple-audio-card,routing =
61 "Mic Jack", "MICBIAS1",
63 "Headphone Jack", "HPOL",
64 "Headphone Jack", "HPOR";
65 simple-audio-card,cpu {
66 sound-dai = <&i2s_8ch>;
68 simple-audio-card,codec {
69 sound-dai = <&rt5640>;
73 backlight: backlight {
74 compatible = "pwm-backlight";
75 pwms = <&pwm0 0 25000 PWM_POLARITY_INVERTED>;
77 135 135 136 136 137 137 138 138
78 139 139 140 140 141 141 142 142
79 143 143 143 144 144 145 145 146
80 146 147 147 148 148 149 149 150
81 150 151 151 151 152 152 153 153
82 154 154 155 155 156 156 157 157
83 158 158 159 159 159 160 160 161
84 161 162 162 163 163 164 164 165
85 165 166 166 167 167 167 168 168
86 169 169 170 170 171 171 172 172
87 173 173 174 174 175 175 175 176
88 176 177 177 178 178 179 179 180
89 180 181 181 182 182 183 183 183
90 184 184 185 185 186 186 187 187
91 188 188 189 189 190 190 191 191
92 191 192 192 193 193 194 194 195
93 195 196 196 197 197 198 198 199
94 199 199 200 200 201 201 202 202
95 203 203 204 204 205 205 206 206
96 207 207 207 208 208 209 209 210
97 210 211 211 212 212 213 213 214
98 214 215 215 215 216 216 217 217
99 218 218 219 219 220 220 221 221
100 222 222 223 223 223 224 224 225
101 225 226 226 227 227 228 228 229
102 229 230 230 231 231 231 232 232
103 233 233 234 234 235 235 236 236
104 237 237 238 238 239 239 239 240
105 240 241 241 242 242 243 243 244
106 244 245 245 246 246 247 247 247
107 248 248 249 249 250 250 251 251
108 252 252 253 253 254 254 255 255>;
109 default-brightness-level = <200>;
110 enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
113 rk_key: rockchip-key {
114 compatible = "rockchip,key";
117 io-channels = <&saradc 1>;
122 rockchip,adc_value = <1>;
127 label = "volume down";
128 rockchip,adc_value = <170>;
132 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
141 rockchip,adc_value = <355>;
147 rockchip,adc_value = <746>;
153 rockchip,adc_value = <560>;
159 rockchip,adc_value = <450>;
164 compatible = "regulator-fixed";
165 regulator-name = "vcc_sys";
168 regulator-min-microvolt = <3800000>;
169 regulator-max-microvolt = <3800000>;
173 compatible = "regulator-fixed";
175 gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&host_vbus_drv>;
178 regulator-name = "vcc_host";
192 pinctrl-names = "default";
193 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
198 clock-frequency = <37500000>;
199 clock-freq-min-max = <400000 37500000>;
203 card-detect-delay = <200>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
214 compatible = "silergy,syr827";
218 regulator-compatible = "fan53555-reg";
219 regulator-name = "vdd_arm";
220 regulator-min-microvolt = <712500>;
221 regulator-max-microvolt = <1500000>;
222 regulator-ramp-delay = <1000>;
223 fcs,suspend-voltage-selector = <1>;
226 regulator-initial-state = <3>;
227 regulator-state-mem {
228 regulator-off-in-suspend;
229 regulator-suspend-microvolt = <900000>;
234 compatible = "rockchip,rk818";
238 clock-output-names = "xin32k", "wifibt_32kin";
239 interrupt-parent = <&gpio0>;
240 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&pmic_int_l>;
243 rockchip,system-power-controller;
247 vcc1-supply = <&vcc_sys>;
248 vcc2-supply = <&vcc_sys>;
249 vcc3-supply = <&vcc_sys>;
250 vcc4-supply = <&vcc_sys>;
251 vcc6-supply = <&vcc_sys>;
252 vcc7-supply = <&vcc_sys>;
253 vcc8-supply = <&vcc_sys>;
254 vcc9-supply = <&vcc_io>;
257 vdd_logic: DCDC_REG1 {
258 regulator-name = "vdd_logic";
261 regulator-min-microvolt = <750000>;
262 regulator-max-microvolt = <1450000>;
263 regulator-ramp-delay = <6001>;
264 regulator-state-mem {
265 regulator-on-in-suspend;
266 regulator-suspend-microvolt = <1000000>;
271 regulator-name = "vdd_gpu";
274 regulator-min-microvolt = <800000>;
275 regulator-max-microvolt = <1250000>;
276 regulator-ramp-delay = <6001>;
277 regulator-state-mem {
278 regulator-on-in-suspend;
279 regulator-suspend-microvolt = <1000000>;
286 regulator-name = "vcc_ddr";
287 regulator-state-mem {
288 regulator-on-in-suspend;
295 regulator-min-microvolt = <3300000>;
296 regulator-max-microvolt = <3300000>;
297 regulator-name = "vcc_io";
298 regulator-state-mem {
299 regulator-on-in-suspend;
300 regulator-suspend-microvolt = <3300000>;
304 vcca_codec: LDO_REG1 {
307 regulator-min-microvolt = <3300000>;
308 regulator-max-microvolt = <3300000>;
309 regulator-name = "vcca_codec";
310 regulator-state-mem {
311 regulator-on-in-suspend;
312 regulator-suspend-microvolt = <3300000>;
318 regulator-min-microvolt = <3000000>;
319 regulator-max-microvolt = <3000000>;
320 regulator-name = "vcc_tp";
321 regulator-state-mem {
322 regulator-off-in-suspend;
329 regulator-min-microvolt = <1000000>;
330 regulator-max-microvolt = <1000000>;
331 regulator-name = "vdd_10";
332 regulator-state-mem {
333 regulator-on-in-suspend;
334 regulator-suspend-microvolt = <1000000>;
338 vcc18_lcd: LDO_REG4 {
341 regulator-min-microvolt = <1800000>;
342 regulator-max-microvolt = <1800000>;
343 regulator-name = "vcc18_lcd";
344 regulator-state-mem {
345 regulator-on-in-suspend;
346 regulator-suspend-microvolt = <1800000>;
350 vccio_pmu: LDO_REG5 {
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
355 regulator-name = "vccio_pmu";
356 regulator-state-mem {
357 regulator-on-in-suspend;
358 regulator-suspend-microvolt = <1800000>;
362 vdd10_lcd: LDO_REG6 {
365 regulator-min-microvolt = <1000000>;
366 regulator-max-microvolt = <1000000>;
367 regulator-name = "vdd10_lcd";
368 regulator-state-mem {
369 regulator-on-in-suspend;
370 regulator-suspend-microvolt = <1000000>;
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
379 regulator-name = "vcc_18";
380 regulator-state-mem {
381 regulator-on-in-suspend;
382 regulator-suspend-microvolt = <1800000>;
389 regulator-min-microvolt = <1800000>;
390 regulator-max-microvolt = <3300000>;
391 regulator-name = "vccio_wl";
392 regulator-state-mem {
393 regulator-on-in-suspend;
394 regulator-suspend-microvolt = <3300000>;
401 regulator-min-microvolt = <1800000>;
402 regulator-max-microvolt = <3300000>;
403 regulator-name = "vccio_sd";
404 regulator-state-mem {
405 regulator-on-in-suspend;
406 regulator-suspend-microvolt = <3300000>;
413 regulator-name = "vcc_sd";
414 regulator-state-mem {
415 regulator-on-in-suspend;
419 boost_otg: DCDC_BOOST {
420 regulator-name = "boost_otg";
423 regulator-min-microvolt = <5000000>;
424 regulator-max-microvolt = <5000000>;
425 regulator-state-mem {
426 regulator-on-in-suspend;
427 regulator-suspend-microvolt = <5000000>;
435 cpu-supply = <&syr827>;
439 cpu-supply = <&syr827>;
443 cpu-supply = <&syr827>;
447 cpu-supply = <&syr827>;
451 cpu-supply = <&syr827>;
455 cpu-supply = <&syr827>;
459 cpu-supply = <&syr827>;
463 cpu-supply = <&syr827>;
467 logic-supply = <&vdd_logic>;
474 compatible = "realtek,rt5640";
476 #sound-dai-cells = <0>;
477 clocks = <&cru SCLK_I2S_8CH_OUT>;
478 clock-names = "mclk";
479 realtek,in1-differential;
488 compatible = "goodix,gt9xx";
490 touch-gpio = <&gpio0 12 IRQ_TYPE_LEVEL_LOW>;
491 reset-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
495 tp-supply = <&vcc_tp>;
502 rockchip,i2s-broken-burst-len;
503 rockchip,playback-channels = <8>;
504 rockchip,capture-channels = <2>;
505 #sound-dai-cells = <0>;
510 dvp-supply = <&vcc_18>;
511 audio-supply = <&vcc_io>;
512 gpio30-supply = <&vcc_io>;
513 gpio1830-supply = <&vcc_io>;
514 sdcard-supply = <&vccio_sd>;
515 wifi-supply = <&vccio_wl>;
520 pmu-supply = <&vcc_io>;
521 vop-supply = <&vcc_io>;
531 u2phy_host: host-port {
532 phy-supply = <&vcc_host>;
557 compatible = "simple-panel-dsi";
559 backlight = <&backlight>;
560 enable-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
561 dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST)>;
562 dsi,format = <MIPI_DSI_FMT_RGB888>;
564 delay,prepare = <120>;
567 disp_timings: display-timings {
568 native-mode = <&timing0>;
571 clock-frequency = <150000000>;
583 pixelclk-active = <0>;
590 rockchip,dsi-panel = <&dsi_panel>;
599 tsadc-supply = <&syr827>;
605 pmic_int_l: pmic-int-l {
606 rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO &pcfg_pull_up>;
611 host_vbus_drv: host-vbus-drv {
612 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_none>;