From patchwork Thu Aug 22 23:37:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 1151895 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="iY8KkGny"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46F1Dx23jlz9s7T for ; Fri, 23 Aug 2019 09:38:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726941AbfHVXiY (ORCPT ); Thu, 22 Aug 2019 19:38:24 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43705 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbfHVXiX (ORCPT ); Thu, 22 Aug 2019 19:38:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id y8so6922747wrn.10 for ; Thu, 22 Aug 2019 16:38:21 -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=v9d/d2yrBEqMxyVUvtC9u6negI/GjvLEoHxmexWbzCs=; b=iY8KkGny6S220CBXX2T7jx7aefiA/Vv9UW3QwrB0vE6NsZzkssDjbQ/bqISsNMr80C snZNROcyoPxTJANixCShBxYCPwef2G1XRNNnRwPt8FPSQ41rPrMwgvRmDASB4zORtAqS 155MxZU4FDxfhEGlHROWjCInOdhNnTflCdjMCad8pLYGlL8BwJi0tqMo41esglBi5nq9 yULUr3pC02vNc+AvLIBxF9pEpinv+p6LyRSfr0Ur1JgCbnVw5GMa+JdDTIolnEmog9f/ z62M3Zu8A9AVIhyYo5xGPz94gKkhGTVQHyShMCSKbpGZxJ1UwbVMFXabe4ulvStXytel IR3Q== 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=v9d/d2yrBEqMxyVUvtC9u6negI/GjvLEoHxmexWbzCs=; b=Lif30VXdN6cuKm2siWcGaJXvC/HIJdcsxQCslmcbCRZtbNrZ8F8vyg2K9q2Q8mqI6P nNz9A+XLKSzQ681GnJngfJSiQyZaB6P8ewf0MaEYBw+toBc9tLExKAxtA9wkYL2H10O0 3swbln/nIBVQzb3iNA3XFEY8+0KrBcOxWp/Yo+hAkxQ1f0X2Z+Ui04LEVGs1BaDCIrq7 sCswCAAc/keV4SLv7ZTgnBKtmBEOpnuaCx4nSdVrksOq7Z0HGkytcGyn96YEKVSZ948U +bLtKYwBFYMuJ/2be0ubTBv8KpQJ+vjIZENZXPh5x7A4iW+pdXvI08oWx8t2CNxtf1NO NOLg== X-Gm-Message-State: APjAAAUW5Wr/ehDTRpXjowHNsvH4lFVfVGrH7yAmSFeBk49WAWG/Hsu1 +rBHApdsiRIhq1hWf40eCmSYxg== X-Google-Smtp-Source: APXvYqwMxr4euoSdw6tZMAdlKkFkMJJqaYyCS3rH1/SXz/TqB1Qdw0hIvcFUY+AWWGrgVadPjNubyg== X-Received: by 2002:adf:d088:: with SMTP id y8mr1279072wrh.181.1566517101130; Thu, 22 Aug 2019 16:38:21 -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 f134sm1705157wmg.20.2019.08.22.16.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 16:38:20 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, vkoul@kernel.org Cc: spapothi@codeaurora.org, bgoswami@codeaurora.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, devicetree@vger.kernel.org, Srinivas Kandagatla Subject: [RESEND PATCH v4 1/4] dt-bindings: soundwire: add slave bindings Date: Fri, 23 Aug 2019 00:37:56 +0100 Message-Id: <20190822233759.12663-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190822233759.12663-1-srinivas.kandagatla@linaro.org> References: <20190822233759.12663-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 Soundwire Slave devices that includes how SoundWire enumeration address and Link ID are used to represented in SoundWire slave device tree nodes. Signed-off-by: Srinivas Kandagatla --- .../soundwire/soundwire-controller.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/soundwire/soundwire-controller.yaml diff --git a/Documentation/devicetree/bindings/soundwire/soundwire-controller.yaml b/Documentation/devicetree/bindings/soundwire/soundwire-controller.yaml new file mode 100644 index 000000000000..91aa6c6d6266 --- /dev/null +++ b/Documentation/devicetree/bindings/soundwire/soundwire-controller.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soundwire/soundwire-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SoundWire Controller Generic Binding + +maintainers: + - Srinivas Kandagatla + +description: | + SoundWire busses can be described with a node for the SoundWire controller + device and a set of child nodes for each SoundWire slave on the bus. + +properties: + $nodename: + pattern: "^soundwire(@.*|-[0-9a-f])*$" + + "#address-cells": + const: 2 + + "#size-cells": + const: 0 + +patternProperties: + "^.*@[0-9a-f]+$": + type: object + + properties: + compatible: + pattern: "^sdw[0-9][0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{2}$" + description: + Is the textual representation of SoundWire Enumeration + address. compatible string should contain SoundWire Version ID, + Manufacturer ID, Part ID and Class ID in order and shall be in + lower-case hexadecimal with leading zeroes. + Valid sizes of these fields are + Version ID is 1 nibble, number '0x1' represents SoundWire 1.0 + and '0x2' represents SoundWire 1.1 and so on. + MFD is 4 nibbles + PID is 4 nibbles + CID is 2 nibbles + More Information on detail of encoding of these fields can be + found in MIPI Alliance DisCo & SoundWire 1.0 Specifications. + + reg: + maxItems: 1 + description: + Instance ID and Link ID of SoundWire Device Address. + + required: + - compatible + - reg + +examples: + - | + soundwire@c2d0000 { + #address-cells = <2>; + #size-cells = <0>; + compatible = "qcom,soundwire-v1.5.0"; + reg = <0x0c2d0000 0x2000>; + + speaker@1 { + compatible = "sdw10217201000"; + reg = <1 0>; + }; + + speaker@2 { + compatible = "sdw10217201000"; + reg = <2 0>; + }; + }; + +... From patchwork Thu Aug 22 23:37:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 1151896 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="QVFV+tCm"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46F1F73Xyfz9sND for ; Fri, 23 Aug 2019 09:38:35 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725934AbfHVXie (ORCPT ); Thu, 22 Aug 2019 19:38:34 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39705 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbfHVXiZ (ORCPT ); Thu, 22 Aug 2019 19:38:25 -0400 Received: by mail-wr1-f65.google.com with SMTP id t16so6946983wra.6 for ; Thu, 22 Aug 2019 16:38:23 -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=jKItD6VTynhG44BbTNA1tEZDVFXwDRIxmLymjPcSI/g=; b=QVFV+tCmy73EcWKH38tXOwHM6SjX/FN3fkinZ7uN/cE2EylFPohB4Y1zd2SHcj7jlV 2FEPd68dT+aA3c5GZ1Rn9TorNwaCs2Lbq8cdHyCbTe2Y0+4ohF3kEvIQ97cbOR8fVrd8 P5oeaNwy35bkTttplbIAsm8Ek0dt4krXJs+Pxo7LtnziZnoklTADfgvQ64CL1Tkd3Hpt j0CNaeNBlnMKXAaR6v0fZvv1yX647dEYtqq3pVywqhF/9+Oo8ZNoMRgSFVWL15+ia7Kn kw3vwnq0dVB7Z6McBw6FakPSQ5Hj/AR3es/4NhqknOUsek+vamh/fGQvPkGQS9pvxUmb Bakg== 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=jKItD6VTynhG44BbTNA1tEZDVFXwDRIxmLymjPcSI/g=; b=oFZd9uRll6vD494lBYxRpsJYYlDWDyA4hvs02QKGKimiEEfUWX2n7Pih75+ZhWx6My LUsF/e5jE7teoTlG752fyN33u0cr6/hxlUF3AvgLremowAZaNHpL1QHQXyfZkHK1Z27h gbItxoeSz/DsjpDuMImk8i4DyZ6FvjWVIbSiAGLdNKa49xrnwBPDtTL8C+Shy72bbyk0 kGpr1O61Yy+u36PKg1Y+LvFYwg8ExzPiXDFLjWv2Lak+l21vitzWHLMFz0yzp4XEEByt RPppPTqlYlhMNUgThDGC0N15jX0csjbY0sEM+wAmcqvEdRVgSTISz1NQoGkArYBZSy9/ hZNg== X-Gm-Message-State: APjAAAUlf0j5B18wyFbLxSQ/oNLNyAh5d4uKsXwGqF73zYN5O6QVasw7 OHq2wlTbPMKl669Q9XX1WNBoAQ== X-Google-Smtp-Source: APXvYqyVlH6GOM5XCUzQUNZg2t2gprlrtcS5VkO7+x5WYPnk12cSbxatchRYDwtle4pkss+6BBvh9g== X-Received: by 2002:adf:db01:: with SMTP id s1mr1357911wri.164.1566517103228; Thu, 22 Aug 2019 16:38:23 -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 f134sm1705157wmg.20.2019.08.22.16.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 16:38:22 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, vkoul@kernel.org Cc: spapothi@codeaurora.org, bgoswami@codeaurora.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, devicetree@vger.kernel.org, Srinivas Kandagatla Subject: [RESEND PATCH v4 3/4] dt-bindings: ASoC: Add WSA881x bindings Date: Fri, 23 Aug 2019 00:37:58 +0100 Message-Id: <20190822233759.12663-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190822233759.12663-1-srinivas.kandagatla@linaro.org> References: <20190822233759.12663-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 --- .../bindings/sound/qcom,wsa881x.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml b/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml new file mode 100644 index 000000000000..ad718d75c660 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0 +%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 + +allOf: + - $ref: "soundwire-controller.yaml#" + +properties: + compatible: + const: sdw10217201000 + + reg: + maxItems: 1 + + pd-gpios: + description: GPIO spec for Powerdown/Shutdown line to use + maxItems: 1 + + "#thermal-sensor-cells": + const: 0 + +required: + - compatible + - reg + - pd-gpios + - #thermal-sensor-cells + +examples: + - | + efuse@1c23800 { + compatible = "allwinner,sun4i-a10-sid"; + reg = <0x01c23800 0x10>; + pd-gpios = <&wcdpinctrl 2 0>; + #thermal-sensor-cells = <0>; + }; + +...