Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.
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@1c2bc00 { 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@1c2bc00 { 33 pinctrl-names = "default"; 34 pinctrl-0 = <&can0_pins_a>; 35 status = "okay"; 36 };