From patchwork Tue May 22 14:52:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 136566 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1735208lji; Tue, 22 May 2018 07:53:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4w9+/oRBSDHoikNZR9N8CwOiP3/VI0hmST2rJ4d24kwiX4bvR6O8NKjuIsuWzdNmIDvBm X-Received: by 2002:a63:6f89:: with SMTP id k131-v6mr19333227pgc.237.1527000808866; Tue, 22 May 2018 07:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527000808; cv=none; d=google.com; s=arc-20160816; b=PYQ566iHXkYvPa+FpEA72dNft082ufumtws1GWp+eQCEB8aW3CJAWcPKPFCWdZtyVY 4GFcA5Zpd5o2GxiEs1cfiw7YJADc/sADsDNFcgkXuUH8Df5mvA9Yw3mp2RYH0T80KoAc IwORLZyc1AyOg43/yYNJwqggTVneK/w/ejtFgFljCy5TDz8gm6V3VOD6Pys9sMGjb1Ui bIOq/tzvi/B31PvM5wAR700i4wyCuHkJgFFuR7Ez3ncGJj9RG3GsNKWE/lSCA+ySgCfP icEWrXT85Z9nEIFHQRDXvO/xZQ6RKsypvZiX4NCQHYg6QScYZJlhY6vaDMjZYmZc1xc2 5f+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qBB9aFtbHEapx3Td+C8vQ0m+r/W7bsoQEQAcwGoQhc4=; b=gSkJPqPbtdaFjMyRQGTz+gltKkzkhP6zpwslTt3jaO8Ca/h2LwhLDkDFwcN3gNqEym CBqyJjQneV8yZhZSJe6K2KIN/u2NWiI3osJm+EG3vEHObsvODIdSYt2MIxGNhiNY7Htd 6DRBgtxBTsrQX474HPUtTDUowlZCYZ2v1ovWBraypa81Kf4wrnJtR9nkLXUE2CWdEwp0 lYdsGHiw6P29OhRh6IhF00E8OH8nKRspR/9cGxNv9x6B3hqQx5YwB+TRy7OYfBnBEgyt LLJImvcPCUpPgAuyG0f6TSDDfqNrKWs6MP4DUBsL4sbll7UZM2P9B7JmaHjqUdqP0J1n gp4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KNYmMfgc; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28-v6si16922041pfl.317.2018.05.22.07.53.28; Tue, 22 May 2018 07:53:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KNYmMfgc; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbeEVOx1 (ORCPT + 5 others); Tue, 22 May 2018 10:53:27 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36473 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751713AbeEVOxY (ORCPT ); Tue, 22 May 2018 10:53:24 -0400 Received: by mail-wm0-f68.google.com with SMTP id n10-v6so606146wmc.1 for ; Tue, 22 May 2018 07:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zQedFqdWKosarK3EAU9NBJ1Z6CrFguyJO5a8vN1G6F8=; b=KNYmMfgcJ6fcB5Uk6FPBYHT9ZD20oSzQyvnpNZUa71A9p3kw+4HjC6eUa+m9okuHV+ 5zVaXKCg4M6wb3Uhd9sCpf5gAqY9MofWpghdKbMGTjW0nhA+u/px/lqN8wsYtIfY4Hbo 2SGPS5gcust6j/+un+D89QU72y4kwncWgRFXI= 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=zQedFqdWKosarK3EAU9NBJ1Z6CrFguyJO5a8vN1G6F8=; b=UIdrEnI789lwzf8Gp8azTFuFQX1bD5Y3cAcHi14TLCfDUzzuiLzix4kausWtvKLB7O 0l93Tp820JfxKHvGBUcCK+q4/U4zPcj6VquHrLCORvx08CQhFCCp3C9zLVDYW3W9n0uv S4MTcQAXfyIyioLNSKVgBmEVWy1vfPOdjFPkTvhpnEypGWmtz62fKlWk3s8cl46XdjYr 2c7g4LZXMdD8+6o6SOJiDelQ1Wgv6lMabgUf3ONWYkuTGqtfFwEtl+3yMzrEHEhXGIO7 GTJhdH8LMqihYQgcWvHZYnS3fLJV7rLRlrTJfQk8i2ofyR2dhlca4hcPZQBQvLj+MsvJ yLgQ== X-Gm-Message-State: ALKqPwfN0GgvXaqqdz+jOWGD7ZBGfcHz80BlkIzduLRuCQbXDtYGlGaV t/O+lDLyMHJ/jl4GBYZttIksMg== X-Received: by 2002:a1c:904b:: with SMTP id s72-v6mr1445202wmd.85.1527000802850; Tue, 22 May 2018 07:53:22 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id 75-v6sm76878wmw.37.2018.05.22.07.53.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:53:22 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Steve Longerbeam , Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Shawn Guo , Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , linux-clk@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v6 10/13] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections Date: Tue, 22 May 2018 15:52:42 +0100 Message-Id: <20180522145245.3143-11-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180522145245.3143-1-rui.silva@linaro.org> References: <20180522145245.3143-1-rui.silva@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the device tree nodes for csi, video multiplexer and mipi-csi besides the graph connecting the necessary endpoints to make the media capture entities to work in imx7 Warp board. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 51 ++++++++++++++++++++++++++++++++ arch/arm/boot/dts/imx7s.dtsi | 27 +++++++++++++++++ 2 files changed, 78 insertions(+) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 8a30b148534d..cb175ee2fc9d 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -310,6 +310,57 @@ status = "okay"; }; +&gpr { + csi_mux { + compatible = "video-mux"; + mux-controls = <&mux 0>; + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + csi_mux_from_mipi_vc0: endpoint { + remote-endpoint = <&mipi_vc0_to_csi_mux>; + }; + }; + + port@2 { + reg = <2>; + + csi_mux_to_csi: endpoint { + remote-endpoint = <&csi_from_csi_mux>; + }; + }; + }; +}; + +&csi { + status = "okay"; + + port { + csi_from_csi_mux: endpoint { + remote-endpoint = <&csi_mux_to_csi>; + }; + }; +}; + +&mipi_csi { + clock-frequency = <166000000>; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + fsl,csis-hs-settle = <3>; + + port@1 { + reg = <1>; + + mipi_vc0_to_csi_mux: endpoint { + remote-endpoint = <&csi_mux_from_mipi_vc0>; + }; + }; +}; + &wdog1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wdog>; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 0b0b85438869..4fce2f46c766 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -46,6 +46,7 @@ #include #include #include +#include #include "imx7d-pinfunc.h" / { @@ -738,6 +739,17 @@ status = "disabled"; }; + csi: csi@30710000 { + compatible = "fsl,imx7-csi"; + reg = <0x30710000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_CLK_DUMMY>, + <&clks IMX7D_CSI_MCLK_ROOT_CLK>, + <&clks IMX7D_CLK_DUMMY>; + clock-names = "axi", "mclk", "dcic"; + status = "disabled"; + }; + lcdif: lcdif@30730000 { compatible = "fsl,imx7d-lcdif", "fsl,imx28-lcdif"; reg = <0x30730000 0x10000>; @@ -747,6 +759,21 @@ clock-names = "pix", "axi"; status = "disabled"; }; + + mipi_csi: mipi-csi@30750000 { + compatible = "fsl,imx7-mipi-csi2"; + reg = <0x30750000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_IPG_ROOT_CLK>, + <&clks IMX7D_MIPI_CSI_ROOT_CLK>, + <&clks IMX7D_MIPI_DPHY_ROOT_CLK>; + clock-names = "pclk", "wrap", "phy"; + power-domains = <&pgc_mipi_phy>; + phy-supply = <®_1p0d>; + resets = <&src IMX7_RESET_MIPI_PHY_MRST>; + reset-names = "mrst"; + status = "disabled"; + }; }; aips3: aips-bus@30800000 {