1692a0dc7SMaxime Ripard# SPDX-License-Identifier: GPL-2.0
2692a0dc7SMaxime Ripard%YAML 1.2
3692a0dc7SMaxime Ripard---
4692a0dc7SMaxime Ripard$id: http://devicetree.org/schemas/net/can/allwinner,sun4i-a10-can.yaml#
5692a0dc7SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
6692a0dc7SMaxime Ripard
7692a0dc7SMaxime Ripardtitle: Allwinner A10 CAN Controller Device Tree Bindings
8692a0dc7SMaxime Ripard
9692a0dc7SMaxime Ripardmaintainers:
10692a0dc7SMaxime Ripard  - Chen-Yu Tsai <wens@csie.org>
115c7404bbSMaxime Ripard  - Maxime Ripard <mripard@kernel.org>
12692a0dc7SMaxime Ripard
13*d931686dSMarc Kleine-BuddeallOf:
14*d931686dSMarc Kleine-Budde  - $ref: can-controller.yaml#
15*d931686dSMarc Kleine-Budde
16692a0dc7SMaxime Ripardproperties:
17692a0dc7SMaxime Ripard  compatible:
18692a0dc7SMaxime Ripard    oneOf:
19692a0dc7SMaxime Ripard      - items:
20692a0dc7SMaxime Ripard          - const: allwinner,sun7i-a20-can
21692a0dc7SMaxime Ripard          - const: allwinner,sun4i-a10-can
22692a0dc7SMaxime Ripard      - const: allwinner,sun4i-a10-can
23d0342cebSEvgeny Boger      - const: allwinner,sun8i-r40-can
24692a0dc7SMaxime Ripard
25692a0dc7SMaxime Ripard  reg:
26692a0dc7SMaxime Ripard    maxItems: 1
27692a0dc7SMaxime Ripard
28692a0dc7SMaxime Ripard  interrupts:
29692a0dc7SMaxime Ripard    maxItems: 1
30692a0dc7SMaxime Ripard
31692a0dc7SMaxime Ripard  clocks:
32692a0dc7SMaxime Ripard    maxItems: 1
33692a0dc7SMaxime Ripard
34d0342cebSEvgeny Boger  resets:
35d0342cebSEvgeny Boger    maxItems: 1
36d0342cebSEvgeny Boger
37d0342cebSEvgeny Bogerif:
38d0342cebSEvgeny Boger  properties:
39d0342cebSEvgeny Boger    compatible:
40d0342cebSEvgeny Boger      contains:
41d0342cebSEvgeny Boger        const: allwinner,sun8i-r40-can
42d0342cebSEvgeny Boger
43d0342cebSEvgeny Bogerthen:
44d0342cebSEvgeny Boger  required:
45d0342cebSEvgeny Boger    - resets
46d0342cebSEvgeny Boger
47692a0dc7SMaxime Ripardrequired:
48692a0dc7SMaxime Ripard  - compatible
49692a0dc7SMaxime Ripard  - reg
50692a0dc7SMaxime Ripard  - interrupts
51692a0dc7SMaxime Ripard  - clocks
52692a0dc7SMaxime Ripard
53692a0dc7SMaxime RipardadditionalProperties: false
54692a0dc7SMaxime Ripard
55692a0dc7SMaxime Ripardexamples:
56692a0dc7SMaxime Ripard  - |
57692a0dc7SMaxime Ripard    #include <dt-bindings/interrupt-controller/arm-gic.h>
58692a0dc7SMaxime Ripard    #include <dt-bindings/clock/sun7i-a20-ccu.h>
59692a0dc7SMaxime Ripard
60692a0dc7SMaxime Ripard    can0: can@1c2bc00 {
61692a0dc7SMaxime Ripard        compatible = "allwinner,sun7i-a20-can",
62692a0dc7SMaxime Ripard                     "allwinner,sun4i-a10-can";
63692a0dc7SMaxime Ripard        reg = <0x01c2bc00 0x400>;
64692a0dc7SMaxime Ripard        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
65692a0dc7SMaxime Ripard        clocks = <&ccu CLK_APB1_CAN>;
66692a0dc7SMaxime Ripard    };
67d0342cebSEvgeny Boger  - |
68d0342cebSEvgeny Boger    #define RST_BUS_CAN		68
69d0342cebSEvgeny Boger    #define CLK_BUS_CAN		91
70d0342cebSEvgeny Boger    can1: can@1c2bc00 {
71d0342cebSEvgeny Boger        compatible = "allwinner,sun8i-r40-can";
72d0342cebSEvgeny Boger        reg = <0x01c2bc00 0x400>;
73d0342cebSEvgeny Boger        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
74d0342cebSEvgeny Boger        clocks = <&ccu CLK_BUS_CAN>;
75d0342cebSEvgeny Boger        resets = <&ccu RST_BUS_CAN>;
76d0342cebSEvgeny Boger    };
77692a0dc7SMaxime Ripard
78692a0dc7SMaxime Ripard...
79