Hi Jack,

Am Montag, den 17.10.2016, 12:32 +0100 schrieb Jack Mitchell:
> Hi Philipp,
> 
> I'm looking at how I would enable a parallel greyscale camera using this 
> set of drivers and am a little bit confused. Do you have an example 
> somewhere of a devicetree with an input node.

In your board device tree it should look somewhat like this:

&i2c1 {
        sensor@48 {
                compatible = "aptina,mt9v032m";
                /* ... */

                port {
                        cam_out: endpoint {
                                remote-endpoint = <&csi_in>;
                        }
                };
        };
};

/*
 * This is the input port node corresponding to the 'CSI0' pad group,
 * not necessarily the CSI0 port of IPU1 or IPU2. On i.MX6Q it's port@1
 * of the mipi_ipu1_mux, on i.MX6DL it's port@4 of the ipu_csi0_mux,
 * the csi0 label is added in patch 13/21.
 */
&csi0 {
        #address-cells = <1>;
        #size-cells = <0>;

        csi_in: endpoint@0 {
                bus-width = <8>;
                data-shift = <12>;
                hsync-active = <1>;
                vsync-active = <1>;
                pclk-sample = <1>;
                remote-endpoint = <&cam_out>;
        };
};

>  I also have a further note below:
[...]
> > +   if (raw && priv->smfc) {
> 
> How does this ever get used? If I were to set 1X8 greyscale it wouldn't 
> ever take this path, correct?

Thank you, that is a leftover from stripping down the driver to the
basics. I'll test with a grayscale camera and fix this in the next
version.

regards
Philipp

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to