Commit a536bf5a authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Vinod Koul
Browse files

dt-bindings: soundwire: qcom: add 16-bit sample interval



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.

Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230418095447.577001-3-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 505bdb9d
Loading
Loading
Loading
Loading
+18 −2
Original line number Original line Diff line number Diff line
@@ -86,7 +86,7 @@ properties:
  qcom,ports-sinterval-low:
  qcom,ports-sinterval-low:
    $ref: /schemas/types.yaml#/definitions/uint8-array
    $ref: /schemas/types.yaml#/definitions/uint8-array
    description:
    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.
      Out ports followed by In ports. Used for Sample Interval calculation.
      Value of 0xff indicates that this option is not implemented
      Value of 0xff indicates that this option is not implemented
      or applicable for the respective data port.
      or applicable for the respective data port.
@@ -94,6 +94,17 @@ properties:
    minItems: 3
    minItems: 3
    maxItems: 16
    maxItems: 16


  qcom,ports-sinterval:
    $ref: /schemas/types.yaml#/definitions/uint16-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

  qcom,ports-offset1:
  qcom,ports-offset1:
    $ref: /schemas/types.yaml#/definitions/uint8-array
    $ref: /schemas/types.yaml#/definitions/uint8-array
    description:
    description:
@@ -220,10 +231,15 @@ required:
  - '#size-cells'
  - '#size-cells'
  - qcom,dout-ports
  - qcom,dout-ports
  - qcom,din-ports
  - qcom,din-ports
  - qcom,ports-sinterval-low
  - qcom,ports-offset1
  - qcom,ports-offset1
  - qcom,ports-offset2
  - qcom,ports-offset2


oneOf:
  - required:
      - qcom,ports-sinterval-low
  - required:
      - qcom,ports-sinterval

additionalProperties: false
additionalProperties: false


examples:
examples: