sun4i_can.txt 837 B

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