From mboxrd@z Thu Jan 1 00:00:00 1970 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 86A96CCD199 for ; Mon, 20 Oct 2025 10:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EJZx7MjvWZvR+9dhB8zsNC40vJfrlNPlQ8ARjxiScT8=; b=w4R2UEnN50cO8FAQpH8Rr8kTEd y1UUDAmAAEzmIfS7HfCpN36zd0NwjlJs/0bcmUeGc4szhpJ6QudwfTr0nI5LTZyi4HM36IFblCp1w Fnkpqzv0zR9VApW7hB7y9o1i0zJed9LovBpFtk6353AOaYxRmXYDbwxh+FZULfkwyeeCv2GxSjPOG jSZJ3oafavlt18buG1DVbijofEiXsJydtHwDfG4eTE5i6LELkzjYZsDRjq9lWInDZlegj8Bp2O9Y9 AT2ZLPlo66VFpX/OqYAtf1ihpjrybnnqSilFcjnWjS+PI6OraWCjB+jeqrzC0Mg37GOvrlPMI618F t+M41Z1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAmuk-0000000Cnrz-1I6c; Mon, 20 Oct 2025 10:14:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAmuB-0000000Cn4Z-2Faw for linux-arm-kernel@bombadil.infradead.org; Mon, 20 Oct 2025 10:14:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=EJZx7MjvWZvR+9dhB8zsNC40vJfrlNPlQ8ARjxiScT8=; b=nq8e7y6BAloLCA27Ws7YW2oNrh I8V9s81W6TggRzkGWwqn0+FlOdCw5Wlu/82jerEZqtMnVOuPcutL5WV+ZycabegP4fdpnY/v9IZ/2 1AWFrfK9Dqm9YC9DhTEocNZho0Sl0ExNajgHFqQ3S5GrYpiNNF9FjJ8w7IiyzLEl+VryO9S0JV9B+ KXzHoMV7xnKGAIaUw1bsXz8GSaFjr8xd+6fw8Bc52RBUY076dLjToq4gnp7zwbJM7yaKLmdIuUtJ4 Wo4w8zQ2eSyEweV+nA8aQEM8JKuLjWnYrlLFTyt1Q49e/nrD1kZZ1ruLWWS5d6Cjta5O1x+kKemX2 vy0Ki3SA==; Received: from smtpout-04.galae.net ([185.171.202.116]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAmu6-00000009i8l-3AOg for linux-arm-kernel@lists.infradead.org; Mon, 20 Oct 2025 10:14:18 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id CA4A0C0AFE3; Mon, 20 Oct 2025 10:13:53 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5BFFC606D5; Mon, 20 Oct 2025 10:14:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3C2AA102F23AF; Mon, 20 Oct 2025 12:14:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760955252; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=EJZx7MjvWZvR+9dhB8zsNC40vJfrlNPlQ8ARjxiScT8=; b=c4Ta6UE/C0O36OnJN8Hs08sr6wpMsXXN+k9RfK9GLKLFJsXb/adbzcS0eAQR3SftGlEnNB gaNdULvdIQgZlNBEINquexRJnCHrIrnMCDx5jezUeHU+IeozY70Fd3ZummPIUEqEm7ROCY AVi5kk9xjAg/HHWOe9ljSuAXqG9Vy2HWFyLYjGsSu5IVmowQMW57/cHJNGpnceLvMQqlKR 05pBIEbomAo1ziXcqb3OJ+Tq68SGsWUZg4vqKm1TawT0dmC3i/E9mijvncOt8aVGVVeAMj weg3XzP3ZN6RTs3M+9zSW6PZVZm4gaxB6pKIUt/8nuVZvf6mk03/6fURDVzpJQ== From: Richard Genoud To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Wentao Liang , Johan Hovold , Maxime Ripard , Thomas Petazzoni , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Richard Genoud Subject: [PATCH v3 14/15] dt-bindings: mtd: sunxi: Add H616 compatible Date: Mon, 20 Oct 2025 12:13:10 +0200 Message-ID: <20251020101311.256819-15-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251020101311.256819-1-richard.genoud@bootlin.com> References: <20251020101311.256819-1-richard.genoud@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251020_111414_956106_465A0F3B X-CRM114-Status: UNSURE ( 8.91 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The H616 NAND controller is quite different from the A10 and A23 ones, some registers offset changed, and some new one are introduced. Also, the DMA handling is different (it uses chained descriptors) So, introduce a new compatible to represent this version of the IP. Signed-off-by: Richard Genoud --- .../mtd/allwinner,sun4i-a10-nand.yaml | 41 +++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml index 054b6b8bf9b9..9d061e2216cb 100644 --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml @@ -6,9 +6,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Allwinner A10 NAND Controller -allOf: - - $ref: nand-controller.yaml - maintainers: - Chen-Yu Tsai - Maxime Ripard @@ -18,6 +15,8 @@ properties: enum: - allwinner,sun4i-a10-nand - allwinner,sun8i-a23-nand-controller + - allwinner,sun50i-h616-nand-controller + reg: maxItems: 1 @@ -25,14 +24,20 @@ properties: maxItems: 1 clocks: + minItems: 2 items: - description: Bus Clock - description: Module Clock + - description: ECC Clock + - description: MBus Clock clock-names: + minItems: 2 items: - const: ahb - const: mod + - const: ecc + - const: mbus resets: maxItems: 1 @@ -85,6 +90,36 @@ required: unevaluatedProperties: false +allOf: + - $ref: nand-controller.yaml + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun4i-a10-nand + - allwinner,sun8i-a23-nand-controller + then: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun50i-h616-nand-controller + then: + properties: + clocks: + minItems: 4 + clock-names: + minItems: 4 + examples: - | #include