xilinx_can.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Xilinx Axi CAN/Zynq CANPS controller Device Tree Bindings
  2. ---------------------------------------------------------
  3. Required properties:
  4. - compatible : Should be "xlnx,zynq-can-1.0" for Zynq CAN
  5. controllers and "xlnx,axi-can-1.00.a" for Axi CAN
  6. controllers.
  7. - reg : Physical base address and size of the Axi CAN/Zynq
  8. CANPS registers map.
  9. - interrupts : Property with a value describing the interrupt
  10. number.
  11. - interrupt-parent : Must be core interrupt controller
  12. - clock-names : List of input clock names - "can_clk", "pclk"
  13. (For CANPS), "can_clk" , "s_axi_aclk"(For AXI CAN)
  14. (See clock bindings for details).
  15. - clocks : Clock phandles (see clock bindings for details).
  16. - tx-fifo-depth : Can Tx fifo depth.
  17. - rx-fifo-depth : Can Rx fifo depth.
  18. Example:
  19. For Zynq CANPS Dts file:
  20. zynq_can_0: can@e0008000 {
  21. compatible = "xlnx,zynq-can-1.0";
  22. clocks = <&clkc 19>, <&clkc 36>;
  23. clock-names = "can_clk", "pclk";
  24. reg = <0xe0008000 0x1000>;
  25. interrupts = <0 28 4>;
  26. interrupt-parent = <&intc>;
  27. tx-fifo-depth = <0x40>;
  28. rx-fifo-depth = <0x40>;
  29. };
  30. For Axi CAN Dts file:
  31. axi_can_0: axi-can@40000000 {
  32. compatible = "xlnx,axi-can-1.00.a";
  33. clocks = <&clkc 0>, <&clkc 1>;
  34. clock-names = "can_clk","s_axi_aclk" ;
  35. reg = <0x40000000 0x10000>;
  36. interrupt-parent = <&intc>;
  37. interrupts = <0 59 1>;
  38. tx-fifo-depth = <0x40>;
  39. rx-fifo-depth = <0x40>;
  40. };