From 071106ecf68c401173c58808b1cf5f68cc50d390 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 05 Jan 2024 08:39:27 +0000
Subject: [PATCH] change wifi driver to cypress
---
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi | 145 +++++++++++++++++++++++++++--------------------
1 files changed, 83 insertions(+), 62 deletions(-)
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
index 4063bc3..cb98f46 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
@@ -141,6 +141,27 @@
default-brightness-level = <200>;
};
+ bt_sco: bt-sco {
+ status = "disabled";
+ compatible = "delta,dfbmcs320";
+ #sound-dai-cells = <1>;
+ };
+
+ bt_sound: bt-sound {
+ status = "disabled";
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "dsp_a";
+ simple-audio-card,bitclock-inversion = <0>;
+ simple-audio-card,mclk-fs = <256>;
+ simple-audio-card,name = "rockchip,bt";
+ simple-audio-card,cpu {
+ sound-dai = <&i2s3_2ch>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&bt_sco 1>;
+ };
+ };
+
dc_12v: dc-12v {
compatible = "regulator-fixed";
regulator-name = "dc_12v";
@@ -151,12 +172,18 @@
};
hdmi_sound: hdmi-sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,mclk-fs = <128>;
+ simple-audio-card,name = "rockchip,hdmi";
status = "disabled";
- compatible = "rockchip,hdmi";
- rockchip,mclk-fs = <128>;
- rockchip,card-name = "rockchip,hdmi";
- rockchip,cpu = <&i2s0_8ch>;
- rockchip,codec = <&hdmi>;
+
+ simple-audio-card,cpu {
+ sound-dai = <&i2s0_8ch>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&hdmi>;
+ };
};
leds: leds {
@@ -335,6 +362,8 @@
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "ap6398s";
+ clocks = <&rk809 1>;
+ clock-names = "ext_clock";
status = "okay";
};
@@ -364,30 +393,6 @@
status = "okay";
};
-&can0 {
- assigned-clocks = <&cru CLK_CAN0>;
- assigned-clock-rates = <150000000>;
- pinctrl-names = "default";
- pinctrl-0 = <&can0m1_pins>;
- status = "disabled";
-};
-
-&can1 {
- assigned-clocks = <&cru CLK_CAN1>;
- assigned-clock-rates = <150000000>;
- pinctrl-names = "default";
- pinctrl-0 = <&can1m1_pins>;
- status = "disabled";
-};
-
-&can2 {
- assigned-clocks = <&cru CLK_CAN2>;
- assigned-clock-rates = <150000000>;
- pinctrl-names = "default";
- pinctrl-0 = <&can2m1_pins>;
- status = "disabled";
-};
-
&cpu0 {
cpu-supply = <&vdd_cpu>;
};
@@ -395,6 +400,7 @@
&dfi {
status = "okay";
};
+
&dmc {
center-supply = <&vdd_logic>;
@@ -884,10 +890,10 @@
15 05 01 29
];
- panel-exit-sequence = [
- 05 00 01 28
- 05 00 01 10
- ];
+ panel-exit-sequence = [
+ 05 00 01 28
+ 05 00 01 10
+ ];
disp_timings1: display-timings {
native-mode = <&dsi1_timing0>;
@@ -940,13 +946,34 @@
status = "okay";
};
+&hdmi {
+ status = "okay";
+ rockchip,phy-table =
+ <92812500 0x8009 0x0000 0x0270>,
+ <165000000 0x800b 0x0000 0x026d>,
+ <185625000 0x800b 0x0000 0x01ed>,
+ <297000000 0x800b 0x0000 0x01ad>,
+ <594000000 0x8029 0x0000 0x0088>,
+ <000000000 0x0000 0x0000 0x0000>;
+};
+&hdmi_in_vp0 {
+ status = "okay";
+};
+
+&hdmi_in_vp1 {
+ status = "disabled";
+};
+
+&hdmi_sound {
+ status = "okay";
+};
&i2c0 {
status = "okay";
vdd_cpu: tcs4525@1c {
- compatible = "tcs,tcs452x";
+ compatible = "tcs,tcs4525";
reg = <0x1c>;
vin-supply = <&vcc5v0_sys>;
regulator-compatible = "fan53555-reg";
@@ -954,7 +981,6 @@
regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1390000>;
regulator-init-microvolt = <900000>;
- regulator-initial-mode = <1>;
regulator-ramp-delay = <2300>;
fcs,suspend-voltage-selector = <1>;
regulator-boot-on;
@@ -1116,8 +1142,8 @@
vccio_acodec: LDO_REG4 {
regulator-always-on;
regulator-boot-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
regulator-name = "vccio_acodec";
regulator-state-mem {
regulator-off-in-suspend;
@@ -1231,15 +1257,6 @@
&i2c1 {
status = "okay";
-
- gt1x: gt1x@14 {
- compatible = "goodix,gt1x";
- reg = <0x14>;
- pinctrl-names = "default";
- pinctrl-0 = <&touch_gpio>;
- goodix,rst-gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
- goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
- };
};
&i2c5 {
@@ -1272,6 +1289,12 @@
&i2s1m0_lrcktx
&i2s1m0_sdi0
&i2s1m0_sdo0>;
+};
+
+&i2s3_2ch {
+ pinctrl-0 = <&i2s3m0_sclk &i2s3m0_lrck &i2s3m0_sdi &i2s3m0_sdo>;
+ rockchip,bclk-fs = <32>;
+ status = "disabled";
};
&iep {
@@ -1310,6 +1333,7 @@
&pinctrl {
+
mxc6655xa {
mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -1324,12 +1348,12 @@
soc_slppin_gpio: soc_slppin_gpio {
rockchip,pins =
- <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low_pull_down>;
+ <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low>;
};
soc_slppin_slp: soc_slppin_slp {
rockchip,pins =
- <0 RK_PA2 1 &pcfg_pull_up>;
+ <0 RK_PA2 1 &pcfg_pull_none>;
};
soc_slppin_rst: soc_slppin_rst {
@@ -1544,7 +1568,10 @@
status = "okay";
};
-
+&route_hdmi {
+ status = "okay";
+ connect = <&vp0_out_hdmi>;
+};
&saradc {
status = "okay";
@@ -1553,15 +1580,18 @@
&sdhci {
bus-width = <8>;
- supports-emmc;
+ no-sdio;
+ no-sd;
non-removable;
max-frequency = <200000000>;
+ full-pwr-cycle-in-suspend;
status = "okay";
};
&sdmmc0 {
max-frequency = <150000000>;
- supports-sd;
+ no-sdio;
+ no-mmc;
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
@@ -1641,15 +1671,6 @@
};
&usbhost_dwc3 {
-// phys = <&u2phy0_host>;
-// phy-names = "usb2-phy";
-// maximum-speed = "high-speed";
-// snps,dis_u2_susphy_quirk;
- status = "okay";
-};
-
-&combphy1_usq {
-// rockchip,dis-u3otg1-port;
status = "okay";
};
@@ -1682,8 +1703,8 @@
&vop {
status = "okay";
- assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
- assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
+ assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>, <&cru DCLK_VOP2>;
+ assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>, <&cru PLL_GPLL>;
};
&vop_mmu {
--
Gitblit v1.6.2