From patchwork Thu Jan 25 16:42:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13531292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C05FAC48260 for ; Thu, 25 Jan 2024 16:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+m9CXHhEcTqB5oI2lmoqNcgys5vXougR380Y8IUXe8s=; b=zioyhL52FR9OKi Z565cnOiDUp9MyQUnumSE4B1PlGtu+GxaalSX6tdNxTlDSvE69J2GrPsMKdx55xDHj7rHAcI1dJnp 0wOVeHPtm2q7yCuR1v/Q1ObZoF3+Rjrfdrr04s5yaI4mAH5lZfFWZ10CPAUDFPfJDqYGcy5J2HK8L StczUDzss6s7lfHCg7FY/3tTtk0Cd8PJiOKp7nJx2OJ6ZAPZjC89RHqPEhQmm1fCc2UJw9BoXWP4P yQo16u2CAJRi928MZDJV2WnGagzPXYlY2UIys1T4kkqVu2yhre39TsP2Kj7Je3HQXb6i0TWIg7QDw AyjTYA1iMaAlYeLslw/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT2oz-00000000s6a-2llP; Thu, 25 Jan 2024 16:43:21 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT2ob-00000000rnS-0fwA for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 16:43:00 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5c229dabbb6so2875479a12.0 for ; Thu, 25 Jan 2024 08:42:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706200975; x=1706805775; darn=lists.infradead.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=HW8KVIWPvb9RNP/RwAD0mzXVj1bYagG9oDeU8ueoS0E=; b=TpBqh5BkYiKI6sFRHC/9yH1TEyyCqTFO6FCQ0bAxMwarVvgPANj0byx5WZMGGAfs5f g9vcSdOvp+6pthbVXvJOgkO5C4oDy2QthUumqlp5AGTJKaFf3XbKmV2NI9Ze7nRKdix1 1fOsOk9f+V5u/DmwXmTRhjb1gqIbVVfRee68iakVGBi4ipfaoQBtERSkQhr1vHBOjfwX Gvi6tbhqaDycvBzWJbQzO64oh3jE9K1dbseknczOi2Q6fQYciP1167WABi7dCNIFMSU3 PAElS7b33A0H1+TjWT3aFxTfM0qta8hYSBWt+JbB9qAHBtL4M+IZJM2BWpPMWU4Mp+le P28Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706200975; x=1706805775; 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=HW8KVIWPvb9RNP/RwAD0mzXVj1bYagG9oDeU8ueoS0E=; b=TcxTBU188hgfaTRWrOv8ZCrDvQK8VEW6KcZL5+tNymN1ICVTLSJENnTvCjichh3VsE EGm5O78jWQS3KKw4iri2caXRCymdngHdAeY+4v0mMToDcbfLHGfKhgtZR32jEx8oqmZP dd45ZjO1d2hMVkN0AjCBQoc40NoRYv1y4TJ6hIjpSmes0cgNDbez/0NnKvrt97/TvQDY SofrOOCEcX4VcDqyqfl1A9rdEJhBUdAeEb0XsY0bsqJFsc2heuMy2AnalhO728N9IB6+ Kcesnw/maLK11NEU4EYLLsyTlAECtxXfMrYI456UeSYAgeQZ5rLe1T6c/GhJreymFxkn BSDw== X-Gm-Message-State: AOJu0YyngfsC1A5vNiRnRQjfW4V/OUPTTb6VYNH+EHuusmpFvi9CQMvi Vc9PPyTY6cpFXJ+6pIZ4IZcgAoWYv5/lgiyO2CgCW+oQSAZEVfJhPS0apKN1Jsc= X-Google-Smtp-Source: AGHT+IGv+bm0MrgPVzsYpMj5FuNOOYvH6ACHIPweMQLlA7IaqFyVTMiqNs34Q8k7JE+cNROnK1gOmg== X-Received: by 2002:a17:90a:de96:b0:290:44c7:96e8 with SMTP id n22-20020a17090ade9600b0029044c796e8mr1052303pjv.93.1706200975096; Thu, 25 Jan 2024 08:42:55 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id u15-20020a17090ac88f00b0028c89122f8asm1769170pjt.6.2024.01.25.08.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 08:42:54 -0800 (PST) From: Neil Armstrong Date: Thu, 25 Jan 2024 17:42:42 +0100 Subject: [PATCH 2/3] arm64: dts: qcom: sm8650-mtp: add Audio sound card node MIME-Version: 1.0 Message-Id: <20240125-topic-sm8650-upstream-audio-dt-v1-2-c24d23ae5763@linaro.org> References: <20240125-topic-sm8650-upstream-audio-dt-v1-0-c24d23ae5763@linaro.org> In-Reply-To: <20240125-topic-sm8650-upstream-audio-dt-v1-0-c24d23ae5763@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1119; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=8FlUAYV0p0Hs9/yKUI+wz2YaT+GWCAARd/3llgD8Z0o=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlso+FxBZdlhNgMVaTGjGaEisz1j+jr9VFtXIyARuh 8OBDTE2JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZbKPhQAKCRB33NvayMhJ0fnkD/ 9/Jm1GOPyM73Qp9AzGkEha2x1ZU9pmvKPvwz+B0cU2UQkQI5MH7O0XxMA/mlHCzsbFWcY9Zg7GqK0P Tw7nOzbg6Vo+S5JmWj9g+YoJiwX5Uxvi5OsH4q8L5sF1WGOlAiNVUIWu/UP2uVA1OV6oL8EVfyGWSB OBEkJ25ICDg1WxzHZw7kDk3Q1S9zOnSS+CiizOnHDqsa5SWzToR/Bh5K1aRAsXaxHZJfO2fVHOty1I s/DopaeH4BwXW3hQSn4B/C8ONzylaoyAGXTwlK99Ks8xztErSq21NFZenz7zPnIYJQzpvJIsxK7raK gltBjG0cmVMx6krGd8weNSxT2NWYHAXQvAXqIl0VTCZZZpUhk59LSVUa2BTlq8OmSxvaf6i1+agfzx vpnuiMu10q2nwTxAf0eIJVwli1RpgFow17xtwOefAfVM4rSlnbpjeWmFzCPjA3oE9/JEUJKsOE/sIZ M7VleI00zWIm9d0eoYf6hNJBCVvnGvsbEQs9T7aVSyUGmMfRlQHTGDzEtqTDD3NEOD1zVI2A3Pyn3d 5Yta+5nciyX7Z0DzpOFBJ5HplZTNIWaooeEqU3kwEQ9nN4FJ00nwEnQP7CQLDW0xX2HaAH8FnKhHEL 1uVVuxuMEg2UrMmjl+YkUXK2u8oJJoPS6JzEcL3+Gx/wyAVqkxT2u8dmgAVQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_084257_870691_EB850F7A X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the sound card of SM8650-MTP board with the routing for Speakers. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts index be133a3d5cbe..d2ec0cfecba9 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts @@ -66,6 +66,29 @@ pmic_glink_ss_in: endpoint { }; }; + sound { + compatible = "qcom,sm8650-sndcard", "qcom,sm8450-sndcard"; + model = "SM8650-MTP"; + audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT"; + + wsa-dai-link { + link-name = "WSA Playback"; + + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&lpass_wsamacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed";