1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/can/allwinner,sun4i-a10-can.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 CAN Controller Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  compatible:
15    oneOf:
16      - items:
17          - const: allwinner,sun7i-a20-can
18          - const: allwinner,sun4i-a10-can
19      - const: allwinner,sun4i-a10-can
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30required:
31  - compatible
32  - reg
33  - interrupts
34  - clocks
35
36additionalProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/interrupt-controller/arm-gic.h>
41    #include <dt-bindings/clock/sun7i-a20-ccu.h>
42
43    can0: can@1c2bc00 {
44        compatible = "allwinner,sun7i-a20-can",
45                     "allwinner,sun4i-a10-can";
46        reg = <0x01c2bc00 0x400>;
47        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
48        clocks = <&ccu CLK_APB1_CAN>;
49    };
50
51...
52