Skip to content

Commit

Permalink
arm64: dts: renesas: aistarvision-mipi-adapter-2.1: Add parent macro …
Browse files Browse the repository at this point in the history
…for each sensor

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>
  • Loading branch information
Lad Prabhakar authored and Geert Uytterhoeven committed Oct 26, 2020
1 parent 53e573d commit 622007d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
};
};

&MIPI_PARENT_I2C {
&MIPI_OV5645_PARENT_I2C {
ov5645: ov5645@3c {
compatible = "ovti,ov5645";
reg = <0x3c>;
Expand All @@ -77,7 +77,9 @@
};
};
};
};

&MIPI_IMX219_PARENT_I2C {
imx219: imx219@10 {
compatible = "sony,imx219";
reg = <0x10>;
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/ {
Expand Down

0 comments on commit 622007d

Please sign in to comment.