forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-24 2b26ab132d1b33b91c84c6d732456200e8c5ee77
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
....@@ -103,7 +103,7 @@
103103
104104 backlight1: backlight1 {
105105 compatible = "pwm-backlight";
106
- pwms = <&pwm5 0 25000 0>;
106
+ pwms = <&pwm6 0 25000 0>;
107107 brightness-levels = <
108108 0 20 20 21 21 22 22 23
109109 23 24 24 25 25 26 26 27
....@@ -139,6 +139,27 @@
139139 248 249 250 251 252 253 254 255
140140 >;
141141 default-brightness-level = <200>;
142
+ };
143
+
144
+ bt_sco: bt-sco {
145
+ status = "disabled";
146
+ compatible = "delta,dfbmcs320";
147
+ #sound-dai-cells = <1>;
148
+ };
149
+
150
+ bt_sound: bt-sound {
151
+ status = "disabled";
152
+ compatible = "simple-audio-card";
153
+ simple-audio-card,format = "dsp_a";
154
+ simple-audio-card,bitclock-inversion = <0>;
155
+ simple-audio-card,mclk-fs = <256>;
156
+ simple-audio-card,name = "rockchip,bt";
157
+ simple-audio-card,cpu {
158
+ sound-dai = <&i2s3_2ch>;
159
+ };
160
+ simple-audio-card,codec {
161
+ sound-dai = <&bt_sco 1>;
162
+ };
142163 };
143164
144165 dc_12v: dc-12v {
....@@ -187,17 +208,15 @@
187208
188209 rk809_sound: rk809-sound {
189210 status = "okay";
190
- compatible = "simple-audio-card";
191
- simple-audio-card,format = "i2s";
192
- simple-audio-card,name = "rockchip,rk809-codec";
193
- simple-audio-card,mclk-fs = <256>;
194
-
195
- simple-audio-card,cpu {
196
- sound-dai = <&i2s1_8ch>;
197
- };
198
- simple-audio-card,codec {
199
- sound-dai = <&rk809_codec>;
200
- };
211
+ compatible = "rockchip,multicodecs-card";
212
+ rockchip,card-name = "rockchip-rk809";
213
+ hp-det-gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
214
+ rockchip,format = "i2s";
215
+ rockchip,mclk-fs = <256>;
216
+ rockchip,cpu = <&i2s1_8ch>;
217
+ rockchip,codec = <&rk809_codec>;
218
+ pinctrl-names = "default";
219
+ pinctrl-0 = <&hp_det>;
201220 };
202221
203222 spdif-sound {
....@@ -273,8 +292,6 @@
273292 vcc5v0_otg: vcc5v0-otg-regulator {
274293 compatible = "regulator-fixed";
275294 regulator-name = "vcc5v0_otg";
276
- egulator-boot-on;
277
- regulator-always-on;
278295 regulator-min-microvolt = <5000000>;
279296 regulator-max-microvolt = <5000000>;
280297 enable-active-high;
....@@ -291,7 +308,7 @@
291308 regulator-min-microvolt = <3300000>;
292309 regulator-max-microvolt = <3300000>;
293310 enable-active-high;
294
- gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
311
+ gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
295312 vin-supply = <&vcc3v3_sys>;
296313
297314 regulator-state-mem {
....@@ -335,22 +352,11 @@
335352 compatible = "wlan-platdata";
336353 rockchip,grf = <&grf>;
337354 wifi_chip_type = "ap6398s";
338
- status = "okay";
355
+ status = "disabled";
339356 };
340357
341358 wireless_bluetooth: wireless-bluetooth {
342
- compatible = "bluetooth-platdata";
343
- clocks = <&rk809 1>;
344
- clock-names = "ext_clock";
345
- //wifi-bt-power-toggle;
346
- uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
347
- pinctrl-names = "default", "rts_gpio";
348
- pinctrl-0 = <&uart8m0_rtsn>;
349
- pinctrl-1 = <&uart8_gpios>;
350
- BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
351
- BT,wake_gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
352
- BT,wake_host_irq = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
353
- status = "okay";
359
+ status = "disabled";
354360 };
355361
356362 test-power {
....@@ -1105,7 +1111,6 @@
11051111 regulator-min-microvolt = <712500>;
11061112 regulator-max-microvolt = <1390000>;
11071113 regulator-init-microvolt = <900000>;
1108
- regulator-initial-mode = <1>;
11091114 regulator-ramp-delay = <2300>;
11101115 fcs,suspend-voltage-selector = <1>;
11111116 regulator-boot-on;
....@@ -1267,8 +1272,8 @@
12671272 vccio_acodec: LDO_REG4 {
12681273 regulator-always-on;
12691274 regulator-boot-on;
1270
- regulator-min-microvolt = <3300000>;
1271
- regulator-max-microvolt = <3300000>;
1275
+ regulator-min-microvolt = <3000000>;
1276
+ regulator-max-microvolt = <3000000>;
12721277 regulator-name = "vccio_acodec";
12731278 regulator-state-mem {
12741279 regulator-off-in-suspend;
....@@ -1382,15 +1387,6 @@
13821387
13831388 &i2c1 {
13841389 status = "okay";
1385
-
1386
- gt1x: gt1x@14 {
1387
- compatible = "goodix,gt1x";
1388
- reg = <0x14>;
1389
- pinctrl-names = "default";
1390
- pinctrl-0 = <&touch_gpio>;
1391
- goodix,rst-gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
1392
- goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
1393
- };
13941390 };
13951391
13961392 &i2c5 {
....@@ -1423,6 +1419,12 @@
14231419 &i2s1m0_lrcktx
14241420 &i2s1m0_sdi0
14251421 &i2s1m0_sdo0>;
1422
+};
1423
+
1424
+&i2s3_2ch {
1425
+ pinctrl-0 = <&i2s3m0_sclk &i2s3m0_lrck &i2s3m0_sdi &i2s3m0_sdo>;
1426
+ rockchip,bclk-fs = <32>;
1427
+ status = "disabled";
14261428 };
14271429
14281430 &iep {
....@@ -1460,6 +1462,12 @@
14601462 };
14611463
14621464 &pinctrl {
1465
+
1466
+ headphone {
1467
+ hp_det: hp-det {
1468
+ rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
1469
+ };
1470
+ };
14631471
14641472 mxc6655xa {
14651473 mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
....@@ -1500,7 +1508,6 @@
15001508 sdio-pwrseq {
15011509 wifi_enable_h: wifi-enable-h {
15021510 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1503
- //WIFI_REG_ON_H_GPIO2_B1
15041511 };
15051512 };
15061513
....@@ -1514,11 +1521,6 @@
15141521 };
15151522 };
15161523
1517
- wireless-bluetooth {
1518
- uart8_gpios: uart8-gpios {
1519
- rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1520
- };
1521
- };
15221524 };
15231525
15241526 /*
....@@ -1552,12 +1554,16 @@
15521554 status = "okay";
15531555 };
15541556
1557
+&pwm6 {
1558
+ status = "okay";
1559
+};
1560
+
15551561 &pwm5 {
15561562 status = "okay";
15571563 };
15581564
15591565 &pwm7 {
1560
- status = "okay";
1566
+ status = "disabled";
15611567
15621568 compatible = "rockchip,remotectl-pwm";
15631569 remote_pwm_id = <3>;
....@@ -1781,7 +1787,7 @@
17811787 };
17821788
17831789 &usbdrd_dwc3 {
1784
- dr_mode = "otg";
1790
+ dr_mode = "host";
17851791 extcon = <&usb2phy0>;
17861792 status = "okay";
17871793 };
....@@ -1791,15 +1797,6 @@
17911797 };
17921798
17931799 &usbhost_dwc3 {
1794
-// phys = <&u2phy0_host>;
1795
-// phy-names = "usb2-phy";
1796
-// maximum-speed = "high-speed";
1797
-// snps,dis_u2_susphy_quirk;
1798
- status = "okay";
1799
-};
1800
-
1801
-&combphy1_usq {
1802
-// rockchip,dis-u3otg1-port;
18031800 status = "okay";
18041801 };
18051802
....@@ -1832,8 +1829,8 @@
18321829
18331830 &vop {
18341831 status = "okay";
1835
- assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
1836
- assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
1832
+ assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>, <&cru DCLK_VOP2>;
1833
+ assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>, <&cru PLL_GPLL>;
18371834 };
18381835
18391836 &vop_mmu {