summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuoniu.zhou <guoniu.zhou@nxp.com>2020-07-28 10:25:19 +0800
committerGuoniu.zhou <guoniu.zhou@nxp.com>2020-08-14 17:03:12 +0800
commita113fa05568e3f280668cd1aebf087643de552a7 (patch)
treed4acfcf2c53f3e49e801cf9af5f2fee39b3f4be3
parent0c9d2135a0da36edabf808c8216fe7fafa4a24eb (diff)
MLK-24494-3: arm64: dts: imx8mp: add single ov2775 support
This patch support single ov2775 based on NXP reuse csi driver, don't need to board rework. Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com> Reviewed-by: Robby Cai <robby.cai@nxp.com>
-rw-r--r--arch/arm64/boot/dts/freescale/imx8mp-evk-ov2775.dts52
1 files changed, 25 insertions, 27 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-ov2775.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-ov2775.dts
index eef0da685ab2..0b1d83122317 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-evk-ov2775.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-ov2775.dts
@@ -18,15 +18,13 @@
#include "imx8mp-evk.dts"
&i2c2 {
- ov5640_0: ov5640_mipi@3c {
- status = "disabled";
- };
+ /delete-node/ov5640_mipi@3c;
ov2775_0: ov2775_mipi@36 {
compatible = "ovti,ov2775";
reg = <0x36>;
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>;
+ pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi_mclk>;
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = "csi_mclk";
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
@@ -39,6 +37,14 @@
mclk_source = <0>;
status = "okay";
+ port {
+ ov2775_mipi_0_ep: endpoint {
+ data-lanes = <1 2 3 4>;
+ clock-lanes = <0>;
+ remote-endpoint = <&mipi_csi0_ep>;
+ };
+ };
+
};
};
@@ -56,7 +62,7 @@
compatible = "ovti,ov2775";
reg = <0x36>;
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>;
+ pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi_mclk>;
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = "csi_mclk";
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
@@ -87,30 +93,22 @@
status = "okay";
};
+&dewarp {
+ status = "okay";
+};
+
&mipi_csi_0 {
- clocks = <&clk IMX8MP_CLK_MEDIA_CAM1_PIX>,
- <&clk IMX8MP_CLK_MEDIA_AXI>,
- <&clk IMX8MP_CLK_MEDIA_APB>;
- clock-names = "mipi_clk", "axi_root", "apb_root";
- assigned-clocks = <&clk IMX8MP_CLK_MEDIA_CAM1_PIX>,
- <&clk IMX8MP_CLK_MEDIA_AXI>,
- <&clk IMX8MP_CLK_MEDIA_APB>;
- assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>,
- <&clk IMX8MP_SYS_PLL2_500M>,
- <&clk IMX8MP_SYS_PLL1_800M>;
- assigned-clock-rates = <500000000>, <500000000>, <200000000>;
+ status = "okay";
+
+ port@0 {
+ endpoint {
+ remote-endpoint = <&ov2775_mipi_0_ep>;
+ data-lanes = <4>;
+ csis-hs-settle = <16>;
+ };
+ };
};
&mipi_csi_1 {
- clocks = <&clk IMX8MP_CLK_MEDIA_CAM2_PIX>,
- <&clk IMX8MP_CLK_MEDIA_AXI>,
- <&clk IMX8MP_CLK_MEDIA_APB>;
- clock-names = "mipi_clk", "axi_root", "apb_root";
- assigned-clocks = <&clk IMX8MP_CLK_MEDIA_CAM2_PIX>,
- <&clk IMX8MP_CLK_MEDIA_AXI>,
- <&clk IMX8MP_CLK_MEDIA_APB>;
- assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>,
- <&clk IMX8MP_SYS_PLL2_500M>,
- <&clk IMX8MP_SYS_PLL1_800M>;
- assigned-clock-rates = <500000000>, <500000000>, <200000000>;
+ status = "disabled";
};