From patchwork Sun Mar 2 02:49:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 869724 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A02ED7FBD6 for ; Sun, 2 Mar 2025 02:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740883808; cv=none; b=CBGsEeq1JCqHIKSz19Fa2hRF6jYEyl3MIL1Ev+FHF/KcL678XoPEvfOk3Go4PAId/rzMAVgxLnXDjJfBZ5WGqmMYcCD1X4VDgfqUsFLaIh9km1c5rTlpj0bDzT9M86Qje0CBzEnMxyjay8bivK8m/mxApINlNSMUIrTS7aYYAYg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740883808; c=relaxed/simple; bh=qAR+2aI86HiCDVAutTSZwo5vqE2IWuPEOFNyO9gS4X0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FYk9hAw1EAnTQkYI4d/eFa4eYRRU4uwsJV8KRpnbq2PXmZmjX3JZwg3w1O6yy7qpynsv+pcRqhaJPLJC8ozCOMKeGVl+7p991mRxgdfwNhk7P+SffQ3/vZvaJuNu87Ez3S5Z1+cJcbQDx89IK+j/Mj/iRsaBXAY6N38s1VpXrJQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=V/dgRWX/; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V/dgRWX/" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-38dcac27bcbso3016144f8f.0 for ; Sat, 01 Mar 2025 18:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740883805; x=1741488605; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jXrj904LpqaBDNpwd4ntDUN8Z6zfCaWzFIMN5cqT0Ig=; b=V/dgRWX/kasi9BGC+suiji15TF7vMle1df70zeY2vVAcTX0JxeUYTMtfQL9kHqoh2P GrtUn6jG5nvuXkg+RP1e0cWPwYBkEa7PZEDshpx6DsgL50qOGZKl3m/i7Xsjf9MqGDi6 U2clEu0JR85XG0x8UW/ulbWQzu4KZlGRmHhobhTOSRV/J/5ylP3jwKdnLciyKzMmtf5o /MZCVHQQ9ducmfWwtBX4tDZAaIsOjvRC/zJPrX0EcdaA8TLXRq+uJeZt7ld7BKxzF30N gsw8LfMCZPFvYmFCslv5F0oRrCnzdxOUIOwVKcocuBG3KnXUq+7kOEUC/gCT7uhetFPJ 67AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740883805; x=1741488605; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jXrj904LpqaBDNpwd4ntDUN8Z6zfCaWzFIMN5cqT0Ig=; b=tCuv/ZMeIXIvQOzjchZJL5IrqtVJd9s9t0MxpX+tFk5iR+vRnJSve0kcKsx1GEzGSb r+7slmq4Uoan3HA6ekzGEVtvgpOu1JrjG70sOg4EFwlwOe4/2YLwsvd6lj/YnPGlAECv Ka5G84yM/G24Sd20uytQPgfUnTsByAvAaOn4f3XF6L9dzBTFsW0DRHKSu9GY/ma6K1u5 adrHTrPqzqw8holyHVGvxn0jEoSfwQXKDFCaKhTG0U421RXwbUeD/x0LddxW8eGgxtRe aBirO2vfRDzz8bOAdyH2NMZ5fVDt5MiIjtprxMYECqd0s1EE9ru++7zPLvLJOtXyulyN txmQ== X-Gm-Message-State: AOJu0Yw1yIxK16oAQ3Fz8Rr+5wtAzjELlawOZF4A9FoFEeVcHAZ1XXvI S0Y+YfiAhnRKuv3CTLqa7cbiZh7Wk99FnCha81fw4qPOFP01td08Xdmb9zWQrd9L6iXH4jycDM4 v X-Gm-Gg: ASbGncvXAAmNXqKZ4tKkuBCXi8RhjcbVvDzs3pGAyrRBzT0y9Q0P3xwDVCeA1EZ2P7B 80SPoGaSz2PGUNtlCML5y5u8UcvAi22D1kS60EgA7SUDLpjrFbfiZw6JqmWp+BPNLK5YiPk3pFV 78xWgL0pwLy/XIcABLdKZbI893pqQtfAEfiP8dJ+0X3jM/kNRmspCmgyJpZN5+lSysctZSTbuwg aODoHjBhyivY9mixZ6+DWLmxtgLrhZG0ngB7H3GDB7fgdtPwF8bhRE8Kodz22R89vQfjMmQgwkf C9GPEdDLpslfLvOh2w98RES9QAwK6OnCgFY6Dp1I3nw74TjI0aF3Bw== X-Google-Smtp-Source: AGHT+IHMo57UE3ntf4TEinRfNmdjYzDDdeSWceSngBtIaTdafTS9vFTWddSzhUXDAaSR57yX2SA2bQ== X-Received: by 2002:a05:6000:1f8b:b0:38d:e363:494b with SMTP id ffacd0b85a97d-390e166f24fmr10125606f8f.8.1740883804957; Sat, 01 Mar 2025 18:50:04 -0800 (PST) Received: from [127.0.1.1] ([2a02:c7c:7213:c700:e992:6869:474c:a63f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba532b0dsm137845975e9.13.2025.03.01.18.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Mar 2025 18:50:04 -0800 (PST) From: Alexey Klimov Date: Sun, 02 Mar 2025 02:49:52 +0000 Subject: [PATCH 2/5] dt-bindings: sound: qcom,sm8250: add RB1 (QCM2290) soundcard Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250302-rb1_hdmi_sound_first-v1-2-81a87ae1503c@linaro.org> References: <20250302-rb1_hdmi_sound_first-v1-0-81a87ae1503c@linaro.org> In-Reply-To: <20250302-rb1_hdmi_sound_first-v1-0-81a87ae1503c@linaro.org> To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Srinivas Kandagatla , Liam Girdwood , Mark Brown Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Alexey Klimov X-Mailer: b4 0.14.2 Add soundcard compatible for the soundcard on QRB2210 RB1 platform, which at this point seems to be compatible with soundcard on QRB4210 RB2 platform. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index b9e33a7429b0c063dc5f5b806925cd541e546cf6..2493ed99268bf2ff8343020150c2c9aca4262514 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml @@ -21,6 +21,10 @@ properties: - lenovo,yoga-c630-sndcard - qcom,db845c-sndcard - const: qcom,sdm845-sndcard + - items: + - enum: + - qcom,qrb2210-rb1-sndcard + - const: qcom,qrb4210-rb2-sndcard - items: - enum: - qcom,sm8550-sndcard From patchwork Sun Mar 2 02:49:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 869723 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11C0C1925A2 for ; Sun, 2 Mar 2025 02:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740883810; cv=none; b=tgqK6tvY7zk1CZJQKbusJjydg+sTedFBF0NeB0Umri9fGFpoYwtefAXl43s/lnIBEtroU2iQzn2MCwVK3iCyuSTzQe/yC127p77zii3YUilmox3fudLuLG000o33bDhD1zxzTXiCWEGt4ur+rCKVFd5GJLknvnQuR/R++pTOnDk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740883810; c=relaxed/simple; bh=SlByiTDxYgd85794TFUJfJk6EJELUYRPQB26XL4VOA4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oj6FzZJgYPccIo4JuceabMNFrQOEeFxCsrYMxk3SV6HQ5Z8XZWUc4pLsq29uAt/afhKtCynliqml8aVBJSeLDNXaA3+oLfR3cploECHp5LqWadc/Rp3EWAsNCMYXp3w7HlWX+KDk2+fBaV+x9ZSVSmH2ejv80Ih1/GlTVKwxpmY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cZcvDFSX; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cZcvDFSX" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4398ec2abc2so30046035e9.1 for ; Sat, 01 Mar 2025 18:50:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740883807; x=1741488607; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DVE7MMoQ2WthyPOL2l/3V1MXkj9hPNOqHWuQkJid+/c=; b=cZcvDFSXjVmoD2eTQZoU5dkAFcuB9Pa6Xf4E2ICzrRF8acb1OmMdW4iFf2zhA1iK5q az2aQQ3tZEGyJHKxQhrenZx/IqhpC8GxLl77npYBLzRFo04XpVfY/p1CiD47aJ5ChZUK f1vgSBd35MH3I8Mmq4KvcUCTTh7sYZIUdeNmoaqcxjZMKfL8L2e3FFkUeJgw/+o+lWYI K6Zp7T1ZPvXfY2uogexDbmcAIzzbJNDUMN62cVW8HUfilfJ2uNabHb06NO8cSwsop7FT w51WVsAJZynDLtAeRbqDD7Z2mt/CaVKMaAjz3oTzHfxaX6hENfCI7AbqB0k/xiDm/S2V 4xfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740883807; x=1741488607; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DVE7MMoQ2WthyPOL2l/3V1MXkj9hPNOqHWuQkJid+/c=; b=c7udbU3Fwmu1wm5FbwLhZLWf0W5+6V8UbPr0D6vaQNtq+h01Orb0h4ejxZqbXxkw5s CI8eZTPn9xSDDCRtg2THB1ZfCV+GfmfOURvM+SyYviUD8w4317iYZt2bW2o6nB2dQMuM Cx6LTMr7xldpw+zqGo1BMm90ANWgJ+93FYyvYLtHn0+nzFZeCBWU9+1bblsHHRSLv8F5 WKB/dbB6+mB6YdtcSFavnHiVWi9L0E926ytrb+y62f2fhp9+ioOzl9l9lg1BtivW5XKN 4qnGQwZcOBw2bov3mTVrC8ak1aLp45swr+jYA3bWAsWAO+ZEg3u6bV/VUTbI9PFpzcWA rdcQ== X-Gm-Message-State: AOJu0YyL2kYj6UnSy3W3NV0xaf2uJbPpNV49rQtwECF7NONTVqQZowoM k3D77XS9G2MWrZ+5+SEGlzYhUunz+SOzudbDM/rUrBuIw5ObxriNd4t3np1lcJo= X-Gm-Gg: ASbGncueIDDPetxfDZR9i8Al+lRzhzK/zSKJSfmeqIgkXq3xzn8tffym+KWSDsW2oDU hswxEjxhOCtutot3zwyLpRvTjvDLb0KXfnE2cDv/d4llWPy8Q4Z0aIBbCYEEU79CsItbWCThQcH GWCLdLL0WW+Inaohmo2b18Ac2dBwEXzyY0oZj/lVemFZl7MUil1Nr5qk336E+1SsopBXi7SKFuK PZzOCaXBPqAMv6KqE6WelL6CAvP4jwayuBTzusQWNsSLCIjrKog6QKD1Uki3BlAJBaZ4VsFjLsX MhRkWWBWeKgDenVNyhy8lksIWxnSAZ9zu5RnlDSKHyJdYES0Y3mV/A== X-Google-Smtp-Source: AGHT+IF1OyUGX9QaED/sDZkS9eJZ9gYij7zwJ8c8ovq4U+BP6af7VsWqnEYCb6d6Amdd2x4tpI0G/Q== X-Received: by 2002:a05:600c:1550:b0:439:6dba:adf2 with SMTP id 5b1f17b1804b1-43ba66e7550mr81082225e9.15.1740883807490; Sat, 01 Mar 2025 18:50:07 -0800 (PST) Received: from [127.0.1.1] ([2a02:c7c:7213:c700:e992:6869:474c:a63f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba532b0dsm137845975e9.13.2025.03.01.18.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Mar 2025 18:50:07 -0800 (PST) From: Alexey Klimov Date: Sun, 02 Mar 2025 02:49:54 +0000 Subject: [PATCH 4/5] arm64: dts: qcom: qcm2290: add LPASS LPI pin controller Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250302-rb1_hdmi_sound_first-v1-4-81a87ae1503c@linaro.org> References: <20250302-rb1_hdmi_sound_first-v1-0-81a87ae1503c@linaro.org> In-Reply-To: <20250302-rb1_hdmi_sound_first-v1-0-81a87ae1503c@linaro.org> To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Srinivas Kandagatla , Liam Girdwood , Mark Brown Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Alexey Klimov X-Mailer: b4 0.14.2 Add the Low Power Audio SubSystem Low Power Island (LPASS LPI) pin controller device node required for audio subsystem on Qualcomm QRB2210 RB1. QRB2210 is based on qcm2290 which is based on sm6115. While at this, also add description of lpi_i2s2 pins (active state) required for audio playback via HDMI/I2S. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index 2c90047f7dd867580836284721c60ed5983f3f34..623046ba833b6da284ffa4e30e65ea4ae5fb77a2 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -18,6 +18,7 @@ #include #include #include +#include / { interrupt-parent = <&intc>; @@ -650,6 +651,46 @@ data-pins { }; }; + lpass_tlmm: pinctrl@a7c0000 { + compatible = "qcom,qcm2290-lpass-lpi-pinctrl", + "qcom,sm6115-lpass-lpi-pinctrl"; + reg = <0x0 0x0a7c0000 0x0 0x20000>, + <0x0 0x0a950000 0x0 0x10000>; + + clocks = <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "audio"; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 19>; + + lpi_i2s2_active: lpi-i2s2-active-state { + sck-pins { + pins = "gpio10"; + function = "i2s2_clk"; + bias-disable; + drive-strength = <8>; + output-high; + }; + + ws-pins { + pins = "gpio11"; + function = "i2s2_ws"; + bias-disable; + drive-strength = <8>; + output-high; + }; + + data-pins { + pins = "gpio12"; + function = "i2s2_data"; + bias-disable; + drive-strength = <8>; + output-high; + }; + }; + }; + gcc: clock-controller@1400000 { compatible = "qcom,gcc-qcm2290"; reg = <0x0 0x01400000 0x0 0x1f0000>;