-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: renesas: Add support for MIPI Adapter V2.1 connected to H…
…iHope RZ/G2H Add support for AISTARVISION MIPI Adapter V2.1 board connected to HiHope RZ/G2H board. Common file hihope-rzg2-ex-aistarvision-mipi-adapter-2.1.dtsi is created which will be used by RZ/G2{HMN}, by default the CSI20 node is tied to ov5645 camera endpoint and the imx219 camera endpoint is tied to CSI40. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/20201020125134.22625-3-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
622007d
commit 05e6ae3
Showing
3 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
arch/arm64/boot/dts/renesas/hihope-rzg2-ex-aistarvision-mipi-adapter-2.1.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* Device Tree Source for the HiHope RZ/G2[HMN] MIPI common parts | ||
* | ||
* Copyright (C) 2020 Renesas Electronics Corp. | ||
*/ | ||
|
||
#define MIPI_OV5645_PARENT_I2C i2c2 | ||
#define MIPI_IMX219_PARENT_I2C i2c3 | ||
#include "aistarvision-mipi-adapter-2.1.dtsi" | ||
|
||
&csi20 { | ||
status = "okay"; | ||
|
||
ports { | ||
port@0 { | ||
reg = <0>; | ||
csi20_in: endpoint { | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
remote-endpoint = <&ov5645_ep>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&csi40 { | ||
status = "okay"; | ||
|
||
ports { | ||
port@0 { | ||
reg = <0>; | ||
csi40_in: endpoint { | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
remote-endpoint = <&imx219_ep>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&i2c3 { | ||
pinctrl-0 = <&i2c3_pins>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
}; | ||
|
||
&imx219 { | ||
port { | ||
imx219_ep: endpoint { | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
link-frequencies = /bits/ 64 <456000000>; | ||
remote-endpoint = <&csi40_in>; | ||
}; | ||
}; | ||
}; | ||
|
||
&ov5645 { | ||
enable-gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; | ||
reset-gpios = <&gpio6 8 GPIO_ACTIVE_LOW>; | ||
|
||
port { | ||
ov5645_ep: endpoint { | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
remote-endpoint = <&csi20_in>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pfc { | ||
i2c3_pins: i2c3 { | ||
groups = "i2c3"; | ||
function = "i2c3"; | ||
}; | ||
}; | ||
|
||
&vin0 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin1 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin2 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin3 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin4 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin5 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin6 { | ||
status = "okay"; | ||
}; | ||
|
||
&vin7 { | ||
status = "okay"; | ||
}; |
16 changes: 16 additions & 0 deletions
16
arch/arm64/boot/dts/renesas/r8a774e1-hihope-rzg2h-ex-mipi-2.1.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/* | ||
* Device Tree Source for the HiHope RZ/G2H board | ||
* connected with aistarvision-mipi-v2-adapter board | ||
* | ||
* Copyright (C) 2020 Renesas Electronics Corp. | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "r8a774e1-hihope-rzg2h-ex.dts" | ||
#include "hihope-rzg2-ex-aistarvision-mipi-adapter-2.1.dtsi" | ||
|
||
/ { | ||
model = "HopeRun HiHope RZ/G2H with sub board connected with aistarvision-mipi-v2-adapter board"; | ||
compatible = "hoperun,hihope-rzg2h", "renesas,r8a774e1"; | ||
}; |