lkml.org 
[lkml]   [2022]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] dt-bindings: net/dsa: Add spi-peripheral-props.yaml references
    Date
    SPI peripheral device bindings need to reference spi-peripheral-props.yaml
    in order to use various SPI controller specific properties. Otherwise,
    the unevaluatedProperties check will reject any controller specific
    properties.

    Signed-off-by: Rob Herring <robh@kernel.org>
    ---
    Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 1 +
    Documentation/devicetree/bindings/net/dsa/realtek.yaml | 1 +
    2 files changed, 2 insertions(+)

    diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
    index 184152087b60..6bbd8145b6c1 100644
    --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
    +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
    @@ -12,6 +12,7 @@ maintainers:

    allOf:
    - $ref: dsa.yaml#
    + - $ref: /schemas/spi/spi-peripheral-props.yaml#

    properties:
    # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
    diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
    index 99ee4b5b9346..4f99aff029dc 100644
    --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml
    +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml
    @@ -108,6 +108,7 @@ if:
    - reg

    then:
    + $ref: /schemas/spi/spi-peripheral-props.yaml#
    not:
    required:
    - mdc-gpios
    --
    2.34.1
    \
     
     \ /
      Last update: 2022-05-25 22:59    [W:3.663 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site