diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2019-11-28 16:47:35 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2020-02-12 11:06:07 +0100 |
commit | bd92c3af1ac7ce235704fa5e4491dd24d8d726d6 (patch) | |
tree | 5e74b9990e38e04b3b9f8d73df675a9dcefaef8c | |
parent | 6daf31bcb22ca47f5cfe92956a1a0bfaf4803eda (diff) |
arm64: dts: apalis-imx8x: add adv7280 to devicetree
This patch adds the adv7280 to the devicetree and makes changes that
are necessary for parallel-CSI.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtsi | 40 | ||||
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis.dtsi | 2 |
2 files changed, 35 insertions, 7 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtsi index 8ba23c3c7c09..0f9bc96801e5 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtsi @@ -190,6 +190,34 @@ }; }; }; + + adv7280: adv7280@21 { + compatible = "adv7280"; + reg = <0x21>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_parallel_csi>; + clocks = <&clk IMX8QXP_CLK_DUMMY>; + clock-names = "csi_mclk"; + DOVDD-supply = <®_3v3>; + AVDD-supply = <®_3v3>; + DVDD-supply = <®_3v3>; + PVDD-supply = <®_3v3>; + csi_id = <0>; + mclk = <24000000>; + mclk_source = <0>; + status = "disabled"; + + /** + * Todo: The ADV7280 driver does not yet support this remote + * endpoint / port linking between the chain. + * + * port { + * adv7280_ep: endpoint { + * remote-endpoint = <¶llel_csi_ep>; + * }; + * }; + */ + }; }; &imx8_gpu_ss { @@ -205,7 +233,7 @@ interface = <2 0 2>; /** * interface = <Input MIPI_VCx Output> - * Input: 0-DC0, 1-DC1, 2-MIPI CSI0, 3-MIPI CSI1, 4-HDMI, 5-MEM + * Input: 0-DC0, 1-DC1, 2-MIPI CSI0, 3-MIPI CSI1, 4-HDMI, 5-MEM, INPUT: 6-PARALLEL CSI * MIPI_VCx: 0-VC0, 1-VC1, 2-VC2, 3-VC3, MIPI CSI only * Output: 0-DC0, 1-DC1, 2-MEM */ @@ -213,6 +241,8 @@ }; &isi_1 { + interface = <6 0 2>; + parallel_csi; status = "disabled"; }; @@ -334,21 +364,19 @@ status = "okay"; }; -/* Todo: copied from mek and put some things in... */ ¶llel_csi { #address-cells = <1>; #size-cells = <0>; - status = "okay"; -#if 0 /* Todo */ + status = "disabled"; + port@1 { reg = <1>; parallel_csi_ep: endpoint { data-lanes = <1 2>; - remote-endpoint = <&ov5640_ep>; + remote-endpoint = <&adv7280_ep>; }; }; -#endif }; /* On-module GPIO Expander */ diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis.dtsi index 178ae5f017f5..d2b6dd5b8fb8 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis.dtsi @@ -323,7 +323,7 @@ <&pinctrl_gpio8>, <&pinctrl_qspi0a_gpios>, <&pinctrl_sata1_act>, <&pinctrl_reset_moci>, <&pinctrl_mmc1_gpios>, <&pinctrl_dap1_gpios>, - <&pinctrl_parallel_csi>, <&pinctrl_wifi_sclk>; + <&pinctrl_wifi_sclk>; apalis-imx8qxp { /* Apalis AN1_ADC */ |