forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
....@@ -141,6 +141,27 @@
141141 default-brightness-level = <200>;
142142 };
143143
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
+ };
163
+ };
164
+
144165 dc_12v: dc-12v {
145166 compatible = "regulator-fixed";
146167 regulator-name = "dc_12v";
....@@ -151,12 +172,18 @@
151172 };
152173
153174 hdmi_sound: hdmi-sound {
175
+ compatible = "simple-audio-card";
176
+ simple-audio-card,format = "i2s";
177
+ simple-audio-card,mclk-fs = <128>;
178
+ simple-audio-card,name = "rockchip,hdmi";
154179 status = "disabled";
155
- compatible = "rockchip,hdmi";
156
- rockchip,mclk-fs = <128>;
157
- rockchip,card-name = "rockchip,hdmi";
158
- rockchip,cpu = <&i2s0_8ch>;
159
- rockchip,codec = <&hdmi>;
180
+
181
+ simple-audio-card,cpu {
182
+ sound-dai = <&i2s0_8ch>;
183
+ };
184
+ simple-audio-card,codec {
185
+ sound-dai = <&hdmi>;
186
+ };
160187 };
161188
162189 leds: leds {
....@@ -335,6 +362,8 @@
335362 compatible = "wlan-platdata";
336363 rockchip,grf = <&grf>;
337364 wifi_chip_type = "ap6398s";
365
+ clocks = <&rk809 1>;
366
+ clock-names = "ext_clock";
338367 status = "okay";
339368 };
340369
....@@ -364,30 +393,6 @@
364393 status = "okay";
365394 };
366395
367
-&can0 {
368
- assigned-clocks = <&cru CLK_CAN0>;
369
- assigned-clock-rates = <150000000>;
370
- pinctrl-names = "default";
371
- pinctrl-0 = <&can0m1_pins>;
372
- status = "disabled";
373
-};
374
-
375
-&can1 {
376
- assigned-clocks = <&cru CLK_CAN1>;
377
- assigned-clock-rates = <150000000>;
378
- pinctrl-names = "default";
379
- pinctrl-0 = <&can1m1_pins>;
380
- status = "disabled";
381
-};
382
-
383
-&can2 {
384
- assigned-clocks = <&cru CLK_CAN2>;
385
- assigned-clock-rates = <150000000>;
386
- pinctrl-names = "default";
387
- pinctrl-0 = <&can2m1_pins>;
388
- status = "disabled";
389
-};
390
-
391396 &cpu0 {
392397 cpu-supply = <&vdd_cpu>;
393398 };
....@@ -395,6 +400,7 @@
395400 &dfi {
396401 status = "okay";
397402 };
403
+
398404
399405 &dmc {
400406 center-supply = <&vdd_logic>;
....@@ -884,10 +890,10 @@
884890 15 05 01 29
885891 ];
886892
887
- panel-exit-sequence = [
888
- 05 00 01 28
889
- 05 00 01 10
890
- ];
893
+ panel-exit-sequence = [
894
+ 05 00 01 28
895
+ 05 00 01 10
896
+ ];
891897
892898 disp_timings1: display-timings {
893899 native-mode = <&dsi1_timing0>;
....@@ -940,13 +946,34 @@
940946 status = "okay";
941947 };
942948
949
+&hdmi {
950
+ status = "okay";
951
+ rockchip,phy-table =
952
+ <92812500 0x8009 0x0000 0x0270>,
953
+ <165000000 0x800b 0x0000 0x026d>,
954
+ <185625000 0x800b 0x0000 0x01ed>,
955
+ <297000000 0x800b 0x0000 0x01ad>,
956
+ <594000000 0x8029 0x0000 0x0088>,
957
+ <000000000 0x0000 0x0000 0x0000>;
958
+};
943959
960
+&hdmi_in_vp0 {
961
+ status = "okay";
962
+};
963
+
964
+&hdmi_in_vp1 {
965
+ status = "disabled";
966
+};
967
+
968
+&hdmi_sound {
969
+ status = "okay";
970
+};
944971
945972 &i2c0 {
946973 status = "okay";
947974
948975 vdd_cpu: tcs4525@1c {
949
- compatible = "tcs,tcs452x";
976
+ compatible = "tcs,tcs4525";
950977 reg = <0x1c>;
951978 vin-supply = <&vcc5v0_sys>;
952979 regulator-compatible = "fan53555-reg";
....@@ -954,7 +981,6 @@
954981 regulator-min-microvolt = <712500>;
955982 regulator-max-microvolt = <1390000>;
956983 regulator-init-microvolt = <900000>;
957
- regulator-initial-mode = <1>;
958984 regulator-ramp-delay = <2300>;
959985 fcs,suspend-voltage-selector = <1>;
960986 regulator-boot-on;
....@@ -1116,8 +1142,8 @@
11161142 vccio_acodec: LDO_REG4 {
11171143 regulator-always-on;
11181144 regulator-boot-on;
1119
- regulator-min-microvolt = <3300000>;
1120
- regulator-max-microvolt = <3300000>;
1145
+ regulator-min-microvolt = <3000000>;
1146
+ regulator-max-microvolt = <3000000>;
11211147 regulator-name = "vccio_acodec";
11221148 regulator-state-mem {
11231149 regulator-off-in-suspend;
....@@ -1231,15 +1257,6 @@
12311257
12321258 &i2c1 {
12331259 status = "okay";
1234
-
1235
- gt1x: gt1x@14 {
1236
- compatible = "goodix,gt1x";
1237
- reg = <0x14>;
1238
- pinctrl-names = "default";
1239
- pinctrl-0 = <&touch_gpio>;
1240
- goodix,rst-gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
1241
- goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
1242
- };
12431260 };
12441261
12451262 &i2c5 {
....@@ -1272,6 +1289,12 @@
12721289 &i2s1m0_lrcktx
12731290 &i2s1m0_sdi0
12741291 &i2s1m0_sdo0>;
1292
+};
1293
+
1294
+&i2s3_2ch {
1295
+ pinctrl-0 = <&i2s3m0_sclk &i2s3m0_lrck &i2s3m0_sdi &i2s3m0_sdo>;
1296
+ rockchip,bclk-fs = <32>;
1297
+ status = "disabled";
12751298 };
12761299
12771300 &iep {
....@@ -1310,6 +1333,7 @@
13101333
13111334 &pinctrl {
13121335
1336
+
13131337 mxc6655xa {
13141338 mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
13151339 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
....@@ -1324,12 +1348,12 @@
13241348
13251349 soc_slppin_gpio: soc_slppin_gpio {
13261350 rockchip,pins =
1327
- <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low_pull_down>;
1351
+ <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low>;
13281352 };
13291353
13301354 soc_slppin_slp: soc_slppin_slp {
13311355 rockchip,pins =
1332
- <0 RK_PA2 1 &pcfg_pull_up>;
1356
+ <0 RK_PA2 1 &pcfg_pull_none>;
13331357 };
13341358
13351359 soc_slppin_rst: soc_slppin_rst {
....@@ -1544,7 +1568,10 @@
15441568 status = "okay";
15451569 };
15461570
1547
-
1571
+&route_hdmi {
1572
+ status = "okay";
1573
+ connect = <&vp0_out_hdmi>;
1574
+};
15481575
15491576 &saradc {
15501577 status = "okay";
....@@ -1553,15 +1580,18 @@
15531580
15541581 &sdhci {
15551582 bus-width = <8>;
1556
- supports-emmc;
1583
+ no-sdio;
1584
+ no-sd;
15571585 non-removable;
15581586 max-frequency = <200000000>;
1587
+ full-pwr-cycle-in-suspend;
15591588 status = "okay";
15601589 };
15611590
15621591 &sdmmc0 {
15631592 max-frequency = <150000000>;
1564
- supports-sd;
1593
+ no-sdio;
1594
+ no-mmc;
15651595 bus-width = <4>;
15661596 cap-mmc-highspeed;
15671597 cap-sd-highspeed;
....@@ -1641,15 +1671,6 @@
16411671 };
16421672
16431673 &usbhost_dwc3 {
1644
-// phys = <&u2phy0_host>;
1645
-// phy-names = "usb2-phy";
1646
-// maximum-speed = "high-speed";
1647
-// snps,dis_u2_susphy_quirk;
1648
- status = "okay";
1649
-};
1650
-
1651
-&combphy1_usq {
1652
-// rockchip,dis-u3otg1-port;
16531674 status = "okay";
16541675 };
16551676
....@@ -1682,8 +1703,8 @@
16821703
16831704 &vop {
16841705 status = "okay";
1685
- assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
1686
- assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
1706
+ assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>, <&cru DCLK_VOP2>;
1707
+ assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>, <&cru PLL_GPLL>;
16871708 };
16881709
16891710 &vop_mmu {