From patchwork Mon Jun 12 09:57:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 106473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2484796vqr; Mon, 12 Jun 2023 03:27:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6graQG7Mj0UkAY6hFrr51jqKRwGro3FYwrAalGpk777j111L3wO0s/40IGtaUb0Ct4PM1b X-Received: by 2002:a17:907:2cc2:b0:96f:8439:6143 with SMTP id hg2-20020a1709072cc200b0096f84396143mr9547201ejc.40.1686565665074; Mon, 12 Jun 2023 03:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686565665; cv=none; d=google.com; s=arc-20160816; b=HDAGJ3Av3e7+oCM11N23rDJgU8YmMS0jOVKP0KzH10VGLGUDlSYjBfIJijir3v9TpZ o7XhVNhGzvzJRvT9q+Ab/Ti6zHiprnPymm5TYpP2sDc+MMygPqKUe2KqX/aBJ3+RY1pj YGjJLlz8NLRhYjr8KYaJ0dGjeUfY1xzEvjW7Ie8TOJOzddu84iLB2F9h/qsVbZCvszBm BKuVsTUICvISRvmJYU9PD1yV50PLaDBZJ8NNq3w5Fat/5hWzYH1lfTNnyZz13AiWppSu IdDWcET3340anWGRUAjiEYaWBlLozAqE8HN8DrRofI4coiZQMCK0mgMvsshv6ZOFEOsU Gncw== 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=PJzV8k8PINg1fP+cCISdw3LZJs7BP96rMaIUJI+fFlI=; b=O+IG+SQbD7NT/LaKfIxtJVtiMbqgd3FdW6K+hKjuD6XkU1SfHdrl+ySnSPOkMEnOnA 255nMEQPqabumzZlwlYOReB0Sa0Tp88MA/L34AOBjxljuEPKoqBIQ30IMPi5aZaSqiMp UsY1wbcMZl3ArVASOGLEQUzRC47FWLVdI5LpcmsBpeLl+YyY05uyWiaD9w/hb370HSmh +NiiYjsH5b9Ikm5oLKJ9dFtS+5Ro0mx7w66zA9oL9wPeLLBWvG9KfFC9ZwCvhAwWo6il KZeMkO187dSEz60+5HiKiQ4B6Q44nPXlMui4MydVW9zxZoX20n0xDB2b177SN9+3tFw5 cIxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pRDueYu/"; 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 v19-20020a1709061dd300b0097d7282c899si3429118ejh.534.2023.06.12.03.27.20; Mon, 12 Jun 2023 03:27:45 -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="pRDueYu/"; 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 S231418AbjFLKSD (ORCPT + 99 others); Mon, 12 Jun 2023 06:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233668AbjFLKRn (ORCPT ); Mon, 12 Jun 2023 06:17:43 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D7B7A5F8 for ; Mon, 12 Jun 2023 02:58:25 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-977c72b116fso627641466b.3 for ; Mon, 12 Jun 2023 02:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686563842; x=1689155842; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PJzV8k8PINg1fP+cCISdw3LZJs7BP96rMaIUJI+fFlI=; b=pRDueYu/tRrKVqAPFSh1p62giJ9RVa7Yo9TLHpe2QX9ej46v2Wogo2mbh8849n8ogB dPaaUGzBADFJyl2t/WTZoC9MXCBEcexqjVbxR6vrW6EIOjo7OcwcMmGnoeQHS9tsuP3V +SV3tFKnreUnzF5WizOcX6cgvGNUFx7u/HP4ksaOqhr9Y/xKjqqHkronwZocWhANGLnQ u7uGuobDV9pirCr16hxp4/FuXchXADQaY/oUHuBvvblot3QCIG/e399R+nOEQkAxRb79 28F3DN+VoBrvYWoaQVzB68j0CNl6cshrt9LPh3QcFnNB9W7cQ9bra0Iff70wbfJu698t M1pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686563842; x=1689155842; 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=PJzV8k8PINg1fP+cCISdw3LZJs7BP96rMaIUJI+fFlI=; b=ft2BPO7LSBy6gSyoBPXUFnh78PP7niUZ5+47Kv10I2hF9u7Hu/oauGl3vItavUvJ+N QFHyPA0Y4GWbehWNIGcuLQXIgWdKep3AzmN5XSUPMTCbHB/LVYZM705+QNmYfj8FPvif HDQR6XhWKmUA54rGFhF2qVmmBzSI7cRxt0AN8mQVfb1Aq8QzfZQ6Y/ea1yO9lomaV/Em Too6nZegxJdbKj7qLzyurOjUl8qzmXbei8qWECy+ikGBTUNZdB9rzrUGxs4bXUvixwUB LbAvcRWOZjkoVuDtFgz0/Tgqy8GvyIBWcFf0pb38gBWKyP7LYU3gJn0lxeiB1cBcGdkd 6q2A== X-Gm-Message-State: AC+VfDzdkigul7Rpc4GAj9SppGovQmVEWrquuO7SmhovZ5MkZRPnNohU OVCi1Bq53kgPQOCJh8qxcdJhRg== X-Received: by 2002:a17:907:3182:b0:974:1eb9:f74f with SMTP id xe2-20020a170907318200b009741eb9f74fmr7847298ejb.15.1686563842037; Mon, 12 Jun 2023 02:57:22 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id u1-20020a170906780100b00977cad140a8sm4949175ejm.218.2023.06.12.02.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 02:57:21 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Patrick Lai Subject: [PATCH v3 1/2] ASoC: dt-bindings: qcom,wsa8840: Add WSA884x family of speakers Date: Mon, 12 Jun 2023 11:57:15 +0200 Message-Id: <20230612095716.118631-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 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?1768492278594619950?= X-GMAIL-MSGID: =?utf-8?q?1768492278594619950?= Add binding for WSA8840/WSA8845/WSA8845H smart speaker amplifiers used in Qualcomm QRD8550 board with SM8550 SoC. Signed-off-by: Krzysztof Kozlowski --- 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>; + }; + };