Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp374588ybz; Tue, 21 Apr 2020 23:22:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJtljTJjTcz4GU36o60wvkkHAV3m5bs/0FrHE1d8GjnjrXGDdxWFF9inpLTynTv0P5d61ZC X-Received: by 2002:aa7:d4cd:: with SMTP id t13mr16243593edr.30.1587536523790; Tue, 21 Apr 2020 23:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587536523; cv=none; d=google.com; s=arc-20160816; b=0Qe4KFxI7c0izWD38wex62cY9wrwRoZNfK0/lWFtAGKHqo2ICsMSeHQzh0zHu39tcX 29oxNbXfWy8AE1AYrv4P5+z1sZHZjwrMGO+jRETzYC5ofxc8/u2rkhK0BIJg8+yYVGFO 7bzn2tLIshaPv8BssPQh/XnLF0c+q43M7fHiX9R3qNJdHtl72Sv7LXVeb1Uci8Wter0G sJPgCRDdF4bXWhZujPZCAtxGUW1T5rvFtnzoJx5kUaY4sLh4pFi+3X/PoH1LxwIRCeed qadMncGrvKXnaIpQc3bqE7eBzObB3LGqONwuUaszWwyMqdnOTpzuTOlpbd/KXXJqNcDM 5BJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=c1+1RY3DNymVc+W/nvOMO+FEXi1aSIH/IA3CL9uJZY0=; b=WuH4oPDcBf4KtpaL4UWhkSyoF6DQ0prRgSjkCgxDdHbWZZI1dh4mgTU7EK0LXLqDkN ZfpxMB/K5N5JRwpcy2SZ4Bd37E3DZxqvIK9CKid+kqEda46I7fba5osNVLPJiV9fO/JF lIc37/wn6xFxoN9CL4ggvCXtiUGQzYjEiT/niMG80P1VUFEysBxxXZG8DiwMZVwS3Xn/ c7fmD94zzqHRfUxO1ASQEShNc63G9NLgDT9kzPnV0xT4Ck7fU0TSji2cJL3/iSIkNvPG EaqWIVYFr0/tK12/nHakduE2CPUnvWcKs9Vn+yoLtIt7lPPIy5zYRVItZNak3aTsO3sb LT4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hyi8JEW4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si2944324ejz.195.2020.04.21.23.21.41; Tue, 21 Apr 2020 23:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hyi8JEW4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbgDVGTk (ORCPT + 99 others); Wed, 22 Apr 2020 02:19:40 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:7536 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726442AbgDVGTF (ORCPT ); Wed, 22 Apr 2020 02:19:05 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 21 Apr 2020 23:18:52 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 21 Apr 2020 23:19:05 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 21 Apr 2020 23:19:05 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 22 Apr 2020 06:19:05 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 22 Apr 2020 06:19:05 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.165.49]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 21 Apr 2020 23:19:05 -0700 From: Sowjanya Komatineni To: , , , , , , CC: , , , , , , Subject: [RFC PATCH v9 5/9] dt-binding: tegra: Add VI and CSI bindings Date: Tue, 21 Apr 2020 23:18:55 -0700 Message-ID: <1587536339-4030-6-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587536339-4030-1-git-send-email-skomatineni@nvidia.com> References: <1587536339-4030-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1587536332; bh=c1+1RY3DNymVc+W/nvOMO+FEXi1aSIH/IA3CL9uJZY0=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=hyi8JEW4G2C1jYw0up/p8UiyaNPfteiZnPmwh+9kekCp4K1xJqEAA0jzrr1V9RASf yPto3tS8F8SDiLV3Z/aL88pW+Yt7NxDBw+tSCFPzg0Y1H+/+FIRTaM6Pf0ekY1hrBf Y7iQjcHfFZo3wglI+CwzwOKmYp+17LigBFa+pOEovXdtcjpJ1nZo6kUgVO8DWonMJJ SHHISROFbge4SO1vRaYZKinTJlNV1co0IPrxtEUPRYdBVbHIEXUETTEYI8hutcDPYN S5k+WIV8CAOXWrqt8PqJXfWic7B2zXbvYH0DEl7I/oND+jy20hkbbSQT7JFKeFLGxL lAtWhbHRaIOAg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra contains VI controller which can support up to 6 MIPI CSI camera sensors. Each Tegra CSI port from CSI unit can be one-to-one mapper to VI channel and can capture from an external camera sensor or from built-in test pattern generator. This patch adds dt-bindings for Tegra VI and CSI. Acked-by: Thierry Reding Reviewed-by: Rob Herring Signed-off-by: Sowjanya Komatineni --- .../display/tegra/nvidia,tegra20-host1x.txt | 73 ++++++++++++++++++---- 1 file changed, 60 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt index 9999255..4731921 100644 --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.txt @@ -40,14 +40,30 @@ of the following host1x client modules: Required properties: - compatible: "nvidia,tegra-vi" - - reg: Physical base address and length of the controller's registers. + - reg: Physical base address and length of the controller registers. - interrupts: The interrupt outputs from the controller. - - clocks: Must contain one entry, for the module clock. + - clocks: clocks: Must contain one entry, for the module clock. See ../clocks/clock-bindings.txt for details. - - resets: Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. - - reset-names: Must include the following entries: - - vi + - Tegra20/Tegra30/Tegra114/Tegra124: + - resets: Must contain an entry for each entry in reset-names. + See ../reset/reset.txt for details. + - reset-names: Must include the following entries: + - vi + - Tegra210: + - power-domains: Must include venc powergate node as vi is in VE partition. + - Tegra210 has CSI part of VI sharing same host interface and register space. + So, VI device node should have CSI child node. + + - csi: mipi csi interface to vi + + Required properties: + - compatible: "nvidia,tegra210-csi" + - reg: Physical base address offset to parent and length of the controller + registers. + - clocks: Must contain entries csi, cilab, cilcd, cile, csi_tpg clocks. + See ../clocks/clock-bindings.txt for details. + - power-domains: Must include sor powergate node as csicil is in + SOR partition. - epp: encoder pre-processor @@ -309,13 +325,44 @@ Example: reset-names = "mpe"; }; - vi { - compatible = "nvidia,tegra20-vi"; - reg = <0x54080000 0x00040000>; - interrupts = <0 69 0x04>; - clocks = <&tegra_car TEGRA20_CLK_VI>; - resets = <&tegra_car 100>; - reset-names = "vi"; + vi@54080000 { + compatible = "nvidia,tegra210-vi"; + reg = <0x0 0x54080000 0x0 0x700>; + interrupts = ; + assigned-clocks = <&tegra_car TEGRA210_CLK_VI>; + assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_C4_OUT0>; + + clocks = <&tegra_car TEGRA210_CLK_VI>; + power-domains = <&pd_venc>; + + #address-cells = <1>; + #size-cells = <1>; + + ranges = <0x0 0x0 0x54080000 0x2000>; + + csi@838 { + compatible = "nvidia,tegra210-csi"; + reg = <0x838 0x1300>; + assigned-clocks = <&tegra_car TEGRA210_CLK_CILAB>, + <&tegra_car TEGRA210_CLK_CILCD>, + <&tegra_car TEGRA210_CLK_CILE>, + <&tegra_car TEGRA210_CLK_CSI_TPG>; + assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_P>, + <&tegra_car TEGRA210_CLK_PLL_P>, + <&tegra_car TEGRA210_CLK_PLL_P>; + assigned-clock-rates = <102000000>, + <102000000>, + <102000000>, + <972000000>; + + clocks = <&tegra_car TEGRA210_CLK_CSI>, + <&tegra_car TEGRA210_CLK_CILAB>, + <&tegra_car TEGRA210_CLK_CILCD>, + <&tegra_car TEGRA210_CLK_CILE>, + <&tegra_car TEGRA210_CLK_CSI_TPG>; + clock-names = "csi", "cilab", "cilcd", "cile", "csi_tpg"; + power-domains = <&pd_sor>; + }; }; epp { -- 2.7.4