Skip to content

Commit

Permalink
dt-binding: can: mcp25xxfd: documentation fixes
Browse files Browse the repository at this point in the history
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: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20200923125301.27200-1-o.rempel@pengutronix.de
Reported-by: Rob Herring <robh@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Fixes: 1b5a78e ("dt-binding: can: mcp25xxfd: document device tree bindings")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Oleksij Rempel authored and Marc Kleine-Budde committed Sep 30, 2020
1 parent 727fba7 commit 9d5c8df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,17 @@ properties:
reg:
maxItems: 1

interrupts-extended:
interrupts:
maxItems: 1

clocks:
maxItems: 1

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:
Expand All @@ -52,9 +50,11 @@ properties:
required:
- compatible
- reg
- interrupts-extended
- interrupts
- clocks

additionalProperties: false

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

0 comments on commit 9d5c8df

Please sign in to comment.