Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4535703rwl; Mon, 3 Apr 2023 06:26:52 -0700 (PDT) X-Google-Smtp-Source: AKy350bvrnaPPGHNxAT9FmKIdIyV49EXlkWcOXu/xULp6uoyek8YI6e+YzppL0Henjs5eqaOsFSu X-Received: by 2002:aa7:c1d7:0:b0:4fa:ba31:6c66 with SMTP id d23-20020aa7c1d7000000b004faba316c66mr33418653edp.42.1680528412174; Mon, 03 Apr 2023 06:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680528412; cv=none; d=google.com; s=arc-20160816; b=t0Z/EOczNBfXUMyh253STSD50m9m+T61J6sfn6t+BHSqIZF8+ZfoIZ4hykzQR0iM3j qKVELFtbHfpyb4jrne6qd78wLReKHWGjpBcqUe3R4dmWjGi2dgBeZJWVsQo5/bigUcBb X9XPYIAZBHuyLGC63qMFhAUFtSSwP5HSAjCzheV1bplZQoIhc6Y+e58GUbhC+vhsoV/w A7AEhNabqe2O2HOCup5EaLE1FXNw91P4oq1vRzufI+816K1OTLV93TLapNkUwvL7tENy /9VdY0lVAiWh64ixhzIMhIBlNJkymDz/8qrg8lQlcy+FRsbRI3gNRyoW++wMwMx/ubmf uZJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1cFC2doK7pP+oZeom2O+jOvVNNVc+JGEYRAe06U7TEU=; b=BZ+9Y1c658o6hczoa3AMaTz0hkSmGGDcSthEoPyKE+Z3wpGyW8i3gmVQavfsHbmGe8 MI1NosXBzcYvMDfTNrF91J23Cy6PuftDGscce3TUOlybJ8wYYzY+iLTs6whGTBW5lOjf ojSP+Ygb26KYxPvrhDVk6n8GM8BdFWAShyqrzQ6ZHKeI8ajMkovOU/GMciDjKocCNUfu fjjN6P6x5iNGU4nIi6C8dQPBmA9yAcpMAtMWlUV+y/KUDxK8zolxBJZqIpVl6TpaKGfB W9fy+yG2uo7dr8/3EIDE1HSriumDMbDig3iyd36fbL1MRQN8/Z+/ZAt/n9YreSIZSnn+ ZuQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tzRfk8NO; 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 e25-20020a50ec99000000b004fb56076a23si7517085edr.12.2023.04.03.06.26.27; Mon, 03 Apr 2023 06:26:52 -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=tzRfk8NO; 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 S232444AbjDCNZi (ORCPT + 99 others); Mon, 3 Apr 2023 09:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232054AbjDCNZV (ORCPT ); Mon, 3 Apr 2023 09:25:21 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D24322234 for ; Mon, 3 Apr 2023 06:25:10 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id eh3so117238619edb.11 for ; Mon, 03 Apr 2023 06:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680528309; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1cFC2doK7pP+oZeom2O+jOvVNNVc+JGEYRAe06U7TEU=; b=tzRfk8NOdb/h927gg/TWagqrk60Ev0iFDYfLVXJiwNd5qxCR4SaQ12ZujIf+zwJPb5 veojcYiD+25NuWCpRkUWd+Xk5H0ZJzqrPqYGlkNI8Wfj7rGpj8OOfclitrkW26YSgM7e gUqdtm4+pOs2MZ4vDSvBBt7Vc+23eB6tEd9u3XxkK4a50d470J1R/D0hgFmSUNmHQ1dX Hp35beC+zAdmSVeHdaKkKFHDknXrxGxGIIBm8Ud3AcM/Z5XOHLB0mxVWiyrONl5McQq3 2HLsFHd/vlD+txHkqAuUppb5au7uD1atcUsR5VXz3SHg8S0Bq7F3/WFOS8V1cMage530 g+hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680528309; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1cFC2doK7pP+oZeom2O+jOvVNNVc+JGEYRAe06U7TEU=; b=H0k/KLNh+9CjNc6mZGj+rJOW8O5tZNo9g7vKIIHJSfwd1p83Lw9AteN3RzoV5c4uTF 1QH2sYmoQ9PpXYXjrivQAPOB1kQ6iHVNhG+PofygKt0m+sVQlK46qi7D6ikQTpMJfcvP 6UwJ8ZOXibC+7l0RW7YkmRAuCeh37/+TK5OH8VSII6QtqM0UFLV+GNAUnrU/YRHDUlJ5 CPUchEg2fOPoJX42S78y2wvdapjkWMUfjv401I2wpHbZy9gj6nmG0yYmgSx8jONto1Ih vF5T2Ss5HNPLscGfj+A1oX0It1CpKSnHDCyTCobDPRaZe2UP1rJ9MqaRLnJPcpzbrGDV EXKA== X-Gm-Message-State: AAQBX9dZ5ZMMdy+oudVHLEFAa34mJaJRK64eYSh9zC5iRCuFxZhGro2X E8G4tME4Tl7ztU20h1o8mmNQGA== X-Received: by 2002:a17:907:75f2:b0:88a:1ea9:a5ea with SMTP id jz18-20020a17090775f200b0088a1ea9a5eamr32427334ejc.65.1680528308765; Mon, 03 Apr 2023 06:25:08 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:ae90:d80:1069:4805]) by smtp.gmail.com with ESMTPSA id p18-20020a170906229200b00930ba362216sm4658489eja.176.2023.04.03.06.25.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 06:25:08 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , Srinivas Kandagatla , 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 , Krzysztof Kozlowski Subject: [PATCH v2 2/7] dt-bindings: soundwire: qcom: add 16-bit sample interval Date: Mon, 3 Apr 2023 15:24:58 +0200 Message-Id: <20230403132503.62090-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230403132503.62090-1-krzysztof.kozlowski@linaro.org> References: <20230403132503.62090-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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 + description: + Sample interval of each data port. + Out ports followed by In ports. Used for Sample Interval calculation. + Value of 0xffff indicates that this option is not implemented + or applicable for the respective data port. + More info in MIPI Alliance SoundWire 1.0 Specifications. + minItems: 3 + maxItems: 16 + items: + maximum: 0xffff + qcom,ports-offset1: $ref: /schemas/types.yaml#/definitions/uint8-array description: @@ -219,10 +232,15 @@ required: - '#size-cells' - qcom,dout-ports - qcom,din-ports - - qcom,ports-sinterval-low - qcom,ports-offset1 - qcom,ports-offset2 +oneOf: + - required: + - qcom,ports-sinterval-low + - required: + - qcom,ports-sinterval + additionalProperties: false examples: -- 2.34.1