stih407-c8sectpfe.txt 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. STMicroelectronics STi c8sectpfe binding
  2. ============================================
  3. This document describes the c8sectpfe device bindings that is used to get transport
  4. stream data into the SoC on the TS pins, and into DDR for further processing.
  5. It is typically used in conjunction with one or more demodulator and tuner devices
  6. which converts from the RF to digital domain. Demodulators and tuners are usually
  7. located on an external DVB frontend card connected to SoC TS input pins.
  8. Currently 7 TS input (tsin) channels are supported on the stih407 family SoC.
  9. Required properties (controller (parent) node):
  10. - compatible : Should be "stih407-c8sectpfe"
  11. - reg : Address and length of register sets for each device in
  12. "reg-names"
  13. - reg-names : The names of the register addresses corresponding to the
  14. registers filled in "reg":
  15. - c8sectpfe: c8sectpfe registers
  16. - c8sectpfe-ram: c8sectpfe internal sram
  17. - clocks : phandle list of c8sectpfe clocks
  18. - clock-names : should be "c8sectpfe"
  19. See: Documentation/devicetree/bindings/clock/clock-bindings.txt
  20. - pinctrl-names : a pinctrl state named tsin%d-serial or tsin%d-parallel (where %d is tsin-num)
  21. must be defined for each tsin child node.
  22. - pinctrl-0 : phandle referencing pin configuration for this tsin configuration
  23. See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt
  24. Required properties (tsin (child) node):
  25. - tsin-num : tsin id of the InputBlock (must be between 0 to 6)
  26. - i2c-bus : phandle to the I2C bus DT node which the demodulators & tuners on this tsin channel are connected.
  27. - rst-gpio : reset gpio for this tsin channel.
  28. Optional properties (tsin (child) node):
  29. - invert-ts-clk : Bool property to control sense of ts input clock (data stored on falling edge of clk).
  30. - serial-not-parallel : Bool property to configure input bus width (serial on ts_data<7>).
  31. - async-not-sync : Bool property to control if data is received in asynchronous mode
  32. (all bits/bytes with ts_valid or ts_packet asserted are valid).
  33. - dvb-card : Describes the NIM card connected to this tsin channel.
  34. Example:
  35. /* stih410 SoC b2120 + b2004a + stv0367-pll(NIMB) + stv0367-tda18212 (NIMA) DT example) */
  36. c8sectpfe@08a20000 {
  37. compatible = "st,stih407-c8sectpfe";
  38. status = "okay";
  39. reg = <0x08a20000 0x10000>, <0x08a00000 0x4000>;
  40. reg-names = "stfe", "stfe-ram";
  41. interrupts = <0 34 0>, <0 35 0>;
  42. interrupt-names = "stfe-error-irq", "stfe-idle-irq";
  43. pinctrl-names = "tsin0-serial", "tsin0-parallel", "tsin3-serial",
  44. "tsin4-serial", "tsin5-serial";
  45. pinctrl-0 = <&pinctrl_tsin0_serial>;
  46. pinctrl-1 = <&pinctrl_tsin0_parallel>;
  47. pinctrl-2 = <&pinctrl_tsin3_serial>;
  48. pinctrl-3 = <&pinctrl_tsin4_serial_alt3>;
  49. pinctrl-4 = <&pinctrl_tsin5_serial_alt1>;
  50. clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>;
  51. clock-names = "stfe";
  52. /* tsin0 is TSA on NIMA */
  53. tsin0: port@0 {
  54. tsin-num = <0>;
  55. serial-not-parallel;
  56. i2c-bus = <&ssc2>;
  57. rst-gpio = <&pio15 4 0>;
  58. dvb-card = <STV0367_TDA18212_NIMA_1>;
  59. };
  60. tsin3: port@3 {
  61. tsin-num = <3>;
  62. serial-not-parallel;
  63. i2c-bus = <&ssc3>;
  64. rst-gpio = <&pio15 7 0>;
  65. dvb-card = <STV0367_TDA18212_NIMB_1>;
  66. };
  67. };