sja1000.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Memory mapped SJA1000 CAN controller from NXP (formerly Philips)
  2. Required properties:
  3. - compatible : should be one of "nxp,sja1000", "technologic,sja1000".
  4. - reg : should specify the chip select, address offset and size required
  5. to map the registers of the SJA1000. The size is usually 0x80.
  6. - interrupts: property with a value describing the interrupt source
  7. (number and sensitivity) required for the SJA1000.
  8. Optional properties:
  9. - reg-io-width : Specify the size (in bytes) of the IO accesses that
  10. should be performed on the device. Valid value is 1, 2 or 4.
  11. This property is ignored for technologic version.
  12. Default to 1 (8 bits).
  13. - nxp,external-clock-frequency : Frequency of the external oscillator
  14. clock in Hz. Note that the internal clock frequency used by the
  15. SJA1000 is half of that value. If not specified, a default value
  16. of 16000000 (16 MHz) is used.
  17. - nxp,tx-output-mode : operation mode of the TX output control logic:
  18. <0x0> : bi-phase output mode
  19. <0x1> : normal output mode (default)
  20. <0x2> : test output mode
  21. <0x3> : clock output mode
  22. - nxp,tx-output-config : TX output pin configuration:
  23. <0x01> : TX0 invert
  24. <0x02> : TX0 pull-down (default)
  25. <0x04> : TX0 pull-up
  26. <0x06> : TX0 push-pull
  27. <0x08> : TX1 invert
  28. <0x10> : TX1 pull-down
  29. <0x20> : TX1 pull-up
  30. <0x30> : TX1 push-pull
  31. - nxp,clock-out-frequency : clock frequency in Hz on the CLKOUT pin.
  32. If not specified or if the specified value is 0, the CLKOUT pin
  33. will be disabled.
  34. - nxp,no-comparator-bypass : Allows to disable the CAN input comparator.
  35. For further information, please have a look to the SJA1000 data sheet.
  36. Examples:
  37. can@3,100 {
  38. compatible = "nxp,sja1000";
  39. reg = <3 0x100 0x80>;
  40. interrupts = <2 0>;
  41. interrupt-parent = <&mpic>;
  42. nxp,external-clock-frequency = <16000000>;
  43. };