forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
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,20 +172,38 @@
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 {
163190 compatible = "gpio-leds";
164
- sys_led: sys_led {
165
- gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
166
- linux,default-trigger = "heartbeat";
191
+ run_led: run_led {
192
+ gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
193
+ default-state = "on";
194
+// linux,default-trigger = "heartbeat";
167195 };
196
+ /*
197
+ sig_led: sig_led {
198
+ gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
199
+ default-state = "on";
200
+ };
201
+
202
+ err_led: err_led {
203
+ gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
204
+ default-state = "on";
205
+ };
206
+ */
168207 };
169208
170209 pdmics: dummy-codec {
....@@ -291,7 +330,6 @@
291330 regulator-min-microvolt = <3300000>;
292331 regulator-max-microvolt = <3300000>;
293332 enable-active-high;
294
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
295333 vin-supply = <&vcc3v3_sys>;
296334
297335 regulator-state-mem {
....@@ -306,7 +344,6 @@
306344 regulator-min-microvolt = <3300000>;
307345 regulator-max-microvolt = <3300000>;
308346 enable-active-high;
309
- gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
310347 vin-supply = <&vcc3v3_sys>;
311348
312349 regulator-state-mem {
....@@ -335,6 +372,8 @@
335372 compatible = "wlan-platdata";
336373 rockchip,grf = <&grf>;
337374 wifi_chip_type = "ap6398s";
375
+ clocks = <&rk809 1>;
376
+ clock-names = "ext_clock";
338377 status = "okay";
339378 };
340379
....@@ -364,30 +403,6 @@
364403 status = "okay";
365404 };
366405
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
-
391406 &cpu0 {
392407 cpu-supply = <&vdd_cpu>;
393408 };
....@@ -395,6 +410,7 @@
395410 &dfi {
396411 status = "okay";
397412 };
413
+
398414
399415 &dmc {
400416 center-supply = <&vdd_logic>;
....@@ -884,10 +900,10 @@
884900 15 05 01 29
885901 ];
886902
887
- panel-exit-sequence = [
888
- 05 00 01 28
889
- 05 00 01 10
890
- ];
903
+ panel-exit-sequence = [
904
+ 05 00 01 28
905
+ 05 00 01 10
906
+ ];
891907
892908 disp_timings1: display-timings {
893909 native-mode = <&dsi1_timing0>;
....@@ -940,13 +956,34 @@
940956 status = "okay";
941957 };
942958
959
+&hdmi {
960
+ status = "okay";
961
+ rockchip,phy-table =
962
+ <92812500 0x8009 0x0000 0x0270>,
963
+ <165000000 0x800b 0x0000 0x026d>,
964
+ <185625000 0x800b 0x0000 0x01ed>,
965
+ <297000000 0x800b 0x0000 0x01ad>,
966
+ <594000000 0x8029 0x0000 0x0088>,
967
+ <000000000 0x0000 0x0000 0x0000>;
968
+};
943969
970
+&hdmi_in_vp0 {
971
+ status = "okay";
972
+};
973
+
974
+&hdmi_in_vp1 {
975
+ status = "disabled";
976
+};
977
+
978
+&hdmi_sound {
979
+ status = "okay";
980
+};
944981
945982 &i2c0 {
946983 status = "okay";
947984
948985 vdd_cpu: tcs4525@1c {
949
- compatible = "tcs,tcs452x";
986
+ compatible = "tcs,tcs4525";
950987 reg = <0x1c>;
951988 vin-supply = <&vcc5v0_sys>;
952989 regulator-compatible = "fan53555-reg";
....@@ -954,7 +991,6 @@
954991 regulator-min-microvolt = <712500>;
955992 regulator-max-microvolt = <1390000>;
956993 regulator-init-microvolt = <900000>;
957
- regulator-initial-mode = <1>;
958994 regulator-ramp-delay = <2300>;
959995 fcs,suspend-voltage-selector = <1>;
960996 regulator-boot-on;
....@@ -1116,8 +1152,8 @@
11161152 vccio_acodec: LDO_REG4 {
11171153 regulator-always-on;
11181154 regulator-boot-on;
1119
- regulator-min-microvolt = <3300000>;
1120
- regulator-max-microvolt = <3300000>;
1155
+ regulator-min-microvolt = <3000000>;
1156
+ regulator-max-microvolt = <3000000>;
11211157 regulator-name = "vccio_acodec";
11221158 regulator-state-mem {
11231159 regulator-off-in-suspend;
....@@ -1231,15 +1267,6 @@
12311267
12321268 &i2c1 {
12331269 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
- };
12431270 };
12441271
12451272 &i2c5 {
....@@ -1272,6 +1299,11 @@
12721299 &i2s1m0_lrcktx
12731300 &i2s1m0_sdi0
12741301 &i2s1m0_sdo0>;
1302
+};
1303
+
1304
+&i2s3_2ch {
1305
+ rockchip,bclk-fs = <32>;
1306
+ status = "disabled";
12751307 };
12761308
12771309 &iep {
....@@ -1310,6 +1342,7 @@
13101342
13111343 &pinctrl {
13121344
1345
+
13131346 mxc6655xa {
13141347 mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
13151348 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
....@@ -1324,12 +1357,12 @@
13241357
13251358 soc_slppin_gpio: soc_slppin_gpio {
13261359 rockchip,pins =
1327
- <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low_pull_down>;
1360
+ <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low>;
13281361 };
13291362
13301363 soc_slppin_slp: soc_slppin_slp {
13311364 rockchip,pins =
1332
- <0 RK_PA2 1 &pcfg_pull_up>;
1365
+ <0 RK_PA2 1 &pcfg_pull_none>;
13331366 };
13341367
13351368 soc_slppin_rst: soc_slppin_rst {
....@@ -1410,7 +1443,7 @@
14101443 };
14111444
14121445 &pwm7 {
1413
- status = "okay";
1446
+ status = "disabled";
14141447
14151448 compatible = "rockchip,remotectl-pwm";
14161449 remote_pwm_id = <3>;
....@@ -1544,7 +1577,10 @@
15441577 status = "okay";
15451578 };
15461579
1547
-
1580
+&route_hdmi {
1581
+ status = "okay";
1582
+ connect = <&vp0_out_hdmi>;
1583
+};
15481584
15491585 &saradc {
15501586 status = "okay";
....@@ -1553,15 +1589,18 @@
15531589
15541590 &sdhci {
15551591 bus-width = <8>;
1556
- supports-emmc;
1592
+ no-sdio;
1593
+ no-sd;
15571594 non-removable;
15581595 max-frequency = <200000000>;
1596
+ full-pwr-cycle-in-suspend;
15591597 status = "okay";
15601598 };
15611599
15621600 &sdmmc0 {
15631601 max-frequency = <150000000>;
1564
- supports-sd;
1602
+ no-sdio;
1603
+ no-mmc;
15651604 bus-width = <4>;
15661605 cap-mmc-highspeed;
15671606 cap-sd-highspeed;
....@@ -1579,7 +1618,7 @@
15791618 };
15801619
15811620 &spdif_8ch {
1582
- status = "okay";
1621
+ status = "disabled";
15831622 };
15841623
15851624 &tsadc {
....@@ -1641,15 +1680,6 @@
16411680 };
16421681
16431682 &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;
16531683 status = "okay";
16541684 };
16551685
....@@ -1682,8 +1712,8 @@
16821712
16831713 &vop {
16841714 status = "okay";
1685
- assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
1686
- assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
1715
+ assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>, <&cru DCLK_VOP2>;
1716
+ assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>, <&cru PLL_GPLL>;
16871717 };
16881718
16891719 &vop_mmu {