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/Documentation/devicetree/bindings/sound/rockchip,multicodecs.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/kernel/Documentation/devicetree/bindings/sound/rockchip,multicodecs.txt b/kernel/Documentation/devicetree/bindings/sound/rockchip,multicodecs.txt
index 194bbb6..5db94c3 100644
--- a/kernel/Documentation/devicetree/bindings/sound/rockchip,multicodecs.txt
+++ b/kernel/Documentation/devicetree/bindings/sound/rockchip,multicodecs.txt
@@ -12,6 +12,16 @@
- rockchip,wait-card-locked : This is a variable length array, user specified
these sound cards need to be prepared and locked,
otherwise the local slave card can be probed.
+- rockchip,audio-routing : sound card dapm routing.
+- hp-det-gpio : headphone detect gpio.
+- io-channels : headset mic/key detect adc channel.
+- io-channel-names : headset mic/key adc channel name.
+- spk-con-gpio : speaker enable/disabled gpio.
+- hp-con-gpio : headphone enable/disabled gpio.
+- keyup-threshold-microvolt: keyup-threshold-microvolt uV.
+- poll-interval : headset adc key poller internal ms.
+- play-pause-key : PLAYPAUSE key, can define the other key like vol+/vol- and so on.
+
Optional dai-link subnode properties:
- rockchip,format : CPU/CODEC common audio format.
@@ -37,3 +47,42 @@
rockchip,cpu = <&i2s0_8ch>;
rockchip,codec = <&codec>, <&vad>;
};
+
+Example 2 :
+
+es8388_sound: es8388-sound {
+ status = "okay";
+ compatible = "rockchip,multicodecs-card";
+ rockchip,card-name = "rockchip-es8388";
+ hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
+ io-channels = <&saradc 3>;
+ io-channel-names = "adc-detect";
+ spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
+ hp-con-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
+ rockchip,format = "i2s";
+ rockchip,mclk-fs = <256>;
+ rockchip,cpu = <&i2s0_8ch>;
+ rockchip,codec = <&es8388>;
+ rockchip,audio-routing =
+ "Headphone", "LOUT1",
+ "Headphone", "ROUT1",
+ "Speaker", "LOUT2",
+ "Speaker", "ROUT2",
+ "Headphone", "Headphone Power",
+ "Headphone", "Headphone Power",
+ "Speaker", "Speaker Power",
+ "Speaker", "Speaker Power",
+ "LINPUT1", "Main Mic",
+ "LINPUT2", "Main Mic",
+ "RINPUT1", "Headset Mic",
+ "RINPUT2", "Headset Mic";
+ pinctrl-names = "default";
+ pinctrl-0 = <&hp_det>;
+ keyup-threshold-microvolt = <1800000>;
+ poll-interval = <100>;
+ play-pause-key{
+ label = "playpause";
+ linux,code = <KEY_PLAYPAUSE>;
+ press-threshold-microvolt = <2000>;
+ };
+};
--
Gitblit v1.6.2