Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1190164rwl; Wed, 12 Apr 2023 09:21:41 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4GCMuMRqUTyObno81pvt4LPNYMTIDmkzCilS4AU95gODmEjUJeAmHaDEVClCGqqyjcdEK X-Received: by 2002:a05:6a20:3ba9:b0:eb:fc7b:910c with SMTP id b41-20020a056a203ba900b000ebfc7b910cmr855518pzh.24.1681316500993; Wed, 12 Apr 2023 09:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681316500; cv=none; d=google.com; s=arc-20160816; b=Qny5LUrzg3sJQVeNDpZ5TTCHVbCJ+ixba/ulqvO5Akv0wBFwlKcHefP8c/ViUb+G/o ogMAqrer5PROmCrQUhkJNN3JyOcU0qIVHmt2ZMoP5WZ96khyjoDfwRS6sTQxGLRLoIf7 rawFIZZRqKjqU61wZXtYkxZFhyC1ZHmh601WRFip1xSbz2VKxfi3B/jijfQVPdbtag+o /4ftmp5qJrjDzbJ8SOcc8EZJfKjha4UVnBYqItafA9SoFmhxthRuJXiKkp74hrH5oSD0 6F0+tBkK0U87V8jeam/zQCwljvf+3/iLNA0NGAje1oCeBSKkodaAisqdRtTmr8fkjOIc cCqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xKz2CfdmkyWEUAUCRBGTeQXDG/9nQXron/CwZa9Nm00=; b=1FSyA6ddWVcN0F65v2wGIoI4G4iHdjA5EocY7tdfO9LRrVQdgzJDDQu2KgBmOycjIe YBuBgCtWunZwLwmUCQsXWeKRIXzLms9jnhdgFgFVazbFwwhZycXhMb95mHOXh7+ncBCN +HZuwzVu3vWbt+/5o7yHXpHkT9CqwTOOzCGMk5DjBiRCVJc89JP1HLUYgM+c9vTZrtwM VHzGjGSOAT+72Kkvp5wcSJ9a90Z2pGh8FBoN7eSSil6iStda4fI1bedGhYHHelHyEg41 sxPCla/Z9566dym8IpMc/TE514dGOkD8QLfXuZ7ny1kovo5wuk1U6iSv2Qob/MYGMWzg 479A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g7jiaNa/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a631b15000000b00517a4a75528si13142895pgb.162.2023.04.12.09.21.27; Wed, 12 Apr 2023 09:21:40 -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="g7jiaNa/"; 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 S230266AbjDLQQg (ORCPT + 99 others); Wed, 12 Apr 2023 12:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjDLQQa (ORCPT ); Wed, 12 Apr 2023 12:16:30 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1C2F7A8D for ; Wed, 12 Apr 2023 09:16:03 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id q23so20749050ejz.3 for ; Wed, 12 Apr 2023 09:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681316162; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xKz2CfdmkyWEUAUCRBGTeQXDG/9nQXron/CwZa9Nm00=; b=g7jiaNa/w7rvSAY10RFzRhPYx6wX3SzW9Ltp47xv27yKDwNXQ8wwQshMGu1UwZBDnP nIoBoAzWw9eAyBnL5DQdKWgKntxvoQIFaEWI3xGsCqDukrJo9+ybXsuRl1On4LJbWSUJ Md8iI+45YnPbziICs08oDOd+jDcFsHhc6Vc+ESQUqAnauTaXLTnS5oab5edjyN4Kir+j 1d71UXvEFipu+X9znuLgywbDpYEeANh+IyLOrDyESFwQ3IJnAP73JNvFiqdkvfmdtP0k tpgP+Ln/0OJW0PPvCjTmfjy8HcmYk/A44noUGcPZnR1PoP/iAyo8OdZgXB9zJmK3kzTz 6jxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681316162; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xKz2CfdmkyWEUAUCRBGTeQXDG/9nQXron/CwZa9Nm00=; b=K7B/YzXtp1/M3d/zgOBXyYZTqoNEdWqidqUQjsrPJ6zHajuWBKVxYndVeLPLV3wu67 R85sOg+NPCH3aGpBhx4B10NmjP/K7lR96sbm5rLHAfSGdqX9XzJ+kvhRZSDCD0vT7p6r pcJ1c/3dlv675k4lCoa84GiKlnHCh2fpO/wqECL9WOzgT8C0mWQKF2GgNTIf8KvD+yhU d46IGAM8Bl9Fq9Yv2UwK/SkluQX5p2bRHlFBSHVS/hOnfwPn+lIC10tI88IrbJhZSl8a 5l1CLkEk2DpDB86xZWFW5vb6uNF6+EhET0Zj1YshvM2ujGvEBaQkhlGnYMzDz313Wc30 t+Sw== X-Gm-Message-State: AAQBX9cOoxlypsnSz9vm07VdY3Ahbgsf78ILd5axsZJIi5kjub7RPizR rDOyVd88RHLQo40294erb9//Fw== X-Received: by 2002:a17:906:3b8f:b0:94a:6fc2:75b7 with SMTP id u15-20020a1709063b8f00b0094a6fc275b7mr10639381ejf.33.1681316162374; Wed, 12 Apr 2023 09:16:02 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:938a:b3db:7c59:795e? ([2a02:810d:15c0:828:938a:b3db:7c59:795e]) by smtp.gmail.com with ESMTPSA id sa3-20020a1709076d0300b0094e4b8816e0sm1153036ejc.217.2023.04.12.09.16.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 09:16:01 -0700 (PDT) Message-ID: <7c7afc80-713f-1949-4feb-f5f2d192569c@linaro.org> Date: Wed, 12 Apr 2023 18:16:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2 2/7] dt-bindings: soundwire: qcom: add 16-bit sample interval Content-Language: en-US To: Srinivas Kandagatla , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , Rao Mandadapu , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Cc: Patrick Lai References: <20230403132503.62090-1-krzysztof.kozlowski@linaro.org> <20230403132503.62090-3-krzysztof.kozlowski@linaro.org> <94590a79-cae3-7b88-8f02-0c356adf06b7@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <94590a79-cae3-7b88-8f02-0c356adf06b7@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 On 12/04/2023 17:28, Srinivas Kandagatla wrote: > > > On 03/04/2023 14:24, Krzysztof Kozlowski wrote: >> The port sample interval was always 16-bit, split into low and high >> bytes. This split was unnecessary, although harmless for older devices >> because all of them used only lower byte (so values < 0xff). With >> support for Soundwire controller on Qualcomm SM8550 and its devices, >> both bytes will be used, thus add a new 'qcom,ports-sinterval' property >> to allow 16-bit sample intervals. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> .../bindings/soundwire/qcom,soundwire.yaml | 22 +++++++++++++++++-- >> 1 file changed, 20 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml b/Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml >> index c283c594fb5c..883b8be9be1b 100644 >> --- a/Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml >> +++ b/Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml >> @@ -86,7 +86,7 @@ properties: >> qcom,ports-sinterval-low: >> $ref: /schemas/types.yaml#/definitions/uint8-array >> description: >> - Sample interval low of each data port. >> + Sample interval (only lowest byte) of each data port. >> Out ports followed by In ports. Used for Sample Interval calculation. >> Value of 0xff indicates that this option is not implemented >> or applicable for the respective data port. >> @@ -94,6 +94,19 @@ properties: >> minItems: 3 >> maxItems: 16 >> >> + qcom,ports-sinterval: >> + $ref: /schemas/types.yaml#/definitions/uint32-array > > Should this not be ref: /schemas/types.yaml#/definitions/uint16-array ? Same answer as for Rob: Because I am afraid it will grow in next version to 24 or 32 bits. I can change easily maximum, but if I put here uint16-array, all DTS will have /bytes 16/ annotation. Best regards, Krzysztof