~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 /*
  3  * Copyright (c) 2019 Shenzhen Wesion Technology Co., Ltd.
  4  * (https://www.khadas.com)
  5  */
  6 
  7 /dts-v1/;
  8 #include <dt-bindings/input/linux-event-codes.h>
  9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/pwm/pwm.h>
 11 #include "rk3399.dtsi"
 12 #include "rk3399-opp.dtsi"
 13 
 14 / {
 15         aliases {
 16                 mmc0 = &sdio0;
 17                 mmc1 = &sdmmc;
 18                 mmc2 = &sdhci;
 19         };
 20 
 21         chosen {
 22                 stdout-path = "serial2:1500000n8";
 23         };
 24 
 25         clkin_gmac: external-gmac-clock {
 26                 compatible = "fixed-clock";
 27                 clock-frequency = <125000000>;
 28                 clock-output-names = "clkin_gmac";
 29                 #clock-cells = <0>;
 30         };
 31 
 32         sdio_pwrseq: sdio-pwrseq {
 33                 compatible = "mmc-pwrseq-simple";
 34                 clocks = <&rk808 1>;
 35                 clock-names = "ext_clock";
 36                 pinctrl-names = "default";
 37                 pinctrl-0 = <&wifi_enable_h>;
 38 
 39                 /*
 40                  * On the module itself this is one of these (depending
 41                  * on the actual card populated):
 42                  * - SDIO_RESET_L_WL_REG_ON
 43                  * - PDN (power down when low)
 44                  */
 45                 reset-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_LOW>;
 46         };
 47 
 48         /* switched by pmic_sleep */
 49         vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
 50                 compatible = "regulator-fixed";
 51                 regulator-name = "vcc1v8_s3";
 52                 regulator-always-on;
 53                 regulator-boot-on;
 54                 regulator-min-microvolt = <1800000>;
 55                 regulator-max-microvolt = <1800000>;
 56                 vin-supply = <&vcc_1v8>;
 57         };
 58 
 59         vcc3v3_pcie: vcc3v3-pcie-regulator {
 60                 compatible = "regulator-fixed";
 61                 regulator-name = "vcc3v3_pcie";
 62                 regulator-always-on;
 63                 regulator-boot-on;
 64                 regulator-min-microvolt = <3300000>;
 65                 regulator-max-microvolt = <3300000>;
 66                 vin-supply = <&vsys_3v3>;
 67         };
 68 
 69         /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
 70         vcc5v0_host: vcc5v0-host-regulator {
 71                 compatible = "regulator-fixed";
 72                 enable-active-high;
 73                 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
 74                 pinctrl-names = "default";
 75                 pinctrl-0 = <&vcc5v0_host_en>;
 76                 regulator-name = "vcc5v0_host";
 77                 regulator-always-on;
 78                 vin-supply = <&vsys_5v0>;
 79         };
 80 
 81         vdd_log: vdd-log {
 82                 compatible = "pwm-regulator";
 83                 pwms = <&pwm2 0 25000 1>;
 84                 pwm-supply = <&vsys_3v3>;
 85                 regulator-name = "vdd_log";
 86                 regulator-always-on;
 87                 regulator-boot-on;
 88                 regulator-min-microvolt = <800000>;
 89                 regulator-max-microvolt = <1400000>;
 90         };
 91 
 92         vsys: vsys {
 93                 compatible = "regulator-fixed";
 94                 regulator-name = "vsys";
 95                 regulator-always-on;
 96                 regulator-boot-on;
 97         };
 98 
 99         vsys_3v3: vsys-3v3 {
100                 compatible = "regulator-fixed";
101                 regulator-name = "vsys_3v3";
102                 regulator-always-on;
103                 regulator-boot-on;
104                 regulator-min-microvolt = <3300000>;
105                 regulator-max-microvolt = <3300000>;
106                 vin-supply = <&vsys>;
107         };
108 
109         vsys_5v0: vsys-5v0 {
110                 compatible = "regulator-fixed";
111                 regulator-name = "vsys_5v0";
112                 regulator-always-on;
113                 regulator-boot-on;
114                 regulator-min-microvolt = <5000000>;
115                 regulator-max-microvolt = <5000000>;
116                 vin-supply = <&vsys>;
117         };
118 
119         adc-keys {
120                 compatible = "adc-keys";
121                 io-channels = <&saradc 1>;
122                 io-channel-names = "buttons";
123                 keyup-threshold-microvolt = <1800000>;
124                 poll-interval = <100>;
125 
126                 button-recovery {
127                         label = "Recovery";
128                         linux,code = <KEY_VENDOR>;
129                         press-threshold-microvolt = <18000>;
130                 };
131         };
132 
133         gpio-keys {
134                 compatible = "gpio-keys";
135                 autorepeat;
136                 pinctrl-names = "default";
137                 pinctrl-0 = <&pwrbtn>;
138 
139                 key-power {
140                         debounce-interval = <100>;
141                         gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
142                         label = "GPIO Key Power";
143                         linux,code = <KEY_POWER>;
144                         wakeup-source;
145                 };
146         };
147 
148         ir-receiver {
149                 compatible = "gpio-ir-receiver";
150                 gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
151                 linux,rc-map-name = "rc-khadas";
152                 pinctrl-names = "default";
153                 pinctrl-0 = <&ir_rx>;
154         };
155 
156         leds {
157                 compatible = "gpio-leds";
158                 pinctrl-names = "default";
159                 pinctrl-0 = <&sys_led_pin>, <&user_led_pin>;
160 
161                 sys_led: led-0 {
162                         label = "sys_led";
163                         linux,default-trigger = "heartbeat";
164                         gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
165                 };
166 
167                 user_led: led-1 {
168                         label = "user_led";
169                         default-state = "off";
170                         gpios = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>;
171                 };
172         };
173 
174         fan: pwm-fan {
175                 compatible = "pwm-fan";
176                 cooling-levels = <0 150 200 255>;
177                 #cooling-cells = <2>;
178                 fan-supply = <&vsys_5v0>;
179                 pwms = <&pwm0 0 40000 0>;
180         };
181 };
182 
183 &cpu_l0 {
184         cpu-supply = <&vdd_cpu_l>;
185 };
186 
187 &cpu_l1 {
188         cpu-supply = <&vdd_cpu_l>;
189 };
190 
191 &cpu_l2 {
192         cpu-supply = <&vdd_cpu_l>;
193 };
194 
195 &cpu_l3 {
196         cpu-supply = <&vdd_cpu_l>;
197 };
198 
199 &cpu_b0 {
200         cpu-supply = <&vdd_cpu_b>;
201 };
202 
203 &cpu_b1 {
204         cpu-supply = <&vdd_cpu_b>;
205 };
206 
207 &cpu_thermal {
208         trips {
209                 cpu_warm: cpu_warm {
210                         temperature = <55000>;
211                         hysteresis = <2000>;
212                         type = "active";
213                 };
214 
215                 cpu_hot: cpu_hot {
216                         temperature = <65000>;
217                         hysteresis = <2000>;
218                         type = "active";
219                 };
220         };
221 
222         cooling-maps {
223                 map2 {
224                         trip = <&cpu_warm>;
225                         cooling-device = <&fan THERMAL_NO_LIMIT 1>;
226                 };
227 
228                 map3 {
229                         trip = <&cpu_hot>;
230                         cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
231                 };
232         };
233 };
234 
235 &emmc_phy {
236         status = "okay";
237 };
238 
239 &gmac {
240         assigned-clocks = <&cru SCLK_RMII_SRC>;
241         assigned-clock-parents = <&clkin_gmac>;
242         clock_in_out = "input";
243         phy-supply = <&vcc_lan>;
244         phy-mode = "rgmii";
245         pinctrl-names = "default";
246         pinctrl-0 = <&rgmii_pins>;
247         snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
248         snps,reset-active-low;
249         snps,reset-delays-us = <0 10000 50000>;
250         tx_delay = <0x28>;
251         rx_delay = <0x11>;
252 };
253 
254 &gpu {
255         mali-supply = <&vdd_gpu>;
256         status = "okay";
257 };
258 
259 &gpu_thermal {
260         trips {
261                 gpu_warm: gpu_warm {
262                         temperature = <55000>;
263                         hysteresis = <2000>;
264                         type = "active";
265                 };
266 
267                 gpu_hot: gpu_hot {
268                         temperature = <65000>;
269                         hysteresis = <2000>;
270                         type = "active";
271                 };
272         };
273 
274         cooling-maps {
275                 map1 {
276                         trip = <&gpu_warm>;
277                         cooling-device = <&fan THERMAL_NO_LIMIT 1>;
278                 };
279 
280                 map2 {
281                         trip = <&gpu_hot>;
282                         cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
283                 };
284         };
285 };
286 
287 &hdmi {
288         ddc-i2c-bus = <&i2c3>;
289         pinctrl-names = "default";
290         pinctrl-0 = <&hdmi_cec>;
291         status = "okay";
292 };
293 
294 &hdmi_sound {
295         status = "okay";
296 };
297 
298 &i2c3 {
299         i2c-scl-rising-time-ns = <450>;
300         i2c-scl-falling-time-ns = <15>;
301         status = "okay";
302 };
303 
304 &i2c4 {
305         clock-frequency = <400000>;
306         i2c-scl-rising-time-ns = <168>;
307         i2c-scl-falling-time-ns = <4>;
308         status = "okay";
309 
310         rk808: pmic@1b {
311                 compatible = "rockchip,rk808";
312                 reg = <0x1b>;
313                 interrupt-parent = <&gpio1>;
314                 interrupts = <RK_PC6 IRQ_TYPE_LEVEL_LOW>;
315                 #clock-cells = <1>;
316                 clock-output-names = "xin32k", "rk808-clkout2";
317                 pinctrl-names = "default";
318                 pinctrl-0 = <&pmic_int_l>;
319                 rockchip,system-power-controller;
320                 wakeup-source;
321 
322                 vcc1-supply = <&vsys_3v3>;
323                 vcc2-supply = <&vsys_3v3>;
324                 vcc3-supply = <&vsys_3v3>;
325                 vcc4-supply = <&vsys_3v3>;
326                 vcc6-supply = <&vsys_3v3>;
327                 vcc7-supply = <&vsys_3v3>;
328                 vcc8-supply = <&vsys_3v3>;
329                 vcc9-supply = <&vsys_3v3>;
330                 vcc10-supply = <&vsys_3v3>;
331                 vcc11-supply = <&vsys_3v3>;
332                 vcc12-supply = <&vsys_3v3>;
333                 vddio-supply = <&vcc_1v8>;
334 
335                 regulators {
336                         vdd_center: DCDC_REG1 {
337                                 regulator-name = "vdd_center";
338                                 regulator-always-on;
339                                 regulator-boot-on;
340                                 regulator-min-microvolt = <750000>;
341                                 regulator-max-microvolt = <1350000>;
342                                 regulator-ramp-delay = <6001>;
343 
344                                 regulator-state-mem {
345                                         regulator-off-in-suspend;
346                                 };
347                         };
348 
349                         vdd_cpu_l: DCDC_REG2 {
350                                 regulator-name = "vdd_cpu_l";
351                                 regulator-always-on;
352                                 regulator-boot-on;
353                                 regulator-min-microvolt = <750000>;
354                                 regulator-max-microvolt = <1350000>;
355                                 regulator-ramp-delay = <6001>;
356 
357                                 regulator-state-mem {
358                                         regulator-off-in-suspend;
359                                 };
360                         };
361 
362                         vcc_ddr: DCDC_REG3 {
363                                 regulator-name = "vcc_ddr";
364                                 regulator-always-on;
365                                 regulator-boot-on;
366 
367                                 regulator-state-mem {
368                                         regulator-on-in-suspend;
369                                 };
370                         };
371 
372                         vcc_1v8: DCDC_REG4 {
373                                 regulator-name = "vcc_1v8";
374                                 regulator-always-on;
375                                 regulator-boot-on;
376                                 regulator-min-microvolt = <1800000>;
377                                 regulator-max-microvolt = <1800000>;
378 
379                                 regulator-state-mem {
380                                         regulator-on-in-suspend;
381                                         regulator-suspend-microvolt = <1800000>;
382                                 };
383                         };
384 
385                         vcc1v8_apio2: LDO_REG1 {
386                                 regulator-name = "vcc1v8_apio2";
387                                 regulator-always-on;
388                                 regulator-boot-on;
389                                 regulator-min-microvolt = <1800000>;
390                                 regulator-max-microvolt = <1800000>;
391 
392                                 regulator-state-mem {
393                                         regulator-off-in-suspend;
394                                 };
395                         };
396 
397                         vcc_vldo2: LDO_REG2 {
398                                 regulator-name = "vcc_vldo2";
399                                 regulator-always-on;
400                                 regulator-boot-on;
401                                 regulator-min-microvolt = <3000000>;
402                                 regulator-max-microvolt = <3000000>;
403 
404                                 regulator-state-mem {
405                                         regulator-off-in-suspend;
406                                 };
407                         };
408 
409                         vcc1v8_pmupll: LDO_REG3 {
410                                 regulator-name = "vcc1v8_pmupll";
411                                 regulator-always-on;
412                                 regulator-boot-on;
413                                 regulator-min-microvolt = <1800000>;
414                                 regulator-max-microvolt = <1800000>;
415 
416                                 regulator-state-mem {
417                                         regulator-on-in-suspend;
418                                         regulator-suspend-microvolt = <1800000>;
419                                 };
420                         };
421 
422                         vccio_sd: LDO_REG4 {
423                                 regulator-name = "vccio_sd";
424                                 regulator-always-on;
425                                 regulator-boot-on;
426                                 regulator-min-microvolt = <1800000>;
427                                 regulator-max-microvolt = <3000000>;
428 
429                                 regulator-state-mem {
430                                         regulator-on-in-suspend;
431                                         regulator-suspend-microvolt = <3000000>;
432                                 };
433                         };
434 
435                         vcc_vldo5: LDO_REG5 {
436                                 regulator-name = "vcc_vldo5";
437                                 regulator-always-on;
438                                 regulator-boot-on;
439                                 regulator-min-microvolt = <3000000>;
440                                 regulator-max-microvolt = <3000000>;
441 
442                                 regulator-state-mem {
443                                         regulator-off-in-suspend;
444                                 };
445                         };
446 
447                         vcc_1v5: LDO_REG6 {
448                                 regulator-name = "vcc_1v5";
449                                 regulator-always-on;
450                                 regulator-boot-on;
451                                 regulator-min-microvolt = <1500000>;
452                                 regulator-max-microvolt = <1500000>;
453 
454                                 regulator-state-mem {
455                                         regulator-on-in-suspend;
456                                         regulator-suspend-microvolt = <1500000>;
457                                 };
458                         };
459 
460                         vcc1v8_codec: LDO_REG7 {
461                                 regulator-name = "vcc1v8_codec";
462                                 regulator-always-on;
463                                 regulator-boot-on;
464                                 regulator-min-microvolt = <1800000>;
465                                 regulator-max-microvolt = <1800000>;
466 
467                                 regulator-state-mem {
468                                         regulator-off-in-suspend;
469                                 };
470                         };
471 
472                         vcc_3v0: LDO_REG8 {
473                                 regulator-name = "vcc_3v0";
474                                 regulator-always-on;
475                                 regulator-boot-on;
476                                 regulator-min-microvolt = <3000000>;
477                                 regulator-max-microvolt = <3000000>;
478 
479                                 regulator-state-mem {
480                                         regulator-on-in-suspend;
481                                         regulator-suspend-microvolt = <3000000>;
482                                 };
483                         };
484 
485                         vcc3v3_s3: vcc_lan: SWITCH_REG1 {
486                                 regulator-name = "vcc3v3_s3";
487                                 regulator-always-on;
488                                 regulator-boot-on;
489 
490                                 regulator-state-mem {
491                                         regulator-off-in-suspend;
492                                 };
493                         };
494 
495                         vcc3v3_s0: SWITCH_REG2 {
496                                 regulator-name = "vcc3v3_s0";
497                                 regulator-always-on;
498                                 regulator-boot-on;
499 
500                                 regulator-state-mem {
501                                         regulator-off-in-suspend;
502                                 };
503                         };
504                 };
505         };
506 
507         vdd_cpu_b: regulator@40 {
508                 compatible = "silergy,syr827";
509                 reg = <0x40>;
510                 fcs,suspend-voltage-selector = <1>;
511                 pinctrl-names = "default";
512                 pinctrl-0 = <&cpu_b_sleep>;
513                 regulator-name = "vdd_cpu_b";
514                 regulator-min-microvolt = <712500>;
515                 regulator-max-microvolt = <1500000>;
516                 regulator-ramp-delay = <1000>;
517                 regulator-always-on;
518                 regulator-boot-on;
519                 vin-supply = <&vsys_3v3>;
520 
521                 regulator-state-mem {
522                         regulator-off-in-suspend;
523                 };
524         };
525 
526         vdd_gpu: regulator@41 {
527                 compatible = "silergy,syr828";
528                 reg = <0x41>;
529                 fcs,suspend-voltage-selector = <1>;
530                 pinctrl-names = "default";
531                 pinctrl-0 = <&gpu_sleep>;
532                 regulator-name = "vdd_gpu";
533                 regulator-min-microvolt = <712500>;
534                 regulator-max-microvolt = <1500000>;
535                 regulator-ramp-delay = <1000>;
536                 regulator-always-on;
537                 regulator-boot-on;
538                 vin-supply = <&vsys_3v3>;
539 
540                 regulator-state-mem {
541                         regulator-off-in-suspend;
542                 };
543         };
544 };
545 
546 &i2c8 {
547         clock-frequency = <400000>;
548         i2c-scl-rising-time-ns = <160>;
549         i2c-scl-falling-time-ns = <30>;
550         status = "okay";
551 };
552 
553 &i2s0 {
554         rockchip,playback-channels = <8>;
555         rockchip,capture-channels = <8>;
556         status = "okay";
557 };
558 
559 &i2s1 {
560         rockchip,playback-channels = <2>;
561         rockchip,capture-channels = <2>;
562         status = "okay";
563 };
564 
565 &i2s2 {
566         status = "okay";
567 };
568 
569 &io_domains {
570         bt656-supply = <&vcc1v8_apio2>;
571         audio-supply = <&vcc1v8_codec>;
572         sdmmc-supply = <&vccio_sd>;
573         gpio1830-supply = <&vcc_3v0>;
574         status = "okay";
575 };
576 
577 &pmu_io_domains {
578         pmu1830-supply = <&vcc_1v8>;
579         status = "okay";
580 };
581 
582 &pinctrl {
583         bt {
584                 bt_host_wake_l: bt-host-wake-l {
585                         rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
586                 };
587 
588                 bt_reg_on_h: bt-reg-on-h {
589                         rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
590                 };
591 
592                 bt_wake_l: bt-wake-l {
593                         rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
594                 };
595         };
596 
597         buttons {
598                 pwrbtn: pwrbtn {
599                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
600                 };
601         };
602 
603         ir {
604                 ir_rx: ir-rx {
605                     rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
606                 };
607         };
608 
609         leds {
610                 sys_led_pin: sys-led-pin {
611                         rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
612                 };
613 
614                 user_led_pin: user-led-pin {
615                         rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
616                 };
617         };
618 
619         pmic {
620                 pmic_int_l: pmic-int-l {
621                         rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
622                 };
623 
624                 cpu_b_sleep: cpu-b-sleep {
625                         rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
626                 };
627 
628                 gpu_sleep: gpu-sleep {
629                         rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
630                 };
631         };
632 
633         sdio-pwrseq {
634                 wifi_enable_h: wifi-enable-h {
635                         rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
636                 };
637         };
638 
639         usb2 {
640                 vcc5v0_host_en: vcc5v0-host-en {
641                         rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
642                 };
643         };
644 
645         wifi {
646                 wifi_host_wake_l: wifi-host-wake-l {
647                         rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
648                 };
649         };
650 };
651 
652 &pwm0 {
653         status = "okay";
654 };
655 
656 &pwm2 {
657         status = "okay";
658 };
659 
660 &saradc {
661         vref-supply = <&vcca1v8_s3>;
662         status = "okay";
663 };
664 
665 &sdio0 {
666         /* WiFi & BT combo module Ampak AP6356S */
667         bus-width = <4>;
668         cap-sdio-irq;
669         cap-sd-highspeed;
670         keep-power-in-suspend;
671         mmc-pwrseq = <&sdio_pwrseq>;
672         non-removable;
673         pinctrl-names = "default";
674         pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
675         sd-uhs-sdr104;
676         vqmmc-supply = <&vcc1v8_s3>;
677         vmmc-supply = <&vccio_sd>;
678         #address-cells = <1>;
679         #size-cells = <0>;
680         status = "okay";
681 
682         brcmf: wifi@1 {
683                 reg = <1>;
684                 compatible = "brcm,bcm4329-fmac";
685                 interrupt-parent = <&gpio0>;
686                 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
687                 interrupt-names = "host-wake";
688                 brcm,drive-strength = <5>;
689                 pinctrl-names = "default";
690                 pinctrl-0 = <&wifi_host_wake_l>;
691         };
692 };
693 
694 &sdmmc {
695         bus-width = <4>;
696         cap-mmc-highspeed;
697         cap-sd-highspeed;
698         cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
699         disable-wp;
700         max-frequency = <150000000>;
701         pinctrl-names = "default";
702         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
703         status = "okay";
704 };
705 
706 &sdhci {
707         bus-width = <8>;
708         mmc-hs400-1_8v;
709         non-removable;
710         status = "okay";
711 };
712 
713 &spi1 {
714         status = "okay";
715 
716         spiflash: flash@0 {
717                 compatible = "winbond,w25q128fw", "jedec,spi-nor";
718                 reg = <0>;
719                 spi-max-frequency = <104000000>;
720         };
721 };
722 
723 &tcphy0 {
724         status = "okay";
725 };
726 
727 &tcphy1 {
728         status = "okay";
729 };
730 
731 &tsadc {
732         /* tshut mode 0:CRU 1:GPIO */
733         rockchip,hw-tshut-mode = <1>;
734         /* tshut polarity 0:LOW 1:HIGH */
735         rockchip,hw-tshut-polarity = <1>;
736         status = "okay";
737 };
738 
739 &u2phy0 {
740         status = "okay";
741 
742         u2phy0_otg: otg-port {
743                 status = "okay";
744         };
745 
746         u2phy0_host: host-port {
747                 phy-supply = <&vcc5v0_host>;
748                 status = "okay";
749         };
750 };
751 
752 &u2phy1 {
753         status = "okay";
754 
755         u2phy1_otg: otg-port {
756                 status = "okay";
757         };
758 
759         u2phy1_host: host-port {
760                 phy-supply = <&vcc5v0_host>;
761                 status = "okay";
762         };
763 };
764 
765 &uart0 {
766         pinctrl-names = "default";
767         pinctrl-0 = <&uart0_xfer &uart0_rts &uart0_cts>;
768         status = "okay";
769 
770         bluetooth {
771                 compatible = "brcm,bcm43438-bt";
772                 clocks = <&rk808 1>;
773                 clock-names = "lpo";
774                 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
775                 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
776                 shutdown-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
777                 max-speed = <4000000>;
778                 pinctrl-names = "default";
779                 pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>;
780                 vbat-supply = <&vsys_3v3>;
781                 vddio-supply = <&vcc_1v8>;
782         };
783 };
784 
785 &uart2 {
786         status = "okay";
787 };
788 
789 &usb_host0_ehci {
790         status = "okay";
791 };
792 
793 &usb_host0_ohci {
794         status = "okay";
795 };
796 
797 &usb_host1_ehci {
798         status = "okay";
799 };
800 
801 &usb_host1_ohci {
802         status = "okay";
803 };
804 
805 &usbdrd3_0 {
806         status = "okay";
807 };
808 
809 &usbdrd_dwc3_0 {
810         status = "okay";
811         dr_mode = "otg";
812 };
813 
814 &usbdrd3_1 {
815         status = "okay";
816 };
817 
818 &usbdrd_dwc3_1 {
819         status = "okay";
820         dr_mode = "host";
821 };
822 
823 &vopb {
824         status = "okay";
825 };
826 
827 &vopb_mmu {
828         status = "okay";
829 };
830 
831 &vopl {
832         status = "okay";
833 };
834 
835 &vopl_mmu {
836         status = "okay";
837 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php