Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4572121rdh; Wed, 29 Nov 2023 05:23:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFVpOwVXnUkSJpcbUMU/reWz+taF6Vy51HxOPrOXxYVaxNm7drAvuTOy7rfFttIB9yQ1rA X-Received: by 2002:a17:902:dac4:b0:1cf:f353:6e47 with SMTP id q4-20020a170902dac400b001cff3536e47mr7266802plx.20.1701264226920; Wed, 29 Nov 2023 05:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701264226; cv=none; d=google.com; s=arc-20160816; b=fW9ibD4mRh8UZHaFsqsCl/h7S5uHGHIcPl+wIVLEOEWgW2ePz3nfsfEmy1G/Qz/FAO ba1nQVrj+bnehPmby024fuwIa0Kk5H2+6A+VluSwhvmOgMZeIEPZgKbJMXByL64jMnDd OZmDolidJf8JQ3g6HO1lUUKcBKHx+onf10CeK6h+ZSC+rKnspLZx8NXXE8JT13yAQ47M SDGW3Og/r1pWsX3lQR1PXpJ1WiPCmc0O1dLUUsyURO0nfiBLNcq2NzBXnbofllTVHqhE 7MG1fyUjoLClDa7yOc8U/cIJY5NP5aEMhfgK11A3bxZGsAigQMKrC2+v7JC/M42U5TrD hW+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CfkdA0Hwz9iCbLXBM3d514v5FSb6t90xogBHXGVtYgE=; fh=rLQyt8nh5ayRdZ3xO+plSlJsFGefD4yb0k+9Grdc/9g=; b=uLc89o+w6MrrPTBahLWpvvmd/7so7Uh5WZypo8cxW28IXDH9TtkwM6e7jYveroNR24 V5TJbhRO8LXVQUCSDuJuXJ5kjaAcGWBsVBhyGgSQWPN27paoQ1d3wZLaHx0El1O7xj+0 8QyWl5QYZAc/7FKMsV+fDvrTDTCHSbZimV6UcLKV5hxkmjMb7HPlMR0yTjIqWSrM90F6 WtdNZclqPCUFbNm0gPdmECl/dXfCvjq5KiPd9fiREH7XSSIozcZ3dPLKugRs+MtkkInE dXrMauIRgzJyqQ9j3njm+qj4ze1o0vATQjEcPnIvAvsAy834UM0zHR24bsUPPvYF+ksz QfTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRvnUbey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ji22-20020a170903325600b001cfbd995c66si8451056plb.122.2023.11.29.05.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 05:23:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRvnUbey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2C94381EE3AA; Wed, 29 Nov 2023 05:23:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234003AbjK2NXK (ORCPT + 99 others); Wed, 29 Nov 2023 08:23:10 -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-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: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 05:23:44 -0800 (PST) Add nodes for WSA8845 speakers on SM8650 MTP board. Cc: Neil Armstrong Signed-off-by: Krzysztof Kozlowski --- 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 = "okay"; }; +&lpass_tlmm { + spkr_1_sd_n_active: spkr-1-sd-n-active-state { + pins = "gpio21"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + output-low; + }; +}; + &mdss { status = "okay"; }; @@ -580,6 +590,36 @@ &sleep_clk { clock-frequency = <32000>; }; +&swr0 { + status = "okay"; + + /* WSA8845, Speaker Left */ + left_spkr: speaker@0,0 { + compatible = "sdw20217020400"; + reg = <0 0>; + pinctrl-names = "default"; + pinctrl-0 = <&spkr_1_sd_n_active>; + powerdown-gpios = <&lpass_tlmm 21 GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + sound-name-prefix = "SpkrLeft"; + vdd-1p8-supply = <&vreg_l15b_1p8>; + vdd-io-supply = <&vreg_l3c_1p2>; + }; + + /* WSA8845, Speaker Right */ + right_spkr: speaker@0,1 { + compatible = "sdw20217020400"; + reg = <0 1>; + pinctrl-names = "default"; + pinctrl-0 = <&spkr_2_sd_n_active>; + powerdown-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + sound-name-prefix = "SpkrRight"; + vdd-1p8-supply = <&vreg_l15b_1p8>; + vdd-io-supply = <&vreg_l3c_1p2>; + }; +}; + &tlmm { /* Reserved I/Os for NFC */ gpio-reserved-ranges = <32 8>; @@ -611,6 +651,14 @@ mdp_vsync_suspend: mdp-vsync-suspend-state { drive-strength = <2>; bias-pull-down; }; + + spkr_2_sd_n_active: spkr-2-sd-n-active-state { + pins = "gpio77"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + output-low; + }; }; &uart15 { -- 2.34.1