hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3328-evb.dts
....@@ -5,13 +5,46 @@
55
66 /dts-v1/;
77 #include "rk3328.dtsi"
8
+#include <dt-bindings/input/input.h>
89
910 / {
1011 model = "Rockchip RK3328 EVB";
1112 compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
1213
1314 chosen {
14
- stdout-path = "serial2:1500000n8";
15
+ bootargs = "earlycon=uart8250,mmio32,0xff130000 swiotlb=1 kpti=0 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rw rootwait coherent_pool=1m";
16
+ };
17
+
18
+ fiq-debugger {
19
+ compatible = "rockchip,fiq-debugger";
20
+ rockchip,serial-id = <2>;
21
+ rockchip,signal-irq = <159>;
22
+ rockchip,wake-irq = <0>;
23
+ /* If enable uart uses irq instead of fiq */
24
+ rockchip,irq-mode-enable = <1>;
25
+ rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
26
+ interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
27
+ status = "okay";
28
+ };
29
+
30
+ reserved-memory {
31
+ #address-cells = <2>;
32
+ #size-cells = <2>;
33
+ ranges;
34
+
35
+ drm_logo: drm-logo@00000000 {
36
+ compatible = "rockchip,drm-logo";
37
+ reg = <0x0 0x0 0x0 0x0>;
38
+ };
39
+
40
+ ramoops: ramoops@110000 {
41
+ compatible = "ramoops";
42
+ reg = <0x0 0x110000 0x0 0xf0000>;
43
+ record-size = <0x20000>;
44
+ console-size = <0x80000>;
45
+ ftrace-size = <0x00000>;
46
+ pmsg-size = <0x50000>;
47
+ };
1548 };
1649
1750 dc_12v: dc-12v {
....@@ -37,16 +70,22 @@
3770 reset-gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
3871 };
3972
40
- fiq-debugger {
41
- compatible = "rockchip,fiq-debugger";
42
- rockchip,serial-id = <2>;
43
- rockchip,signal-irq = <159>;
44
- rockchip,wake-irq = <0>;
45
- /* If enable uart uses irq instead of fiq */
46
- rockchip,irq-mode-enable = <0>;
47
- rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
48
- interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
49
- status = "okay";
73
+ vcc_host_vbus: host-vbus-regulator {
74
+ compatible = "regulator-fixed";
75
+ gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
76
+ pinctrl-names = "default";
77
+ pinctrl-0 = <&host_vbus_drv>;
78
+ regulator-name = "vcc_host_vbus";
79
+ regulator-min-microvolt = <5000000>;
80
+ regulator-max-microvolt = <5000000>;
81
+ enable-active-high;
82
+ };
83
+
84
+ vcc_phy: vcc-phy-regulator {
85
+ compatible = "regulator-fixed";
86
+ regulator-name = "vcc_phy";
87
+ regulator-always-on;
88
+ regulator-boot-on;
5089 };
5190
5291 vcc_sd: sdmmc-regulator {
....@@ -70,54 +109,129 @@
70109 vin-supply = <&dc_12v>;
71110 };
72111
73
- vcc_phy: vcc-phy-regulator {
74
- compatible = "regulator-fixed";
75
- regulator-name = "vcc_phy";
76
- regulator-always-on;
77
- regulator-boot-on;
112
+ wireless-bluetooth {
113
+ compatible = "bluetooth-platdata";
114
+ clocks = <&rk805 1>;
115
+ clock-names = "ext_clock";
116
+ uart_rts_gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
117
+ pinctrl-names = "default", "rts_gpio";
118
+ pinctrl-0 = <&uart0_rts>;
119
+ pinctrl-1 = <&uart0_gpios>;
120
+ BT,power_gpio = <&gpio1 21 GPIO_ACTIVE_HIGH>;
121
+ BT,wake_host_irq = <&gpio1 26 GPIO_ACTIVE_HIGH>;
122
+ status = "okay";
78123 };
79124
80
- xin32k: xin32k {
81
- compatible = "fixed-clock";
82
- clock-frequency = <32768>;
83
- clock-output-names = "xin32k";
84
- #clock-cells = <0>;
125
+ wireless-wlan {
126
+ compatible = "wlan-platdata";
127
+ rockchip,grf = <&grf>;
128
+ wifi_chip_type = "ap6354";
129
+ sdio_vref = <1800>;
130
+ WIFI,host_wake_irq = <&gpio1 19 GPIO_ACTIVE_HIGH>;
131
+ status = "okay";
85132 };
133
+};
86134
135
+&avsd {
136
+ status = "okay";
137
+};
138
+
139
+&cif {
140
+ status = "disabled";
141
+};
142
+
143
+&codec {
144
+ mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
145
+ #sound-dai-cells = <0>;
146
+ status = "okay";
87147 };
88148
89149 &cpu0 {
90150 cpu-supply = <&vdd_arm>;
91151 };
92152
93
-&cpu1 {
94
- cpu-supply = <&vdd_arm>;
153
+&dfi {
154
+ status = "okay";
95155 };
96156
97
-&cpu2 {
98
- cpu-supply = <&vdd_arm>;
157
+&display_subsystem {
158
+ logo-memory-region = <&drm_logo>;
159
+ status = "okay";
160
+
161
+ route {
162
+ route_hdmi: route-hdmi {
163
+ status = "okay";
164
+ logo,uboot = "logo.bmp";
165
+ logo,kernel = "logo_kernel.bmp";
166
+ logo,mode = "fullscreen";
167
+ charge_logo,mode = "fullscreen";
168
+ connect = <&vop_out_hdmi>;
169
+ };
170
+ };
99171 };
100172
101
-&cpu3 {
102
- cpu-supply = <&vdd_arm>;
173
+&dmc {
174
+ center-supply = <&vdd_logic>;
175
+ status = "okay";
103176 };
104177
105178 &emmc {
106179 bus-width = <8>;
107180 cap-mmc-highspeed;
181
+ mmc-hs200-1_8v;
182
+ supports-emmc;
183
+ disable-wp;
108184 non-removable;
185
+ num-slots = <1>;
109186 pinctrl-names = "default";
110187 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
111188 status = "okay";
112189 };
113190
191
+&gmac2io {
192
+ phy-supply = <&vcc_phy>;
193
+ phy-mode = "rgmii";
194
+ clock_in_out = "input";
195
+ snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
196
+ snps,reset-active-low;
197
+ snps,reset-delays-us = <0 10000 50000>;
198
+ assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
199
+ assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
200
+ pinctrl-names = "default";
201
+ pinctrl-0 = <&rgmiim1_pins>;
202
+ tx_delay = <0x26>;
203
+ rx_delay = <0x11>;
204
+ status = "disabled";
205
+};
206
+
114207 &gmac2phy {
115208 phy-supply = <&vcc_phy>;
116209 clock_in_out = "output";
210
+ assigned-clocks = <&cru SCLK_MAC2PHY_SRC>;
117211 assigned-clock-rate = <50000000>;
118212 assigned-clocks = <&cru SCLK_MAC2PHY>;
119213 assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>;
120214 status = "okay";
215
+};
216
+
217
+&gpu {
218
+ mali-supply = <&vdd_logic>;
219
+ status = "okay";
220
+};
221
+
222
+&hdmi {
223
+ #sound-dai-cells = <0>;
224
+ ddc-i2c-scl-high-time-ns = <9625>;
225
+ ddc-i2c-scl-low-time-ns = <10000>;
226
+ status = "okay";
227
+};
228
+
229
+&hdmiphy {
230
+ status = "okay";
231
+};
232
+
233
+&i2c0 {
234
+ status = "disabled";
121235 };
122236
123237 &i2c1 {
....@@ -136,13 +250,26 @@
136250 pinctrl-0 = <&pmic_int_l>;
137251 rockchip,system-power-controller;
138252 wakeup-source;
253
+ status = "okay";
139254
140255 vcc1-supply = <&vcc_sys>;
141256 vcc2-supply = <&vcc_sys>;
142257 vcc3-supply = <&vcc_sys>;
143258 vcc4-supply = <&vcc_sys>;
144259 vcc5-supply = <&vcc_io>;
145
- vcc6-supply = <&vcc_io>;
260
+ vcc6-supply = <&vcc_sys>;
261
+
262
+ rtc {
263
+ status = "okay";
264
+ };
265
+
266
+ pwrkey {
267
+ status = "okay";
268
+ };
269
+
270
+ gpio {
271
+ status = "okay";
272
+ };
146273
147274 regulators {
148275 vdd_logic: DCDC_REG1 {
....@@ -229,6 +356,33 @@
229356 };
230357 };
231358
359
+&i2s0 {
360
+ #sound-dai-cells = <0>;
361
+ rockchip,bclk-fs = <128>;
362
+ status = "okay";
363
+};
364
+
365
+&i2s1 {
366
+ #sound-dai-cells = <0>;
367
+ status = "okay";
368
+};
369
+
370
+&io_domains {
371
+ status = "okay";
372
+
373
+ vccio1-supply = <&vcc_io>;
374
+ vccio2-supply = <&vcc18_emmc>;
375
+ vccio3-supply = <&vcc_io>;
376
+ vccio4-supply = <&vcc_18>;
377
+ vccio5-supply = <&vcc_io>;
378
+ vccio6-supply = <&vcc_io>;
379
+ pmuio-supply = <&vcc_io>;
380
+};
381
+
382
+&mpp_srv {
383
+ status = "okay";
384
+};
385
+
232386 &pinctrl {
233387 pmic {
234388 pmic_int_l: pmic-int-l {
....@@ -238,10 +392,147 @@
238392
239393 sdio-pwrseq {
240394 wifi_enable_h: wifi-enable-h {
241
- rockchip,pins =
242
- <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
395
+ rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
243396 };
244397 };
398
+
399
+ usb {
400
+ host_vbus_drv: host-vbus-drv {
401
+ rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
402
+ };
403
+
404
+ otg_vbus_drv: otg-vbus-drv {
405
+ rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
406
+ };
407
+ };
408
+
409
+ wireless-bluetooth {
410
+ uart0_gpios: uart0-gpios {
411
+ rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
412
+ };
413
+ };
414
+};
415
+
416
+&pwm3 {
417
+ status = "okay";
418
+ compatible = "rockchip,remotectl-pwm";
419
+ pinctrl-names = "default";
420
+ pinctrl-0 = <&pwmir_pin>;
421
+ remote_pwm_id = <3>;
422
+ handle_cpu_id = <1>;
423
+ remote_support_psci = <1>;
424
+
425
+ ir_key1 {
426
+ rockchip,usercode = <0x4040>;
427
+ rockchip,key_table =
428
+ <0xf2 KEY_REPLY>,
429
+ <0xba KEY_BACK>,
430
+ <0xf4 KEY_UP>,
431
+ <0xf1 KEY_DOWN>,
432
+ <0xef KEY_LEFT>,
433
+ <0xee KEY_RIGHT>,
434
+ <0xbd KEY_HOME>,
435
+ <0xea KEY_VOLUMEUP>,
436
+ <0xe3 KEY_VOLUMEDOWN>,
437
+ <0xe2 KEY_SEARCH>,
438
+ <0xb2 KEY_POWER>,
439
+ <0xbc KEY_MUTE>,
440
+ <0xec KEY_MENU>,
441
+ <0xbf 0x190>,
442
+ <0xe0 0x191>,
443
+ <0xe1 0x192>,
444
+ <0xe9 183>,
445
+ <0xe6 248>,
446
+ <0xe8 185>,
447
+ <0xe7 186>,
448
+ <0xf0 388>,
449
+ <0xbe 0x175>;
450
+ };
451
+
452
+ ir_key2 {
453
+ rockchip,usercode = <0xff00>;
454
+ rockchip,key_table =
455
+ <0x39 KEY_POWER>,
456
+ <0x73 KEY_MUTE>,
457
+ <0xa4 KEY_PLAYPAUSE>,
458
+ <0x75 KEY_VOLUMEDOWN>,
459
+ <0x77 KEY_VOLUMEUP>,
460
+ <0x7d KEY_MENU>,
461
+ <0xf9 KEY_HOME>,
462
+ <0x5f KEY_BACK>,
463
+ <0xb9 KEY_UP>,
464
+ <0xe9 KEY_DOWN>,
465
+ <0xb8 KEY_LEFT>,
466
+ <0xea KEY_RIGHT>,
467
+ <0xaa KEY_REPLY>,
468
+ <0x55 KEY_1>,
469
+ <0x5b KEY_2>,
470
+ <0xf8 KEY_3>,
471
+ <0x57 KEY_4>,
472
+ <0xed KEY_5>,
473
+ <0xee KEY_6>,
474
+ <0x59 KEY_7>,
475
+ <0xf1 KEY_8>,
476
+ <0xf2 KEY_9>,
477
+ <0xe0 KEY_BACKSPACE>,
478
+ <0x79 KEY_0>,
479
+ <0xa4 KEY_SETUP>;
480
+ };
481
+
482
+ ir_key3 {
483
+ rockchip,usercode = <0x1dcc>;
484
+ rockchip,key_table =
485
+ <0xee KEY_REPLY>,
486
+ <0xf0 KEY_BACK>,
487
+ <0xf8 KEY_UP>,
488
+ <0xbb KEY_DOWN>,
489
+ <0xef KEY_LEFT>,
490
+ <0xed KEY_RIGHT>,
491
+ <0xfc KEY_HOME>,
492
+ <0xf1 KEY_VOLUMEUP>,
493
+ <0xfd KEY_VOLUMEDOWN>,
494
+ <0xb7 KEY_SEARCH>,
495
+ <0xff KEY_POWER>,
496
+ <0xf3 KEY_MUTE>,
497
+ <0xbf KEY_MENU>,
498
+ <0xf9 0x191>,
499
+ <0xf5 0x192>,
500
+ <0xb3 388>,
501
+ <0xbe KEY_1>,
502
+ <0xba KEY_2>,
503
+ <0xb2 KEY_3>,
504
+ <0xbd KEY_4>,
505
+ <0xf9 KEY_5>,
506
+ <0xb1 KEY_6>,
507
+ <0xfc KEY_7>,
508
+ <0xf8 KEY_8>,
509
+ <0xb0 KEY_9>,
510
+ <0xb6 KEY_0>,
511
+ <0xb5 KEY_BACKSPACE>;
512
+ };
513
+};
514
+
515
+&rga {
516
+ status = "okay";
517
+};
518
+
519
+&rkvdec {
520
+ vcodec-supply = <&vdd_logic>;
521
+ status = "okay";
522
+};
523
+
524
+&rkvdec_mmu {
525
+ status = "okay";
526
+};
527
+
528
+&rockchip_suspend {
529
+ rockchip,virtual-poweroff = <1>;
530
+ status = "okay";
531
+};
532
+
533
+&saradc {
534
+ vref-supply = <&vcc_18>;
535
+ status = "okay";
245536 };
246537
247538 &sdio {
....@@ -254,6 +545,8 @@
254545 non-removable;
255546 pinctrl-names = "default";
256547 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
548
+ no-mmc;
549
+ no-sd;
257550 status = "okay";
258551 };
259552
....@@ -265,15 +558,17 @@
265558 max-frequency = <150000000>;
266559 pinctrl-names = "default";
267560 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
561
+ no-sdio;
562
+ no-mmc;
268563 vmmc-supply = <&vcc_sd>;
269564 status = "okay";
270565 };
271566
272
-&tsadc {
567
+&spdif {
273568 status = "okay";
274569 };
275570
276
-&uart2 {
571
+&tsadc {
277572 status = "okay";
278573 };
279574
....@@ -289,6 +584,25 @@
289584 status = "okay";
290585 };
291586
587
+&u3phy {
588
+ vbus-supply = <&vcc_host_vbus>;
589
+ status = "okay";
590
+};
591
+
592
+&u3phy_pipe {
593
+ status = "okay";
594
+};
595
+
596
+&u3phy_utmi {
597
+ status = "okay";
598
+};
599
+
600
+&uart0 {
601
+ pinctrl-names = "default";
602
+ pinctrl-0 = <&uart0_xfer &uart0_cts>;
603
+ status = "okay";
604
+};
605
+
292606 &usb20_otg {
293607 status = "okay";
294608 };
....@@ -300,3 +614,35 @@
300614 &usb_host0_ohci {
301615 status = "okay";
302616 };
617
+
618
+&usbdrd3 {
619
+ status = "okay";
620
+};
621
+
622
+&usbdrd_dwc3 {
623
+ status = "okay";
624
+};
625
+
626
+&vdpu {
627
+ status = "okay";
628
+};
629
+
630
+&vpu_mmu {
631
+ status = "okay";
632
+};
633
+
634
+&vepu {
635
+ status = "okay";
636
+};
637
+
638
+&vepu_mmu {
639
+ status = "okay";
640
+};
641
+
642
+&vop {
643
+ status = "okay";
644
+};
645
+
646
+&vop_mmu {
647
+ status = "okay";
648
+};