From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 22 Oct 2024 10:36:11 +0000
Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM
---
kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi | 64 ++++++++++++++++++--------------
1 files changed, 36 insertions(+), 28 deletions(-)
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
index 93e1bd7..325326a 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
@@ -185,14 +185,26 @@
sound-dai = <&hdmi>;
};
};
-
+/*
leds: leds {
compatible = "gpio-leds";
- sys_led: sys_led {
- gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
- linux,default-trigger = "heartbeat";
+ run_led: run_led {
+ gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+// linux,default-trigger = "heartbeat";
};
- };
+
+ sig_led: sig_led {
+ gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+
+ err_led: err_led {
+ gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+
+ };*/
pdmics: dummy-codec {
status = "disabled";
@@ -214,22 +226,23 @@
rk809_sound: rk809-sound {
status = "okay";
- compatible = "rockchip,multicodecs-card";
- rockchip,card-name = "rockchip-rk809";
- hp-det-gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
- rockchip,format = "i2s";
- rockchip,mclk-fs = <256>;
- rockchip,cpu = <&i2s1_8ch>;
- rockchip,codec = <&rk809_codec>;
- pinctrl-names = "default";
- pinctrl-0 = <&hp_det>;
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,name = "rockchip,rk809-codec";
+ simple-audio-card,mclk-fs = <256>;
+
+ simple-audio-card,cpu {
+ sound-dai = <&i2s1_8ch>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&rk809_codec>;
+ };
};
spdif-sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,name = "ROCKCHIP,SPDIF";
- simple-audio-card,mclk-fs = <128>;
simple-audio-card,cpu {
sound-dai = <&spdif_8ch>;
};
@@ -317,7 +330,6 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
vin-supply = <&vcc3v3_sys>;
regulator-state-mem {
@@ -332,7 +344,6 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
- gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
vin-supply = <&vcc3v3_sys>;
regulator-state-mem {
@@ -361,6 +372,8 @@
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
wifi_chip_type = "ap6398s";
+ clocks = <&rk809 1>;
+ clock-names = "ext_clock";
status = "okay";
};
@@ -397,6 +410,7 @@
&dfi {
status = "okay";
};
+
&dmc {
center-supply = <&vdd_logic>;
@@ -1234,7 +1248,7 @@
};
rk809_codec: codec {
- #sound-dai-cells = <1>;
+ #sound-dai-cells = <0>;
compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
clocks = <&cru I2S1_MCLKOUT>;
clock-names = "mclk";
@@ -1252,7 +1266,7 @@
};
&i2c1 {
- status = "okay";
+ status = "disabled";
};
&i2c5 {
@@ -1288,7 +1302,6 @@
};
&i2s3_2ch {
- pinctrl-0 = <&i2s3m0_sclk &i2s3m0_lrck &i2s3m0_sdi &i2s3m0_sdo>;
rockchip,bclk-fs = <32>;
status = "disabled";
};
@@ -1329,11 +1342,6 @@
&pinctrl {
- headphone {
- hp_det: hp-det {
- rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_down>;
- };
- };
mxc6655xa {
mxc6655xa_irq_gpio: mxc6655xa_irq_gpio {
@@ -1435,7 +1443,7 @@
};
&pwm7 {
- status = "okay";
+ status = "disabled";
compatible = "rockchip,remotectl-pwm";
remote_pwm_id = <3>;
@@ -1610,7 +1618,7 @@
};
&spdif_8ch {
- status = "okay";
+ status = "disabled";
};
&tsadc {
@@ -1662,7 +1670,7 @@
};
&usbdrd_dwc3 {
- dr_mode = "otg";
+ dr_mode = "host";
extcon = <&usb2phy0>;
status = "okay";
};
--
Gitblit v1.6.2