Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp722154lqb; Wed, 17 Apr 2024 08:57:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8vSKs5efxmnYVbXw105QeaDwwzRxX3i5kAl6FcizN8ak4oZg5r4AozR36Jv0kOGuJkytmzySUHJ/8kjwDLPSmw86CSN4zfp+HTtEQUw== X-Google-Smtp-Source: AGHT+IHpAeikm7pGQ4Z0YHENa+O/CUXaAKb8gxJQVb6s0kDHTAwB58DRnhmsfzzEMELO/WAJNrr4 X-Received: by 2002:a17:907:6d24:b0:a52:3442:c147 with SMTP id sa36-20020a1709076d2400b00a523442c147mr15373343ejc.18.1713369450575; Wed, 17 Apr 2024 08:57:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713369450; cv=pass; d=google.com; s=arc-20160816; b=I29ZzyyYsp1nDw/CFwsA8rC73sp/ZCJXebD+d0am9AwrHh18LfXU8pvrqZMKTf+Drr CAEzKMS25jSbvIXm9G+1SC8+94+xOgIyI92xuz6HSI0mpIXqw7J64TCa+V9my7CS0L42 NXBH5lsn+/iyF7g+lYFyahFEPrLkbRkITsVja82+UnOI+iCH1ITZm5Oeo/r3AnQ/euJT LzLFkTtaB+aos6e9KnuFE3/O1zbwUXdBzkfaSW4bqWiLWxPT0OqvXCorjy8gYnnQujDI S0szcdhmi7weoRrlYTS8/dpL1NDv5PTwSvcWup4VTDOu3e/ww6/+nYe7fm3u2hmDMqg7 xKvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=KMUYj6e/5XORpUesjWtKKcUc/dvGTa/0vA881H+ucN4=; fh=RYke0ut8ZIeVSZKN/WAjvnlnch6CC3K5X1J40BSRdmw=; b=gCacRIqTIcxn0v4TeIqelOFfwxznOg7TioubjJsdA21qHd9onnwgNIYcxLJC8QvYQo 1HOFLZQqBIESY304wsjGBDXE3wtNeAGNrpacUuVTeuNfGD9Ko29DoWkvCOeUhmzgZqOO 6ejV8+jT8GWwbjjaVDJ3lfBt5/b97ss8V0FkjqhxpFCUUrDQOPoyRqMLXyK2vlJVFBva 6uoaiI6WTM0UB/SJGWYY2cAKVdHjY8RdU9ZHZpizW/TK/d8NE6uTHf/s1QhB0I11d19S 9kf+3+MZxHzJof1p7sC4hOaA0aoNfVPC/w77blELoNkf1JhJmPVv1sgV9S0yvVh7WR+N slbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JT93LwK4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cw15-20020a170906478f00b00a555ee33cf3si627362ejc.569.2024.04.17.08.57.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:57:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JT93LwK4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DC78B1F228F1 for ; Wed, 17 Apr 2024 15:57:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98C0D14882F; Wed, 17 Apr 2024 15:56:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JT93LwK4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85B77147C9F; Wed, 17 Apr 2024 15:56:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369397; cv=none; b=KKufrYpXLLftDAX17oKVV/ks7Wd4vRq1CpxwCUyiqP1AnCSadN2esb68+cx2eotMsz7R/kiLeuDiABOj8PbOmWJge9KjbuxWwrEQo6IsCdQdOjKY+NbiVYr3re06uE4CwQ1MNyroFXd0AwdVMttyGig9LfU4ourvMIBpm4TJlpc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369397; c=relaxed/simple; bh=vNcaPBrZO+ppAKRbORNz0nJqGNldg2Yat0x53LVhO6c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TwZ0+ssa+9i90FFiblevi9ggtbkfdu31btjHmoZV+y9ZzG7z5n2itE7CLO0pApnMHLTL+ZWzSpVXrFpuE9FTm6fs5h+yb/SmUBCRwS5eWRjsc/qgB8pYRPDnk6EcLREYs1w35HLIew1/AxR2lo+DWcfPh4lV5tEaubTvzx92yz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JT93LwK4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5D84C072AA; Wed, 17 Apr 2024 15:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713369397; bh=vNcaPBrZO+ppAKRbORNz0nJqGNldg2Yat0x53LVhO6c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JT93LwK4URemeDxxnQXFbKdAsHWRH02//UQVW/OGjosw4wKpyBgS/LjOHHSLucPFY GBHaU0xEeyVT2snGjrD4cvhebAJDa9enBKIHESiZjxPBsUOV8upfoivHaUTZWqNQHU Gk1M7HBdVMAL/wft4y0SUCDnIs1rhBhzJlHIbwJgZT9OO2TyoRhCJQRUcO2hQmpTpB O5rN0KrwWQtfEUCBv8Pnh4I8Ag5fmNbjfn8+6bXddvEDRoexOWyPpN/i0Y0iz3P1qf oBDkfLBEB3KQXf13+v23+P3GdKgQJAsKsqAYFbaMzL7CNSf18IKxfXqC++Yz+s8ldp WtZPCihqNS56A== Message-ID: <20acec19-0dc9-4926-aac5-f24fcc09cba3@kernel.org> Date: Wed, 17 Apr 2024 17:56:36 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/8] ASoC: dt-bindings: wcd937x-sdw: add bindings for wcd937x-sdw To: Mohammad Rafi Shaik , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rohkumar@quicinc.com, quic_pkumpatl@quicinc.com References: <20240416063600.309747-1-quic_mohs@quicinc.com> <20240416063600.309747-4-quic_mohs@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWK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TRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240416063600.309747-4-quic_mohs@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/04/2024 08:35, Mohammad Rafi Shaik wrote: > From: Prasad Kumpatla > > Qualcomm WCD9370/WCD9375 Codec is a standalone Hi-Fi audio codec IC > connected over SoundWire. This device has two SoundWire devices RX and > TX respectively. > This binding is for those slave devices on WCD9370/WCD9375. > > Co-developed-by: Mohammad Rafi Shaik > Signed-off-by: Mohammad Rafi Shaik > Signed-off-by: Prasad Kumpatla > --- > .../bindings/sound/qcom,wcd937x-sdw.yaml | 71 +++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd937x-sdw.yaml > > diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd937x-sdw.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd937x-sdw.yaml > new file mode 100644 > index 000000000000..2b7358e266ba > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/qcom,wcd937x-sdw.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/qcom,wcd937x-sdw.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm SoundWire Slave devices on WCD9370 > + > +maintainers: > + - Srinivas Kandagatla > + > +description: | Do not need '|' unless you need to preserve formatting. > + Qualcomm WCD9370 Codec is a standalone Hi-Fi audio codec IC. > + It has RX and TX Soundwire slave devices. This bindings is for the > + slave devices. > + > +properties: > + compatible: > + const: sdw20217010a00 > + > + reg: > + maxItems: 1 > + > + qcom,tx-port-mapping: > + description: | > + Specifies static port mapping between slave and master tx ports. > + In the order of slave port index. Use inclusive terminology. Describe what is here - what is the index? What is the value? > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + maxItems: 4 Add constraints on values. You have maximum 15 TX ports, don't you? > + > + qcom,rx-port-mapping: > + description: | > + Specifies static port mapping between slave and master rx ports. > + In the order of slave port index. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 5 > + maxItems: 5 > + > +required: > + - compatible > + - reg > + - qcom,port-mapping Test your binding. There is no need to engage reviewers for reviewing simple mistakes which *tools* can point. Respect reviewers time and use the tools first. You need oneOf: with required for TX and RX... or just unify the properties. Why do you need two? > + > +additionalProperties: false > + > +examples: > + - | > + soundwire@3210000 { Drop unit address. > + #address-cells = <2>; > + #size-cells = <0>; > + reg = <0x03210000 0x2000>; Drop, not relevant and not placed correctly (see DTS coding style). > + wcd937x_rx: codec@0,4 { Drop label, not used. > + compatible = "sdw20217010a00"; > + reg = <0 4>; > + qcom,rx-port-mapping = <1 2 3 4 5>; > + }; > + }; > + > + soundwire@3230000 { Drop this example, it's almost identical. Best regards, Krzysztof