* [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT
@ 2023-04-18 15:31 Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 1/2] arm64: dts: imx8mp: Add CSIS DT nodes Laurent Pinchart
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Laurent Pinchart @ 2023-04-18 15:31 UTC (permalink / raw)
To: linux-arm-kernel
Cc: linux-media, devicetree, linux-imx, kernel, Shawn Guo,
Krzysztof Kozlowski, Rob Herring, Jacopo Mondi, Xavier Roumegue
Hello,
This small patch series adds the CSIS and ISI devices in the i.MX8MP DT
to support cameras. The ISI DT bindings have just been merged and will
appear in v6.4, making this series a candidate for v6.5.
With these two patches, a board overlay can enable camera support by
instantiating the camera sensor, connecting it to a CSIS instance, and
enabling the CSIS and ISI nodes. The camera pipeline is supported by
V4L2 drivers.
Laurent Pinchart (2):
arm64: dts: imx8mp: Add CSIS DT nodes
arm64: dts: imx8mp: Add ISI DT node
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 102 ++++++++++++++++++++++
1 file changed, 102 insertions(+)
base-commit: 6a8f57ae2eb07ab39a6f0ccad60c760743051026
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] arm64: dts: imx8mp: Add CSIS DT nodes
2023-04-18 15:31 [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Laurent Pinchart
@ 2023-04-18 15:31 ` Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 2/2] arm64: dts: imx8mp: Add ISI DT node Laurent Pinchart
2023-05-14 3:13 ` [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2023-04-18 15:31 UTC (permalink / raw)
To: linux-arm-kernel
Cc: linux-media, devicetree, linux-imx, kernel, Shawn Guo,
Krzysztof Kozlowski, Rob Herring, Jacopo Mondi, Xavier Roumegue
Add DT nodes for the two CSI-2 receivers of the i.MX8MP.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 60 +++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 2dd60e3252f3..2a374a4c14a2 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -1239,6 +1239,66 @@ ldb_lvds_ch1: endpoint {
};
};
+ mipi_csi_0: csi@32e40000 {
+ compatible = "fsl,imx8mp-mipi-csi2", "fsl,imx8mm-mipi-csi2";
+ reg = <0x32e40000 0x10000>;
+ interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
+ clock-frequency = <500000000>;
+ clocks = <&clk IMX8MP_CLK_MEDIA_APB_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_CAM1_PIX_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_MIPI_PHY1_REF_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>;
+ clock-names = "pclk", "wrap", "phy", "axi";
+ assigned-clocks = <&clk IMX8MP_CLK_MEDIA_CAM1_PIX>;
+ assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>;
+ assigned-clock-rates = <500000000>;
+ power-domains = <&media_blk_ctrl IMX8MP_MEDIABLK_PD_MIPI_CSI2_1>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ };
+
+ port@1 {
+ reg = <1>;
+ };
+ };
+ };
+
+ mipi_csi_1: csi@32e50000 {
+ compatible = "fsl,imx8mp-mipi-csi2", "fsl,imx8mm-mipi-csi2";
+ reg = <0x32e50000 0x10000>;
+ interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
+ clock-frequency = <266000000>;
+ clocks = <&clk IMX8MP_CLK_MEDIA_APB_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_CAM2_PIX_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_MIPI_PHY1_REF_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>;
+ clock-names = "pclk", "wrap", "phy", "axi";
+ assigned-clocks = <&clk IMX8MP_CLK_MEDIA_CAM2_PIX>;
+ assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>;
+ assigned-clock-rates = <266000000>;
+ power-domains = <&media_blk_ctrl IMX8MP_MEDIABLK_PD_MIPI_CSI2_2>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ };
+
+ port@1 {
+ reg = <1>;
+ };
+ };
+ };
+
pcie_phy: pcie-phy@32f00000 {
compatible = "fsl,imx8mp-pcie-phy";
reg = <0x32f00000 0x10000>;
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] arm64: dts: imx8mp: Add ISI DT node
2023-04-18 15:31 [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 1/2] arm64: dts: imx8mp: Add CSIS DT nodes Laurent Pinchart
@ 2023-04-18 15:31 ` Laurent Pinchart
2023-05-14 3:13 ` [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2023-04-18 15:31 UTC (permalink / raw)
To: linux-arm-kernel
Cc: linux-media, devicetree, linux-imx, kernel, Shawn Guo,
Krzysztof Kozlowski, Rob Herring, Jacopo Mondi, Xavier Roumegue
Add a DT node for the i.MX8MP ISI instance, and model to connection to
two CSI-2 receivers (CSIS).
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
---
Changes since v1:
- Add blank lines before endpoint nodes
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 42 +++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 2a374a4c14a2..192abbad68b2 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -1239,6 +1239,40 @@ ldb_lvds_ch1: endpoint {
};
};
+ isi_0: isi@32e00000 {
+ compatible = "fsl,imx8mp-isi";
+ reg = <0x32e00000 0x4000>;
+ interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>,
+ <&clk IMX8MP_CLK_MEDIA_APB_ROOT>;
+ clock-names = "axi", "apb";
+ fsl,blk-ctrl = <&media_blk_ctrl>;
+ power-domains = <&media_blk_ctrl IMX8MP_MEDIABLK_PD_ISI>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ isi_in_0: endpoint {
+ remote-endpoint = <&mipi_csi_0_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ isi_in_1: endpoint {
+ remote-endpoint = <&mipi_csi_1_out>;
+ };
+ };
+ };
+ };
+
mipi_csi_0: csi@32e40000 {
compatible = "fsl,imx8mp-mipi-csi2", "fsl,imx8mm-mipi-csi2";
reg = <0x32e40000 0x10000>;
@@ -1265,6 +1299,10 @@ port@0 {
port@1 {
reg = <1>;
+
+ mipi_csi_0_out: endpoint {
+ remote-endpoint = <&isi_in_0>;
+ };
};
};
};
@@ -1295,6 +1333,10 @@ port@0 {
port@1 {
reg = <1>;
+
+ mipi_csi_1_out: endpoint {
+ remote-endpoint = <&isi_in_1>;
+ };
};
};
};
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT
2023-04-18 15:31 [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 1/2] arm64: dts: imx8mp: Add CSIS DT nodes Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 2/2] arm64: dts: imx8mp: Add ISI DT node Laurent Pinchart
@ 2023-05-14 3:13 ` Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2023-05-14 3:13 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-arm-kernel, linux-media, devicetree, linux-imx, kernel,
Krzysztof Kozlowski, Rob Herring, Jacopo Mondi, Xavier Roumegue
On Tue, Apr 18, 2023 at 06:31:02PM +0300, Laurent Pinchart wrote:
> Hello,
>
> This small patch series adds the CSIS and ISI devices in the i.MX8MP DT
> to support cameras. The ISI DT bindings have just been merged and will
> appear in v6.4, making this series a candidate for v6.5.
>
> With these two patches, a board overlay can enable camera support by
> instantiating the camera sensor, connecting it to a CSIS instance, and
> enabling the CSIS and ISI nodes. The camera pipeline is supported by
> V4L2 drivers.
>
> Laurent Pinchart (2):
> arm64: dts: imx8mp: Add CSIS DT nodes
> arm64: dts: imx8mp: Add ISI DT node
Applied both, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-14 3:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-18 15:31 [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 1/2] arm64: dts: imx8mp: Add CSIS DT nodes Laurent Pinchart
2023-04-18 15:31 ` [PATCH v2 2/2] arm64: dts: imx8mp: Add ISI DT node Laurent Pinchart
2023-05-14 3:13 ` [PATCH v2 0/2] arm64: dts: imx8mp: Enable CSIS and ISI in DT Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).