From patchwork Wed Dec 4 14:00:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 847390 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 68A461F756F for ; Wed, 4 Dec 2024 14:00:33 +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=1733320835; cv=none; b=g7Vd4ZPnPH/TG4dBBscPTC+4BOQAzJcpBhA7Jq4bSZdgRqLpjQRjAemNTN7yv3KgDyJq3bfnShZQ4JnsQ2kc13He3Nj2RiQaHtxXiwqXnRedvUIxxr6TWQnLAlimJF0S2S0U6V6S48DugKb/UhSWqIRjgifv8CCWdWzgPZ+clis= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320835; c=relaxed/simple; bh=Y88dxKTEB84Sy5sor9WVb8Lb3Eunx49GPWiCvst3MDw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ETfkJZGCTs9L3ffamkpEldjmTLRN3ejSQrEZ7iLW1bbqPAoicwqBgwfq1feSh6xQRxOQ7CCxdxQjL7IA4sO6KH2DqCeEh7boAhtPdAc+6rNhEMoHQAR4zmYkH1vrFmoa3sLAAHHQFsmqKW74ko2VWjpUi0dVYjTxVyyyGdGLsto= 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=kcfXigTa; 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="kcfXigTa" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-434b3e32e9dso59395255e9.2 for ; Wed, 04 Dec 2024 06:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733320832; x=1733925632; 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=kcfXigTaF7oxPyx4Rc7gJrhQwjn3jdDhjoHlUUMFN0jEg6sC7dSB6hMK0hsddmI+ka AoYiOrD1nTjYFbZJ+gQSLm1cUsnsYm3kt0Ek9SgxIp9VQLaA3ukVo3gE49lJPtSxUAr4 uGiUFrkS/BbSchbichWZQ2XyjjmMtAxVQM4A2nKzv11aERfrMfFly/8ilF4mNBN3QyYw nU4M3lmqioTt/NBpAGHUHVMNZtRodAw6gdFnT20LUTvH1oNgVdwNfg+FNHZGFh9+QRV+ APe6zbXofKxs80WTqXT8e+k8D/Ul55y4B1+l2hYtBzuk0vQoZIUW9ZHmVh+1df99Ri1K w1GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733320832; x=1733925632; 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=lfvGiaB5W+BovVJXf6GWr01uST6jdUNDwhMgXVbSyztcZzKi+bxBngzVJhbN6yskff UzVaH2znxIkTAH0HBDaxXKfdyH/RxvO3f6EG7xv9ZbIw52Br7qjCLLqgsb8yVOlx8xvK yoI8/VvY7GHN2DmsxXnL19dH+vWXik4+lce20/IBpj3ArgsXhsdawTzE8EojfoSRP+Oy Pprt7sTxlpgS5TGms75wY37isnparofPbGhujsft25nWnTCBRQLuaMN6mn1BXaK0+WG6 lRkK1ChiTLz9Irbdyq3IjnPpFxcDUPByfhavnHgKxxDgGml75eZUlr970zmY8595VByJ lGzg== X-Forwarded-Encrypted: i=1; AJvYcCUzZv7x0Jsp7YAv0aCztihBKLCyj75oOSotJcMN8knd9CpuxYXiq9FFNMZRsElj6bIESLxXgdfzH2OufIk3@vger.kernel.org X-Gm-Message-State: AOJu0YyKnJi3fmzRQ1FdEP/EB1vBxqDkp8tmExiQBgWUiPZf/SPyHcPl li6MGrf++kKwu+c0gWr25nIVUJ4XXq7EewvHKRjkNtPNAGiDFdyIVnutKmtZ/C4= X-Gm-Gg: ASbGnctTcmqSevRpArUgHpsEQ+/3uG1vWKmbY0x8lcuLpCif/+GrSoJw6VPysCs02FU h8xz4m9K3JBKXESSy5ZnSFSkyYZaEFSniqSFk+TU2icyEYShSPBRyzVCFR621l+Bxkj5I5Ee2IX JKUOcT0NfyqXA/RZP/6fr9905yVNIyfc7k3X3em+HgIq7KYGb/kTEL0tnN3cmLiOEvzk9VjprHg nkXklUgZXLUK9Tnhp0rJ3NfaImMZPplQmMUAO+Tzekoj++VBAWzi+Fzyi1bp9P39XYPFQw= X-Google-Smtp-Source: AGHT+IFLm3mAtpQU8RqFuHUpb0/Y6Czk2iuRyOThmoKrp6zlYXL4Adntsv9jCROsNU0P1ZXKV67r/w== X-Received: by 2002:a05:6000:2aa:b0:385:f349:fffb with SMTP id ffacd0b85a97d-385fd42a35fmr5359588f8f.45.1733320830981; Wed, 04 Dec 2024 06:00:30 -0800 (PST) Received: from localhost.localdomain ([2a00:2381:fd67:101:8e2:966d:36c4:3579]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e2c84d52sm13689978f8f.49.2024.12.04.06.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 06:00:30 -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 v6 1/4] arm64: dts: qcom: sm6115: add apr and its services Date: Wed, 4 Dec 2024 14:00:24 +0000 Message-ID: <20241204140027.2198763-2-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241204140027.2198763-1-alexey.klimov@linaro.org> References: <20241204140027.2198763-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/qcom/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 / { @@ -2701,6 +2703,76 @@ glink-edge { qcom,remote-pid = <2>; mboxes = <&apcs_glb 8>; + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,domain = ; + #address-cells = <1>; + #size-cells = <0>; + + service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1c1 0x0>; + + dai@0 { + reg = ; + }; + + dai@1 { + reg = ; + }; + + dai@2 { + reg = ; + }; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + fastrpc { compatible = "qcom,fastrpc"; qcom,glink-channels = "fastrpcglink-apps-dsp"; From patchwork Wed Dec 4 14:00:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 847389 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 5CA581F9AAC for ; Wed, 4 Dec 2024 14:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320837; cv=none; b=IG3iVmbuzKf9P648I+278u5tsQBqzQgzyrcmmYlsaDNlx5/Zn5YGa6/e3L04iqEDCaAG8/EYAoNMSVBCwL5gmCfGQEfq/JH9KMTVZxbVjyIujCSrytAYaRC1W97MKUwn5X8hWxWItB+DnFL4W+hwp9/G/N9nozfKtYvDfxMOy5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320837; c=relaxed/simple; bh=REvlMMxx0XAJybhZSmB310utOAbwLWPvmzpZTyrvIuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NsvU+Dtb/6vemwFQGL2iPo+NM1DGW/wbXsBJhDxM8kjFv6kzLmFw54R670TD2SMekAV3aaNO8rDsJDAba6qlftz31nMeB4IBHs2RGiN+JDMp1O/aSvyuyZOnResSYquB+K29HKDBNW+FPHhrN3dIGT5ISfa5bWud1wFqV28ElKg= 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=JOJS4CjN; arc=none smtp.client-ip=209.85.128.54 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="JOJS4CjN" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-432d86a3085so57834995e9.2 for ; Wed, 04 Dec 2024 06:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733320833; x=1733925633; 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=JOJS4CjNkh+aw+dEJeFPZcPYIvVVmMnDBdRJJaftoCTwjTkMDrmc0gzggGU0KBQnt6 //oYfGDy6Lnqz1YJynHWz+GPYCFUlnjEmtiDEDv1YFfRvntSFdpvXGi2wqWTlV1OAsYI 9z5ZzU0E9TlLRwiQF+/IIjZYHrofMjqSNW/ryfgNSlJcdbpVfQJQHN8oXouvZJQtsAzf l2iP3dJokTWIYg+BT43pEq3WvA3qCLXg0iZRwM29rTk+fVZ5tIfPEUiDNNYPhXxf8yPm J2jiIb8Th9zhMkdqpbizYEdiiVdN4PanTGvUvL64gOde0xEfFqliTMY/ECrdiIz48TPv JK6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733320833; x=1733925633; 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=K9OscWIxmTb3dLap94hGFtCkYbUw0GzkiZ+hfa3xYi4MK9xTIXc1ZZl5fyKXZaIoE3 fpFi2PdtXLe1znukuSPdXr9S+77jY37+DUWDUraMEObui+SC+YE1NJRmdJiv2dd8XufW QE148Jt+NA5fx00ZNg3pcozwf0tklY3yC7Hsy3qamRvJrEj2I3rwwNgYF2ATM4hH/ZZr ydr9nV40N0Toue82hjhK70VcXnFwb97rksOr21ppvwEIYA751XMDM9mMJuy1vUDmT2Q7 FgllA0kZxmHlhq7wrq8ayj789aKfH/UPtIHuH/IOPTK5Q6dUv0iIqtCCwZHeKgLO+zXG bA3A== X-Forwarded-Encrypted: i=1; AJvYcCXOmLxb9Qb6WdMpJxfBudvPV2lFi2Bc2Ua3na3EI2SaO4sje9rFW34qTVUK/bPBNqn9xJGL4HxOKXej70ez@vger.kernel.org X-Gm-Message-State: AOJu0YydYCcNCMS+osopcYOTjVlAMqEwDnJKzW1BKMYrWMSfFFdJrjQt Z9kUhofPv371dxaa/U/x31howdv0KZAtGfv5G+0TPSWAwa72OCjG6L9scYAY4AA= X-Gm-Gg: ASbGncvB84rW7SPGcEXOKng3iqb8vKxqgy4lHHgmpJnDWZxfCvdKscfgh/kaOancRrX Xiptx7GNT7+V1M5oMs6L6mD6Mk6t6rPcCkvmyLXJM6cn4MONZrZijYwN8VZMxgIwIytyT5kWlxK /meNl/gDBh/UQdLb14t7HfDKQDwE5gOdwGNmUHYHfwZ7+e/1X5pW+L4/0MrthSGTYQBz2u3NJEw Be/pd7OcbFiGrJwLLLk/Sjdyvuenrey7xlaT96+seUQWQAHxQu6VeyKgKft5zvXZh8Vp0k= X-Google-Smtp-Source: AGHT+IEhbpa9f+P23WmGe+eMo7IUbIQGX/UUlmqDiHg7PK8H8fusSK3gTlimkg0zm5RcyUlNRq/QLw== X-Received: by 2002:a5d:6daa:0:b0:385:f195:27f with SMTP id ffacd0b85a97d-385fd3cd094mr4427049f8f.5.1733320833194; Wed, 04 Dec 2024 06:00:33 -0800 (PST) Received: from localhost.localdomain ([2a00:2381:fd67:101:8e2:966d:36c4:3579]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e2c84d52sm13689978f8f.49.2024.12.04.06.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 06:00:32 -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 v6 3/4] arm64: dts: qcom: sm4250: add LPASS LPI pin controller Date: Wed, 4 Dec 2024 14:00:26 +0000 Message-ID: <20241204140027.2198763-4-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241204140027.2198763-1-alexey.klimov@linaro.org> References: <20241204140027.2198763-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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/qcom/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 = "qcom,kryo240"; }; + +&lpass_tlmm { + compatible = "qcom,sm4250-lpass-lpi-pinctrl"; + gpio-ranges = <&lpass_tlmm 0 0 27>; + + 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; + }; + + ext-mclk1-pins { + pins = "gpio18"; + function = "ext_mclk1_a"; + bias-disable; + drive-strength = <16>; + output-high; + }; + }; +};