Commit 9d5c8df1 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Marc Kleine-Budde
Browse files

dt-binding: can: mcp25xxfd: documentation fixes



Apply following fixes:
- Use 'interrupts'. (interrupts-extended will automagically be supported
  by the tools)
- *-supply is always a single item. So, drop maxItems=1
- add "additionalProperties: false" flag to detect unneeded properties.

Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20200923125301.27200-1-o.rempel@pengutronix.de


Reported-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Fixes: 1b5a78e6 ("dt-binding: can: mcp25xxfd: document device tree bindings")
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 727fba74
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ properties:
  reg:
    maxItems: 1

  interrupts-extended:
  interrupts:
    maxItems: 1

  clocks:
@@ -32,11 +32,9 @@ properties:

  vdd-supply:
    description: Regulator that powers the CAN controller.
    maxItems: 1

  xceiver-supply:
    description: Regulator that powers the CAN transceiver.
    maxItems: 1

  microchip,rx-int-gpios:
    description:
@@ -52,9 +50,11 @@ properties:
required:
  - compatible
  - reg
  - interrupts-extended
  - interrupts
  - clocks

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>