From patchwork Wed Dec 8 12:46:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12695337 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 5C67CC433EF for ; Wed, 8 Dec 2021 12:47:52 +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: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:In-Reply-To:References: List-Owner; bh=Cr5rIqL23J3zfVf+KLJ3OZNM6RrAmQ/neioEJVCfj3U=; b=uoLCkvAJwOQtzb x0q3hpWyYRVytE+kYPwtajed0bVv3Q1gJaBbkUNZNmLu34/OE2gkPOmV55ZOF1lStEC+H9ubJQy5y mRQ8bm3NnNiPkg+LLk/N9cCdX+Ip+TGS/MGtisOBf3AJoGJ/Q1vD0PpOryoH5ttHnt/bmWKqF+KEl x4bKm+xN/M0qDLJDEzkL/ib8z42tZDiDGQCXkTQFNWR3zfkICjFosKtXE0yJ2Y1P9DkN7xC+MPTi9 R2OTXy8yoaAyKBxaKx7O5RfHTI7fZ0UfIpo1ftTcmFMrK1u/YAtWFt40LMLnQOkFBZW1a0qZFiYbg E8okXDEVexoD/on4fgVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwL3-00CYkw-44; Wed, 08 Dec 2021 12:46:25 +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 1muwKz-00CYjy-EZ for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 12:46:22 +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 209C0B8208B; Wed, 8 Dec 2021 12:46:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27E00C00446; Wed, 8 Dec 2021 12:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638967578; bh=DFWSlBQApudaZyIitt6ZnYtGk6Slx0oJzrBSIjiftMw=; h=From:To:Cc:Subject:Date:From; b=jWsFbhfE/03Mjt0c3JTa3BFsOfXr/SFmFE7h8mNZ5UNdHxt6thLjtgi69OUb3VLG8 CnIKAo3ZJ64eAIi41qgY29BqTiwwRQIYDlcw1tZNzpgXIbzEFiK5zj6KL8B/Ta/PA3 zMtc38v7smm2VS4q4594LCSwsdegV2NS2YJxVd/nUjdQSyspNtB3ACFpLKqJZdZ5Zc HEzLp7rWSA9zEgU/BgrFFu3WCaXqtkzKoPuZnePtQPTn8n4ACYLL4JL+ZwuqVbRz52 Fq7lCtNcusYbVf0J4VEKGww+tMXkvNRggUZtDJCYDlIMbT3H0yoNSUpz1HOUDyVowY sP7fthj54nJBg== From: Roger Quadros To: krzysztof.kozlowski@canonical.com, tony@atomide.com Cc: kishon@ti.com, nm@ti.com, vigneshr@ti.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Roger Quadros , Rob Herring Subject: [PATCH v2 1/4] dt-bindings: memory-controllers: ti, gpmc: Add compatible for AM64 Date: Wed, 8 Dec 2021 14:46:08 +0200 Message-Id: <20211208124611.16843-1-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_044621_646745_8AAB1FF4 X-CRM114-Status: GOOD ( 11.16 ) 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 AM64 SoC contains the GPMC module. Add compatible for it. Newer SoCs don't necessarily map GPMC data region at the same place as legacy SoCs. Add reg-names "data", to provide this information to the device driver. Cc: Rob Herring Signed-off-by: Roger Quadros Reviewed-by: Rob Herring --- .../bindings/memory-controllers/ti,gpmc.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml b/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml index 25b42d68f9b3..64dc9d398d9a 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml @@ -23,13 +23,20 @@ properties: items: - enum: - ti,am3352-gpmc + - ti,am64-gpmc - ti,omap2420-gpmc - ti,omap2430-gpmc - ti,omap3430-gpmc - ti,omap4430-gpmc reg: - maxItems: 1 + minItems: 1 + maxItems: 2 + + reg-names: + items: + - const: cfg + - const: data interrupts: maxItems: 1 @@ -44,6 +51,9 @@ properties: items: - const: fck + power-domains: + maxItems: 1 + dmas: items: - description: DMA channel for GPMC NAND prefetch @@ -133,6 +143,17 @@ required: - "#address-cells" - "#size-cells" +allOf: + - if: + properties: + compatible: + contains: + const: ti,am64-gpmc + then: + required: + - reg-names + - power-domains + additionalProperties: false examples: