From patchwork Fri Feb 4 11:15:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12734972 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 6E9D1C433EF for ; Fri, 4 Feb 2022 11:17:13 +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=yo4Lk2wgiaN1ANtVQUbgIHHml+2bgHTP981LVsEPGmI=; b=2KA+mzujbx7Oet AeCXVDaM5LuLwPjD7l4V69genJo9avGkTbfO7qNpK9jagdS+r3RAHyEVvIpc44hNkaNPufKQ0VO26 b/D/9aEwqHz1CFPafxg9m6FK95jI68TF7zPsOTT4aiN93VxKcDkYNtd+LJSSFGd8G/72WxL2mWz5t rKwo5aXNPMpQ50yU2GzHvW71KDKWupZyaPta//+6Xi6RaTIRi9xfPNR1GBmdTAEjjwSvkx9Kv75TQ wkr5LXB5ipQDHButqnVCzTcCfOsH/UCEP6oJTApCqeTUa25fjamHH9LtrFgPjTzVxpHCw7zmIYWrf G6F7MwCRMJK0T1nJLQ3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFwZI-0045Nu-Pg; Fri, 04 Feb 2022 11:15:56 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFwZ5-0045JI-RC for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 11:15:46 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 2769461A91; Fri, 4 Feb 2022 11:15:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFA90C340EF; Fri, 4 Feb 2022 11:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643973342; bh=pyBLRuJJ06eYguE/khXqSQCbVLT0wJ76+vNTWivwPNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D1A2sh045XTKOyzJLmpNqJSVVIfrUO/TuoAXGndhHj/aHioGz9/O3X8l9OVXalHAQ g3HXsGrCXkrrqrAShWNQ+v50uZpW7nEDCSol1E7DejR+x3IoDjBmiphdBa9xJ9TMJp RLkDIJ8Fgwzfaxd315Dtd3tSXIUZFWh/i/TQgE+FLzrNUD0271DU+4o0ZQIDAY3bCP 4cPOr3mbC+PnMzAZs/vaEioLTPI765FubHFq8Td2qFcfhRv1kjbBhdZB0ZL81SnuAI 4P9lplHE2aRkpbx3DTzoxwiCFHyQUEBSZ/ZxHak0/gjBaibRJHVgBVseaIpBJwryKI 8+wk1swfyMJ5w== 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 v3 1/2] arm64: dts: ti: k3-am64-main: Add GPMC memory controller node Date: Fri, 4 Feb 2022 13:15:32 +0200 Message-Id: <20220204111533.10787-2-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220204111533.10787-1-rogerq@kernel.org> References: <20220204111533.10787-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_031543_941765_0C7D8A52 X-CRM114-Status: GOOD ( 10.06 ) 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 Reviewed-by: Vignesh Raghavendra --- 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 012011dc619a..94ea5c304d73 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -1289,4 +1289,23 @@ interrupt-names = "int0", "int1"; bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>; }; + + 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 e94ae178b1ae..6bd0c0876865 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -678,3 +678,7 @@ pinctrl-0 = <&main_mcan1_pins_default>; phys = <&transceiver2>; }; + +&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 a9785bec12df..40706aa61514 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -533,3 +533,7 @@ &main_mcan1 { status = "disabled"; }; + +&gpmc0 { + status = "disabled"; +};