From patchwork Thu Jun 7 13:51:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10451913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 67FC760234 for ; Thu, 7 Jun 2018 13:52:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F42B2A02F for ; Thu, 7 Jun 2018 13:52:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CE8A2A01F; Thu, 7 Jun 2018 13:52:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C1ECF2A01F for ; Thu, 7 Jun 2018 13:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FWWQHOnxzSgeCewBeUYyeby/HVmGbTKxyrVZeVW3xjY=; b=qCwKDESYevufNPPct6iiOiggvC 3LeYfboL544uTlzZaZe7+DPivrk1gvsdc05SKqIhwSf3kLXKnsgiTW9RMi6lJZ6yep73ft/mXWQPD SLYHjsSVCeZe0hb/bSP0IKPvaYrkjf4uFFdPwh08ampyFrEazDtgi1ASkFCB8zIF3dtlPVpZP+aAC DX8ZbJvvf2uqj5OmwEc/l3VI714PPw1tly2JXUPPsRPTEL5NF6YqxEimWEJgjBnvoLl25AADppvsZ kkWEj1iRalQP8R+keJ0lQ3nqtE7wLX55bsL2JSvSXTiU4kw9XSQw0+aPi2+HfJFgFxjNMgyLkesd5 8VQ5eHAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvKv-00052G-UM; Thu, 07 Jun 2018 13:52:22 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvKS-0004mB-4g for linux-arm-kernel@lists.infradead.org; Thu, 07 Jun 2018 13:51:54 +0000 Received: by mail-pf0-x241.google.com with SMTP id q1-v6so4949545pff.13 for ; Thu, 07 Jun 2018 06:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ucuAFwdegSYTYPWSJpOrEMDTUib4eAbTMAGIYUISLag=; b=IgcA524+uSkG8XSgCFkoCvfRDo1ZpT32Rhreg1Di+mV57IwxKShzfdiveyfFLLSGDD xnX96eblIOYrXCsXqBn8iL6DpOip0XgQzaiRDcHe6o2P4UFoMoO4RUPC7UVtxCKvWQ2p 6iTmxw4UIj+XLZ/3msSx6B5B7mzrg09gr0umQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ucuAFwdegSYTYPWSJpOrEMDTUib4eAbTMAGIYUISLag=; b=KFM11Ge3zK34C2v9Lz4uHmVmWcEPUKW4y7QqAR8VIPT0+ie6TPmLxTisgXGSJYNp5u yrFn/hDn5yjpcHrKoK+ptC5WU9pMCGWjRAgEo18eLZPtcgjB47sSSVUGQG34Uso/+eZP m9B1zj3VXYxAYXt6JDdSMhEjo+uc5qUWyO52ZPJOYpFVxlUVlpYK7HgeRVcAIqHf//jD SjT9yt2MUHNVNxkwCgTe2JYN9XLmooEdL6nB618/hQyDwl6+ybwF8xoCiByEsszXnvkX vM1lwIAWmAFgUooOvxSswI4coPuQhCk/+8vj+CmsgmBehXvSR89eIfkKss8AWH3agFQc pjxQ== X-Gm-Message-State: APt69E0Y2JvofdxiqQ/jojGlPYoeYrGAQ0VDhelCt2nYrevnI0iyzFNw 4iE823CrXBZdfz+xm+VEtJEXNg== X-Google-Smtp-Source: ADUXVKKCGvi1X8UHcoZKXgTu9RNkCcpUUi0+EwUd7V0aL0+Sm9PN8HCYJlLHNmdSNUrAEKtcazT/fg== X-Received: by 2002:a63:bf49:: with SMTP id i9-v6mr1701167pgo.342.1528379505721; Thu, 07 Jun 2018 06:51:45 -0700 (PDT) Received: from localhost.localdomain ([115.97.190.51]) by smtp.gmail.com with ESMTPSA id b3-v6sm56455901pgn.44.2018.06.07.06.51.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Jun 2018 06:51:45 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 2/3] ARM: dts: imx6q-icore-mipi: Add OV5640 Camera sensor Date: Thu, 7 Jun 2018 19:21:32 +0530 Message-Id: <20180607135133.3104-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180607135133.3104-1-jagan@amarulasolutions.com> References: <20180607135133.3104-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180607_065152_194732_6E9C8F28 X-CRM114-Status: GOOD ( 15.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Sascha Hauer , Fabio Estevam , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP OV5640 Camera sensor is connected in i.CoreM6 1.5 Quad/Dual MIPI starter kit. This patch also move MX6QDL_PAD_GPIO_0__CCM_CLKO1 pinctrl from i2c3 to ov5640 pinctrl. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6q-icore-mipi.dts | 8 ++++++ arch/arm/boot/dts/imx6qdl-icore.dtsi | 46 +++++++++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-icore-mipi.dts b/arch/arm/boot/dts/imx6q-icore-mipi.dts index acd3d33476d4..95b2efda17b4 100644 --- a/arch/arm/boot/dts/imx6q-icore-mipi.dts +++ b/arch/arm/boot/dts/imx6q-icore-mipi.dts @@ -20,6 +20,14 @@ status = "okay"; }; +&mipi_csi { + status = "okay"; +}; + +&ov5640 { + status = "okay"; +}; + &usdhc3 { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi index 0a1574998fc6..be8aa55c973e 100644 --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi @@ -215,6 +215,29 @@ pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; + ov5640: camera@3c { + compatible = "ovti,ov5640"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ov5640>; + reg = <0x3c>; + clocks = <&clks IMX6QDL_CLK_CKO>; + clock-names = "xclk"; + DOVDD-supply = <®_1p8v>; + AVDD-supply = <®_3p3v>; + DVDD-supply = <®_3p3v>; + powerdown-gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>; + status = "disabled"; + + port { + ov5640_to_mipi_csi2: endpoint { + remote-endpoint = <&mipi_csi2_in>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + sgtl5000: codec@a { #sound-dai-cells = <0>; compatible = "fsl,sgtl5000"; @@ -226,6 +249,20 @@ }; }; +&mipi_csi { + status = "disabled"; + + port@0 { + reg = <0>; + + mipi_csi2_in: endpoint { + remote-endpoint = <&ov5640_to_mipi_csi2>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; +}; + &pwm3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm3>; @@ -353,7 +390,14 @@ fsl,pins = < MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1 MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 - MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 + >; + }; + + pinctrl_ov5640: ov5640grp { + fsl,pins = < + MX6QDL_PAD_CSI0_DAT12__GPIO5_IO30 0x1b0b0 + MX6QDL_PAD_CSI0_DAT13__GPIO5_IO31 0x1b0b0 + MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 >; };