lkml.org 
[lkml]   [2023]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 01/16] dt-bindings: spi: Convert bcm63xx-hsspi bindings to json-schema
    From
    On 06/01/2023 21:07, William Zhang wrote:
    > This is the preparation for updates on the bcm63xx hsspi driver. Convert
    > the text based bindings to json-schema per new dts requirement.
    >
    > Signed-off-by: William Zhang <william.zhang@broadcom.com>
    > ---
    >
    > .../bindings/spi/brcm,bcm63xx-hsspi.yaml | 52 +++++++++++++++++++
    > .../bindings/spi/spi-bcm63xx-hsspi.txt | 33 ------------
    > 2 files changed, 52 insertions(+), 33 deletions(-)
    > create mode 100644 Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml
    > delete mode 100644 Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt
    >
    > diff --git a/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml b/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml
    > new file mode 100644
    > index 000000000000..45f1417b1213
    > --- /dev/null
    > +++ b/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml
    > @@ -0,0 +1,52 @@
    > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
    > +%YAML 1.2
    > +---
    > +$id: http://devicetree.org/schemas/spi/brcm,bcm63xx-hsspi.yaml#
    > +$schema: http://devicetree.org/meta-schemas/core.yaml#
    > +
    > +title: Broadcom BCM6328 High Speed SPI controller
    > +
    > +maintainers:
    > + - Jonas Gorski <jonas.gorski@gmail.com>
    > +

    Missing reference to spi-controller.

    > +properties:
    > + compatible:
    > + const: brcm,bcm6328-hsspi
    > +
    > + reg:
    > + maxItems: 1
    > +
    > + clocks:
    > + items:
    > + - description: spi master reference clock
    > + - description: spi master pll clock
    > +
    > + clock-names:
    > + items:
    > + - const: hsspi
    > + - const: pll
    > +
    > + interrupts:
    > + maxItems: 1
    > +
    > +required:
    > + - compatible
    > + - reg
    > + - clocks
    > + - clock-names
    > + - interrupts
    > +
    > +unevaluatedProperties: false

    This is for cases when you have reference to other schema.


    Best regards,
    Krzysztof

    \
     
     \ /
      Last update: 2023-03-26 23:31    [W:3.322 / U:1.376 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site