audio: Add support for Xiaomi 12S (mayfly|L3S)

Change-Id: I2f219014d2feed67033b89e1f83d8a0c0955f375
This commit is contained in:
Arian
2024-03-13 00:29:11 +01:00
parent a332ba4ebd
commit 1294124d83
2 changed files with 52 additions and 1 deletions

View File

@@ -53,7 +53,8 @@ dtbo-$(CONFIG_ARCH_CAPE) += cape-audio.dtbo \
ukee-audio-cdp-qhd.dtbo \
ukee-audio-cdp.dtbo \
unicorn-audio.dtbo \
thor-audio.dtbo
thor-audio.dtbo \
mayfly-audio.dtbo
always-y := $(dtb-y) $(dtbo-y)
subdir-y := $(dts-dirs)

View File

@@ -0,0 +1,50 @@
/dts-v1/;
/plugin/;
#include "xiaomi-sm8450-common.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Cape MTP";
compatible = "qcom,cape-mtp", "qcom,cape", "qcom,mtp";
qcom,msm-id = <530 0x10000>, <531 0x10000>, <540 0x10000>;
qcom,board-id = <0x10008 0>;
xiaomi,miboard-id = <0xC 0>;
};
&soc {
sbu_uart_en: msm_cdc_pinctrl@12 {
compatible = "qcom,msm-cdc-pinctrl";
pinctrl-names = "aud_active", "aud_sleep";
pinctrl-0 = <&sbu_uart_en_active_uni>;
pinctrl-1 = <&sbu_uart_en_idle_uni>;
#gpio-cells = <0>;
};
};
&tlmm {
sbu_uart_en_idle_uni: uart_audio_en_idle_uni {
mux {
pins = "gpio74";
function = "gpio";
};
config {
pins = "gpio74";
drive-strength = <2>;
bias-pull-down;
output-low;
};
};
sbu_uart_en_active_uni: uart_audio_en_active_uni {
mux {
pins = "gpio74";
function = "gpio";
};
config {
pins = "gpio74";
drive-strength = <2>;
bias-disable;
output-high;
};
};
};