0001 IFM camera sensor interface on mpc5200 LocalPlus bus
0002
0003 Required properties:
0004 - compatible: "ifm,o2d-csi"
0005 - reg: specifies sensor chip select number and associated address range
0006 - interrupts: external interrupt line number and interrupt sense mode
0007 of the interrupt line signaling frame valid events
0008 - gpios: three gpio-specifiers for "capture", "reset" and "master enable"
0009 GPIOs (strictly in this order).
0010 - ifm,csi-clk-handle: the phandle to a node in the DT describing the sensor
0011 clock generator. This node is usually a general purpose timer controller.
0012 - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25)
0013 - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16)
0014 - ifm,csi-wait-cycles: sensor bus wait cycles
0015
0016 Optional properties:
0017 - ifm,csi-byte-swap: if this property is present, the byte swapping on
0018 the bus will be enabled.
0019
0020 Example:
0021
0022 csi@3,0 {
0023 compatible = "ifm,o2d-csi";
0024 reg = <3 0 0x00100000>; /* CS 3, 1 MiB range */
0025 interrupts = <1 1 2>; /* IRQ1, edge falling */
0026
0027 ifm,csi-clk-handle = <&timer7>;
0028 gpios = <&gpio_simple 23 0 /* image_capture */
0029 &gpio_simple 26 0 /* image_reset */
0030 &gpio_simple 29 0>; /* image_master_en */
0031
0032 ifm,csi-addr-bus-width = <24>;
0033 ifm,csi-data-bus-width = <8>;
0034 ifm,csi-wait-cycles = <0>;
0035 };
0036
0037 The base address of the used chip select is specified in the
0038 ranges property of the parent localbus node, for example:
0039
0040 ranges = <0 0 0xff000000 0x01000000
0041 3 0 0xe3000000 0x00100000>;