summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-03-30 13:33:01 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-10-18 23:30:32 +0100
commit5a506b36f251f424d1e6d06b7b610ebe9e7bb047 (patch)
treed521dfb6ff6b794fffea4c60bb9b6e0754fd2041
parentaa3482eb57a8074858cbdbc5410ffedde10ed91d (diff)
ARM: dts: imx6qdl-hummingboard: add IMX219 camera
Add support for the IMX219 Raspberry Pi NoIR Camera V2 module to Hummingboard. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/boot/dts/Makefile2
-rw-r--r--arch/arm/boot/dts/imx6dl-hummingboard-imx219.dts6
-rw-r--r--arch/arm/boot/dts/imx6q-hummingboard-imx219.dts6
-rw-r--r--arch/arm/boot/dts/imx6qdl-hummingboard-imx219.dtsi96
4 files changed, 110 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 4572db3fa5ae..981de7b4bd4a 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -439,6 +439,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
imx6dl-gw5913.dtb \
imx6dl-hummingboard.dtb \
imx6dl-hummingboard-emmc-som-v15.dtb \
+ imx6dl-hummingboard-imx219.dtb \
imx6dl-hummingboard-som-v15.dtb \
imx6dl-hummingboard2.dtb \
imx6dl-hummingboard2-emmc-som-v15.dtb \
@@ -521,6 +522,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
imx6q-h100.dtb \
imx6q-hummingboard.dtb \
imx6q-hummingboard-emmc-som-v15.dtb \
+ imx6q-hummingboard-imx219.dtb \
imx6q-hummingboard-som-v15.dtb \
imx6q-hummingboard2.dtb \
imx6q-hummingboard2-emmc-som-v15.dtb \
diff --git a/arch/arm/boot/dts/imx6dl-hummingboard-imx219.dts b/arch/arm/boot/dts/imx6dl-hummingboard-imx219.dts
new file mode 100644
index 000000000000..83247fc8e9f7
--- /dev/null
+++ b/arch/arm/boot/dts/imx6dl-hummingboard-imx219.dts
@@ -0,0 +1,6 @@
+#include "imx6dl-hummingboard.dts"
+#include "imx6qdl-hummingboard-imx219.dtsi"
+
+/ {
+ model = "SolidRun HummingBoard Solo/DualLite w/ IMX219";
+};
diff --git a/arch/arm/boot/dts/imx6q-hummingboard-imx219.dts b/arch/arm/boot/dts/imx6q-hummingboard-imx219.dts
new file mode 100644
index 000000000000..c4db20852a08
--- /dev/null
+++ b/arch/arm/boot/dts/imx6q-hummingboard-imx219.dts
@@ -0,0 +1,6 @@
+#include "imx6q-hummingboard.dts"
+#include "imx6qdl-hummingboard-imx219.dtsi"
+
+/ {
+ model = "SolidRun HummingBoard Dual/Quad w/ IMX219";
+};
diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard-imx219.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard-imx219.dtsi
new file mode 100644
index 000000000000..82e59be71d40
--- /dev/null
+++ b/arch/arm/boot/dts/imx6qdl-hummingboard-imx219.dtsi
@@ -0,0 +1,96 @@
+/*
+ * Copyright (C) 2013,2014 Russell King
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ * a) This file is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This file is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ * b) Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/ {
+ imx219_clk: imx219-clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <24000000>;
+ };
+};
+
+&i2c1 {
+ camera@10 {
+ compatible = "sony,imx219";
+ reg = <0x10>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_hummingboard_mipi>;
+ xclr-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
+ clocks = <&imx219_clk>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ imx219_out: endpoint {
+ clock-lanes = <0>;
+ clock-noncontinuous;
+ data-lanes = <1 2>;
+ remote-endpoint = <&mipi_csi_from_mipi_sensor>;
+ };
+ };
+ };
+};
+
+&iomuxc {
+ hummingboard {
+ pinctrl_hummingboard_mipi: hummingboard-mipi {
+ fsl,pins = <
+ MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x17059
+ MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x130b0
+ >;
+ };
+ };
+};
+
+&mipi_csi {
+ status = "okay";
+ port@0 {
+ reg = <0>;
+ mipi_csi_from_mipi_sensor: endpoint {
+ clock-lanes = <0>;
+ clock-noncontinuous;
+ data-lanes = <1 2>;
+ remote-endpoint = <&imx219_out>;
+ };
+ };
+};