From patchwork Wed Jan 23 10:52:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 156362 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp576376jaa; Wed, 23 Jan 2019 02:53:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN7g6LUbYdZvJMsjzia+PICg8g9jidpsY6/g9zaMWSmmI7Bd/jNKIAKMl4/PuXhXZRoU7LXv X-Received: by 2002:a17:902:8c91:: with SMTP id t17mr1686767plo.119.1548240786403; Wed, 23 Jan 2019 02:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548240786; cv=none; d=google.com; s=arc-20160816; b=uL9wxNLe7GAOaHUl1mTuVKHYg5KQcZ/mVU2RDIsVtQcOpnSyo9dGGwOZbQVWYwOZHG ttKTfWnzelpT4bPb+aZM4KjDxbVVnf+o+R2v8Bmqs68ptUn7XTRii5bfJyZ1s5ryZCRS 9QoH6KeY5NoMzGJEF5uObbE1wUvm6eGGTx5m6WhXn+pEMGEYDRA/SnZQOtxmBgqm0J7F h29lBJog8f0JWWomuj3VHj97yCu4f75bBw2nxvIYXtSbpozO913OvKPpOmdGTXXOsTJA 2gvqwj9/opY2VKSOghC9ci8dxmIp700ET2KnqQkTIsCrz++gLCvvTfUaWWj2TrTuG6gq IO1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=l1CtKO6V+4HtmzEfS2pTeqx8xeoh5M0LOaS1U2hjAuU=; b=Y8vUO+PNCyPYzKaZ+rVycMlkCU4r34xIovb6WZ/ED64qKhDuwoV4+6aAnjoXISK4kT hJEADslXMMNW4wxLjE9hJbhJfLVqLvKhioRLIFPvboJFScj1MHZaaqWJLeO26+lPqGQv bm34kr6+WSOR56/ziV3oDW2hKEzxzylFfFuO+C/VDl5KE44es2VjrxN1oxy0h+hujPSs qXhxEGs8eLufUJiKjChcdtQtrahwdwepCwn1rNQq3/nYN1oqFZEgLDKfbLghhRyuI4pt 8UwDYIIc1z2bqQ7NdQlynzq6i9z3y488XWvuvzm8GyaI1+Xs6EEI4Mdat/STL2xUJCdm S/6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k10wElIq; 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=pass (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 a6si18061494pfa.227.2019.01.23.02.53.06; Wed, 23 Jan 2019 02:53:06 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=k10wElIq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727504AbfAWKxF (ORCPT + 7 others); Wed, 23 Jan 2019 05:53:05 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39478 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727512AbfAWKxE (ORCPT ); Wed, 23 Jan 2019 05:53:04 -0500 Received: by mail-wr1-f65.google.com with SMTP id t27so1849632wra.6 for ; Wed, 23 Jan 2019 02:53:03 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=l1CtKO6V+4HtmzEfS2pTeqx8xeoh5M0LOaS1U2hjAuU=; b=k10wElIqWICuY2nAEaUeSfKfsMZLhdbT5iVGqNiLQih15IbFJ4qxE1DF5jEIrIKq17 OpyNXawTWfGdEtrdFfgXoDCL+mlQmqI4E/A++//Jpeb74ki0a84RnZCzs+HIcPgIrV2V 9QmHt3T1bQlLEhkmtJVBlQYBhgv78aD92iThM= 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:mime-version:content-transfer-encoding; bh=l1CtKO6V+4HtmzEfS2pTeqx8xeoh5M0LOaS1U2hjAuU=; b=K1xnVwzsZHj74hdsfWq97+2hbe7ecLQVzh4F6ro5EY8cZYBQ6YvBMwCWwffj/DdDQA XdNKS8SQespiiALfpwS7Txym0lhKOTz/u2MLULtMidG4XeSH7IdNbODT1vgetWi+kZYL L6vbcl82gWrhcHBzcG6udPHLuk9byvdxYlQunfiEXRBd/YLr+HQ7ZF4f8s8zblqh4plS 4eCd+L/WYAAqbXLjwDBYhOVAN6qOo9dblI5oz1BKVbb5EXvH0NyU1BGJckYZelqtdWtS wcF7K3IsLWEf3wb5YqdqPM1EJpBXwF9tIO+wqq1cZrLHyUDQmNMZFr4F3aWEtXpyzjzR vD4A== X-Gm-Message-State: AJcUuke6r4IhMezY5uw072CcDNW8aWC9oXZpl182M2rgDEgKwKTd6h3x 463Onfy+v/kCm/pSq1cJj27kng== X-Received: by 2002:adf:8068:: with SMTP id 95mr2190614wrk.181.1548240782939; Wed, 23 Jan 2019 02:53:02 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id 143sm120717646wml.14.2019.01.23.02.53.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 02:53:02 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v10 08/13] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections Date: Wed, 23 Jan 2019 10:52:17 +0000 Message-Id: <20190123105222.2378-9-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123105222.2378-1-rui.silva@linaro.org> References: <20190123105222.2378-1-rui.silva@linaro.org> MIME-Version: 1.0 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.20.1 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 23431faecaf4..358bcae7ebaf 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -277,6 +277,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 792efcd2caa1..01962f85cab6 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include "imx7d-pinfunc.h" / { @@ -709,6 +710,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>; @@ -718,6 +730,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 {