arm64: dts: renesas: aistarvision-mipi-adapter-2.1: Add parent macro for each sensor
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 20 Oct 2020 12:51:31 +0000 (13:51 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 26 Oct 2020 08:56:33 +0000 (09:56 +0100)
For HiHope RZ/G2H the OV5645 sensor is populated on i2c2 whereas the imx219
sensor is populated on i2c3 so add support for handling such cases by
adding a parent macro for each sensor.

Also update r8a774c0-ek874-mipi-2.1.dts to incorporate the changes.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20201020125134.22625-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/aistarvision-mipi-adapter-2.1.dtsi
arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts

index dac6ff49020f970b28b4c409e18abd4fa7d2daa1..7ce986f0a06f3ffd42c1180eab6de815cebe7d23 100644 (file)
@@ -61,7 +61,7 @@
        };
 };
 
-&MIPI_PARENT_I2C {
+&MIPI_OV5645_PARENT_I2C {
        ov5645: ov5645@3c {
                compatible = "ovti,ov5645";
                reg = <0x3c>;
@@ -77,7 +77,9 @@
                        };
                };
        };
+};
 
+&MIPI_IMX219_PARENT_I2C {
        imx219: imx219@10 {
                compatible = "sony,imx219";
                reg = <0x10>;
index f0829e905506850d19cd77fcf7d0cda76bcd7e0a..e7b4a929bb17484002b98d349254bc7c9ccdae24 100644 (file)
@@ -8,7 +8,8 @@
 
 /dts-v1/;
 #include "r8a774c0-ek874.dts"
-#define MIPI_PARENT_I2C i2c3
+#define MIPI_OV5645_PARENT_I2C i2c3
+#define MIPI_IMX219_PARENT_I2C i2c3
 #include "aistarvision-mipi-adapter-2.1.dtsi"
 
 / {