# Re: \[PATCH v5\] dt-bindings: net: can: c\_can: convert to json-schema

- From: Marc Kleine-Budde \<mkl@pengutronix.de\>
- Date: 2021-08-06 07:21:04 
- List: lkml
- Page: https://ratatoskr.run/lkml/2021/08/1469737
- Thread: https://ratatoskr.run/linux-devicetree/2021/08/1469359/t.md

```text
On 05.08.2021 21:27:50, Dario Binacchi wrote:
> Convert the Bosch C_CAN/D_CAN controller device tree binding
> documentation to json-schema.
> 
> Document missing properties.
> Remove "ti,hwmods" as it is no longer used in TI dts.
> Make "clocks" required as it is used in all dts.
> Update the examples.
> 
> Signed-off-by: Dario Binacchi <redacted>

[...]

> +if:
> +  properties:
> +    compatible:
> +      contains:
> +        enum:
> +          - bosch,d_can
> +
> +then:
> +  properties:
> +    interrupts:
> +      minItems: 4
> +      maxItems: 4

The driver uses only 1 interrupt, on the other hand the only in-tree
user the bosch,d_can compatible specifies 4 interrupts.

Marc
-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
```

## Attachments

- [signature.asc](https://ratatoskr.run/lkml/2021/08/1469737/attachment/0) (application/pgp-signature, 488 bytes)
