diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-03-30 13:33:01 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-04-04 15:08:12 +0100 |
commit | 7bd28b9fee2b99199e6b713c56a8a4429adaed85 (patch) | |
tree | 73ef31c97aa390a5cb5060d3fc3535d9f96025ef | |
parent | 3c256bf00d059ecb597115c5ebbd830a8968df23 (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>
4 files changed, 110 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 39a153536d2a..7aaff4e07f68 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -93,6 +93,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 \ @@ -200,6 +201,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/nxp/imx/imx6dl-hummingboard-imx219.dts b/arch/arm/boot/dts/nxp/imx/imx6dl-hummingboard-imx219.dts new file mode 100644 index 000000000000..83247fc8e9f7 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/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/nxp/imx/imx6q-hummingboard-imx219.dts b/arch/arm/boot/dts/nxp/imx/imx6q-hummingboard-imx219.dts new file mode 100644 index 000000000000..c4db20852a08 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/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/nxp/imx/imx6qdl-hummingboard-imx219.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard-imx219.dtsi new file mode 100644 index 000000000000..82e59be71d40 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/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>; + }; + }; +}; |