diff options
author | Robby Cai <robby.cai@nxp.com> | 2018-04-13 23:09:22 +0300 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:29:23 +0800 |
commit | f7ba5790ab02764e7d7d36707eed2dbef89a3b48 (patch) | |
tree | 1d40decbef05a300a494fd1b0cd628cf4b5b902b /arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts | |
parent | ce47aa205034bbad6934d41080966493b32fb0cd (diff) |
MLK-16919-4 dts: iMX8MQ: add csi/mipi_csi/camera support
Add CSI bridge, MIPI CSI, and camera support
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts')
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts index 82e674cf9a96..3208cfbee2f5 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk.dts @@ -110,6 +110,21 @@ pinctrl-names = "default"; imx8mq-evk { + pinctrl_csi1: csi1grp { + fsl,pins = < + MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x19 + MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19 + MX8MQ_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 0x59 + >; + }; + pinctrl_csi2: csi2grp { + fsl,pins = < + MX8MQ_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x19 + MX8MQ_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x19 + MX8MQ_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 0x59 + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3 @@ -452,6 +467,47 @@ port-type = "drp"; default-role = "sink"; }; + + ov5640_mipi: ov5640_mipi@3c { + compatible = "ovti,ov5640_mipi"; + reg = <0x3c>; + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_csi1>; + clocks = <&clk IMX8MQ_CLK_DUMMY>; + clock-names = "csi_mclk"; + csi_id = <0>; + pwn-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; + rst-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + mclk = <24000000>; + mclk_source = <0>; + port { + ov5640_mipi1_ep: endpoint { + remote-endpoint = <&mipi1_sensor_ep>; + }; + }; + }; + + ov5640_mipi2: ov5640_mipi2@3c { + compatible = "ovti,ov5640_mipi"; + reg = <0x3c>; + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_csi2>; + clocks = <&clk IMX8MQ_CLK_DUMMY>; + clock-names = "csi_mclk"; + csi_id = <0>; + pwn-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + rst-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + /*AVDD-supply = <&vgen6_reg>;*/ + mclk = <24000000>; + mclk_source = <0>; + port { + ov5640_mipi2_ep: endpoint { + remote-endpoint = <&mipi2_sensor_ep>; + }; + }; + }; }; &hdmi { @@ -699,3 +755,57 @@ }; }; }; + +&csi1_bridge { + fsl,mipi-mode; + status = "okay"; + + port { + csi1_ep: endpoint { + remote-endpoint = <&csi1_mipi_ep>; + }; + }; +}; + +&csi2_bridge { + fsl,mipi-mode; + status = "disabled"; + + port { + csi2_ep: endpoint { + remote-endpoint = <&csi2_mipi_ep>; + }; + }; +}; + +&mipi_csi_1 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + port { + mipi1_sensor_ep: endpoint1 { + remote-endpoint = <&ov5640_mipi1_ep>; + data-lanes = <1 2>; + }; + + csi1_mipi_ep: endpoint2 { + remote-endpoint = <&csi1_ep>; + }; + }; +}; + +&mipi_csi_2 { + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + port { + mipi2_sensor_ep: endpoint1 { + remote-endpoint = <&ov5640_mipi2_ep>; + data-lanes = <1 2>; + }; + + csi2_mipi_ep: endpoint2 { + remote-endpoint = <&csi2_ep>; + }; + }; +}; |