Re: [PATCH v3 2/5] dt-bindings: riscv: microchip: Add YAML documentation for the PolarFire SoC

From: Rob Herring
Date: Wed Dec 09 2020 - 18:31:02 EST


On Fri, Dec 04, 2020 at 12:58:32AM -0800, Atish Patra wrote:
> Add YAML DT binding documentation for the Microchip PolarFire SoC.
> It is documented at:
>
> https://www.microsemi.com/products/fpga-soc/polarfire-soc-icicle-quick-start-guide
>
> Signed-off-by: Atish Patra <atish.patra@xxxxxxx>
> ---
> .../devicetree/bindings/riscv/microchip.yaml | 28 +++++++++++++++++++
> 1 file changed, 28 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/riscv/microchip.yaml
>
> diff --git a/Documentation/devicetree/bindings/riscv/microchip.yaml b/Documentation/devicetree/bindings/riscv/microchip.yaml
> new file mode 100644
> index 000000000000..66e63c2bf359
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/riscv/microchip.yaml
> @@ -0,0 +1,28 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR MIT)

See what checkpatch.pl says.

> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/riscv/microchip.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Microchip PolarFire SoC-based boards device tree bindings
> +
> +maintainers:
> + - Cyril Jean <Cyril.Jean@xxxxxxxxxxxxx>
> + - Lewis Hanly <lewis.hanly@xxxxxxxxxxxxx>
> +
> +description:
> + Microchip PolarFire SoC-based boards
> +
> +properties:
> + $nodename:
> + const: '/'
> + compatible:
> + items:
> + - enum:
> + - microchip,mpfs-icicle-kit
> + - const: microchip,polarfire-soc
> + - const: microchip,mpfs

Is this last compatible really useful? Usually better to just have SoC
and board (or SoM plus baseboard) compatibles.

Rob