MLK-16549-1: mipi_csi: fix camera sensor i2c R/W issue
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Fri, 8 Dec 2017 08:04:55 +0000 (16:04 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:07 +0000 (14:51 -0500)
Because there is a level shifter between mipi csi controller
and max9286 camera sensor bridge. We need configure RESET_B
and ENABLE pins as GPIO, otherwise the bridge will not work
normally.

Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qxp-lpddr4-arm2.dts
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi

index 69edeaf..2c35ab0 100644 (file)
                                SC_P_USB_SS3_TC0_CONN_USB_OTG1_PWR              0x00000021
                        >;
                };
+
+               pinctrl_mipi_csi0_gpio: mipicsi0gpiogrp{
+                       fsl,pins = <
+                               SC_P_MIPI_CSI0_GPIO0_00_MIPI_CSI0_GPIO0_IO00    0x00000021
+                               SC_P_MIPI_CSI0_GPIO0_01_MIPI_CSI0_GPIO0_IO01    0x00000021
+                       >;
+               };
        };
 };
 
        };
 };
 
+&gpio0_mipi_csi0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mipi_csi0_gpio>;
+};
+
 &isi_0 {
        status = "okay";
 };
index 6b27de2..b983d3b 100644 (file)
                #interrupt-cells = <2>;
        };
 
+       gpio0_mipi_csi0: gpio@58222000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x58222000 0x0 0x1000>;
+               interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&irqsteer_csi>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        gpu_3d0: gpu@53100000 {
                compatible = "fsl,imx8-gpu";
                reg = <0x0 0x53100000 0 0x40000>;