From patchwork Fri Oct 11 15:24:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 175976 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp906504ill; Fri, 11 Oct 2019 08:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLaTRw9rs+DoCz7Vi5zGoa0MHsUEqVGI/b7LSGgWQ5TOe4HfJYI9ckwsml/WWUFXDvZHvp X-Received: by 2002:a17:906:181b:: with SMTP id v27mr14877744eje.117.1570807632194; Fri, 11 Oct 2019 08:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570807632; cv=none; d=google.com; s=arc-20160816; b=vcXcwVwvcIgt8KLkpJj7dZB9cmMxIJhWm1ricTRncMJTNkwEmfcTX53x5EL1AJ5E7s zU24j7xDoN3D1SJoBxPaPfKyedgafVhAP03/9OwOV1UPaF3BbvAC+iIbVfvaw+nI6Kb9 BnPkqx75mAnzx6smGYLeIVaQPS5030RNP81jB4V+yArKlIN3THVVasesW0sw3YCftn2t y/mlDXSi4MsUC1356PDTBpUYra05KfV9ds+hLFjQ1SiplzmrqgpeyoGVQRLke+3u3IVY olZOjDPuofJ6ORK2Syi+UxQvnNo9AA+2rxS7sI547+f1qxHwVb40j9vQYmaDrjHFzO8i oybQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8RzjK5Ht69tgaUqi7M8XuzUgX+3LalFIhFT3YvqgXYI=; b=FggfAVaL8dTbjBgIGdwFBGeKVjstARndNYuL6YmgpKCwCUMuscC7RHd+SaoVfRb77G oZcYsSC8xFqe3bjRbE7xB23ssa0i6IoWFqicP5VFOMaQlUExW7t6HqEBY3de1NgzSR1R YUN2d6kmMbFpXA+JlzVgPbtbDoe/A1N5EEPSvDB7tgXd7rK1eHyAQsUCEHmORzbBqjcp VhK50TCR9ayNOh7MqOIryQH8MXLBVP9kmEH607yX0dLhZM9DadJD3m2voDzi7txt/kVw WLRuuPq3KYdLAjbkaPVR3qq1SIsJX4W9cqkL20dN4xqBt4lWw2d5EwZKfBQaYCKKD53h c9GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=smkDpgyP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si5237329ejr.368.2019.10.11.08.27.11; Fri, 11 Oct 2019 08:27:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=smkDpgyP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726698AbfJKP1L (ORCPT + 8 others); Fri, 11 Oct 2019 11:27:11 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:41137 "EHLO mail-wr1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfJKP1L (ORCPT ); Fri, 11 Oct 2019 11:27:11 -0400 Received: by mail-wr1-f54.google.com with SMTP id q9so12394932wrm.8 for ; Fri, 11 Oct 2019 08:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8RzjK5Ht69tgaUqi7M8XuzUgX+3LalFIhFT3YvqgXYI=; b=smkDpgyPUSRs3qWiU19SbRGZJoJ00Tl2Mk2aMAhPuQjVoakddit71i7zOGifuz6s9b 08c/rchHohR8rKZwiFQi0ApGao+RWbpHUPcywc6LBymwM3FIBiogo53kGp57SpJKD7ak nXIuPM7llcdu4AI2wIr0DQ1tpwKJ18Fzi3lvCBk20SNjl44Hsj8mIRGOJrk+W9/TSQxO HlybBTHjE7/4NhsHCM/q8oSszBr/nLAdN7k+x6KX4PukJk37OAsDArI3YaCirXsw+UL4 vxHLT7EFUGSk/+KY4B17wxSPufn/wMWlVSYFZQMsOfK4pPOn91rPIbwU1My+jhxuCib4 fP7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8RzjK5Ht69tgaUqi7M8XuzUgX+3LalFIhFT3YvqgXYI=; b=c1nqjrkibRj/8LLOkFDW0S1w9eHM5R5YqHpaLR2fhVQUif4lQBDbJi/46WlC1ONSlr MBImFDL4u4DJt/9ark2ifvskocrSuRTZZYVIXqP9f+SJBuITIHyYpAhl+lMmCYjZ7Vox Uo1vWS7N/yehlHVm49ROR1NcRZW+X5OwpdgOS8cSo7FsGssTKA/wqnCwdtawpdM9nzOK oq1Yn0+yhEpXcni3rqwaLRbgfsWOXsxSjfLyId6iGbdD2Xj9uDxTQUgxH7YnD4bVKgVR dirH3eItkXwLxzZ4E04ODGvvuu0W/+4daxWM01qikX8JTcQyJpmDS3JMx9Xpzaw9rPGo 32pw== X-Gm-Message-State: APjAAAVfre4TEtq3Xx4tWFbN3yllJwGyUJxtAf45AOS3dQzz+DOi5Fz3 tJC8fkfn39u5ndB7glGAw+MwXF5ef4E= X-Received: by 2002:adf:f306:: with SMTP id i6mr14115948wro.196.1570807628953; Fri, 11 Oct 2019 08:27:08 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id a204sm16439979wmh.21.2019.10.11.08.27.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 08:27:08 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh@kernel.org Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, spapothi@codeaurora.org, pierre-louis.bossart@linux.intel.com, vkoul@kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v8 1/3] dt-bindings: ASoC: Add WSA881x bindings Date: Fri, 11 Oct 2019 16:24:44 +0100 Message-Id: <20191011152446.5925-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191011152446.5925-1-srinivas.kandagatla@linaro.org> References: <20191011152446.5925-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds bindings for WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier also has a simple thermal sensor for over temperature and speaker protection. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../bindings/sound/qcom,wsa881x.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml b/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml new file mode 100644 index 000000000000..faa90966a33a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wsa881x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bindings for Qualcomm WSA8810/WSA8815 Class-D Smart Speaker Amplifier + +maintainers: + - Srinivas Kandagatla + +description: | + WSA8810 is a class-D smart speaker amplifier and WSA8815 + is a high-output power class-D smart speaker amplifier. + Their primary operating mode uses a SoundWire digital audio + interface. This binding is for SoundWire interface. + +properties: + compatible: + const: sdw10217201000 + + reg: + maxItems: 1 + + powerdown-gpios: + description: GPIO spec for Powerdown/Shutdown line to use + maxItems: 1 + + '#thermal-sensor-cells': + const: 0 + +required: + - compatible + - reg + - powerdown-gpios + - "#thermal-sensor-cells" + +additionalProperties: false + +examples: + - | + soundwire@c2d0000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x0c2d0000 0x2000>; + + speaker@0,1 { + compatible = "sdw10217201000"; + reg = <0 1>; + powerdown-gpios = <&wcdpinctrl 2 0>; + #thermal-sensor-cells = <0>; + }; + + speaker@0,2 { + compatible = "sdw10217201000"; + reg = <0 2>; + powerdown-gpios = <&wcdpinctrl 2 0>; + #thermal-sensor-cells = <0>; + }; + }; + +...