From nobody Fri Dec 19 12:14:09 2025 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A723D242D99 for ; Tue, 28 Oct 2025 07:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761636967; cv=none; b=IB0bOh7xyTWYWALhWtulPCNOa+2XwgFKNxcBmILkcCgB8UIjNDyqRtsrjIkCLxBKJnF4NQFbazqOrJA1qwOAYvGzLH7AepM0oj9Sa52SRoaPySPRh81IkpHQ2tDJB7dz4lED0xkqOox8ZlOILldpKhcVAWgBcoBAZPFvaBjX46M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761636967; c=relaxed/simple; bh=BHS75REOAEnpLu0LmL2Q+i5DFOwEhuvPGHDexpSYMB0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UPc9ju2CHe+yw90V3w0nlAaDGgXYTMXnrqto4DE/PlGADKwfH5xR/6BgjFntvTaSZIyP3qqJuLVNLnFOY/5E2a2KsZ1LJJf+JITQcJPROWtJGxj5GFq8qDjqIhECT0tMoW1nIgJ2yUbdAavt1NBImcPFee9+CtlyeUuh8M9ncsQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=CMnUw3UB; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CMnUw3UB" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 2F77D4E41391; Tue, 28 Oct 2025 07:36:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id F2673606AB; Tue, 28 Oct 2025 07:36:03 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6D631102F2514; Tue, 28 Oct 2025 08:35:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761636962; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=K9NMURKSRoyeMVqqgVeeGVItJOP1Hv8pxe6jBsnxXTg=; b=CMnUw3UBO9cRxyNZe7elGCFZfhaL7szZxONp7LtNOFGp9Okwc2B3fqeZZR9KMjHT/7uGoy Bl1s1X5YyL2RtF6Zz0EpueLVE+0MHBxqf4xxYpSoEzbXnHA1mlyQUW2Slm9NExXO8eRyp9 nZVdZ3GCr+a8IKWF/f91nDB0WniEg1se/59cuZpzvNua++bqO4rzPPk4StrTW440LzUN4r ZzK2goZmTz18YQltYF51cpFHwbIRQy6g411Rz/Gz8lMCS+y057Opl8qOzF0p6OOuoLv+Lu YxgKo7RIOEaAHpFldAe2VYhAGL6pnvcAgu7lq3uRroC8eeOYM1hoFQMP75sQYw== 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 , Conor Dooley Subject: [PATCH v4 01/16] dt-bindings: mtd: sunxi: Add H616 compatible Date: Tue, 28 Oct 2025 08:34:54 +0100 Message-ID: <20251028073534.526992-2-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251028073534.526992-1-richard.genoud@bootlin.com> References: <20251028073534.526992-1-richard.genoud@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" 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. Acked-by: Conor Dooley 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# =20 title: Allwinner A10 NAND Controller =20 -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 =20 @@ -25,14 +24,20 @@ properties: maxItems: 1 =20 clocks: + minItems: 2 items: - description: Bus Clock - description: Module Clock + - description: ECC Clock + - description: MBus Clock =20 clock-names: + minItems: 2 items: - const: ahb - const: mod + - const: ecc + - const: mbus =20 resets: maxItems: 1 @@ -85,6 +90,36 @@ required: =20 unevaluatedProperties: false =20 +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 --=20 2.47.3