From patchwork Wed Dec 8 13:15:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12695346 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 7CE62C433EF for ; Wed, 8 Dec 2021 13:17:20 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6/zwoyKqe6NwCfCh4OdAm5Qia2nBbMgdiNCevZ3solw=; b=NYoMnOSwLnXcbK H2bQntHKdLDwoFlfGTEa6MJ0H5Jhg5yMCsFv1pc6Q/JEyuNnpXZ2jVmavcfrmkiWVoZZcNVzRqMeC 4LEFvsoERix6AFc+khPP3jmydmfHeSsZyoyU52omvKfJlAcrXfpbOFxXDVOdcxltzg9SPZW9GxRrz 6xFxSjp4vNoKBev/mP9x4mK9YQ6uUeEWl8v8p1AwmkOi7dEPvoRdP/pjbVjTMGB+uLN0JwsSdzhgN KJrFC3UnP6bOic964abcrewVuC4uhLD3/t1sR7xld5X5MG8lA/Go7RymjciAVREnwh1K0GQ7+G9zn NtJKiwLG9AmcaB9NmPhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwng-00CheQ-Dx; Wed, 08 Dec 2021 13:16:00 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwnT-00ChaX-Mv for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 13:15:49 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6F903B82102; Wed, 8 Dec 2021 13:15:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D65DC341C7; Wed, 8 Dec 2021 13:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638969345; bh=hjducVqW50CuU5bubaiTZGflO0pLSH4F4fUmaSzQXNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSRhPDs29aFk1jYrnXr4CF01zwOC8rws3Kw0enwvS5AsucuDJRr9r50jffNMK+q+n 18lOUDbPt6YpkdQOZujUXS675f4dMG5rYWstMlYASnt5gkpPQ1YtSj9I8ILJK+p8o0 78lvZSoiCMyniNGEK1SfDaR9XagGA5eCx/YKIjoIZanMFa82YHsIeelQK6ObAgQ85k JgZwIUDYFCsfqonsdyza493VQczmrShD21ed518m/FWtbbCOFZLD0L/0LP0d7iFBc4 Taijgp5ql+Tk5vt27NTD+BX5KAksEArBqT4/ifJ0+DGiVqHp56uXztNSCExSgOMymg e81N0yo6shTxA== From: Roger Quadros To: nm@ti.com Cc: kishon@ti.com, vigneshr@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v2 1/2] arm64: dts: ti: k3-am64-main: Add GPMC memory controller node Date: Wed, 8 Dec 2021 15:15:35 +0200 Message-Id: <20211208131536.23667-2-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211208131536.23667-1-rogerq@kernel.org> References: <20211208131536.23667-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_051547_935377_FEE4FFCC X-CRM114-Status: GOOD ( 10.18 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The GPMC is a unified memory controller dedicated for interfacing with external memory devices like - Asynchronous SRAM-like memories and ASICs - Asynchronous, synchronous, and page mode burst NOR flash - NAND flash - Pseudo-SRAM devices Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 19 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am642-evm.dts | 4 ++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 4 ++++ 3 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 5ad638b95ffc..830bfc0929b9 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1253,4 +1253,23 @@ bus_freq = <1000000>; }; }; + + gpmc0: memory-controller@3b000000 { + compatible = "ti,am64-gpmc"; + power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 80 0>; + clock-names = "fck"; + reg = <0x00 0x03b000000 0x00 0x400>, + <0x00 0x050000000 0x00 0x8000000>; + reg-names = "cfg", "data"; + interrupts = ; + gpmc,num-cs = <3>; + gpmc,num-waitpins = <2>; + #address-cells = <2>; + #size-cells = <1>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index 6726c4c7c28c..e13866a6e131 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -638,3 +638,7 @@ &icssg1_mdio { status = "disabled"; }; + +&gpmc0 { + status = "disabled"; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 6b04745147be..e2793202af38 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -525,3 +525,7 @@ &icssg1_mdio { status = "disabled"; }; + +&gpmc0 { + status = "disabled"; +};