hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
....@@ -21,11 +21,18 @@
2121 #clock-cells = <0>;
2222 };
2323
24
+ xin32k: xin32k {
25
+ compatible = "fixed-clock";
26
+ clock-frequency = <32768>;
27
+ clock-output-names = "xin32k";
28
+ #clock-cells = <0>;
29
+ };
30
+
2431 vcc_sd: sdmmc-regulator {
2532 compatible = "regulator-fixed";
2633 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
2734 pinctrl-names = "default";
28
- pinctrl-0 = <&sdmmc0m1_gpio>;
35
+ pinctrl-0 = <&sdmmc0m1_pin>;
2936 regulator-name = "vcc_sd";
3037 regulator-min-microvolt = <3300000>;
3138 regulator-max-microvolt = <3300000>;
....@@ -34,10 +41,9 @@
3441
3542 vcc_host_5v: vcc-host-5v-regulator {
3643 compatible = "regulator-fixed";
37
- enable-active-high;
38
- gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
44
+ gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
3945 pinctrl-names = "default";
40
- pinctrl-0 = <&usb30_host_drv>;
46
+ pinctrl-0 = <&usb20_host_drv>;
4147 regulator-name = "vcc_host_5v";
4248 regulator-always-on;
4349 regulator-boot-on;
....@@ -64,11 +70,54 @@
6470 regulator-max-microvolt = <5000000>;
6571 };
6672
67
- xin32k: xin32k {
68
- compatible = "fixed-clock";
69
- clock-frequency = <32768>;
70
- clock-output-names = "xin32k";
71
- #clock-cells = <0>;
73
+ ir-receiver {
74
+ compatible = "gpio-ir-receiver";
75
+ gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
76
+ pinctrl-0 = <&ir_int>;
77
+ pinctrl-names = "default";
78
+ };
79
+
80
+ leds {
81
+ compatible = "gpio-leds";
82
+
83
+ power_led: led-0 {
84
+ gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
85
+ linux,default-trigger = "mmc0";
86
+ };
87
+
88
+ standby_led: led-1 {
89
+ gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
90
+ linux,default-trigger = "heartbeat";
91
+ };
92
+ };
93
+
94
+ sound {
95
+ compatible = "audio-graph-card";
96
+ label = "rockchip,rk3328";
97
+ dais = <&i2s1_p0
98
+ &spdif_p0>;
99
+ };
100
+
101
+ spdif-dit {
102
+ compatible = "linux,spdif-dit";
103
+ #sound-dai-cells = <0>;
104
+
105
+ port {
106
+ dit_p0_0: endpoint {
107
+ remote-endpoint = <&spdif_p0_0>;
108
+ };
109
+ };
110
+ };
111
+};
112
+
113
+&codec {
114
+ mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
115
+ status = "okay";
116
+
117
+ port@0 {
118
+ codec_p0_0: endpoint {
119
+ remote-endpoint = <&i2s1_p0_0>;
120
+ };
72121 };
73122 };
74123
....@@ -117,6 +166,14 @@
117166 status = "okay";
118167 };
119168
169
+&hdmi {
170
+ status = "okay";
171
+};
172
+
173
+&hdmiphy {
174
+ status = "okay";
175
+};
176
+
120177 &i2c1 {
121178 status = "okay";
122179
....@@ -127,6 +184,8 @@
127184 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
128185 #clock-cells = <1>;
129186 clock-output-names = "rk805-clkout1", "rk805-clkout2";
187
+ gpio-controller;
188
+ #gpio-cells = <2>;
130189 pinctrl-names = "default";
131190 pinctrl-0 = <&pmic_int_l>;
132191 rockchip,system-power-controller;
....@@ -188,7 +247,7 @@
188247 };
189248
190249 vcc_18: LDO_REG1 {
191
- regulator-name = "vdd_18";
250
+ regulator-name = "vcc_18";
192251 regulator-min-microvolt = <1800000>;
193252 regulator-max-microvolt = <1800000>;
194253 regulator-always-on;
....@@ -200,7 +259,7 @@
200259 };
201260
202261 vcc18_emmc: LDO_REG2 {
203
- regulator-name = "vcc_18emmc";
262
+ regulator-name = "vcc18_emmc";
204263 regulator-min-microvolt = <1800000>;
205264 regulator-max-microvolt = <1800000>;
206265 regulator-always-on;
....@@ -226,6 +285,18 @@
226285 };
227286 };
228287
288
+&i2s1 {
289
+ status = "okay";
290
+
291
+ i2s1_p0: port {
292
+ i2s1_p0_0: endpoint {
293
+ dai-format = "i2s";
294
+ mclk-fs = <256>;
295
+ remote-endpoint = <&codec_p0_0>;
296
+ };
297
+ };
298
+};
299
+
229300 &io_domains {
230301 status = "okay";
231302
....@@ -239,6 +310,12 @@
239310 };
240311
241312 &pinctrl {
313
+ ir {
314
+ ir_int: ir-int {
315
+ rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
316
+ };
317
+ };
318
+
242319 pmic {
243320 pmic_int_l: pmic-int-l {
244321 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
....@@ -248,12 +325,6 @@
248325 usb2 {
249326 usb20_host_drv: usb20-host-drv {
250327 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
251
- };
252
- };
253
-
254
- usb3 {
255
- usb30_host_drv: usb30-host-drv {
256
- rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
257328 };
258329 };
259330 };
....@@ -270,9 +341,36 @@
270341 status = "okay";
271342 };
272343
344
+&spdif {
345
+ pinctrl-0 = <&spdifm0_tx>;
346
+ status = "okay";
347
+
348
+ spdif_p0: port {
349
+ spdif_p0_0: endpoint {
350
+ remote-endpoint = <&dit_p0_0>;
351
+ };
352
+ };
353
+};
354
+
355
+&spi0 {
356
+ status = "okay";
357
+
358
+ spiflash@0 {
359
+ compatible = "jedec,spi-nor";
360
+ reg = <0>;
361
+
362
+ /* maximum speed for Rockchip SPI */
363
+ spi-max-frequency = <50000000>;
364
+ };
365
+};
366
+
273367 &tsadc {
274368 rockchip,hw-tshut-mode = <0>;
275369 rockchip,hw-tshut-polarity = <0>;
370
+ status = "okay";
371
+};
372
+
373
+&uart2 {
276374 status = "okay";
277375 };
278376
....@@ -293,6 +391,11 @@
293391 status = "okay";
294392 };
295393
394
+&usbdrd3 {
395
+ dr_mode = "host";
396
+ status = "okay";
397
+};
398
+
296399 &usb_host0_ehci {
297400 status = "okay";
298401 };
....@@ -300,3 +403,11 @@
300403 &usb_host0_ohci {
301404 status = "okay";
302405 };
406
+
407
+&vop {
408
+ status = "okay";
409
+};
410
+
411
+&vop_mmu {
412
+ status = "okay";
413
+};