summaryrefslogtreecommitdiff
path: root/arch/arm64
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2019-11-28 16:47:35 +0100
committerPhilippe Schenker <philippe.schenker@toradex.com>2019-11-28 16:55:42 +0100
commit621db2fdb2e1bf0f462285268af4bc0be294a9dc (patch)
tree73411db7774bc713a7c39659d0fa94f68f595086 /arch/arm64
parentbafad7eb9950c2ec271693afa35a9020c7e189cf (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>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis-eval.dtsi40
-rw-r--r--arch/arm64/boot/dts/freescale/fsl-imx8qxp-apalis.dtsi2
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 = <&reg_3v3>;
+ AVDD-supply = <&reg_3v3>;
+ DVDD-supply = <&reg_3v3>;
+ PVDD-supply = <&reg_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 = <&parallel_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... */
&parallel_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 */