c_can.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Bosch C_CAN/D_CAN controller Device Tree Bindings
  2. -------------------------------------------------
  3. Required properties:
  4. - compatible : Should be "bosch,c_can" for C_CAN controllers and
  5. "bosch,d_can" for D_CAN controllers.
  6. Can be "ti,dra7-d_can", "ti,am3352-d_can" or
  7. "ti,am4372-d_can".
  8. - reg : physical base address and size of the C_CAN/D_CAN
  9. registers map
  10. - interrupts : property with a value describing the interrupt
  11. number
  12. The following are mandatory properties for DRA7x, AM33xx and AM43xx SoCs only:
  13. - ti,hwmods : Must be "d_can<n>" or "c_can<n>", n being the
  14. instance number
  15. The following are mandatory properties for Keystone 2 66AK2G SoCs only:
  16. - power-domains : Should contain a phandle to a PM domain provider node
  17. and an args specifier containing the DCAN device id
  18. value. This property is as per the binding,
  19. Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
  20. - clocks : CAN functional clock phandle. This property is as per the
  21. binding,
  22. Documentation/devicetree/bindings/clock/ti,sci-clk.txt
  23. Optional properties:
  24. - syscon-raminit : Handle to system control region that contains the
  25. RAMINIT register, register offset to the RAMINIT
  26. register and the CAN instance number (0 offset).
  27. Note: "ti,hwmods" field is used to fetch the base address and irq
  28. resources from TI, omap hwmod data base during device registration.
  29. Future plan is to migrate hwmod data base contents into device tree
  30. blob so that, all the required data will be used from device tree dts
  31. file.
  32. Example:
  33. Step1: SoC common .dtsi file
  34. dcan1: d_can@481d0000 {
  35. compatible = "bosch,d_can";
  36. reg = <0x481d0000 0x2000>;
  37. interrupts = <55>;
  38. interrupt-parent = <&intc>;
  39. status = "disabled";
  40. };
  41. (or)
  42. dcan1: d_can@481d0000 {
  43. compatible = "bosch,d_can";
  44. ti,hwmods = "d_can1";
  45. reg = <0x481d0000 0x2000>;
  46. interrupts = <55>;
  47. interrupt-parent = <&intc>;
  48. status = "disabled";
  49. };
  50. Step 2: board specific .dts file
  51. &dcan1 {
  52. status = "okay";
  53. };