ARM: dts: imx6q-apalis: Add adv7280 video input
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>
Wed, 15 Jun 2022 11:50:01 +0000 (13:50 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 Jun 2022 01:12:33 +0000 (09:12 +0800)
The Apalis iMX6 modules allow connecting a parallel video input.
Add support for our ADV7280 video input module but have it disabled.
This allows to enable it in an overlay per the current system
configuration.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-apalis.dtsi

index bbd838acb8d635a8676383dd3be10d70a2153a7f..6d072aa8795220da01817420e5b1ead85ccf09d1 100644 (file)
                          "MXM3_215";
 };
 
+&gpr {
+       ipu1_csi0_mux {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+
+               port@1 {
+                       reg = <1>;
+                       ipu1_csi0_mux_from_parallel_sensor: endpoint {
+                               remote-endpoint = <&adv7280_to_ipu1_csi0_mux>;
+                       };
+               };
+       };
+};
+
 &fec {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
        status = "disabled";
 
+       adv_7280: adv7280@21 {
+               compatible = "adi,adv7280";
+               adv,force-bt656-4;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_ipu1_csi0>;
+               reg = <0x21>;
+               status = "disabled";
+
+               port {
+                       adv7280_to_ipu1_csi0_mux: endpoint {
+                               bus-width = <8>;
+                               remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
+                       };
+               };
+       };
+
        ov5640_csi_cam: ov5640_mipi@3c {
                compatible = "ovti,ov5640";
                AVDD-supply = <&reg_ov5640_2v8_a_vdd>;