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 {
....@@ -289,7 +308,7 @@
289308 regulator-min-microvolt = <3300000>;
290309 regulator-max-microvolt = <3300000>;
291310 enable-active-high;
292
- gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
311
+ gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
293312 vin-supply = <&vcc3v3_sys>;
294313
295314 regulator-state-mem {
....@@ -333,22 +352,11 @@
333352 compatible = "wlan-platdata";
334353 rockchip,grf = <&grf>;
335354 wifi_chip_type = "ap6398s";
336
- status = "okay";
355
+ status = "disabled";
337356 };
338357
339358 wireless_bluetooth: wireless-bluetooth {
340
- compatible = "bluetooth-platdata";
341
- clocks = <&rk809 1>;
342
- clock-names = "ext_clock";
343
- //wifi-bt-power-toggle;
344
- uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
345
- pinctrl-names = "default", "rts_gpio";
346
- pinctrl-0 = <&uart8m0_rtsn>;
347
- pinctrl-1 = <&uart8_gpios>;
348
- BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
349
- BT,wake_gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
350
- BT,wake_host_irq = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
351
- status = "okay";
359
+ status = "disabled";
352360 };
353361
354362 test-power {
....@@ -1103,7 +1111,6 @@
11031111 regulator-min-microvolt = <712500>;
11041112 regulator-max-microvolt = <1390000>;
11051113 regulator-init-microvolt = <900000>;
1106
- regulator-initial-mode = <1>;
11071114 regulator-ramp-delay = <2300>;
11081115 fcs,suspend-voltage-selector = <1>;
11091116 regulator-boot-on;
....@@ -1265,8 +1272,8 @@
12651272 vccio_acodec: LDO_REG4 {
12661273 regulator-always-on;
12671274 regulator-boot-on;
1268
- regulator-min-microvolt = <3300000>;
1269
- regulator-max-microvolt = <3300000>;
1275
+ regulator-min-microvolt = <3000000>;
1276
+ regulator-max-microvolt = <3000000>;
12701277 regulator-name = "vccio_acodec";
12711278 regulator-state-mem {
12721279 regulator-off-in-suspend;
....@@ -1380,15 +1387,6 @@
13801387
13811388 &i2c1 {
13821389 status = "okay";
1383
-
1384
- gt1x: gt1x@14 {
1385
- compatible = "goodix,gt1x";
1386
- reg = <0x14>;
1387
- pinctrl-names = "default";
1388
- pinctrl-0 = <&touch_gpio>;
1389
- goodix,rst-gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
1390
- goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
1391
- };
13921390 };
13931391
13941392 &i2c5 {
....@@ -1421,6 +1419,12 @@
14211419 &i2s1m0_lrcktx
14221420 &i2s1m0_sdi0
14231421 &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";
14241428 };
14251429
14261430 &iep {
....@@ -1458,6 +1462,12 @@
14581462 };
14591463
14601464 &pinctrl {
1465
+
1466
+ headphone {
1467
+ hp_det: hp-det {
1468
+ rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
1469
+ };
1470
+ };
14611471
14621472 mxc6655xa {
14631473 mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
....@@ -1498,7 +1508,6 @@
14981508 sdio-pwrseq {
14991509 wifi_enable_h: wifi-enable-h {
15001510 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1501
- //WIFI_REG_ON_H_GPIO2_B1
15021511 };
15031512 };
15041513
....@@ -1512,11 +1521,6 @@
15121521 };
15131522 };
15141523
1515
- wireless-bluetooth {
1516
- uart8_gpios: uart8-gpios {
1517
- rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
1518
- };
1519
- };
15201524 };
15211525
15221526 /*
....@@ -1550,12 +1554,16 @@
15501554 status = "okay";
15511555 };
15521556
1557
+&pwm6 {
1558
+ status = "okay";
1559
+};
1560
+
15531561 &pwm5 {
15541562 status = "okay";
15551563 };
15561564
15571565 &pwm7 {
1558
- status = "okay";
1566
+ status = "disabled";
15591567
15601568 compatible = "rockchip,remotectl-pwm";
15611569 remote_pwm_id = <3>;
....@@ -1779,7 +1787,7 @@
17791787 };
17801788
17811789 &usbdrd_dwc3 {
1782
- dr_mode = "otg";
1790
+ dr_mode = "host";
17831791 extcon = <&usb2phy0>;
17841792 status = "okay";
17851793 };
....@@ -1789,15 +1797,6 @@
17891797 };
17901798
17911799 &usbhost_dwc3 {
1792
- phys = <&u2phy0_host>;
1793
- phy-names = "usb2-phy";
1794
- maximum-speed = "high-speed";
1795
- snps,dis_u2_susphy_quirk;
1796
- status = "okay";
1797
-};
1798
-
1799
-&combphy1_usq {
1800
- rockchip,dis-u3otg1-port;
18011800 status = "okay";
18021801 };
18031802
....@@ -1830,8 +1829,8 @@
18301829
18311830 &vop {
18321831 status = "okay";
1833
- assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
1834
- 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>;
18351834 };
18361835
18371836 &vop_mmu {