sccnxp-serial.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. * NXP (Philips) SCC+++(SCN+++) serial driver
  2. Required properties:
  3. - compatible: Should be "nxp,<ictype>". The supported ICs include sc2681,
  4. sc2691, sc2692, sc2891, sc2892, sc28202, sc68681 and sc68692.
  5. - reg: Address and length of the register set for the device.
  6. - interrupts: Should contain the interrupt number. If omitted,
  7. polling mode will be used instead, so "poll-interval" property should
  8. be populated in this case.
  9. Optional properties:
  10. - clocks: Phandle to input clock. If omitted, default IC frequency will be
  11. used instead.
  12. - poll-interval: Poll interval time in nanoseconds.
  13. - vcc-supply: The regulator supplying the VCC to drive the chip.
  14. - nxp,sccnxp-io-cfg: Array contains values for the emulated modem signals.
  15. The number of values depends on the UART-number in the selected chip.
  16. Each value should be composed according to the following rules:
  17. (LINE1 << SIGNAL1) | ... | (LINEX << SIGNALX), where:
  18. LINE - VALUE:
  19. OP0 - 1
  20. OP1 - 2
  21. OP2 - 3
  22. OP3 - 4
  23. OP4 - 5
  24. OP5 - 6
  25. OP6 - 7
  26. OP7 - 8
  27. IP0 - 9
  28. IP1 - 10
  29. IP2 - 11
  30. IP3 - 12
  31. IP4 - 13
  32. IP5 - 14
  33. IP6 - 15
  34. SIGNAL - VALUE:
  35. DTR - 0
  36. RTS - 4
  37. DSR - 8
  38. CTS - 12
  39. DCD - 16
  40. RNG - 20
  41. DIR - 24
  42. Example (Dual UART with direction control on OP0 & OP1):
  43. sc2892@10100000 {
  44. compatible = "nxp,sc2892";
  45. reg = <0x10100000 0x10>;
  46. poll-interval = <10000>;
  47. clocks = <&sc2892_clk>;
  48. vcc-supply = <&sc2892_reg>;
  49. nxp,sccnxp-io-cfg = <0x01000000 0x02000000>;
  50. };