lkml.org 
[lkml]   [2022]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/6] dt-bindings: net: explicitly list SPI CPHA and CPOL
    Date
    The spi-cpha and spi-cpol properties are device specific and should be
    accepted only if device really needs them. Explicitly list them in
    device bindings in preparation of their removal from generic
    spi-peripheral-props.yaml schema.

    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    ---
    .../devicetree/bindings/net/nfc/marvell,nci.yaml | 12 ++++++++++--
    .../devicetree/bindings/net/vertexcom-mse102x.yaml | 12 +++++++++---
    2 files changed, 19 insertions(+), 5 deletions(-)

    diff --git a/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml b/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml
    index 1bcaf6ba822c..00b3918a9bf2 100644
    --- a/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml
    +++ b/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml
    @@ -56,8 +56,16 @@ properties:
    description: |
    For UART type of connection. Specifies that the chip is using RTS/CTS.

    - spi-cpha: true
    - spi-cpol: true
    + spi-cpha:
    + type: boolean
    + description:
    + The device requires shifted clock phase (CPHA) mode.
    +
    + spi-cpol:
    + type: boolean
    + description:
    + The device requires inverse clock polarity (CPOL) mode.
    +
    spi-max-frequency: true

    required:
    diff --git a/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml b/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml
    index 8156a9aeb589..9dc1609f6d06 100644
    --- a/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml
    +++ b/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml
    @@ -34,9 +34,15 @@ properties:
    interrupts:
    maxItems: 1

    - spi-cpha: true
    -
    - spi-cpol: true
    + spi-cpha:
    + type: boolean
    + description:
    + The device requires shifted clock phase (CPHA) mode.
    +
    + spi-cpol:
    + type: boolean
    + description:
    + The device requires inverse clock polarity (CPOL) mode.

    spi-max-frequency:
    minimum: 6000000
    --
    2.34.1
    \
     
     \ /
      Last update: 2022-07-21 17:35    [W:3.403 / U:1.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site