Skip to content

Commit 4366bd4

Browse files
GBertmarckleinebudde
authored andcommitted
can: Allwinner A10/A20 CAN Controller support - Devicetree bindings
Devicetree bindings for Allwinner A10/A20 CAN controller. Signed-off-by: Gerhard Bertelsmann <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 37d2dbc commit 4366bd4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Allwinner A10/A20 CAN controller Device Tree Bindings
2+
-----------------------------------------------------
3+
4+
Required properties:
5+
- compatible: "allwinner,sun4i-a10-can"
6+
- reg: physical base address and size of the Allwinner A10/A20 CAN register map.
7+
- interrupts: interrupt specifier for the sole interrupt.
8+
- clock: phandle and clock specifier.
9+
10+
Example
11+
-------
12+
13+
SoC common .dtsi file:
14+
15+
can0_pins_a: can0@0 {
16+
allwinner,pins = "PH20","PH21";
17+
allwinner,function = "can";
18+
allwinner,drive = <0>;
19+
allwinner,pull = <0>;
20+
};
21+
...
22+
can0: can@01c2bc00 {
23+
compatible = "allwinner,sun4i-a10-can";
24+
reg = <0x01c2bc00 0x400>;
25+
interrupts = <0 26 4>;
26+
clocks = <&apb1_gates 4>;
27+
status = "disabled";
28+
};
29+
30+
Board specific .dts file:
31+
32+
can0: can@01c2bc00 {
33+
pinctrl-names = "default";
34+
pinctrl-0 = <&can0_pins_a>;
35+
status = "okay";
36+
};

0 commit comments

Comments
 (0)