From a52d315e89af02a63ed5d43d77626a91e3e82da5 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 21 Jul 2021 17:14:24 +0200 Subject: verdin-imx8mp: add/modify overlays for supporting ov5640 on mezzanine verdin-imx8mp_mezzanine-ov5640_overlay.dts: Modify the regular overlay to work with the default jumpering of the Mezzanine which uses the same GPIOs as the first camera interface CSI_1 and the same I2C bus as used for DSI display adapters! So, unless we modify the OV5640 driver to cope with using them same GPIOs twice or ignore absence of GPIOs this will not work for any concurrent dual camera use case. verdin-imx8mp_mezzanine-ov5640-2_overlay.dts: Add a new overlay to work with an alternate jumpering of the Mezzanine which uses the same Verdin GPIO2 as used for the Atmel MXT Touchscreen and the same I2C bus as used for DSI display adapters! So, while this can not concurrently used with our 10 inch capacitive LVDS touch screen it does work fine for any concurrent dual camera use case. While at it indicate GPIO usage of primary CSI_1 OV5640 overlay. Related-to: ELB-4035 Signed-off-by: Marcel Ziswiler --- .../verdin-imx8mp_mezzanine-ov5640_overlay.dts | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'overlays/verdin-imx8mp_mezzanine-ov5640_overlay.dts') diff --git a/overlays/verdin-imx8mp_mezzanine-ov5640_overlay.dts b/overlays/verdin-imx8mp_mezzanine-ov5640_overlay.dts index 4a5e7fc..dc6eb18 100644 --- a/overlays/verdin-imx8mp_mezzanine-ov5640_overlay.dts +++ b/overlays/verdin-imx8mp_mezzanine-ov5640_overlay.dts @@ -6,6 +6,9 @@ // Verdin iMX8M Plus Mezzanine orderable at Toradex. // CSI Camera Module 5MP OV5640 previously orderable at Toradex. +// Note: Uses the same GPIOs as the first camera interface CSI_1 +// and the same I2C bus as used for DSI display adapters! + /dts-v1/; /plugin/; @@ -41,13 +44,13 @@ mclk_source = <0>; mipi_csi; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>; - /* Verdin GPIO2 (JP6 1-2) */ - powerdown-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&pinctrl_gpio5>, <&pinctrl_gpio6>; + /* Verdin GPIO6 (JP6 2-3) */ + powerdown-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; PVDD-supply = <®_3p3v>; reg = <0x3c>; - /* Verdin GPIO1 (JP5 1-2) */ - reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + /* Verdin GPIO5 (JP5 2-3) */ + reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; status = "okay"; port { @@ -60,15 +63,6 @@ }; }; -/* make sure Verdin GPIO1 and GPIO2 are NOT muxed by default to avoid any conflict */ -&iomuxc { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpio3>, <&pinctrl_gpio4>, - <&pinctrl_gpio7>, <&pinctrl_gpio8>, - <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>, - <&pinctrl_hdmi_hog>, <&pinctrl_pmic_tpm_ena>; -}; - &isi_1 { status = "okay"; -- cgit v1.2.3