ifm-csi.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. IFM camera sensor interface on mpc5200 LocalPlus bus
  2. Required properties:
  3. - compatible: "ifm,o2d-csi"
  4. - reg: specifies sensor chip select number and associated address range
  5. - interrupts: external interrupt line number and interrupt sense mode
  6. of the interrupt line signaling frame valid events
  7. - gpios: three gpio-specifiers for "capture", "reset" and "master enable"
  8. GPIOs (strictly in this order).
  9. - ifm,csi-clk-handle: the phandle to a node in the DT describing the sensor
  10. clock generator. This node is usually a general purpose timer controller.
  11. - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25)
  12. - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16)
  13. - ifm,csi-wait-cycles: sensor bus wait cycles
  14. Optional properties:
  15. - ifm,csi-byte-swap: if this property is present, the byte swapping on
  16. the bus will be enabled.
  17. Example:
  18. csi@3,0 {
  19. compatible = "ifm,o2d-csi";
  20. reg = <3 0 0x00100000>; /* CS 3, 1 MiB range */
  21. interrupts = <1 1 2>; /* IRQ1, edge falling */
  22. ifm,csi-clk-handle = <&timer7>;
  23. gpios = <&gpio_simple 23 0 /* image_capture */
  24. &gpio_simple 26 0 /* image_reset */
  25. &gpio_simple 29 0>; /* image_master_en */
  26. ifm,csi-addr-bus-width = <24>;
  27. ifm,csi-data-bus-width = <8>;
  28. ifm,csi-wait-cycles = <0>;
  29. };
  30. The base address of the used chip select is specified in the
  31. ranges property of the parent localbus node, for example:
  32. ranges = <0 0 0xff000000 0x01000000
  33. 3 0 0xe3000000 0x00100000>;