From nobody Wed Dec 17 07:27:37 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 446C4C4167B for ; Wed, 29 Nov 2023 13:23:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234199AbjK2NXL (ORCPT ); Wed, 29 Nov 2023 08:23:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234061AbjK2NW4 (ORCPT ); Wed, 29 Nov 2023 08:22:56 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCDAE19AD for ; Wed, 29 Nov 2023 05:23:01 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a03a9009572so914642966b.3 for ; Wed, 29 Nov 2023 05:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701264180; x=1701868980; 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=CfkdA0Hwz9iCbLXBM3d514v5FSb6t90xogBHXGVtYgE=; b=MRvnUbeyx8+O/K8Urkrp9T4QtecdSO57V1QcSiHJRbXfI4ZtSyN7hLsKka2+cBqhJv 0wswsAxqEONdovT5fmPnfoR819ucSc4O8ZHsUpQPz9XK5O7+fitjlv79RbKAqTi6ED93 7i/1C0mex8uiGJGMDpML/qKzdnk/PfEo+ReuZ3m+khMjlhI5AY9obLQ555I2DdACnjw1 XYUftQruP7bN6KLBUWY5uKs5MyxoRzpeXf/NEDUXlwyXqeAK6BB39KvMsELa4bpbREqz 9AaeBk1sIn3621LTuhxKqMKTMxbvHyUelO5h5FV1Lq3zStD6y316ee0qsYmm6xrlzYva p5aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701264180; x=1701868980; 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=CfkdA0Hwz9iCbLXBM3d514v5FSb6t90xogBHXGVtYgE=; b=EsO8MHjpiwcm8G0rS8QH+xJgMxMHPSIp/LrVY+eGltjur+pR7wg06LR60iZtoqrROQ t2eQawoXErVusVvdpMha9BJNM/ostiarx/VrsNd3wcHtCBEqVIUSlDM8KC9Q0rwQH6LE eTMM2nwSWreyJWaw8keLIfHwdIDP2zgNwjHvefuCKBztVt6gGyMyZPgadjGTa1xqPyxu wdIQhF/2cULJsgZkmx7ygAH5GfN0En6b7KQ7QUCw7Ha42K3RUvwMXQF5UYzcWlSoaWa/ OqwqhNQc0JF5B8HZWQMq9AM+cynP1VIXMCE87GEbWvcYOL1ps/i0YEeYFEMwiIMme56g MPuA== X-Gm-Message-State: AOJu0Ywuy1/eGXq3B4BEq0mOxcKvjF0XUkDzt59NRoyX2/fAyfu60KgY JGzPe0XKkBeT2W9w/dB/sMIQPQ== X-Google-Smtp-Source: AGHT+IG1rYcOn8z3qDm4n4UzglIfQF1lt59/nbIcjxTNXtzWHZxuyaIB5COAy4rgLKFLritFpLfSPA== X-Received: by 2002:a17:906:a3c1:b0:a02:2177:ad14 with SMTP id ca1-20020a170906a3c100b00a022177ad14mr11868070ejb.73.1701264180197; Wed, 29 Nov 2023 05:23:00 -0800 (PST) Received: from krzk-bin.. ([178.197.223.109]) by smtp.gmail.com with ESMTPSA id lb16-20020a170907785000b009fda665860csm7844842ejc.22.2023.11.29.05.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 05:22:59 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Neil Armstrong Subject: [PATCH 5/5] arm64: dts: qcom: sm8650-mtp: add WSA8845 speakers Date: Wed, 29 Nov 2023 14:22:47 +0100 Message-Id: <20231129132247.63721-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231129132247.63721-1-krzysztof.kozlowski@linaro.org> References: <20231129132247.63721-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add nodes for WSA8845 speakers on SM8650 MTP board. Cc: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts b/arch/arm64/boot/dts/= qcom/sm8650-mtp.dts index 656cdbc6f234..a0cd66e5cb93 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-mtp.dts @@ -434,6 +434,16 @@ &dispcc { status =3D "okay"; }; =20 +&lpass_tlmm { + spkr_1_sd_n_active: spkr-1-sd-n-active-state { + pins =3D "gpio21"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + output-low; + }; +}; + &mdss { status =3D "okay"; }; @@ -580,6 +590,36 @@ &sleep_clk { clock-frequency =3D <32000>; }; =20 +&swr0 { + status =3D "okay"; + + /* WSA8845, Speaker Left */ + left_spkr: speaker@0,0 { + compatible =3D "sdw20217020400"; + reg =3D <0 0>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&spkr_1_sd_n_active>; + powerdown-gpios =3D <&lpass_tlmm 21 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrLeft"; + vdd-1p8-supply =3D <&vreg_l15b_1p8>; + vdd-io-supply =3D <&vreg_l3c_1p2>; + }; + + /* WSA8845, Speaker Right */ + right_spkr: speaker@0,1 { + compatible =3D "sdw20217020400"; + reg =3D <0 1>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&spkr_2_sd_n_active>; + powerdown-gpios =3D <&tlmm 77 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrRight"; + vdd-1p8-supply =3D <&vreg_l15b_1p8>; + vdd-io-supply =3D <&vreg_l3c_1p2>; + }; +}; + &tlmm { /* Reserved I/Os for NFC */ gpio-reserved-ranges =3D <32 8>; @@ -611,6 +651,14 @@ mdp_vsync_suspend: mdp-vsync-suspend-state { drive-strength =3D <2>; bias-pull-down; }; + + spkr_2_sd_n_active: spkr-2-sd-n-active-state { + pins =3D "gpio77"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + output-low; + }; }; =20 &uart15 { --=20 2.34.1