From patchwork Fri Jun 16 11:57:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 109087 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1307686vqr; Fri, 16 Jun 2023 05:33:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YVmh+0GW3thv/ZGeTi5xTSXXk7L3E/7klBxaeSzaemctz7iBl6Nsoo13c2JMoohQLMZ1I X-Received: by 2002:a05:6a00:24cd:b0:64d:1451:8233 with SMTP id d13-20020a056a0024cd00b0064d14518233mr1976580pfv.21.1686918838586; Fri, 16 Jun 2023 05:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686918838; cv=none; d=google.com; s=arc-20160816; b=B0kj8MMeJTZK7zbZo4T2t+0jB7Nw81av5ohxPCdSWjGLvbRU0uSJ26cRXVNUMPYGrl nuzTmwIUW9ymZTK/BzKyF/IsqmtdiKZz5jFFrM6rcQZXWSapt5oJu+i1cPJ0E4jaBh9N vQncwhMF6/C738HB1sSChNGtTgB9IEEod/mcTT21O/IBkQQEq7QRH5LRfVqPmkPc8P3f IGcH+bKEg+b1pQRaw/3HBT/VyZ9hy6T31JT3I7ll4CNvRzHkkqrXdjKPqI+lo4RTuW1N JR+M1gSRy77L6NirzMEuQVswv9mBZo8Y2Sc3GVh3YnlCuQtwHcDwc23UXUs80FV/Xf05 WhxA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=aCcBymWVvFUYBpDZiz8yU1Vny7cOsw1jZWNc7ndk0g0=; b=FAKEmDUWw1C55mc/qQJk9k0t3bXoCR6UOhJd13kBuLelFRDUyDbO6Zi3bKq9p6tY9X fz4USmOtR3p8DUJurEemr2Z3nK1TEv81mK77fa7OMuJ4jyB2/ya5ZjnbZYj7OFGdysZY qeD1EBo8ilhybb6FuiD0Vu8rYQSceWLmmYu5h4bk7eUwjcoT03RlBDlR9ErZuXpPVDDz CqMr/sz488Si6f4WnC2ELwmCP3hPz8CZQmi2h0QMxk2FOPpSTHACU6kfa/++DUet8HuF DwwttrwKC7Z3jydTTk4nBpEZDalxm55FFq+16ngmCDBKynsd4kT9vALI9QJfVqjeJ3Xi uDww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gqCyE0hm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b0054ff739cfa2si3367027pgb.449.2023.06.16.05.33.43; Fri, 16 Jun 2023 05:33:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gqCyE0hm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345054AbjFPL6R (ORCPT + 99 others); Fri, 16 Jun 2023 07:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345215AbjFPL57 (ORCPT ); Fri, 16 Jun 2023 07:57:59 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F0852944 for ; Fri, 16 Jun 2023 04:57:58 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-982a99fda0dso84644766b.1 for ; Fri, 16 Jun 2023 04:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686916677; x=1689508677; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aCcBymWVvFUYBpDZiz8yU1Vny7cOsw1jZWNc7ndk0g0=; b=gqCyE0hmXsh5+SvPr4OtsUuNGaxP4q3VKwqLomoxeLqsyxVvM54E9sDqWkU7Bh1nJ1 Mzqu5MZLDqSPGBAQFRES9i88e7cqUWq6rnwxNXNL7tzsoi2f7mRzHtt2Gm+WzMzSR/Qh cssftCLEP0z0dXLpUOSEog8oIUg3lBKoxv9LrW3+Sq8+zyzfo8n5twzwQrkonoMRcCe2 Ct9CrZ4L3ceZ5ReVNuxtBnJJmZQkhd9ltJBbHgzZaemGxAxeaoHPWQqPpNRF62TRAEft bz9A1iWyo9/1VRN/1G5UC3rpjbV1w3tMVut/aeuWu8n3DiLa7AQQj3Ed59gUf88Hx2QT //PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686916677; x=1689508677; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aCcBymWVvFUYBpDZiz8yU1Vny7cOsw1jZWNc7ndk0g0=; b=FAyHNSfbkwz/XrgThmPhX548nGRE/6Ts8dC7URqpeWt2X6x1msj29IhO7FrzHsp8e3 R5Os0Ci7I78viSmCbRg9x+Thb9i1uvwOcss4RiZAQxuQsAUHGU/jJef/gzGS6Q3qA+LP BYKZO4ZfMEr7rq274ZhL7zTvzFqR5FNtYT4coO+Bc8rr1NiY94p0st+lomWBubhfyCtO PT87h4VLSD060f+LALc2MNKL6XXxBeiox35MYjUmZdmrx8AIuk45KPdDkmNO538BtdKE YFO0ciiqniVQ4iHu53EPErRwXArMQsUxDb8RDAoRxVQaEJrhfYfIfbO0nrMQilHsOQPo 3Bng== X-Gm-Message-State: AC+VfDxvwp/OXxRg70yTNOut3kOPlQklkJIFy9L+5H/5B2mi920HPn5d pz5uQ2iKEFD2qC7LXP/5cpBInQ== X-Received: by 2002:a17:906:f1c3:b0:974:419d:7837 with SMTP id gx3-20020a170906f1c300b00974419d7837mr1304247ejb.34.1686916676767; Fri, 16 Jun 2023 04:57:56 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id g19-20020a17090613d300b0097889c33582sm10723823ejc.215.2023.06.16.04.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 04:57:56 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Andy Gross , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Patrick Lai Subject: [PATCH v4 1/2] ASoC: dt-bindings: qcom,wsa8840: Add WSA884x family of speakers Date: Fri, 16 Jun 2023 13:57:50 +0200 Message-Id: <20230616115751.392886-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768862607771496035?= X-GMAIL-MSGID: =?utf-8?q?1768862607771496035?= Add binding for WSA8840/WSA8845/WSA8845H smart speaker amplifiers used in Qualcomm QRD8550 board with SM8550 SoC. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes in v4: 1. None. Changes in v3: 1. None. Changes in v2: 1. Correct compatible (sdw version 1 -> 2). Cc: Patrick Lai Cc: Srinivas Kandagatla --- .../bindings/sound/qcom,wsa8840.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml b/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml new file mode 100644 index 000000000000..e6723c9e312a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wsa8840.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WSA8840/WSA8845/WSA8845H smart speaker amplifier + +maintainers: + - Krzysztof Kozlowski + - Srinivas Kandagatla + +description: + WSA884X is a family of Qualcomm Aqstic smart speaker amplifiers using + SoundWire digital audio interface. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: sdw20217020400 + + reg: + maxItems: 1 + + powerdown-gpios: + description: Powerdown/Shutdown line to use (pin SD_N) + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + vdd-1p8-supply: true + vdd-io-supply: true + +required: + - compatible + - reg + - powerdown-gpios + - '#sound-dai-cells' + - vdd-1p8-supply + - vdd-io-supply + +unevaluatedProperties: false + +examples: + - | + #include + + soundwire-controller { + #address-cells = <2>; + #size-cells = <0>; + + speaker@0,1 { + compatible = "sdw20217020400"; + reg = <0 1>; + pinctrl-names = "default"; + pinctrl-0 = <&spkr_2_sd_n_active>; + powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + sound-name-prefix = "SpkrRight"; + vdd-1p8-supply = <&vreg_l15b_1p8>; + vdd-io-supply = <&vreg_l3g_1p2>; + }; + };