From patchwork Tue May 3 09:51:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 12835499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC8E4C433F5 for ; Tue, 3 May 2022 09:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=GNN2Lb3QCxblTG2+oTAL6jF4hvX1uo2zhknJE0Zx8hY=; b=VzW9i8JCKt1XVR ca6xxVhBDyX432M1/NvaY67lVi1M8Qp6Y+3PzqSisWFoG4/bFvnnuE4QSrMNkp8R5iJpui3Kxdr7b 0edlSl1ubJv5wTDRbtyFT1s6t+IZ155/ayPGG7I41ViRxztYHYUrE+T+Q0nXr68zo5OCnBQElDRyH qE48D5GaTUcImUFTTYPyV4U3uB8yR1d+49HsNbltQQxPtwY6rLFTTzWVnUd/fLi7dOEDztY2gyYub nqWgrQ3B+SeaC1BF7Isqyq7jNPMQIiJEE+Tg+2ZvB1ZW+zTTle9RzIeDO6fAxVWOUhPGxv1jtPbdu zHcWq6N4Feo96ZJlhVRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlpGS-004zRC-1C; Tue, 03 May 2022 09:56:16 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlpCr-004xYj-7w for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 09:52:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1651571553; x=1683107553; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CNHm10rt5V80Sp41Q9FtUMsR+uyoYpn2wc8CZHNDVOI=; b=tcCgkdIkGT7ldjHgr6T2OOvbGWOFPKzLchsmCsLi6+YtzXDr3/EvuaB/ Muu1efKupfomcS6nqhedu/+1m6LOvcCPngeE9ENUQBxgU/lNeaBK5XNz4 URSS+JY4bdYDm3Aenw9blO3ayLJ3OGW9gXCseQ01CJQUdccQ5bpQ8E3wU XefWqCIOiKN1BI8n7abWRBhQGrLt9kd72WBUXK1U6tef6qkiaUy1vvV6D D1wYBanqxe6nyMzeclVdMKtbGhEDxBYeGLsCf1+6FsRdK6+iWfqW03Lxr ms9vIDDxukp163EW32wm7miC/Q0CAEY8GzAQ5B/PTpyAL8dCtWMmOzLTa A==; X-IronPort-AV: E=Sophos;i="5.91,194,1647327600"; d="scan'208";a="94364004" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 May 2022 02:52:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 3 May 2022 02:52:31 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 3 May 2022 02:52:18 -0700 From: Eugen Hristev To: , , Subject: [PATCH v10 3/5] ARM: dts: at91: sama7g5: add nodes for video capture Date: Tue, 3 May 2022 12:51:25 +0300 Message-ID: <20220503095127.48710-4-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220503095127.48710-1-eugen.hristev@microchip.com> References: <20220503095127.48710-1-eugen.hristev@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_025233_394771_1365F1CE X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, jacopo@jmondi.org, linux-kernel@vger.kernel.org, Eugen Hristev , claudiu.beznea@microchip.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add node for the XISC (eXtended Image Sensor Controller) and CSI2DC (csi2 demux controller). These nodes represent the top level of the video capture hardware pipeline and are directly connected in hardware. Signed-off-by: Eugen Hristev --- Changes in v10: - nodes disabled by default arch/arm/boot/dts/sama7g5.dtsi | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index 4decd3a91a76..fe9c6df9819b 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -454,6 +454,57 @@ sdmmc2: mmc@e120c000 { status = "disabled"; }; + csi2dc: csi2dc@e1404000 { + compatible = "microchip,sama7g5-csi2dc"; + reg = <0xe1404000 0x500>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 34>, <&xisc>; + clock-names = "pclk", "scck"; + assigned-clocks = <&xisc>; + assigned-clock-rates = <266000000>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + csi2dc_in: endpoint { + }; + }; + + port@1 { + reg = <1>; + csi2dc_out: endpoint { + bus-width = <14>; + hsync-active = <1>; + vsync-active = <1>; + remote-endpoint = <&xisc_in>; + }; + }; + }; + }; + + xisc: xisc@e1408000 { + compatible = "microchip,sama7g5-isc"; + reg = <0xe1408000 0x2000>; + interrupts = ; + clocks = <&pmc PMC_TYPE_PERIPHERAL 56>; + clock-names = "hclock"; + #clock-cells = <0>; + clock-output-names = "isc-mck"; + status = "disabled"; + + port { + xisc_in: endpoint { + bus-type = <5>; /* Parallel */ + bus-width = <14>; + hsync-active = <1>; + vsync-active = <1>; + remote-endpoint = <&csi2dc_out>; + }; + }; + }; + pwm: pwm@e1604000 { compatible = "microchip,sama7g5-pwm", "atmel,sama5d2-pwm"; reg = <0xe1604000 0x4000>;