forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/arm64/boot/dts/rockchip/rk3328-evb.dts
....@@ -12,30 +12,19 @@
1212 compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
1313
1414 chosen {
15
- 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";
1616 };
1717
18
- adc-keys {
19
- compatible = "adc-keys";
20
- io-channels = <&saradc 0>;
21
- io-channel-names = "buttons";
22
- poll-interval = <100>;
23
- keyup-threshold-microvolt = <1800000>;
24
-
25
- vol-up-key {
26
- linux,code = <KEY_VOLUMEUP>;
27
- label = "volume up";
28
- press-threshold-microvolt = <18000>;
29
- };
30
- };
31
-
32
- dc_12v: dc-12v {
33
- compatible = "regulator-fixed";
34
- regulator-name = "dc_12v";
35
- regulator-always-on;
36
- regulator-boot-on;
37
- regulator-min-microvolt = <12000000>;
38
- regulator-max-microvolt = <12000000>;
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";
3928 };
4029
4130 reserved-memory {
....@@ -47,6 +36,24 @@
4736 compatible = "rockchip,drm-logo";
4837 reg = <0x0 0x0 0x0 0x0>;
4938 };
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
+ };
48
+ };
49
+
50
+ dc_12v: dc-12v {
51
+ compatible = "regulator-fixed";
52
+ regulator-name = "dc_12v";
53
+ regulator-always-on;
54
+ regulator-boot-on;
55
+ regulator-min-microvolt = <12000000>;
56
+ regulator-max-microvolt = <12000000>;
5057 };
5158
5259 sdio_pwrseq: sdio-pwrseq {
....@@ -63,23 +70,29 @@
6370 reset-gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
6471 };
6572
66
- fiq-debugger {
67
- compatible = "rockchip,fiq-debugger";
68
- rockchip,serial-id = <2>;
69
- rockchip,signal-irq = <159>;
70
- rockchip,wake-irq = <0>;
71
- /* If enable uart uses irq instead of fiq */
72
- rockchip,irq-mode-enable = <0>;
73
- rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
74
- interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
75
- 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;
7689 };
7790
7891 vcc_sd: sdmmc-regulator {
7992 compatible = "regulator-fixed";
8093 gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
8194 pinctrl-names = "default";
82
- pinctrl-0 = <&sdmmc0m1_gpio>;
95
+ pinctrl-0 = <&sdmmc0m1_pin>;
8396 regulator-name = "vcc_sd";
8497 regulator-min-microvolt = <3300000>;
8598 regulator-max-microvolt = <3300000>;
....@@ -96,67 +109,17 @@
96109 vin-supply = <&dc_12v>;
97110 };
98111
99
- gmac_clkin: external-gmac-clock {
100
- compatible = "fixed-clock";
101
- clock-frequency = <125000000>;
102
- clock-output-names = "gmac_clkin";
103
- #clock-cells = <0>;
104
- };
105
-
106
- vcc_phy: vcc-phy-regulator {
107
- compatible = "regulator-fixed";
108
- regulator-name = "vcc_phy";
109
- regulator-always-on;
110
- regulator-boot-on;
111
- };
112
-
113
- sound {
114
- compatible = "simple-audio-card";
115
- simple-audio-card,format = "i2s";
116
- simple-audio-card,mclk-fs = <256>;
117
- simple-audio-card,name = "rockchip,rk3328";
118
- simple-audio-card,cpu {
119
- sound-dai = <&i2s1>;
120
- };
121
- simple-audio-card,codec {
122
- sound-dai = <&codec>;
123
- };
124
- };
125
-
126
- hdmi-sound {
127
- compatible = "simple-audio-card";
128
- simple-audio-card,format = "i2s";
129
- simple-audio-card,mclk-fs = <128>;
130
- simple-audio-card,name = "rockchip,hdmi";
131
- simple-audio-card,cpu {
132
- sound-dai = <&i2s0>;
133
- };
134
- simple-audio-card,codec {
135
- sound-dai = <&hdmi>;
136
- };
137
- };
138
-
139
- spdif-sound {
140
- compatible = "simple-audio-card";
141
- simple-audio-card,name = "rockchip,spdif";
142
- simple-audio-card,cpu {
143
- sound-dai = <&spdif>;
144
- };
145
- simple-audio-card,codec {
146
- sound-dai = <&spdif_out>;
147
- };
148
- };
149
-
150
- spdif_out: spdif-out {
151
- compatible = "linux,spdif-dit";
152
- #sound-dai-cells = <0>;
153
- };
154
-
155
- xin32k: xin32k {
156
- compatible = "fixed-clock";
157
- clock-frequency = <32768>;
158
- clock-output-names = "xin32k";
159
- #clock-cells = <0>;
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";
160123 };
161124
162125 wireless-wlan {
....@@ -173,23 +136,12 @@
173136 status = "okay";
174137 };
175138
176
-&i2s0 {
177
- #sound-dai-cells = <0>;
178
- rockchip,bclk-fs = <128>;
179
- status = "okay";
180
-};
181
-
182
-&i2s1 {
183
- #sound-dai-cells = <0>;
184
- status = "okay";
139
+&cif {
140
+ status = "disabled";
185141 };
186142
187143 &codec {
188
- #sound-dai-cells = <0>;
189
- status = "okay";
190
-};
191
-
192
-&spdif {
144
+ mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
193145 #sound-dai-cells = <0>;
194146 status = "okay";
195147 };
....@@ -198,8 +150,7 @@
198150 cpu-supply = <&vdd_arm>;
199151 };
200152
201
-&dmc {
202
- center-supply = <&vdd_logic>;
153
+&dfi {
203154 status = "okay";
204155 };
205156
....@@ -219,14 +170,38 @@
219170 };
220171 };
221172
173
+&dmc {
174
+ center-supply = <&vdd_logic>;
175
+ status = "okay";
176
+};
177
+
222178 &emmc {
223179 bus-width = <8>;
224180 cap-mmc-highspeed;
225181 mmc-hs200-1_8v;
182
+ supports-emmc;
183
+ disable-wp;
226184 non-removable;
185
+ num-slots = <1>;
227186 pinctrl-names = "default";
228187 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
229188 status = "okay";
189
+};
190
+
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";
230205 };
231206
232207 &gmac2phy {
....@@ -239,49 +214,8 @@
239214 status = "okay";
240215 };
241216
242
-&gmac2io {
243
- phy-supply = <&vcc_phy>;
244
- phy-mode = "rgmii";
245
- clock_in_out = "input";
246
- snps,reset-gpio = <&gpio1 18 GPIO_ACTIVE_LOW>;
247
- snps,reset-active-low;
248
- snps,reset-delays-us = <0 10000 50000>;
249
- assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
250
- assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
251
- pinctrl-names = "default";
252
- pinctrl-0 = <&rgmiim1_pins>;
253
- tx_delay = <0x26>;
254
- rx_delay = <0x11>;
255
- status = "disabled";
256
-};
257
-
258217 &gpu {
259
- status = "okay";
260218 mali-supply = <&vdd_logic>;
261
-};
262
-
263
-&io_domains {
264
- status = "okay";
265
-
266
- vccio1-supply = <&vcc_io>;
267
- vccio2-supply = <&vcc18_emmc>;
268
- vccio3-supply = <&vcc_io>;
269
- vccio4-supply = <&vcc_18>;
270
- vccio5-supply = <&vcc_io>;
271
- vccio6-supply = <&vcc_io>;
272
- pmuio-supply = <&vcc_io>;
273
-};
274
-
275
-&u3phy {
276
- vbus-drv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
277
- status = "okay";
278
-};
279
-
280
-&u3phy_utmi {
281
- status = "okay";
282
-};
283
-
284
-&u3phy_pipe {
285219 status = "okay";
286220 };
287221
....@@ -296,12 +230,8 @@
296230 status = "okay";
297231 };
298232
299
-&usbdrd3 {
300
- status = "okay";
301
-};
302
-
303
-&usbdrd_dwc3 {
304
- status = "okay";
233
+&i2c0 {
234
+ status = "disabled";
305235 };
306236
307237 &i2c1 {
....@@ -320,13 +250,26 @@
320250 pinctrl-0 = <&pmic_int_l>;
321251 rockchip,system-power-controller;
322252 wakeup-source;
253
+ status = "okay";
323254
324255 vcc1-supply = <&vcc_sys>;
325256 vcc2-supply = <&vcc_sys>;
326257 vcc3-supply = <&vcc_sys>;
327258 vcc4-supply = <&vcc_sys>;
328259 vcc5-supply = <&vcc_io>;
329
- 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
+ };
330273
331274 regulators {
332275 vdd_logic: DCDC_REG1 {
....@@ -398,19 +341,42 @@
398341 };
399342 };
400343
401
- vdd_11: LDO_REG3 {
402
- regulator-name = "vdd_11";
403
- regulator-min-microvolt = <1100000>;
404
- regulator-max-microvolt = <1100000>;
344
+ vdd_10: LDO_REG3 {
345
+ regulator-name = "vdd_10";
346
+ regulator-min-microvolt = <1000000>;
347
+ regulator-max-microvolt = <1000000>;
405348 regulator-always-on;
406349 regulator-boot-on;
407350 regulator-state-mem {
408351 regulator-on-in-suspend;
409
- regulator-suspend-microvolt = <1100000>;
352
+ regulator-suspend-microvolt = <1000000>;
410353 };
411354 };
412355 };
413356 };
357
+};
358
+
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>;
414380 };
415381
416382 &mpp_srv {
....@@ -426,8 +392,23 @@
426392
427393 sdio-pwrseq {
428394 wifi_enable_h: wifi-enable-h {
429
- rockchip,pins =
430
- <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
395
+ rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
396
+ };
397
+ };
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>;
431412 };
432413 };
433414 };
....@@ -545,13 +526,13 @@
545526 };
546527
547528 &rockchip_suspend {
548
- status = "okay";
549529 rockchip,virtual-poweroff = <1>;
530
+ status = "okay";
550531 };
551532
552533 &saradc {
553
- status = "okay";
554534 vref-supply = <&vcc_18>;
535
+ status = "okay";
555536 };
556537
557538 &sdio {
....@@ -564,6 +545,8 @@
564545 non-removable;
565546 pinctrl-names = "default";
566547 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
548
+ no-mmc;
549
+ no-sd;
567550 status = "okay";
568551 };
569552
....@@ -575,7 +558,13 @@
575558 max-frequency = <150000000>;
576559 pinctrl-names = "default";
577560 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
561
+ no-sdio;
562
+ no-mmc;
578563 vmmc-supply = <&vcc_sd>;
564
+ status = "okay";
565
+};
566
+
567
+&spdif {
579568 status = "okay";
580569 };
581570
....@@ -595,6 +584,25 @@
595584 status = "okay";
596585 };
597586
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
+
598606 &usb20_otg {
599607 status = "okay";
600608 };
....@@ -604,6 +612,14 @@
604612 };
605613
606614 &usb_host0_ohci {
615
+ status = "okay";
616
+};
617
+
618
+&usbdrd3 {
619
+ status = "okay";
620
+};
621
+
622
+&usbdrd_dwc3 {
607623 status = "okay";
608624 };
609625
....@@ -620,14 +636,6 @@
620636 };
621637
622638 &vepu_mmu {
623
- status = "okay";
624
-};
625
-
626
-&vepu22 {
627
- status = "okay";
628
-};
629
-
630
-&vepu22_mmu {
631639 status = "okay";
632640 };
633641