From nobody Fri Apr 10 00:56:57 2026 Received: from mail-m3280.qiye.163.com (mail-m3280.qiye.163.com [220.197.32.80]) (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 AD8122253EB; Thu, 5 Mar 2026 05:53:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.80 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772690020; cv=none; b=MmP2CAwoY6gQFusD+NW9DNKMLu4efP6zPt+9sSeUsLlOgmOWXHZ4eKNRF0Lv/jj8UV9+1HOJ76TSnKr52FjNphL8YR7QswI4/KNye8qVCBz/MSXeU5I5NtadQ0fjjr/c0Vkk4JjMyiYL16WHfm8xWNE41vy/w2KkLknDtTXGOGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772690020; c=relaxed/simple; bh=htK+tuqbiLwKhVs5RgcotICcihQdkGlc3IGPmbUaGSU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jDRed2OHFR8opcRu4sIEKrwqUJzAY0qvGQNqjYSxfV12g7uxrQb309VeAIgj9yEyVJl3bCOeHyAOL8ibvqjohpCYANVbK1yBh0KJ08xPRt8OvScJbNfiL78oy/Vf4S13ZdkQTtpdBbtldlEUfQchN1B23U5Jen3I3me/ojqNAA0= 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=LOiuycAi; arc=none smtp.client-ip=220.197.32.80 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="LOiuycAi" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47c0; Thu, 5 Mar 2026 13:48:18 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:42 +0800 Subject: [PATCH 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: <20260305-rubikpi-next-20260304-v1-1-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=983; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=htK+tuqbiLwKhVs5RgcotICcihQdkGlc3IGPmbUaGSU=; b=0GvDCFePJyL8PTNDYK5nt4k+4SpB5aeXSZP4tu2sjI1pWn1JH/VTPYYjes2xOguTtxtFBILab tEgDEYWkj9UDskWX7MzNP5Dpl/c5nDx9ua52NKLaXOlf7epLoBycNNl X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a2ef409d5kunma04077fcc8563d X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZGhkeVh4fTkwdGk8YTRhKHlYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=LOiuycAiE7xwo99RSQzFBPqqx3y/vU38qfkKOyfGbMJEtGGLIqmpwDMoz/oFZtMevtf2+IVcvsqj2huWyrVvW4ViwogzBQYOGXFmjTMXOXAIMBdyX5kj+ki0HkUM2MycSGuRNg9kkl+tYx7Xkg9QZsi/EEMVrXQBCqlhBadu2bs=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=KTgF3T9PqdsFblKYJdgIhhhIXba0LQIAUY2AuRomzt0=; 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. Signed-off-by: Hongyang Zhao Acked-by: Krzysztof Kozlowski --- 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 Fri Apr 10 00:56:57 2026 Received: from mail-m1973181.qiye.163.com (mail-m1973181.qiye.163.com [220.197.31.81]) (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 CB270288510; Thu, 5 Mar 2026 05:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772689714; cv=none; b=TpP+laob0X4i1SdoRAyNPcYMe2+URNMyKJbWnfaifWqowqbzd8jRK4o6/o3t7ST9G6/Kn90HohoV10iYUiIDOb3u/aDWItICxCIIMehIv7mTOqr9YZvBGeBvDiwSPvEji57tP9YXZD1oiYdMSx8Y9Wc7Y2On8E9vmigteBGnMMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772689714; c=relaxed/simple; bh=wfONw/CTwdUsjZg9ZSkmzNxaR+sh70J827DN0jzVghQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sxl87V2dqkUi3CO7vFd4MLtQDQ2qmBoPNg0Ixv5AHWELwC+cDwTaBeyMwORvr0V+alja+ZGVLWz37FFaAmqjSSwaNj5Bmr9e2CSn5azf2i4rve2H/0fqi3TnB1BG8gajuOhzbmVJPCVJfFV3xSCLaDU9aDEc5kZAmG2pbWOevME= 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=RQ3zfXYy; arc=none smtp.client-ip=220.197.31.81 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="RQ3zfXYy" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47c6; Thu, 5 Mar 2026 13:48:20 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:43 +0800 Subject: [PATCH 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: <20260305-rubikpi-next-20260304-v1-2-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=1363; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=wfONw/CTwdUsjZg9ZSkmzNxaR+sh70J827DN0jzVghQ=; b=hUNSzA29SoERFYvA29i7cbK20AtBaFPqlMkK5Gg2LWbIWQ5E95nE4QvmoWxkgGixgzf8tGaFh DMCQ+BaHK/eB+S0nS8rqibpzHOZbzcoLX+jACYXxwCW3DY61pTnq4Ui X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a35cd09d5kunma04077fcc85651 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZTUxJVh4ZSUsaGUxOGRkdT1YVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=RQ3zfXYyrBQtwPleoH4U1o6QCTBy7zxtGDh/q1A81NqBrNoyeKg4jl5qKo4FUG8+nTwBERMU6jM+CQAmR7geQbUVL2qBgX6zPJGU5SuW8bgDCQH8XWSz9e9mXeeXUMU4ghWOJmGeRwE1RsB3Ojs0rl7HvnwjUOZMaOZBCtOjogw=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=7A2Od7CNn9SjkF/jTVlPq1l1k8zboV6uLy9Cr8xEL10=; 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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c index 9245c33700de..fdde7e4f7365 100644 --- a/sound/soc/codecs/es8316.c +++ b/sound/soc/codecs/es8316.c @@ -477,9 +477,20 @@ static int es8316_pcm_hw_params(struct snd_pcm_substre= am *substream, u8 bclk_divider; u16 lrck_divider; int i; - unsigned int clk =3D es8316->sysclk / 2; + unsigned int clk; bool clk_valid =3D false; =20 + if (es8316->sysclk =3D=3D 0 && es8316->mclk) { + /* If the sysclk has not been set, try to get it from the MCLK */ + es8316->sysclk =3D clk_get_rate(es8316->mclk); + if (es8316->sysclk =3D=3D 0) { + dev_err(component->dev, "unable to get mclk rate\n"); + return -EINVAL; + } + } + + clk =3D es8316->sysclk / 2; + /* We will start with halved sysclk and see if we can use it * for proper clocking. This is to minimise the risk of running * the CODEC with a too high frequency. We have an SKU where --=20 2.43.0 From nobody Fri Apr 10 00:56:57 2026 Received: from mail-m49194.qiye.163.com (mail-m49194.qiye.163.com [45.254.49.194]) (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 35E90282F0A; Thu, 5 Mar 2026 11:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772710319; cv=none; b=QQJLZvMoFfmzMCdF+cLBueyFsRBhOSUFFYgWWrP14d+ZkYPcqFMOUOV6eZ93/o+0IT+dB1DAuD+8NffetWN1PBRgEACJP+8AmCpBO7ngpEaW4kcnuSFLpN4VH96oWAl90/YIG8Np9B0LN+WTY/I7cu7l1pahaW8IBkXOsq7B1WM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772710319; c=relaxed/simple; bh=M8YmCBXWRUvuN0A1ciAUTMOg8xKksj/9DdFrpECJ5QA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BMZp0YZ0I3FWw2s8Z6Zu5uz6RD0mx41c9uNzyoxG0R+3/jgTZ8+hjZcKfhI3Sdy7nnlZN6d0Hx8ilIb/3+YSFedGhH0R/p/oaxFcCh4sXZoTuFt9/nNbOB84djmBw2Ho9ckpZ+pjVP+Pmnc5V624kTplgnORwqk5kjmzEAwVkSo= 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=FSqofB9p; arc=none smtp.client-ip=45.254.49.194 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="FSqofB9p" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47cb; Thu, 5 Mar 2026 13:48:22 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:44 +0800 Subject: [PATCH 3/6] ASoC: qdsp6: q6prm: Add MCLK and internal digital codec core 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: <20260305-rubikpi-next-20260304-v1-3-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=2146; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=M8YmCBXWRUvuN0A1ciAUTMOg8xKksj/9DdFrpECJ5QA=; b=1gPMRbJMiO8hJjEU0U2f1suPHZrDWfrkgTDp6HQCkjhYn5704tZDDVnDOepdJ8KoFxLGLnVvA WNLtF3rIbS5ASp1cRxtTPT20ZlpFpFTKhxSyTN6Ida0iCxUiay40jYm X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a3ce109d5kunma04077fcc8566c X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCGhpOVklDTEsYHR9NSU0YGlYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=FSqofB9pkmF7XWwLWthAuX66zwBRUZ/DpGSkmJQ2fR16RQsYtXG6FV0sNjw31lKW59fAFrcnLkJ3Kpxyjl0QQ+fAyufZJERQ8fIkE+9q6Rsjtc3XAtmHhQDSb1nXUDUzFp8FORPwEYsFWFXFwYPeVWBQ0lgrAv2BuA+NKxywIso=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=lInHZCBmmL5pqUl5DZ7z8GW8/VFiw7Z/gfijzEAjGzM=; h=date:mime-version:subject:message-id:from; Add clock IDs for MCLK_1 through MCLK_4 and internal digital codec core clock to the PRM clock driver. These clocks are needed to provide MCLK to external codecs connected via MI2S. Signed-off-by: Hongyang Zhao --- 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..8c28d33b2a54 100644 --- a/sound/soc/qcom/qdsp6/q6prm-clocks.c +++ b/sound/soc/qcom/qdsp6/q6prm-clocks.c @@ -59,6 +59,11 @@ static const struct q6dsp_clk_init q6prm_clks[] =3D { Q6PRM_CLK(LPASS_CLK_ID_WSA2_CORE_TX_MCLK), Q6PRM_CLK(LPASS_CLK_ID_WSA2_CORE_TX_2X_MCLK), Q6PRM_CLK(LPASS_CLK_ID_RX_CORE_MCLK2_2X_MCLK), + 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_INTERNAL_DIGITAL_CODEC_CORE), Q6DSP_VOTE_CLK(LPASS_HW_MACRO_VOTE, Q6PRM_HW_CORE_ID_LPASS, "LPASS_HW_MACRO"), Q6DSP_VOTE_CLK(LPASS_HW_DCODEC_VOTE, Q6PRM_HW_CORE_ID_DCODEC, diff --git a/sound/soc/qcom/qdsp6/q6prm.h b/sound/soc/qcom/qdsp6/q6prm.h index a988a32086fe..85e6df6bd39f 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 0x304 +/* Clock ID for Internal Digital Codec Core */ +#define Q6PRM_LPASS_CLK_ID_INTERNAL_DIGITAL_CODEC_CORE 0x303 + #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 Fri Apr 10 00:56:57 2026 Received: from mail-m3289.qiye.163.com (mail-m3289.qiye.163.com [220.197.32.89]) (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 3747D30C368; Thu, 5 Mar 2026 09:18:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772702306; cv=none; b=FiUV3ZLM89kP89G04S9LHbfbNu17cyZiKM65BL3WTM7MB/lf8479rQqshfWbGc54IoFxjrEMVzZ4rv6u28FBAd5WV5oZSgAg5dqeh9xGAE82Ur58dynvxTcz55f0+LXAQrCMdnE9Rc3S/Bh0aE0njhheFD7UzsqxCz6ZAy3PjjU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772702306; c=relaxed/simple; bh=t8lhSjavVNyVN0m6itU2OGMsya1COEWO1iDxM84EcgU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kQvd7v/wOuE1AS0u8OFNbq1rGyru0Ox85zx6Te8BY8hXrNuFWuwsknjKnt+HY7oT183sgu9f+hxpsVrUziIfEwd5sVD/WKoeoDizFhqBzLCEvI0MQnWlY/luWgZL+oIZSzLqaN0imXdf0B9gzYAG1w6u9o8c81vwrApEs07cNWE= 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=ZhKWxgcH; arc=none smtp.client-ip=220.197.32.89 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="ZhKWxgcH" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47d2; Thu, 5 Mar 2026 13:48:23 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:45 +0800 Subject: [PATCH 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: <20260305-rubikpi-next-20260304-v1-4-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=890; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=t8lhSjavVNyVN0m6itU2OGMsya1COEWO1iDxM84EcgU=; b=Q5isSuJrJcCoSP8YPF5noG2zzC7RibS9qplvAbqZFsIqWI9FmCgMFl+c8A1y4p/W8OyU5t/H9 4f+eGHZsERqDrOmUxXBLwq9SsY0hZ0rmoktF1IVIFIEDpOZClbL/TFd X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a43f309d5kunma04077fcc85688 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDSUxMVh8aTENKQkMYHUNMQ1YVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=ZhKWxgcHihxWZI42+WXAKaVAR3weBWXeaSHsGNTEpCghgGssrhIcYCcy7L0btUIy2LDW0bA2qQsAJwzE4JD0Ru35ep7yBkSJcVtNAyQNWlEN+HukNBGHP2dDHQH0iZdFgX/rfhcIvgGjyprANfxAgKZSRot3hOXOXO+1iB3sFcQ=; 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 Fri Apr 10 00:56:57 2026 Received: from mail-m3283.qiye.163.com (mail-m3283.qiye.163.com [220.197.32.83]) (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 5C7E3246778; Thu, 5 Mar 2026 06:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.83 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772691843; cv=none; b=adpFhepxJZFfPL5hJcpWSDmjtpuZfpIKpRnGcXDtAsBo9QrNgwSkYc0b14kvyUD9ahkVexK07G84SbR9H8M4INJuyaSWhhFgb05L6/ZMQ+FwDdwINo2j/pABlz/kBWrQ9gEVAbpa1Y9wCfIWVgEg9rcTtKHYG84JVKnNIQH2Mz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772691843; c=relaxed/simple; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OPOFIlmmoWKQjgJPozkdbYfT1N6wnIOHaSR1XT4bbI7Gg30FbqpgpqRjseNA4ysCCa2u4g50zPB8Jto2K2seNmdk0XT7yKHqUUekg+d34BXrnMwlZq05Vd6GqVHRmR2bDx1oIdFdQf7St0B8yp1jgOu19JhHTxRkmSbYmOXaysU= 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=VcZYJInK; arc=none smtp.client-ip=220.197.32.83 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="VcZYJInK" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47dc; Thu, 5 Mar 2026 13:48:25 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:46 +0800 Subject: [PATCH 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: <20260305-rubikpi-next-20260304-v1-5-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=1340; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=Iht1r+yVIjhbmgorwffY/WZG4fvWpt012DxOBQaeKic=; b=RtpwU1OF/ulbTYhGoY/Rtg+Jc8GxAwlQQNL0MwQoj3b3KyJUECb6iGaAL+THI4hHIHJ8aUVqR yvB+Bk8JfhdA78Bh7/aVB47vybGH0G6ovHDAIec9vfGO2d8s3vq0fw9 X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a4ac009d5kunma04077fcc8569d X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaHR9LVhlDGR9PGE9NHR9PTlYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09IVUpLS1 VKQktLWQY+ DKIM-Signature: a=rsa-sha256; b=VcZYJInK1v3dPENNRAruuYoyHjwiLEY+4yiBbEjADutk89V7FOQdfRMkihQXK1D7qRemcguSX9IgdcxaIqnr4ZI5PBpALi49eT8jNJwh6cVtzU8ioPYHQhON9qpXB7wHaPShFjlH/Ved+pTG0EY0oIJvy2h/MTp+t1BabEeahTc=; 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 Fri Apr 10 00:56:57 2026 Received: from mail-m32116.qiye.163.com (mail-m32116.qiye.163.com [220.197.32.116]) (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 4EB7D1DDC35; Thu, 5 Mar 2026 05:48:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.32.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772689715; cv=none; b=h5IQQNT1UK90s8+wvvUAqZ2px0pOX72mfMZE5qdBwE7CxYg3KwPKoP1rIwBe9xVYjZNAlleRsbsjbaItbGzwA7e3sodPrcJeozUU0PDJLkjRbTizgJ2e7ZSTegyp2DcCz3/ptr4rHynK6GS/AQcbmFz1zF6dzIrTvClnHHA+IeM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772689715; c=relaxed/simple; bh=McrqI7aLLN6KZ4ELMRqENWfj9D8zEMzt+vvnhJhpplI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mRrVsXFfr5LwcpUO00PCxM9csOSkEaKRsQIrAwu6JzMw8dO5MTynFTFaQuquUhQiaASGsW4e9C4B3hgzYZegFIqwff2B5LRcM86G9WX5zwJrLFa6AS37KHczrFC33PqhwIss5otbfhH8A63kQFFDAF1QORGNDF0lQ+pSv3d5UvI= 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=ZgrCLn8B; arc=none smtp.client-ip=220.197.32.116 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="ZgrCLn8B" Received: from [127.0.1.1] (unknown [36.129.139.90]) by smtp.qiye.163.com (Hmail) with ESMTP id 35d4e47e3; Thu, 5 Mar 2026 13:48:27 +0800 (GMT+08:00) From: Hongyang Zhao Date: Thu, 05 Mar 2026 13:47:47 +0800 Subject: [PATCH 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: <20260305-rubikpi-next-20260304-v1-6-327595a4528a@thundersoft.com> References: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@thundersoft.com> In-Reply-To: <20260305-rubikpi-next-20260304-v1-0-327595a4528a@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 , Hongyang Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772689696; l=6472; i=hongyang.zhao@thundersoft.com; s=20260127; h=from:subject:message-id; bh=McrqI7aLLN6KZ4ELMRqENWfj9D8zEMzt+vvnhJhpplI=; b=mxv1uSfMAIRRkpoIJfbDvGSpUYQ0j+n/nmtoZBAPBta8d+08l4jpwoD53EbZCBVXBLxTS1hAU SAUFGDG6Ny3CrhDFXbRVvmNg5v3wF7ORuV0Lg/GwYt3cjVzW2HAeb6N X-Developer-Key: i=hongyang.zhao@thundersoft.com; a=ed25519; pk=D9yL5W9Zj0lPBDAq9gzY++1849VlXuTWAkROzZ88J/4= X-HM-Tid: 0a9cbc8a517b09d5kunma04077fcc856ad X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSBhDVh4aHkxMSk1CSUtLGVYVFAkWGhdVEwETFh oSFyQUDg9ZV1kYEgtZQVlITVVKSUJVSkhCVUJLWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09LVUpLS1 VLWQY+ DKIM-Signature: a=rsa-sha256; b=ZgrCLn8BZ2nS0x8htu8ROMaye0mnQatkNGBOBEBQjJ13BroHw+pP1Kct+zxOjrYOkkOp9RNV+OyvNPvs2Tp6DhZB1sbNQlmR3lSm+JZQa6CgvxjmRnwnPfqdj2Bhxd73EegoZFisZ3KjrPL9erYMEqwZaeomeVnQm2VFeisXtog=; c=relaxed/relaxed; s=default; d=thundersoft.com; v=1; bh=CRV7p0kheJbYanDXEhouY5LALL1RrJbJWq335CgIVyI=; 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..0d2b019886b2 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_tx: spdif-tx { + compatible =3D "linux,spdif-dit"; + #sound-dai-cells =3D <0>; + }; + + spdif_rx: spdif-rx { + compatible =3D "linux,spdif-dir"; + #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: es8316@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,16 @@ &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_data0= >, + <&lpass_qua_mi2s_data1>, <&lpass_qua_mi2s_data2>, + <&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 +1062,76 @@ &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"; + cpu { + sound-dai =3D <&q6apmbedai PRIMARY_MI2S_RX>; + }; + codec { + sound-dai =3D <&es8316>; + }; + platform { + sound-dai =3D <&q6apm>; + }; + }; + + mi2s-capture-dai-link { + link-name =3D "MI2S-LPAIF-TX-PRIMARY"; + cpu { + sound-dai =3D <&q6apmbedai PRIMARY_MI2S_TX>; + }; + codec { + sound-dai =3D <&es8316>; + }; + platform { + sound-dai =3D <&q6apm>; + }; + }; + + quaternary-mi2s-playback-dai-link { + link-name =3D "MI2S-LPAIF_RXTX-RX-PRIMARY"; + cpu { + sound-dai =3D <&q6apmbedai QUATERNARY_MI2S_RX>; + }; + codec { + sound-dai =3D <<9611_codec 0>; + }; + platform { + sound-dai =3D <&q6apm>; + }; + }; + + tert-mi2s-playback-dai-link { + link-name =3D "MI2S-LPAIF-RX-TERTIARY"; + cpu { + sound-dai =3D <&q6apmbedai TERTIARY_MI2S_RX>; + }; + codec { + sound-dai =3D <&spdif_tx>; + }; + platform { + sound-dai =3D <&q6apm>; + }; + }; + + tert-mi2s-capture-dai-link { + link-name =3D "MI2S-LPAIF-TX-TERTIARY"; + cpu { + sound-dai =3D <&q6apmbedai TERTIARY_MI2S_TX>; + }; + codec { + sound-dai =3D <&spdif_rx>; + }; + platform { + sound-dai =3D <&q6apm>; + }; + }; +}; + /* Pin 19, 21, 23, 24 in 40-pin connector */ &spi12 { status =3D "okay"; @@ -1220,6 +1346,64 @@ &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_data0: qua-mi2s-data0-state { + pins =3D "gpio2"; + function =3D "qua_mi2s_data"; + drive-strength =3D <8>; + bias-disable; + }; + + lpass_qua_mi2s_data1: qua-mi2s-data1-state { + pins =3D "gpio3"; + function =3D "qua_mi2s_data"; + drive-strength =3D <8>; + bias-disable; + }; + + lpass_qua_mi2s_data2: qua-mi2s-data2-state { + pins =3D "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