From nobody Tue Apr 7 01:02:59 2026 Received: from mail-m49235.qiye.163.com (mail-m49235.qiye.163.com [45.254.49.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9ED6435836F; Tue, 17 Mar 2026 09:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.235 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773738713; cv=none; b=qnNzgGIS2s6jiDmBfvnJXQsG7h6lmCAYkxQNn0Dprm2qITMbSFR7C0HobS3Q/lT9XhAtbWoA4wNokZz0/cIM6SYVHs1fzn//XUGm7NTutLHchEEVWAYwqNLYEDJb6Gswqw7aflBkH0GaVaqt187MlQ3JIqqIERVgKPkKEA/sbeo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773738713; c=relaxed/simple; bh=Ajb1QPbHmj8b08GpQRql3qLsMQUU8u7NopSHVlNBGUA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cSGXXpsukH0ZOxBJTYc8LMDYly+YIqyMYABV59JJtbbp4r39jlFR02x6BffOloxcBBrwL1JbRDgWcdqMJvCdnPYbVrb7Y7o0X3UWK4L2QOIs4GDNRrXC8m82MykZFqNk9kp5DW6zhAYrfmQiMLUSfFlYk83OV9CAaAyodtPuMts= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=T5MFRtE9; arc=none smtp.client-ip=45.254.49.235 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="T5MFRtE9" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b47f; Tue, 17 Mar 2026 16:36:12 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:40 +0800 Subject: [PATCH v2 1/6] ASoC: dt-bindings: es8316: Document everest,jack-detect-inverted property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-1-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=1053; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=Ajb1QPbHmj8b08GpQRql3qLsMQUU8u7NopSHVlNBGUA=; b=wlTANxLYLfSU4wIQkyW0hjTub1X5iHjJzCskx0fG6Esor25ezYLAIgOcBZHg/T0mXxxYuLeI7 KQTPMBxz1A1CwPZc6Jgze5FFPwYjQ21ot1YRCk/0nFbBHDPStnFZPna X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf0375809d5kunm8391965e39c985 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDS0xKVkJDQhpOT0MZTR4YSlYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=T5MFRtE9wf91ANTCyyZdrhNgKfxwBV8GIkSy9WQDjrAda82Nl80I4/NovaLQgmpDAdHFtqho74xkxJaeZfIFbuimLNK3I3c3KFErEepRZh72/x/1iWbHrI9kTg5KSaHW1BYJOM9VYqbnrIRMfP133iPRduNaOMZ8QYp8Cbf73gs=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=ouyxfbQT8uRoz1obRd9/fMlDp+dB5+soLr3veMB15sk=; h=date:mime-version:subject:message-id:from; The es8316 codec driver already supports the everest,jack-detect-inverted property to invert the jack detection logic, but it was not documented in the devicetree binding. Add the missing property documentation. Acked-by: Krzysztof Kozlowski Signed-off-by: Hongyang Zhao --- Documentation/devicetree/bindings/sound/everest,es8316.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/everest,es8316.yaml b/= Documentation/devicetree/bindings/sound/everest,es8316.yaml index fe5d938ca310..a0a4c1c99cf3 100644 --- a/Documentation/devicetree/bindings/sound/everest,es8316.yaml +++ b/Documentation/devicetree/bindings/sound/everest,es8316.yaml @@ -60,6 +60,11 @@ properties: "#sound-dai-cells": const: 0 =20 + everest,jack-detect-inverted: + $ref: /schemas/types.yaml#/definitions/flag + description: + Defined to invert the jack detection. + required: - compatible - reg --=20 2.43.0 From nobody Tue Apr 7 01:02:59 2026 Received: from mail-m1973196.qiye.163.com (mail-m1973196.qiye.163.com [220.197.31.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF88630ACF0; Tue, 17 Mar 2026 08:36:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.96 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736583; cv=none; b=t3wJMoyw8ny55dSHUR2dSrQveHQdxnOo5PAcH+CX53U0E0suRsy1yEm+SelPKgAq/riG48vPK+KP5BRhwY6pEHKn0cLYhpV3Ry7gG9+1DCxJf7j9NZzDyo8QT9LL2656zdSSBO7E3cYuqYNEbf9nYwHgi56v5iM42mNvqEl9EZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736583; c=relaxed/simple; bh=3WhNxKXKIK+jL31bp/APuAywSvRCK9e4YyOkDA/hN2A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Kt1plu+bImnkj4w0RJZN0T06BJ7Lho6JZYOsnRaya0x4bpBcBk0himydYfZi/e8l70GPEmviTL+lk5R7am19po4TA6bTOkThfX4AtLm/mghA7mpkejHn6bnyImOnYO42rvEYvIoSX9w1rP6TLVLJVmxp8pPhsoYgUYX/trGbsc0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=gtFT0+6b; arc=none smtp.client-ip=220.197.31.96 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="gtFT0+6b" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b48a; Tue, 17 Mar 2026 16:36:14 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:41 +0800 Subject: [PATCH v2 2/6] ASoC: es8316: Get sysclk rate from MCLK clock when not explicitly set Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-2-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=905; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=3WhNxKXKIK+jL31bp/APuAywSvRCK9e4YyOkDA/hN2A=; b=BoPy63R+aaxm+07RZl6U+d+Ys5JoaDn9lwHVFtlRBNwQhnuXQaZW8JbYPTcjM6QQeoXVEGfKy J7THW20AbPoAMbAvCMugsnPJkxHyrfdY6ISxFJqv2cvDu2PyPn0iUYv X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf03f4b09d5kunm8391965e39c995 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZHRoaVhgdHhpPHU1IHx5JTVYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=gtFT0+6bfFhsiGMetfuzK5fQXOkEcyMdynm4eS5izWH3bJ1sJsywScfFVAdLfI54gv90Yn1hlysQuMigMCHI/zYbOmcY8pYWOPbG3JpoxQiLE87gSzF8pudaCTFqVBPKPfmuK0CCl8vw0a6QTKKKbKhav8F6u3V4h836pzczmQ8=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=7o3HthpByf2f1sOcDO5CRZwMDKyB5mdUkD56e5BdYmo=; h=date:mime-version:subject:message-id:from; When the sysclk has not been set via set_sysclk(), try to get the clock rate from the MCLK clock provider. This is useful when the codec's MCLK is managed by an external clock controller and the machine driver does not explicitly call set_sysclk(). Signed-off-by: Hongyang Zhao --- sound/soc/codecs/es8316.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c index 9245c33700de..3889cb36a654 100644 --- a/sound/soc/codecs/es8316.c +++ b/sound/soc/codecs/es8316.c @@ -774,6 +774,9 @@ static int es8316_probe(struct snd_soc_component *compo= nent) return ret; } =20 + if (es8316->mclk) + es8316->sysclk =3D clk_get_rate(es8316->mclk); + /* Reset codec and enable current state machine */ snd_soc_component_write(component, ES8316_RESET, 0x3f); usleep_range(5000, 5500); --=20 2.43.0 From nobody Tue Apr 7 01:02:59 2026 Received: from mail-m32124.qiye.163.com (mail-m32124.qiye.163.com [220.197.32.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52159396565; Tue, 17 Mar 2026 08:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; cv=none; b=fkIBVzQwkjxkUU/E3w3Do75wwvJhXFpGzmZSs0Liwhk/7TTm+iLrW4EJgKfZHyWVyQj/AW3Y6ouhN6RDcQA9Vy51OF6gI7ToGi/ZT0tgRxpS9b0JwdD97wTMYWQgjBVB/m7IYb5hS94xc8JToSLK7uR41D1Mmxos6jL+JVMB+4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; c=relaxed/simple; bh=4x8ZTwVz12Ky+tRkT1T5HIQ0yrrQKIADrgChMaCGw00=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Babm3Qk9k7sd+hFLTA75RFkF6F44MoYoCvU9xdUVZ5gHencmPEKnG7KXtsK18DzGE7CweUF2P20SEZznSec5VDeFhvvyWTiAt006JZU6ze8ffFWsfauKATSSaRQhksErWXFCBL4f8fN3qKHyfeyErNpyRtbiNi4HfcbSNMtbjeM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=Hhb6RwPy; arc=none smtp.client-ip=220.197.32.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="Hhb6RwPy" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b498; Tue, 17 Mar 2026 16:36:16 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:42 +0800 Subject: [PATCH v2 3/6] ASoC: qcom: qdsp6: q6prm: add the missing MCLK clock IDs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-3-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=1938; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=4x8ZTwVz12Ky+tRkT1T5HIQ0yrrQKIADrgChMaCGw00=; b=U7iLX8C3SK0reJhCVMmgVl/g9m+YAXhpFKdFQuo0opdiw9Tf2c25pGuZn7W44CuKY9RNTEA5o 17DjDb7BGmvD5P4TgCghEQr+FxuE3lsj2QsI5xwuZBwqAslH8qBs3wt X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf0470e09d5kunm8391965e39c9b1 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCSk5KVh0YSR1JSxlDSE4aSlYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=Hhb6RwPyboqcSrvj79m/LCV+e6UPo+rFUY1Qo/+A96A1l4FKIBIVpQjF1tKHVrVb1us575yTQMnz5YvJueBUW3NEvrLRFcTJoKrskw9rH3vowt/xv1e7nBsFIicsPlghDuHMhP15da/2KRkVSo8pAhIptYwcweXJVA5n30YGsIM=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=GdC5YQNGKdJMv418WALrveWB5hYD4dGAViPMRUB4GJU=; h=date:mime-version:subject:message-id:from; Add the missing MCLK ids for the q6prm DSP interface. Signed-off-by: Neil Armstrong --- sound/soc/qcom/qdsp6/q6prm-clocks.c | 5 +++++ sound/soc/qcom/qdsp6/q6prm.h | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6prm-clocks.c b/sound/soc/qcom/qdsp6/q6p= rm-clocks.c index 4c574b48ab00..51b131fa9531 100644 --- a/sound/soc/qcom/qdsp6/q6prm-clocks.c +++ b/sound/soc/qcom/qdsp6/q6prm-clocks.c @@ -42,6 +42,11 @@ static const struct q6dsp_clk_init q6prm_clks[] =3D { Q6PRM_CLK(LPASS_CLK_ID_INT5_MI2S_IBIT), Q6PRM_CLK(LPASS_CLK_ID_INT6_MI2S_IBIT), Q6PRM_CLK(LPASS_CLK_ID_QUI_MI2S_OSR), + Q6PRM_CLK(LPASS_CLK_ID_MCLK_1), + Q6PRM_CLK(LPASS_CLK_ID_MCLK_2), + Q6PRM_CLK(LPASS_CLK_ID_MCLK_3), + Q6PRM_CLK(LPASS_CLK_ID_MCLK_4), + Q6PRM_CLK(LPASS_CLK_ID_MCLK_5), Q6PRM_CLK(LPASS_CLK_ID_WSA_CORE_MCLK), Q6PRM_CLK(LPASS_CLK_ID_WSA_CORE_NPL_MCLK), Q6PRM_CLK(LPASS_CLK_ID_VA_CORE_MCLK), diff --git a/sound/soc/qcom/qdsp6/q6prm.h b/sound/soc/qcom/qdsp6/q6prm.h index a988a32086fe..7a3f2ad7bbd4 100644 --- a/sound/soc/qcom/qdsp6/q6prm.h +++ b/sound/soc/qcom/qdsp6/q6prm.h @@ -52,6 +52,17 @@ /* Clock ID for QUINARY MI2S OSR CLK */ #define Q6PRM_LPASS_CLK_ID_QUI_MI2S_OSR 0x116 =20 +/* Clock ID for MCLK1 */ +#define Q6PRM_LPASS_CLK_ID_MCLK_1 0x300 +/* Clock ID for MCLK2 */ +#define Q6PRM_LPASS_CLK_ID_MCLK_2 0x301 +/* Clock ID for MCLK3 */ +#define Q6PRM_LPASS_CLK_ID_MCLK_3 0x302 +/* Clock ID for MCLK4 */ +#define Q6PRM_LPASS_CLK_ID_MCLK_4 0x303 +/* Clock ID for MCLK5 */ +#define Q6PRM_LPASS_CLK_ID_MCLK_5 0x305 + #define Q6PRM_LPASS_CLK_ID_WSA_CORE_MCLK 0x305 #define Q6PRM_LPASS_CLK_ID_WSA_CORE_NPL_MCLK 0x306 =20 --=20 2.43.0 From nobody Tue Apr 7 01:02:59 2026 Received: from mail-m49220.qiye.163.com (mail-m49220.qiye.163.com [45.254.49.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C801B37FF5B; Tue, 17 Mar 2026 08:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.220 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; cv=none; b=ls3Mhyb9fl+m/2R05o4qAXbNrpvbjDh8PCoKKqktZpqX6nEmaQyRNJ930ETOit02qCPWgq3Gzfe6vJ5WmIskxvv7ob4bEXqDVZadstfsg5+cGecLQYVxw51qTr2m0R9nU5bziMpGKh1TtTRIEuFFO3evzBbQKWjD1YVkCjLJVAE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; c=relaxed/simple; bh=t8lhSjavVNyVN0m6itU2OGMsya1COEWO1iDxM84EcgU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XWvuuIBYFkSwoc18h7WTj/X3smJRU7QvCYi4CnKPG7VEEHSMKg4qmTeSfmifdUUPxO2MM/mG88CslfnwbTKh4t7AZHS9i7lYw6T1bUeYZ++BzJYwjkgazPXiHkUX6lbpdjN1TyBBATzvfndEFCRWGUDeRtdpAHcluIqXjHE6dJ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=AKC3ully; arc=none smtp.client-ip=45.254.49.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="AKC3ully" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b4a1; Tue, 17 Mar 2026 16:36:18 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:43 +0800 Subject: [PATCH v2 4/6] ASoC: qcom: common: Add MI2S port IDs to jack setup Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-4-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=890; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=t8lhSjavVNyVN0m6itU2OGMsya1COEWO1iDxM84EcgU=; b=VC5z6stq1Q8d8aLbXgw2tpxfkpuSBbM16ljuxzmt7OrfVi00I3QHXC7jjkfsmIagIgcoFG2+H J4rJBh9ZdaJAG+mmKHXdFER4o6wCtT85zY8xR49h5ZI4dy+LDXSKclc X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf04ec109d5kunm8391965e39c9c1 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSkJDVk5LHhgdHU4fTU1PS1YVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=AKC3ully1U56Lu/5ZVNWxjHdIZ56N6VfxShXvpk1Up8UZlxdGjqbVfKwtaRXpncz0eDV4R9wwakPaE/YXJJggH370Uc6TXE9trZtkHJ8HG2493Be4ubpbwCCpPhAB+grns+7OXxrg6Rmg7Y1/J5SxsVMz1bKk44QJJk/J39rOdQ=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=PYTEvEpolPMmlNBtv2AO7COTHMb4LGvNbz02lBXKnPg=; h=date:mime-version:subject:message-id:from; Add PRIMARY_MI2S_RX through QUATERNARY_MI2S_TX and QUINARY MI2S port IDs to the qcom_snd_wcd_jack_setup() switch case, so that codecs connected via MI2S can use jack detection. Signed-off-by: Hongyang Zhao --- sound/soc/qcom/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c index 7ee60a58a336..657378474254 100644 --- a/sound/soc/qcom/common.c +++ b/sound/soc/qcom/common.c @@ -230,6 +230,8 @@ int qcom_snd_wcd_jack_setup(struct snd_soc_pcm_runtime = *rtd, case TX_CODEC_DMA_TX_1: case TX_CODEC_DMA_TX_2: case TX_CODEC_DMA_TX_3: + case PRIMARY_MI2S_RX ... QUATERNARY_MI2S_TX: + case QUINARY_MI2S_RX ... QUINARY_MI2S_TX: for_each_rtd_codec_dais(rtd, i, codec_dai) { rval =3D snd_soc_component_set_jack(codec_dai->component, jack, NULL); --=20 2.43.0 From nobody Tue Apr 7 01:02:59 2026 Received: from mail-m15578.qiye.163.com (mail-m15578.qiye.163.com [101.71.155.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D24B738F234; Tue, 17 Mar 2026 08:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.71.155.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; cv=none; b=KgKfRAc60FbiMaWtPIr0HDU87YUvfZETt+QdqTmkRn6KMPUDyi3V4rYk9l4m/I1qxRgbNlClNemlVbRYvjCZDsOqCcAPOf7Q5iO6KVG9Rx235SC7MHzvRl8ztSb2Es2cjRYmVmJhyvQ1fpgZqVkzJ8B313RTZGh16iwUau7Vik0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736593; c=relaxed/simple; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BjjjnlKWAmsoy5OXWkWby/fmEGZUNZTmo4Irre44E3fmvK4cVNVyAJFNXkJcylktpgFqTOArymJqn5yhXn6oGyF+M5zi0reWnP1D4g6zHZhpgwIQxFY5FCT2HejEDRxAGCkorgYV7j39/nFHDYc8kD2O+/C1u2DbiXhfYLnWnVk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=VRkRXzFk; arc=none smtp.client-ip=101.71.155.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="VRkRXzFk" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b4ad; Tue, 17 Mar 2026 16:36:20 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:44 +0800 Subject: [PATCH v2 5/6] ASoC: qcom: sc8280xp: Set codec DAI format for MI2S links Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-5-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=1340; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; b=QHFdteYvFqMthYd4HjQZx8pZ91R0Q8QM3+BI85lLZVKeU/y3A3uc8vtOri8rvp2i6supWdGN6 CaAtUvf4AE7CL3a0vxvzZvauy0j+0yNNVyNTjaY/R2LPohupPryEmEO X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf0568f09d5kunm8391965e39c9e7 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaGBgaVhkdTB0fTENLS0sZSFYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=VRkRXzFkvpwIhXmGl7j+zHB1EOzY73dpqdH8CQGtJzq5OOFb0jAZLgJDhIpq3cnFx55+sPd4K6Mq0+cu6XMI5ZjFldPUktF/B9ahFTy/p30PerQL0SymYS1bQoGr3DurvLsayz+OpV+sdGGiMGlcqwxOhHMe3hkV+6kwdG0VTs8=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=uD1bDfoNoFCDj51HBerfeeYEewmuLu8oZRNJDSFssSo=; h=date:mime-version:subject:message-id:from; Set the codec DAI format to I2S consumer mode (BC_FC) with normal bit and frame clocks (NB_NF) for MI2S backend links. This is required for external codecs connected via MI2S to work properly. Signed-off-by: Hongyang Zhao --- sound/soc/qcom/sc8280xp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c index 7925aa3f63ba..04e15c85a145 100644 --- a/sound/soc/qcom/sc8280xp.c +++ b/sound/soc/qcom/sc8280xp.c @@ -27,6 +27,7 @@ static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *= rtd) { struct sc8280xp_snd_data *data =3D snd_soc_card_get_drvdata(rtd->card); struct snd_soc_dai *cpu_dai =3D snd_soc_rtd_to_cpu(rtd, 0); + struct snd_soc_dai *codec_dai =3D snd_soc_rtd_to_codec(rtd, 0); struct snd_soc_card *card =3D rtd->card; struct snd_soc_jack *dp_jack =3D NULL; int dp_pcm_id =3D 0; @@ -35,6 +36,9 @@ static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *= rtd) case PRIMARY_MI2S_RX...QUATERNARY_MI2S_TX: case QUINARY_MI2S_RX...QUINARY_MI2S_TX: snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_BP_FP); + snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_BC_FC | + SND_SOC_DAIFMT_NB_NF | + SND_SOC_DAIFMT_I2S); break; case WSA_CODEC_DMA_RX_0: case WSA_CODEC_DMA_RX_1: --=20 2.43.0 From nobody Tue Apr 7 01:02:59 2026 Received: from mail-m49226.qiye.163.com (mail-m49226.qiye.163.com [45.254.49.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A3E1188596; Tue, 17 Mar 2026 08:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.226 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736595; cv=none; b=OYX52/RfsRE/YPLw0H7iwTgpqWrxWDQG81/NHGG1k4hiXN2M2FssectGpc1UxID5/g5gnZIwzcHtQcSviFiy5Vu4352+U6wyosveF5KKp6JgopBQLU4ENFg2UcvTHz6kuAMafCzUN9onIhbFbygWTviu2ZX6aLvC7TwFX/N/5UA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773736595; c=relaxed/simple; bh=baQNeXBE7npKcDlGStryNc13Z0dROADUrGzSelzrQT4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kNtOnRE18+C720SwmZqPMDeGj7ILS+0Q3xWJxU55iQi3TyWiHkVCA7GUUapYOe6rNrCYFcpz6lIqxfSTA/vQtHTa2axSdbgeX5AwdoIY0PL9aMRtZur4eLYvs9XMtKSREJo/d+zdZwY/sb4fQA+aGym3nOMAMV9/vp3B+5hm8go= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com; spf=pass smtp.mailfrom=thundersoft.com; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b=jS3av/tC; arc=none smtp.client-ip=45.254.49.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thundersoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=thundersoft.com header.i=@thundersoft.com header.b="jS3av/tC" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 373e3b4b7; Tue, 17 Mar 2026 16:36:22 +0800 (GMT+08:00) From: Hongyang Zhao Date: Tue, 17 Mar 2026 16:35:45 +0800 Subject: [PATCH v2 6/6] arm64: dts: qcom: qcs6490-rubikpi3: Add audio support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260317-rubikpi-next-20260304-v2-6-5634fabe0c43@thundersoft.com> References: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> In-Reply-To: <20260317-rubikpi-next-20260304-v2-0-5634fabe0c43@thundersoft.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Drake , Katsuhiro Suzuki , Matteo Martelli , Binbin Zhou , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Bjorn Andersson , Konrad Dybcio Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Roger Shimizu , Neil Armstrong , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773736570; l=6173; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=baQNeXBE7npKcDlGStryNc13Z0dROADUrGzSelzrQT4=; b=IujKd+wE/AnfU/oXPX0Qb+AkRVIlAjg55tBv+clUjSX0BAKgXm9IRE5WJZu6K2R9TFTf1wc1l oH9os5SwZ56AcsDNXaRBhFSLeSRZsazPCPM3yO1dpYxqXd6yMJafAor X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cfaf05dcf09d5kunm8391965e39c9fd X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZQkxIVk9MSUlJTBkfTEtJGVYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=jS3av/tCvh3Ssnp4GnbVhGGjCirZupfTYy+AhJdKW4xFPrrY6FDVVcqVIPtX5QlZ4/Ntoz5dm+Npb5VJozE4y0RdhUCZjU/tx6S1c7rcyFkO1SKL4MWu8M1vLNMz+/uT+u3rgZhDq6/wJJ2SMIc3gYBrcn/CWINptSfGvWXhwSU=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=KJyt/o2RLmptR4AhuSOo/qFkP0iWcCxeErwly/5Q4II=; h=date:mime-version:subject:message-id:from; Add audio support for the Thundercomm RubikPi3 board: - Enable AudioReach via qcs6490-audioreach.dtsi - Add ES8316 codec on I2C0 with MCLK from LPASS PRM and jack detection - Add fixed 3.3V regulator for ES8316 power supply - Add MI2S playback/capture dai-links for ES8316 - Add HDMI audio via LT9611 bridge on quaternary MI2S - Add SPDIF TX/RX on tertiary MI2S exposed at the board 40=E2=80=91pin head= er - Add LPASS pin configurations for quaternary MI2S and LPI I2S1 Signed-off-by: Hongyang Zhao --- .../boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts | 191 +++++++++++++++++= ++++ 1 file changed, 191 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts b/ar= ch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts index 0b64a0b91202..6831a576fefb 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts @@ -19,6 +19,7 @@ #include "pm7325.dtsi" #include "pm8350c.dtsi" /* PM7350C */ #include "pmk8350.dtsi" /* PMK7325 */ +#include "qcs6490-audioreach.dtsi" =20 /delete-node/ &adsp_mem; /delete-node/ &cdsp_mem; @@ -128,6 +129,23 @@ fan0: pwm-fan { pinctrl-names =3D "default"; }; =20 + vreg_es8316_3v3: vreg-es8316-3v3 { + compatible =3D "regulator-fixed"; + + regulator-name =3D "vreg_es8316_3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&tlmm 117 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&es8316_power_on>; + pinctrl-names =3D "default"; + + regulator-always-on; + regulator-boot-on; + }; + vreg_eth_1v8: regulator-eth-1v8 { compatible =3D "regulator-fixed"; =20 @@ -364,6 +382,16 @@ usb1_sbu_mux: endpoint { }; }; }; + + spdif_rx: spdif-rx { + compatible =3D "linux,spdif-dir"; + #sound-dai-cells =3D <0>; + }; + + spdif_tx: spdif-tx { + compatible =3D "linux,spdif-dit"; + #sound-dai-cells =3D <0>; + }; }; =20 &apps_rsc { @@ -727,6 +755,23 @@ &gpu_zap_shader { firmware-name =3D "qcom/qcs6490/a660_zap.mbn"; }; =20 +&i2c0 { + status =3D "okay"; + + es8316: audio-codec@11 { + compatible =3D "everest,es8316"; + reg =3D <0x11>; + #sound-dai-cells =3D <0>; + + clocks =3D <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names =3D "mclk"; + + interrupts-extended =3D <&tlmm 63 IRQ_TYPE_EDGE_BOTH>; + + everest,jack-detect-inverted; + }; +}; + /* Pin 3, 5 in 40-pin connector */ &i2c1 { status =3D "okay"; @@ -740,6 +785,7 @@ &i2c9 { lt9611_codec: hdmi-bridge@39 { compatible =3D "lontium,lt9611"; reg =3D <0x39>; + #sound-dai-cells =3D <1>; =20 interrupts-extended =3D <&tlmm 20 IRQ_TYPE_EDGE_FALLING>; reset-gpios =3D <&tlmm 21 GPIO_ACTIVE_HIGH>; @@ -970,6 +1016,15 @@ &pon_resin { status =3D "okay"; }; =20 +&q6apmbedai { + pinctrl-0 =3D <&mi2s0_data0>, <&mi2s0_data1>, <&mi2s0_mclk>, + <&mi2s0_sclk>, <&mi2s0_ws>, + <&lpass_qua_mi2s_sclk>, <&lpass_qua_mi2s_ws>, <&lpass_qua_mi2s_data>, + <&lpass_lpi_i2s1_clk>, <&lpass_lpi_i2s1_ws>, + <&lpass_lpi_i2s1_data0>, <&lpass_lpi_i2s1_data1>; + pinctrl-names =3D "default"; +}; + &qupv3_id_0 { firmware-name =3D "qcom/qcm6490/qupv3fw.elf"; =20 @@ -1006,6 +1061,91 @@ &sdhc_2 { status =3D "okay"; }; =20 +&sound { + compatible =3D "qcom,qcs6490-rb3gen2-sndcard"; + model =3D "QCS6490-Thundercomm-RubikPi3"; + + mi2s-playback-dai-link { + link-name =3D "MI2S-LPAIF-RX-PRIMARY"; + + codec { + sound-dai =3D <&es8316>; + }; + + cpu { + sound-dai =3D <&q6apmbedai PRIMARY_MI2S_RX>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + mi2s-capture-dai-link { + link-name =3D "MI2S-LPAIF-TX-PRIMARY"; + + codec { + sound-dai =3D <&es8316>; + }; + + cpu { + sound-dai =3D <&q6apmbedai PRIMARY_MI2S_TX>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + quaternary-mi2s-playback-dai-link { + link-name =3D "MI2S-LPAIF_RXTX-RX-PRIMARY"; + + codec { + sound-dai =3D <<9611_codec 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai QUATERNARY_MI2S_RX>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + tert-mi2s-playback-dai-link { + link-name =3D "MI2S-LPAIF-RX-TERTIARY"; + + codec { + sound-dai =3D <&spdif_tx>; + }; + + cpu { + sound-dai =3D <&q6apmbedai TERTIARY_MI2S_RX>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + tert-mi2s-capture-dai-link { + link-name =3D "MI2S-LPAIF-TX-TERTIARY"; + + codec { + sound-dai =3D <&spdif_rx>; + }; + + cpu { + sound-dai =3D <&q6apmbedai TERTIARY_MI2S_TX>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; +}; + /* Pin 19, 21, 23, 24 in 40-pin connector */ &spi12 { status =3D "okay"; @@ -1220,6 +1360,50 @@ &sdc2_data { drive-strength =3D <10>; }; =20 +&lpass_tlmm { + lpass_qua_mi2s_sclk: qua-mi2s-sclk-state { + pins =3D "gpio0"; + function =3D "qua_mi2s_sclk"; + drive-strength =3D <8>; + bias-disable; + output-high; + }; + + lpass_qua_mi2s_ws: qua-mi2s-ws-state { + pins =3D "gpio1"; + function =3D "qua_mi2s_ws"; + drive-strength =3D <8>; + output-high; + }; + + lpass_qua_mi2s_data: qua-mi2s-data-state { + pins =3D "gpio2", "gpio3", "gpio4"; + function =3D "qua_mi2s_data"; + drive-strength =3D <8>; + bias-disable; + }; + + lpass_lpi_i2s1_clk: lpi-i2s1-clk-state { + pins =3D "gpio6"; + function =3D "i2s1_clk"; + }; + + lpass_lpi_i2s1_ws: lpi-i2s1-ws-state { + pins =3D "gpio7"; + function =3D "i2s1_ws"; + }; + + lpass_lpi_i2s1_data0: lpi-i2s1-data0-state { + pins =3D "gpio8"; + function =3D "i2s1_data"; + }; + + lpass_lpi_i2s1_data1: lpi-i2s1-data1-state { + pins =3D "gpio9"; + function =3D "i2s1_data"; + }; +}; + &tlmm { pcie1_reset_n: pcie1-reset-n-state { pins =3D "gpio2"; @@ -1387,6 +1571,13 @@ pcie0_wake_n: pcie0-wake-n-state { bias-pull-up; }; =20 + es8316_power_on: es8316-power-on-state { + pins =3D "gpio117"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + }; + wifi_power_on: wifi-power-on-state { pins =3D "gpio125"; function =3D "gpio"; --=20 2.43.0