Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2484971ybl; Thu, 29 Aug 2019 08:48:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqynlneWAKrcgZ9yK31/WZzkO2xKu4rno5tmsJn+M0fbk31sQBoY9rKMMEt6mMDSM4sFirKH X-Received: by 2002:a17:902:41:: with SMTP id 59mr10948204pla.268.1567093714157; Thu, 29 Aug 2019 08:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567093714; cv=none; d=google.com; s=arc-20160816; b=n71PvhEfCpTTxhdEB18a/VhicckSgWwrM4DLgmtQ1+koarVxa0OK17LRKr4Yt6n5rP k7wZn6ixOWY5rRLIRqKbbpoTPc9qEwhKREOW1VBHZIp3NZFIAQMO3i+3h5v8AqLOPPu5 jrNH9bu9iJ6Et01fbF/ESyU5mXNWi1zR1hw5z2JhybYRA4EXBKS2m368wIFx82/uyPbM WKI+eUh8rIvtM73S+Jwu96LDIvRx+iSM6gjWBX0N0kNCkY9w9d0P8+yQUKh+ezHRtvp7 2I+bOVkrs9aGxI0zhb8Ljt+Bw0QU4PmaP6XEciozVBMSbF5DECr/Lc7SjYF/DkmSW4Dc k/7A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Aaw5MPLGPnpP7hqH6Z404TXcUkGBN8Qiv1+S+/xAVYs=; b=dPfVgYxCuWQu1HZhO6vu/QRFu8d6AW6rIAng/pk5h0SCUTypplrFKshLGi52ePJ62j CuWh4Rgl819yTyn6AHEsBk41W5ZZGShZkdq0Hr1TsVBMCqqerhmC1h1OUI7hTSeQPAIT Ja0O7QQzDysSOkSS74SvTKn9ZuNgXUNSajHwcmhcX1xy3CRSMj2mFvDgoZkP/rtEspi1 jm/U/cATUNyHY5Q6vqizmGMmtMtrTYlHiQBOyKd8LmY3584Hmo9PtceFlY9CCxJrOA9L bGsDlwiLrYku98PwXVQAos44rOhpFKh3MhRgvyQhl+nGxHR3AuIRHbgBT+a1ngutvLFW jzpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rT/NyY7c"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si2378073pgt.495.2019.08.29.08.48.18; Thu, 29 Aug 2019 08:48:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="rT/NyY7c"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728162AbfH2PrG (ORCPT + 99 others); Thu, 29 Aug 2019 11:47:06 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39449 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbfH2PrF (ORCPT ); Thu, 29 Aug 2019 11:47:05 -0400 Received: by mail-wm1-f66.google.com with SMTP id n2so2974597wmk.4 for ; Thu, 29 Aug 2019 08:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Aaw5MPLGPnpP7hqH6Z404TXcUkGBN8Qiv1+S+/xAVYs=; b=rT/NyY7coIzUv343vYFq7wWdbCT9F36sX/Fd6Rlbe3nR1U5cXovKf3nwRpsN5ymTP2 7LMZIqiDpQFCLumf+0JpXoro1S2r6fH0v1306RPD20/tJ8mvLQYSjJOIfIQaY0Y3pQPr 99W6gR6/jLWLGvDDofIljq356uA1jBGBJALq80cVFTyJukUm99qydHoHvRilQORJWXgW nGPJffv85OVoJjJyNuK4IFfnJ1C+f+zhmkaXcjFUWvaK6Q7Elr/jeRKFlvAmZHYWytVl k1IG+USz73jXlWv1q7KEsmxB7qQvTpWLp2zmZnGgOp2kCP7UHZSa3Uir1Pp9NkmphXpb 27EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Aaw5MPLGPnpP7hqH6Z404TXcUkGBN8Qiv1+S+/xAVYs=; b=XFwQgF//649d7xYb4VKf8QwVgr5M8QrNCi6I0WYhwtbFBJLuagdo2jntB5qojXkq6J IU95H0C9TPV4qCgkBzMmyW3BDxw5wdVQiXyrkqMOMyq0hVcPPAZGHd9i6n/+qmGXVjgm Ek+0FDpkKSv+cGTmBJ/utO2vZ230tqc4G20mQfxcSSVQ91gCIenbzyE7G/jXW3g1DODi pgJBoNq6l32HlICfXellWgrizc/5iwMytQiTLBKzoYHr9z3gbf3T6Q2zMEC+MXSrhvYO yJNnx3EgHZah7GIV3PXqqzNMMytF62VYJcJXHsAY+3nnj18fBM0/omHkT0Bd7h9RQzya +MEw== X-Gm-Message-State: APjAAAXD2nqAcAIOJ7jA/mw3Gp+0Ad2Z6JnE9ftMd40RDThJ8taWCcJi WdLnDPr3T5ev6walMtHRYcQPKQ== X-Received: by 2002:a05:600c:386:: with SMTP id w6mr791462wmd.152.1567093623775; Thu, 29 Aug 2019 08:47:03 -0700 (PDT) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id n9sm3284805wrp.54.2019.08.29.08.47.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Aug 2019 08:47:03 -0700 (PDT) Subject: Re: [PATCH v5 1/4] dt-bindings: soundwire: add slave bindings To: Rob Herring Cc: Mark Brown , Vinod , spapothi@codeaurora.org, Banajit Goswami , Linux-ALSA , "linux-kernel@vger.kernel.org" , Liam Girdwood , devicetree@vger.kernel.org References: <20190829144442.6210-1-srinivas.kandagatla@linaro.org> <20190829144442.6210-2-srinivas.kandagatla@linaro.org> From: Srinivas Kandagatla Message-ID: Date: Thu, 29 Aug 2019 16:47:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/08/2019 16:42, Rob Herring wrote: > On Thu, Aug 29, 2019 at 9:45 AM Srinivas Kandagatla > wrote: >> >> 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 | 72 +++++++++++++++++++ >> 1 file changed, 72 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..449b6130ce63 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/soundwire/soundwire-controller.yaml >> @@ -0,0 +1,72 @@ >> +# SPDX-License-Identifier: GPL-2.0 > > (GPL-2.0-only OR BSD-2-Clause) for new bindings. > Okay Sure will do that! >> +%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 >> + - Vinod Koul >> + >> +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(@.*)?$" >> + >> + "#address-cells": >> + const: 2 >> + >> + "#size-cells": >> + const: 0 >> + >> +patternProperties: >> + "^.*@[0-9a-f],[0-9a-f]$": >> + type: object >> + >> + properties: >> + compatible: >> + pattern: "^sdw[0-9a-f]{1}[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: >> + Link ID followed by Instance ID of SoundWire Device Address. >> + >> + additionalProperties: false > > I'm pretty sure you'll want nodes with other properties. If not, then > why are they in DT? So drop this. will do! > > Both the controller and child nodes need to list required properties. > Okay, will spin that in next version! Thanks, srini >> + >> +examples: >> + - | >> + soundwire@c2d0000 { >> + #address-cells = <2>; >> + #size-cells = <0>; >> + reg = <0x0c2d0000 0x2000>; >> + >> + speaker@0,1 { >> + compatible = "sdw10217201000"; >> + reg = <0 1>; >> + }; >> + >> + speaker@0,2 { >> + compatible = "sdw10217201000"; >> + reg = <0 2>; >> + }; >> + }; >> + >> +... >> -- >> 2.21.0 >>