Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp727030ybv; Wed, 5 Feb 2020 13:25:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwl/OjSjM1MikYRd3yJWPfwvMxOOIyq1JDr2kYeQ+17t+CczIbHD0b6K+E92kczYRerxA2C X-Received: by 2002:a05:6830:12c3:: with SMTP id a3mr28905600otq.341.1580937918180; Wed, 05 Feb 2020 13:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580937918; cv=none; d=google.com; s=arc-20160816; b=0Caw/hWTNP1Npw1mH6uXS8/UTxQ+F55XkqV6XmFQUefIs3Xe7fTno3qVrulAvOwgM7 IFkEjc58AGlU7zXFO0Vo1n7RiF0Hx0oiqb0qG81HbOKIj/2ttZi942kvy4gFZ0CEScct kIFW9j6dUeQvZxkxMBGcsCzLFfVbYel107GtG5J/2bCoZJAQKHOQ6ljT++VjTgYdY2Bf bL+J9jPNH9I9VkjZPOT6up3lP8O3la2Xt688LdcE8CtweJ2GBl59Bz3Q9KhOBfnT/r9O yOAaGwmR8WRQSp+ubQYXugHFblaLgzWkU2lmURgdE0zc8kZUwkeo13aj+PjBGlU7oU8+ bizQ== 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=lmoAja2ZH22uV8YVJrybg6ZN1ay+TsQgYzVKwyh6oWk=; b=Q8/I+WE/jLJvaMkA0Gv8W5LSO2lwMRuG01At4WPqD7e72DlYlyjg0XBJEdFZi+oApx f7tCYsG1tbwvUKG1EjCvZL1kIi1U8z9GfRiqehVBy8N/hMFfzTlFlciB9xYwa9Y5u1dT DpknBgwrGBWw5+yPAJacQjnWzxVZTkci7S5fU+TEpORPTXMA1kAxPXm2IHZbjmCCB0BV fKD6LEAKl/y/8sXIESq7W8UpDY4CaC7BjweG+lkLJlc6u4Oeuastjq7YhYQ0vh5588X4 /zryHsWTXkGm2zEdNANjJRgFxvgnlJUHLDZbUYCUk7cHz6F26ezsnh/xDdLv+Xo49X20 rKYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=C2Xk1tj2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a22si524075otp.84.2020.02.05.13.25.05; Wed, 05 Feb 2020 13:25:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@nvidia.com header.s=n1 header.b=C2Xk1tj2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727478AbgBEVYF (ORCPT + 99 others); Wed, 5 Feb 2020 16:24:05 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:6314 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbgBEVXz (ORCPT ); Wed, 5 Feb 2020 16:23:55 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 05 Feb 2020 13:23:30 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 05 Feb 2020 13:23:54 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 05 Feb 2020 13:23:54 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 5 Feb 2020 21:23:54 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 5 Feb 2020 21:23:54 +0000 Received: from skomatineni-linux.nvidia.com (Not Verified[10.2.167.216]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 05 Feb 2020 13:23:53 -0800 From: Sowjanya Komatineni To: , , , , , , CC: , , , , Subject: [RFC PATCH v2 6/6] arm64: tegra: Add Tegra VI CSI support in device tree Date: Wed, 5 Feb 2020 13:23:26 -0800 Message-ID: <1580937806-17376-7-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580937806-17376-1-git-send-email-skomatineni@nvidia.com> References: <1580937806-17376-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=1580937810; bh=lmoAja2ZH22uV8YVJrybg6ZN1ay+TsQgYzVKwyh6oWk=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-NVConfidentiality:MIME-Version: Content-Type; b=C2Xk1tj23cxKrj1D/WZAfMngV6exRNljyeoj0HhjhQKhLTy86kjdU4m4seTI0MB0s 3iTToBMI1WGMbqUGzmuPsrbBmMuNfEEbROlvp9TayqYzrebatmCgkmykEfdNdtNKHP 7NFWRETxnXE5ed4UbkgIl+NGTp9rQmkCkuguUqF9SiAFr1VOXWi05LBS75lZ4kbDpb 6PK8XdT8k8tZeCdA0JmkJPcfbKFdq2qfU0kxPB8mGdD6bDiSVFQr1bAm6du5mRe1W0 LtHywOwB+nsxe0mWzIl8WWPnrMGk3/fJizGMBptugAy4bQ+Pu48IQPe8jerEle8TH9 9bB6U/fK0GVMg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra210 contains VI controller for video input capture from MIPI CSI camera sensors and also supports built-in test pattern generator. CSI ports can be one-to-one mapped to VI channels for capturing from an external sensor or from built-in test pattern generator. This patch adds support for VI and CSI and enables them in Tegra210 device tree. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 8 ++++++ arch/arm64/boot/dts/nvidia/tegra210.dtsi | 36 +++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi index b0095072bc28..86817ff12f2c 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi @@ -10,6 +10,14 @@ status = "okay"; }; + vi@54080000 { + status = "okay"; + + csi@0x54080838 { + status = "okay"; + }; + }; + sor@54580000 { status = "okay"; diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 48c63256ba7f..fd47f93e4f56 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi @@ -136,9 +136,43 @@ vi@54080000 { compatible = "nvidia,tegra210-vi"; - reg = <0x0 0x54080000 0x0 0x00040000>; + reg = <0x0 0x54080000 0x0 0x700>; interrupts = ; status = "disabled"; + assigned-clocks = <&tegra_car TEGRA210_CLK_VI>; + assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_C4_OUT0>; + + clocks = <&tegra_car TEGRA210_CLK_VI>; + clock-names = "vi"; + resets = <&tegra_car 20>; + reset-names = "vi"; + + #address-cells = <2>; + #size-cells = <2>; + + ranges = <0x0 0x54080808 0x0 0x54080808 0x0 0x2000>; + + csi@0x54080838 { + compatible = "nvidia,tegra210-csi"; + reg = <0x0 0x54080838 0x0 0x2000>; + status = "disabled"; + assigned-clocks = <&tegra_car TEGRA210_CLK_CILAB>, + <&tegra_car TEGRA210_CLK_CILCD>, + <&tegra_car TEGRA210_CLK_CILE>; + 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>; + + clocks = <&tegra_car TEGRA210_CLK_CSI>, + <&tegra_car TEGRA210_CLK_CILAB>, + <&tegra_car TEGRA210_CLK_CILCD>, + <&tegra_car TEGRA210_CLK_CILE>; + clock-names = "csi", "cilab", "cilcd", "cile"; + }; + }; tsec@54100000 { -- 2.7.4