From nobody Sun Nov 24 23:47:20 2024 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 1C6D41F8195 for ; Tue, 12 Nov 2024 02:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379994; cv=none; b=s0m0BOt3k/5yQtL4yg39rmcNFIxCWp1pjfFzWTVyGkeGzvDhzPEzeTeAKBvP0poHZFw/y05R/WAqagiAFsC0G1FZiAxTdCvJzStKGA0nEDRsSkyXHnGeD+Rn4Inn7Gu2sKDuFB+w7z7xAASHnpPFL3uSp6I6RceytQ15/0SwATA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379994; c=relaxed/simple; bh=Y88dxKTEB84Sy5sor9WVb8Lb3Eunx49GPWiCvst3MDw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GfEB1wbZCjkT1zCL8y1YMXDZFlo196hn9bJEvNzbfU/wJS7EYkC/E+9HsdtF72gf8fsw30qK3cBq1tDBnb35oQ3nAOExZMUgdisei7BpvnIWYFXyvlCzjSBAdSl4FlgkX5wtP99PEnHfyc68mWkUpt/cvWSfqn9iwr1QspHSnts= 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=rMAeRI6u; arc=none smtp.client-ip=209.85.221.47 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="rMAeRI6u" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-37d3e8d923fso3659164f8f.0 for ; Mon, 11 Nov 2024 18:53:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731379991; x=1731984791; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FNkMnvZSHVbHckJCKRyiqgolyEylIkwRfPR/FWi1wBE=; b=rMAeRI6uYErGM1DC4oYv3h7pn89xehhoeyG1jiy2LFh7wwRPHLQbhzu1qK+P3O0dhu yJy2BwCUAMPrmz8hxCF85SHbbjJcek1KKbpljD3v7P9bTNdXFZL4kaP9QlTKzXxyBmmn PkR2MKnJlsf8ZoHDyFZzOkRMM/lvadjpVCzoQJilK3avcTjMrNgwfqRX8d+kyCVskgLM 8Ia6UgXPWhV2U03XM5TTgHV5c7n+4aH7kwjusEzYk6F0IWGzADcjrw/rh/Sc6V6tTrR3 4z7VtlKjSwtjcRCWEf8+1FeIiU/7NIFeocuXO+7cGyMQwhMEsVL+P+2CH+kfMEYoJMzF Lekw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731379991; x=1731984791; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FNkMnvZSHVbHckJCKRyiqgolyEylIkwRfPR/FWi1wBE=; b=FjRAtsfccgcVQbfHXGww/a8so2aUhcO1xuFEMR6J3EvzYs3XHOxGJAwMK/ygdC8Zbb cEab2pC6QMNMRb8fbfF7ZMtA36WNCC8iTDgvGWGi/tG27P164CLu3hp/Zd5RU62uF/Qk C+VhE3UZjuezE6UJcemDGpyCguiJLX7qafaFDfpjMeubHjTcuOpqntsoOmiIWS2FLbkI ZkHZ2qcl0oT4Y/2zONYDigLmWSDzf4zXxNrrknwMQWiW2CgKRobkX5vXxukBX5OgELc4 jKvQIfbnETupVJCzcLlWmPaHyTnOLtIM8TqFu3Ngd+e9zrJ3Rcvx5o+czli9z7Z8VF1m KCxg== X-Forwarded-Encrypted: i=1; AJvYcCXt0VIpmKhOj3FvBgvdgbFjDlCPpu7Cva5Vh8MwgFX5SydAUUkxrs5PJ0n5avql1edGMvtAg92HqAw9DhM=@vger.kernel.org X-Gm-Message-State: AOJu0YwJJMZdKy1vBamSUpRwHnfqzJ2OhRgQfhmVAULl1LxNZcHllfHm ZpIRQyVasrh8IHKGlHLaXbFFko+zK2Yg1w/F4e2TZ5w5cH36HjVWVDERXrpdrGM= X-Google-Smtp-Source: AGHT+IEfD+tJcD7cA0hU7+ropJkve1bk3ekvCpds1lfwTN/idzFvWLSQGdQvvyAOVZWbpqb4QDytcg== X-Received: by 2002:a05:6000:20c3:b0:382:51f:60a7 with SMTP id ffacd0b85a97d-382051f616cmr2188794f8f.33.1731379991419; Mon, 11 Nov 2024 18:53:11 -0800 (PST) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed999e0csm14056380f8f.59.2024.11.11.18.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 18:53:10 -0800 (PST) From: Alexey Klimov To: andersson@kernel.org, konradybcio@kernel.org, linux-arm-msm@vger.kernel.org Cc: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, a39.skl@gmail.com, konrad.dybcio@oss.qualcomm.com, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/4] arm64: dts: qcom: sm6115: add apr and its services Date: Tue, 12 Nov 2024 02:53:03 +0000 Message-ID: <20241112025306.712122-2-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112025306.712122-1-alexey.klimov@linaro.org> References: <20241112025306.712122-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add apr (asynchronous packet router) node and its associated services required to enable audio on QRB4210 RB2 platform. Cc: Srinivas Kandagatla Reviewed-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 72 ++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qco= m/sm6115.dtsi index 9b23534c456b..816b8331933d 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include =20 / { @@ -2701,6 +2703,76 @@ glink-edge { qcom,remote-pid =3D <2>; mboxes =3D <&apcs_glb 8>; =20 + apr { + compatible =3D "qcom,apr-v2"; + qcom,glink-channels =3D "apr_audio_svc"; + qcom,domain =3D ; + #address-cells =3D <1>; + #size-cells =3D <0>; + + service@3 { + reg =3D ; + compatible =3D "qcom,q6core"; + qcom,protection-domain =3D "avs/audio", + "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible =3D "qcom,q6afe"; + reg =3D ; + qcom,protection-domain =3D "avs/audio", + "msm/adsp/audio_pd"; + q6afedai: dais { + compatible =3D "qcom,q6afe-dais"; + #address-cells =3D <1>; + #size-cells =3D <0>; + #sound-dai-cells =3D <1>; + }; + + q6afecc: clock-controller { + compatible =3D "qcom,q6afe-clocks"; + #clock-cells =3D <2>; + }; + }; + + q6asm: service@7 { + compatible =3D "qcom,q6asm"; + reg =3D ; + qcom,protection-domain =3D "avs/audio", + "msm/adsp/audio_pd"; + q6asmdai: dais { + compatible =3D "qcom,q6asm-dais"; + #address-cells =3D <1>; + #size-cells =3D <0>; + #sound-dai-cells =3D <1>; + iommus =3D <&apps_smmu 0x1c1 0x0>; + + dai@0 { + reg =3D ; + }; + + dai@1 { + reg =3D ; + }; + + dai@2 { + reg =3D ; + }; + }; + }; + + q6adm: service@8 { + compatible =3D "qcom,q6adm"; + reg =3D ; + qcom,protection-domain =3D "avs/audio", + "msm/adsp/audio_pd"; + q6routing: routing { + compatible =3D "qcom,q6adm-routing"; + #sound-dai-cells =3D <0>; + }; + }; + }; + fastrpc { compatible =3D "qcom,fastrpc"; qcom,glink-channels =3D "fastrpcglink-apps-dsp"; --=20 2.45.2 From nobody Sun Nov 24 23:47:20 2024 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 5F602205132 for ; Tue, 12 Nov 2024 02:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379996; cv=none; b=Bz1Jxiy4FF1gbDZa55E2ZqvYdvMXeRNZ97PrmTCqeuVUBQ1vHcxNZ9OQnOt68A7hBdhk8RlYaq3joA32TOGb/HJpYn2jqP5/I8/Mw6deZClLt/FB8taXvuZBT/EGYkxlH/VV4eqaDJO5MUG1QT6Kxb+7lFSrY1T8ouMtSC/5fbw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379996; c=relaxed/simple; bh=ucgy9cTopg4E0lG1/WUWNQk0L/jEkoP91XiRceUS+fY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jFRO7iEjEGsTZNcId4ZWrZN+iLLv7z4RG959vyz7ZaTDOzNmnK4YikcOsJoVhGHZZp6L9wSzXo/QJyF1+qeTjRtCP8e/rSTX9i+KZaij9SboV55YnTIFfp1M3heCHo1FCb/+k9uOCElD5oHOvwzXOFi1slFpJFnhY2S1WCJgDPA= 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=gOp5U5/f; arc=none smtp.client-ip=209.85.221.45 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="gOp5U5/f" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-37ed3bd6114so3145768f8f.2 for ; Mon, 11 Nov 2024 18:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731379993; x=1731984793; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AUmkRrbbbyk9xLx54NwTCapKIUbE/O+g3oU2muHUiIc=; b=gOp5U5/f4RbKfVW2JEv9bPATv0in9hqoVo24bRUCJ2UZX/FtW6FpfNjXsRn9Vvsuyp GbLr05sU9YTSpFrFpg8Jj8ojcnuiy/Ufxu3EDevUNbYi5zYcVIK9JatWz5Mg1K8y52gX 2tHfwWNuSZTMh1BfGg5Ui6SCl2DyCgFpXTjK65PK/W9airTHxpDUJPxon9AvYstKsbX3 f14BGCVZBvNzD4u3Fsd1o8C4lSJ/gx7O1F6Mb7hshYhi/MIWqORUCP96KJbbLOwWbOa3 Nwihdtlb0KPJCQIjmIleBjfifmepqHgOqUWC8KJyM+qqsS79HAwAOzK5jRj1nWElzgjE /oXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731379993; x=1731984793; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AUmkRrbbbyk9xLx54NwTCapKIUbE/O+g3oU2muHUiIc=; b=N29qttojURglLG9DrUSY4+3kOq4fhGiSO+dARbE/BUFx8LvrgKA0t/acUiq5svrE1q L5hzL1L0Y8TGyh79qV8DwBKdjExhgV+2UxKJ0McK8ZcABfpNP5ANQ93FUu71YBfLv6T0 i7aqcmvxiQDAYkia6TQljlTg0IYYv2ORp/VI7l2knYcmnb9MXpAuNLyanp3eilLDnmpF 9dqqbmDpEWc4y6IkEfy6rYgrNnfAz1nKE+NtoEk3pfCy9MqmXCHvLbK95Xsp5efkU1xX tfX4+qI1ZM9kSXWNgeDYEKcJB1dk5ZvVYuFJ8V+s5MK3KjIG0L2Kl1t2lkZ3UeOLnU+9 FZAA== X-Forwarded-Encrypted: i=1; AJvYcCVRJagcXDvWaGsiXi3quupKiLMBiupajZTTb4Cmj7zr0vkpAYhOsczwQGqSf2WWSxRcCokocsUy73F8OPo=@vger.kernel.org X-Gm-Message-State: AOJu0YzmuuhZx9H0l7XQilDqlOtsZDawygJlcyDTJXABUITDzkqX1A0c rgBbk92y96bplb+XIYJLQR0D8xTD4IdxruvSHbC4hP49A/qYlipq8QtwJXsvEjE= X-Google-Smtp-Source: AGHT+IEwJoxeWcs+JgTBSm7RguLuVxJryodvRLUUZ779A7RyAXR4KAjN/Qdedun538HHJYqULBojOw== X-Received: by 2002:a5d:5f52:0:b0:374:ca16:e09b with SMTP id ffacd0b85a97d-381f1863404mr12322257f8f.9.1731379992780; Mon, 11 Nov 2024 18:53:12 -0800 (PST) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed999e0csm14056380f8f.59.2024.11.11.18.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 18:53:11 -0800 (PST) From: Alexey Klimov To: andersson@kernel.org, konradybcio@kernel.org, linux-arm-msm@vger.kernel.org Cc: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, a39.skl@gmail.com, konrad.dybcio@oss.qualcomm.com, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/4] arm64: dts: qcom: sm6115: add LPASS LPI pin controller Date: Tue, 12 Nov 2024 02:53:04 +0000 Message-ID: <20241112025306.712122-3-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112025306.712122-1-alexey.klimov@linaro.org> References: <20241112025306.712122-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the Low Power Audio SubSystem Low Power Island (LPASS LPI) pin controller device node required for audio subsystem on Qualcomm QRB4210 RB2. Cc: Srinivas Kandagatla Reviewed-by: Dmitry Baryshkov Signed-off-by: Alexey Klimov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qco= m/sm6115.dtsi index 816b8331933d..df2241237b26 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -16,6 +16,7 @@ #include #include #include +#include #include =20 / { @@ -810,6 +811,20 @@ data-pins { }; }; =20 + lpass_tlmm: pinctrl@a7c0000 { + compatible =3D "qcom,sm6115-lpass-lpi-pinctrl"; + reg =3D <0x0 0x0a7c0000 0x0 0x20000>, + <0x0 0x0a950000 0x0 0x10000>; + + clocks =3D <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO= >; + clock-names =3D "audio"; + + gpio-controller; + #gpio-cells =3D <2>; + gpio-ranges =3D <&lpass_tlmm 0 0 19>; + + }; + gcc: clock-controller@1400000 { compatible =3D "qcom,gcc-sm6115"; reg =3D <0x0 0x01400000 0x0 0x1f0000>; --=20 2.45.2 From nobody Sun Nov 24 23:47:20 2024 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 39F55207A34 for ; Tue, 12 Nov 2024 02:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379998; cv=none; b=gnSmru4GV7yL8zNtJ5ROJtMb08hyY1GVVxI++qAoKWe/v6XUj8Iej0qUkReHC7ifhPLMMlsW/99EMFhNP9CFDi2WOw9fVxOnEfE+T4CS4magyt+figRdqjFE+esqIOmFwepaaILK2BEY1LpNgua3jJkjW85yHFlnxgjU+WpKtpQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379998; c=relaxed/simple; bh=REvlMMxx0XAJybhZSmB310utOAbwLWPvmzpZTyrvIuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TB4TZNQ5TjqhqtnIn7vFTDy96AMLyoR5TrT194q3+LJRwt9sniTzXvIOaaJrY5PZlB9lcBrcFQYAAD5OUB02ZlElUpPL+F+M48jIj87PPMSaH35flj2xi8zqeLz8nCLqvmz2yQ8QKkTSfBLRacanqiyBlwUtYSqqHcnRepPNW+A= 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=jzudQ6IX; arc=none smtp.client-ip=209.85.221.49 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="jzudQ6IX" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-37d6ff1cbe1so3954492f8f.3 for ; Mon, 11 Nov 2024 18:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731379995; x=1731984795; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3Lorw65PtQ4cm8iqjexRvk/cRJr+lEVzhB14Mwt3cdQ=; b=jzudQ6IXcq6zylUew8J4c7ND21Fivm26rnbW39CiC09GFjtfG/ROCRKbahgElPV4I5 7ruzqXr+SV9FRDh+p2+8SRwP1L/z70W+qH/gztfnQs/R6VdMaFPg9k5QoZ/bkcmpkQMI sbb5KQQS2O8Mltx70AuJsDzm4UmrZUMPFLSzhIzY/QlLvanXP/7/r/fAkOMBB9J9ZTJf wNbxGda1p1uHgpMAFeGnkybvw4PqXh+dzyZaAH3XKn2I039b7dEbv0SMZCdJlqXqyz8r S93hjsS7tIuwPZzrAIWD0lo7ltuAOIz+IKe2lvkR1rfpJ0pqqcVsbTfavanHt9GbtylC B98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731379995; x=1731984795; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Lorw65PtQ4cm8iqjexRvk/cRJr+lEVzhB14Mwt3cdQ=; b=hLBU6oAR38cnAq8AlAbecAMTpIa91fVqJmhfJufEdL3VVmqB8Mi+lhkleOOpfRfH0o r3Qp86vdg6c3wbSON8kMViliSFrS5Xok750wOxcOoTT7igjiwlxKdcCVP4qjobe/rT8m ggCoKCS8X0//e1+bC9pYD/e7cZbLhregnJbIlTjHQ98i+SQXBPKs659Npv//XmDto8Yy E3y2YFTVsiy9X5dtYmEAMZjKnkt/JmbExvHSVC6wwPHMD2pxoIvse0Oe68VKY4zpNXTu cipCsANs0g3PD7pyKluIbmwDMXddBzTiL145AziNTRmB1tNc2BLoPs3+8eubDSccByhB DSoQ== X-Forwarded-Encrypted: i=1; AJvYcCXNnN3SP8N3/yeN4uHut8UJ4Sq6B4SrC43LWemNl9wFiRaAMfoYoRxNb5IOSuzwfafPqNS8UUR6Rhj19OY=@vger.kernel.org X-Gm-Message-State: AOJu0Yzv5MJNj949YGyNe6Tnbk6Gkug9yJ7tl3CTZFmfZKwD4VyMt4Kp G8G03zEueCm6b+0zqOnM161K8etUF6FXdqxSx9HAaSZ6X0kL4FwrJLMO1tBM1Hg= X-Google-Smtp-Source: AGHT+IEXkJ1aBj0V8ruILZdaXYACOVbungEyelI77L3kEH9tEoDfZehKRKzAE7Jp6HasezXgUkm9Zg== X-Received: by 2002:a05:6000:2d11:b0:381:f604:4aa8 with SMTP id ffacd0b85a97d-381f6044ed7mr6571685f8f.53.1731379994783; Mon, 11 Nov 2024 18:53:14 -0800 (PST) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed999e0csm14056380f8f.59.2024.11.11.18.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 18:53:13 -0800 (PST) From: Alexey Klimov To: andersson@kernel.org, konradybcio@kernel.org, linux-arm-msm@vger.kernel.org Cc: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, a39.skl@gmail.com, konrad.dybcio@oss.qualcomm.com, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/4] arm64: dts: qcom: sm4250: add LPASS LPI pin controller Date: Tue, 12 Nov 2024 02:53:05 +0000 Message-ID: <20241112025306.712122-4-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112025306.712122-1-alexey.klimov@linaro.org> References: <20241112025306.712122-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the Low Power Audio SubSystem Low Power Island (LPASS LPI) pin controller device node required for audio subsystem on Qualcomm QRB4210 RB2. QRB4210 is based on sm4250 which has a slightly different lpass pin controller comparing to sm6115. While at this, also add description of lpi_i2s2 pins (active state) required for audio playback via HDMI. Cc: Srinivas Kandagatla Reviewed-by: Dmitry Baryshkov Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/sm4250.dtsi | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm4250.dtsi b/arch/arm64/boot/dts/qco= m/sm4250.dtsi index a0ed61925e12..cd8c8e59976e 100644 --- a/arch/arm64/boot/dts/qcom/sm4250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm4250.dtsi @@ -36,3 +36,42 @@ &cpu6 { &cpu7 { compatible =3D "qcom,kryo240"; }; + +&lpass_tlmm { + compatible =3D "qcom,sm4250-lpass-lpi-pinctrl"; + gpio-ranges =3D <&lpass_tlmm 0 0 27>; + + lpi_i2s2_active: lpi-i2s2-active-state { + sck-pins { + pins =3D "gpio10"; + function =3D "i2s2_clk"; + bias-disable; + drive-strength =3D <8>; + output-high; + }; + + ws-pins { + pins =3D "gpio11"; + function =3D "i2s2_ws"; + bias-disable; + drive-strength =3D <8>; + output-high; + }; + + data-pins { + pins =3D "gpio12"; + function =3D "i2s2_data"; + bias-disable; + drive-strength =3D <8>; + output-high; + }; + + ext-mclk1-pins { + pins =3D "gpio18"; + function =3D "ext_mclk1_a"; + bias-disable; + drive-strength =3D <16>; + output-high; + }; + }; +}; --=20 2.45.2 From nobody Sun Nov 24 23:47:20 2024 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 F14FC208964 for ; Tue, 12 Nov 2024 02:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379999; cv=none; b=QwO7zWVncaa+QAtqskfJvUHg2ZUL3sGCPppXYP2XGtENs6I9cXpLoFpkKi4pKaU5Fngu4Gop4Su3ev4hMsWtOkO14mO9J/0EiIZtxYh7xcwV40eKKD5Igu6oKwXV+aP2VEDBvKZaATmXTbygGiWeGDTvfnSFavKj64d1kKuRORI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731379999; c=relaxed/simple; bh=CsGkXqqZhz0IgkSABcFs+iVRkws2qrUqO8PC7rmsWFA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O8wcKQ5V5n7+StdjlOrDXwVEj6CQdu6l3/msOdLEWJDMC9VCpBJ/od9Ej+UgAZKCBA16yCODlhbiFXU+gBBlX51lo2eqO6sQFo9vtMu3Tnr4ffn0ncL6U+N3+9Ebci1Q2emY9j9GA2nnU1JseUce0Oo3cZusVqdJSD5+/uLDVeg= 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=xPkTycue; arc=none smtp.client-ip=209.85.221.49 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="xPkTycue" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-37d4c482844so3511215f8f.0 for ; Mon, 11 Nov 2024 18:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731379996; x=1731984796; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LIuoqEXHGjHf1JB2Y9KM3zh2C7j26CWN0IxIEir+BIg=; b=xPkTycueQF8GVC9J7ZGO9k02CwZ+YFbk6KAwU9Nsmcl1nqkuOPGmx5YZol1GOs1k1P Q3pEVvvahJAAyacum6HsBb7UTV/v8K1ReIOdWBMHFud8+vurqcknDoDi+zRXN7dwPdkw tljYVBiB3Gt3vQpjOw9JNKfTnlblWsdfCQpY6C2CdeAfjOyDuS4O0k8+rC6iaUFQYXQx LNSRPs84fyWAyTNki6+KeqR/lURfdf/CJYJwQUbzVf4Jzk/NKRdfeHyouPeU8+ozPUIS 7sQ4lN7U1OVBXFpbi3XtcaE3fJaszartzsfnP48N8M4yc4SF0LM0vd5fjR03Kqs9f+ZJ HJww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731379996; x=1731984796; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LIuoqEXHGjHf1JB2Y9KM3zh2C7j26CWN0IxIEir+BIg=; b=ERF7VOvR9Jxk72oKhjNK2DTLEWIWOGrEiWiVj8HlmWWWQ/JWox8DLyZ4ZKYizeEPKN g5ncZIlJGnibwEZPOAAVGOeCiVbSahaaRUv1dhGpPlVmw2J8CbnYL7IsJm3t0v6ZlrvR 1JaFSPuw8AkcqWPX4jRbPnYu90f1PwJeHUmEZIQ15GZsV7V85ZMxclbBGKlv9wVs1Jd6 y6p5kw2yKTujylKNo32RkzSM06h58aL+14ECwLKWCiEyHMnrijFZONNwvxSwEeakyxzp DiUWSKdoRqgBOmJgj+nrmOG7DzfgaSopjBN0FW8Vhtm5Cw1PRjBTjtE9quWO6bbSAPns pX6g== X-Forwarded-Encrypted: i=1; AJvYcCVuQfZsI/ltYxWDtjSafYGv26/3D2Mmp76eJvUhcv+lp7DFH7BhjxqNFJge/aaBrXcgtr2PE3fYlCXsvXY=@vger.kernel.org X-Gm-Message-State: AOJu0YxoHakiq4lUqgdet4X/SkF3BFIzhJX18BZZqErNF9Hv3w/6Ct/0 uwyX8Do99XK1XuDaQZxU6TNrXW9UFEDWe2pkFCxF6FWWnQjLCFhyWkL0U+9xVQE= X-Google-Smtp-Source: AGHT+IH96khvcEQPim+MYfWCoZ//XiPg0PZB4puwbxkc5NLkNzSYNtYc8k5it96xeSiaCS865si6gA== X-Received: by 2002:a05:6000:1564:b0:37d:4d21:350c with SMTP id ffacd0b85a97d-381f186cc7fmr11666058f8f.13.1731379996195; Mon, 11 Nov 2024 18:53:16 -0800 (PST) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed999e0csm14056380f8f.59.2024.11.11.18.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 18:53:15 -0800 (PST) From: Alexey Klimov To: andersson@kernel.org, konradybcio@kernel.org, linux-arm-msm@vger.kernel.org Cc: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, a39.skl@gmail.com, konrad.dybcio@oss.qualcomm.com, linux-kernel@vger.kernel.org Subject: [PATCH v5 4/4] arm64: dts: qcom: qrb4210-rb2: add HDMI audio playback support Date: Tue, 12 Nov 2024 02:53:06 +0000 Message-ID: <20241112025306.712122-5-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112025306.712122-1-alexey.klimov@linaro.org> References: <20241112025306.712122-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add sound node and dsp-related piece to enable HDMI audio playback support on Qualcomm QRB4210 RB2 board. That is the only sound output supported for now. The audio playback is verified using the following commands: amixer -c0 cset iface=3DMIXER,name=3D'SEC_MI2S_RX Audio Mixer MultiMedia1' 1 aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Center.wav Cc: Srinivas Kandagatla Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 59 ++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts= /qcom/qrb4210-rb2.dts index a9540e92d3e6..283a67d8e71d 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -6,6 +6,8 @@ /dts-v1/; =20 #include +#include +#include #include #include "sm4250.dtsi" #include "pm6125.dtsi" @@ -103,6 +105,55 @@ led-wlan { }; }; =20 + sound { + compatible =3D "qcom,qrb4210-rb2-sndcard"; + pinctrl-0 =3D <&lpi_i2s2_active>; + pinctrl-names =3D "default"; + model =3D "Qualcomm-RB2-WSA8815-Speakers-DMIC0"; + audio-routing =3D "MM_DL1", "MultiMedia1 Playback", + "MM_DL2", "MultiMedia2 Playback"; + + mm1-dai-link { + link-name =3D "MultiMedia1"; + + cpu { + sound-dai =3D <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm2-dai-link { + link-name =3D "MultiMedia2"; + + cpu { + sound-dai =3D <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + }; + + mm3-dai-link { + link-name =3D "MultiMedia3"; + + cpu { + sound-dai =3D <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + + hdmi-dai-link { + link-name =3D "HDMI Playback"; + + cpu { + sound-dai =3D <&q6afedai SECONDARY_MI2S_RX>; + }; + + platform { + sound-dai =3D <&q6routing>; + }; + + codec { + sound-dai =3D <<9611_codec 0>; + }; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible =3D "regulator-fixed"; regulator-name =3D "VREG_HDMI_OUT_1P2"; @@ -318,6 +369,14 @@ &pon_resin { status =3D "okay"; }; =20 +/* SECONDARY I2S uses 1 I2S SD Line for audio on LT9611UXC HDMI Bridge */ +&q6afedai { + dai@20 { + reg =3D ; + qcom,sd-lines =3D <0>; + }; +}; + &qupv3_id_0 { status =3D "okay"; }; --=20 2.45.2