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: 13893822 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:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13893823 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 DEB8E1F8AC0 for ; Wed, 4 Dec 2024 14:00:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320837; cv=none; b=MvjRzsXsjUIaFKfPMy2RTwR/sCmEguiccwdBC6DwRM1de0a1Cy98hApF+ifBJobn+ATjqvKwakWRMp+OnViKM74BAp6zsqzshuYz96KAQ4mJK2Hg/PIdpmBFvBS3VLUYwQeYcrtjZ0oECxvizqyQ586cS23zXuN7PS+m98IalV0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320837; c=relaxed/simple; bh=ssp4dcsZCDyLM82QaOE3c2k7MIcONTsg6QEdlf87K3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oz0i5L9SqQobfknl1EUkvbC1UeCfn63ZhEGSp+Ox8Y8nLao6AeOJKUmP32AQhjqsw0+xO29+JctmHsyHtdpBO98FAdnNoDQKM9JKZaHpaYS3UpRG2lpK96N0TC4GgfatSJGT2/8bWDXutlMUVrOrjnUMTuoGJeHiNcxFebYvDt4= 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=GuQpHd+B; arc=none smtp.client-ip=209.85.221.42 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="GuQpHd+B" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-385ddcfc97bso4684737f8f.1 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=dLrHu50pzztwUqxBZk1ZRxPuancx79BTgjqfe/nlYrM=; b=GuQpHd+BknyYyIB5IEpeAd525TxBvFkPimTeMlQMAGcuid448fy8iWlPu6h8wVyiZD ez1+vq8QMD6B7iPULs0idlUZA8YBrsyFa+AJFPn4FD4wzhPWic/eEIqXw75nyCpp0Qf6 aFCKTQWYKbNxnkyXrCEXql+7X4dCxV4jZqnEM+0HHv9fRITeVx8wruTppYNeJaIwQfV8 JlBxYCcVzPBYXSCgLjxYSPu0eN1eQRjLhfkvJLzw1VwIdKaH7ERNE/N8FrYlLU9p7hz7 lk/MHEc8vCZRM3cGPGV6DmDVCJ9YI2iX9dxb9wBx8mAipTljsXAFVREN5CYl3fbnaxFU KS3Q== 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=dLrHu50pzztwUqxBZk1ZRxPuancx79BTgjqfe/nlYrM=; b=H/6hocOdhyeqSltJY48Jxe2o+MbzF5bFMX4n/diBWeQWOF68W07DrI0Rpdq3ptxxOa ntpk9KhiMc12TwIE+CmTWFDgGojUvTkYSvYk06F1XueC3IgIIxRzq3Nyo6SYkadIy+PH I3V2cUyJM72h6hWbkpUAV5U9AqXvNkTcehowUrZzrDk5m7gzL3y0HLB6egz61ROstv/L 1b5vdcw4dXljTCaHv1QmTQT+FKmm5le8fJeHaWltI0JMPtsYCmwDA7hN1iWx0RxawIwS 0IJl7LO4ipr5flHiNmOJZIWI+vag9phveTrpXj3eXDBOdIoAkq9ksVSLeJMf6LAhzqnT g10g== X-Forwarded-Encrypted: i=1; AJvYcCXGJFbEvTKUkM2jWp/aRdIF5/yqQFDOYLFOOdXpIlJ1dlbDuF2cPU7TELYP/Pt2ZsRoCAgctoaBvlnPcI8j@vger.kernel.org X-Gm-Message-State: AOJu0YwQvxddrSLI6SIPunk/RUtBE3g4Jo7XVXXEPZHnKP5SG1KmPM9m g09y3c5YvugH3gEjm2GkSeLu7/wFIjNI11vOQ4P2qgspwJfJZw8oW2kTddgHWDo= X-Gm-Gg: ASbGncsXIXJCZFK9OxcMIBZmnm55Ntb+dOisODsH7j/LUm1ub4j+GT22g71+5lciXwW R5k7DIdHtp+6wYK3PuQIdN2LKJZeW54wZdjkiBwydfFA398w8p2ROlpBRHVR+3KiikeBVmEUcq9 zV0uAvTRru0r4ZPvpE858MJpRXcwyABe/iP1Apv6YZBVw0CQtoxVyTUcleNY+Dy/6wAdqfKaTfa PStaF7SxLCpNwv1nQAJAve078pCr0YMCxNqooGeF49YF6O2dwSfPvCmPZWOvJXDfw2MG8I= X-Google-Smtp-Source: AGHT+IHYK7Du5iUylGSHkyu3iZhxC6pu4WEqdTfJd2HA8NRTO0kPBBavxBK4pbJjpzuedl5Cz9JDnA== X-Received: by 2002:a5d:588c:0:b0:385:edd1:2249 with SMTP id ffacd0b85a97d-385fd433008mr5794874f8f.50.1733320832123; Wed, 04 Dec 2024 06:00:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 06:00:31 -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 2/4] arm64: dts: qcom: sm6115: add LPASS LPI pin controller Date: Wed, 4 Dec 2024 14:00:25 +0000 Message-ID: <20241204140027.2198763-3-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. Cc: Srinivas Kandagatla Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Alexey Klimov --- 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/qcom/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 / { @@ -810,6 +811,20 @@ data-pins { }; }; + lpass_tlmm: pinctrl@a7c0000 { + compatible = "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>; + + }; + gcc: clock-controller@1400000 { compatible = "qcom,gcc-sm6115"; reg = <0x0 0x01400000 0x0 0x1f0000>; 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: 13893824 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; + }; + }; +}; From patchwork Wed Dec 4 14:00:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13893825 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 83E7F1F9403 for ; Wed, 4 Dec 2024 14:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320839; cv=none; b=LMdfZJL0BqBVW0Rxm66hmQTWZAoRpHEpRmNpQxZCvdQGaATDR9INXRdz1iIAk+69R4VO2TI9tUsj7eP4ii1foTI6EjtO5aa8Xjzm8k9CVTM5e7yYRLx8+uLJttKl+ilQla99mF2uilFW965hbEG4/w7qLz+NKN3DUakGR4T108w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733320839; c=relaxed/simple; bh=oQlxhyNXi4VLEYzBv6Mg8vKwQUxEbTCMppfaXRioQD4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FDpYgtAkGG+iB1dq381cpxxRbHDkjpeifFrhm61caKGCu5Lr7MdGv8d+hGbXQp+lIxQqqOtlvzpVIWSAv/gMAsNcu2NhskxDy8H/rQsMCy6WAgUfB8ulh6gfysEhQZOaBFMFAQpIX2XSd4/dxKNzNlB/+yYr6XcH3oj4pE1tU6s= 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=MTiEO0fJ; arc=none smtp.client-ip=209.85.128.53 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="MTiEO0fJ" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4349e4e252dso63579945e9.0 for ; Wed, 04 Dec 2024 06:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733320836; x=1733925636; 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=wo1Wzwh3Br92Add/ZhBjQllfXt/4cGMlJOhUAuIwj4I=; b=MTiEO0fJhard525zItua4SZIN0pCRUSw1weHkSuXBMB1vkeqyxmRObPSux8Vkgfad9 G4zPTSIxVGPXb4WFr2u9Mu0oSq4mI2SQ3vlXe1ywO6f2l1myhn+4H1Dbxg9QQHoT6amy bTdQ51/JwdJyJyf5DT8Kfv3Zn2wPjvAv5wg3gP4hXLH1F2GfjlgpBPZjT1dYc6zW9VSE bqgzyGgnqPD9IfIjd2trA9qAUXYmr/vuh/7Ct1AAOcsUmwlFSJxwD9sH4+6xhy/TMIFk zGjAl3qkwNw9qCA8OU+CEyDi5qJOpOWSRztbgxY1vGiGmC+BhLJziUSwGmPk31Zx4kIJ 0N+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733320836; x=1733925636; 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=wo1Wzwh3Br92Add/ZhBjQllfXt/4cGMlJOhUAuIwj4I=; b=R/ayvjEO5SRKY1hiC60O2RJDiK0QRRU83d0ahfkzNH3yHsmGvWAYjM+ehb54H8Dpaj j1etLxIkUlGYvxh+/ZNNpKXmf78inIzFLSLTcSKrBy4U6uVy91UfrykeT+OEvTI6F/UZ rWhKLaTc4EiyATQQ7gwukIe5XyKDz5MklPiVkEbLpI9KJILDWWV3IOfnETH3BxtMJLjc nmT+GfaeVTABd2BGCXh+q9mU/KWwfga/CFiMOFuY5xzDhoWBqGoepvhH/TNSWmFP+aab C4ucDpvKjKpJZKJqyTezgvq/bxjfGFmjqSidFqykwAENqAnvYL8ZvkxE8/WhsHgkBj6A FW6w== X-Forwarded-Encrypted: i=1; AJvYcCUZF/zzrxyjZW8FVD5zos/S+MmHWp4WkLSk67ByirT+zU4hpfUXbTkXcmrL5XKQygNxGd4jamKpjFmpTFjk@vger.kernel.org X-Gm-Message-State: AOJu0YyoiAo+TJws3bL/p0yjociRpstp+6LRFgBuJGyirEmfDDCGFEkv 4nM4VP1Oj/XQm4ECwnhz0bM2VZ136gHBqJE0jGoqSpYQetq9kQqFyNdeDfY/y64= X-Gm-Gg: ASbGncuDhBq4UxoBd8YwCahYw+I9DbF3MJtzNEbjllvP/qyT8VbYFvmTZ+AAKVlYj1B Q5bcuhekKl2y8IC3mINrxaLifBgfSyZ3LTUkraK3OYQ5D4Uc4YdtCg+riAfGLsFFsQ/VvWpDHVM h0wvnmbq6HhhQOH7YefIB2GBKTc4srt+R3D4kwrcvB9tvB8WUFJt02fS1uZVsi7GpOsDSYN/aQT Cp6854L63Iy2zFu+0WeCZoA8jnhND5LFq/EYPgn1PgS6vgh6jnppFetDAwfkKD4OJWw9mk= X-Google-Smtp-Source: AGHT+IEz3Wzkbnj/7JvjYGuWMu1+ciM8h8hDG3as1EYvNSR4aLNyIUb+eq8UmZ+7LI9j3XWrrIrsuA== X-Received: by 2002:a05:6000:210d:b0:385:de67:228d with SMTP id ffacd0b85a97d-385fd3e90camr4308405f8f.21.1733320834201; Wed, 04 Dec 2024 06:00:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 06:00:33 -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 4/4] arm64: dts: qcom: qrb4210-rb2: add HDMI/I2S audio playback support Date: Wed, 4 Dec 2024 14:00:27 +0000 Message-ID: <20241204140027.2198763-5-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 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=MIXER,name='SEC_MI2S_RX Audio Mixer MultiMedia1' 1 aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Center.wav The same path can be used as-is for I2S playback via first low-speed connector when DIP switches are configured in a way to passthrough i2s data to that low-speed connector instead of to lt9611uxc bridge. Cc: Srinivas Kandagatla Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 51 ++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index a9540e92d3e6..edfb18c85da8 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/; #include +#include +#include #include #include "sm4250.dtsi" #include "pm6125.dtsi" @@ -103,6 +105,47 @@ led-wlan { }; }; + sound { + compatible = "qcom,qrb4210-rb2-sndcard"; + pinctrl-0 = <&lpi_i2s2_active>; + pinctrl-names = "default"; + model = "Qualcomm-RB2-WSA8815-Speakers-DMIC0"; + audio-routing = "MM_DL1", "MultiMedia1 Playback", + "MM_DL2", "MultiMedia2 Playback"; + + mm1-dai-link { + link-name = "MultiMedia1"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm2-dai-link { + link-name = "MultiMedia2"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + }; + + hdmi-i2s-dai-link { + link-name = "HDMI/I2S Playback"; + + cpu { + sound-dai = <&q6afedai SECONDARY_MI2S_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <<9611_codec 0>; + }; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible = "regulator-fixed"; regulator-name = "VREG_HDMI_OUT_1P2"; @@ -318,6 +361,14 @@ &pon_resin { status = "okay"; }; +/* SECONDARY I2S uses 1 I2S SD Line for audio on LT9611UXC HDMI Bridge */ +&q6afedai { + dai@18 { + reg = ; + qcom,sd-lines = <0>; + }; +}; + &qupv3_id_0 { status = "okay"; };