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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 37B38C0219E for ; Fri, 7 Feb 2025 21:32:11 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4YqRwR2JmBz30dt; Sat, 8 Feb 2025 08:30:47 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=147.75.193.91 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1738963847; cv=none; b=eZf/zPEEmD/QxJrkZB65nC1bS9K0hDoxawPgDNmB5ETpZcq19ESvDYK+r47bcnPRoCy9dRuZYRZoRtMBOmE2O9OgGQ2+P3tjj7lfojM9ah96mXp5LJlfMpVjpLIH7bl4c23j7cXg6obZFulYU+yMu1/8XFhv7o2CXOgYZXr74YDGt+RlWaYtU+q9/7tbbIItTU+7aYgxo/3DM5pLb2mFpz5IN6I+bEi5mWPhQ026SFpwRArxMhJLnQ7rRhGAElQCe16OwiMrckd37lTLnvhYA4YxEzSgOpl/7qgf5yv/IIT7QpiYsbI2Tghp4y2YlrN+GghktNylixFRQC3b2dslBA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1738963847; c=relaxed/relaxed; bh=fS+WoGOhvsv8uW9FRhEkgZqnGryseOLH2V00hnT2hU4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jcUC54eubqxVeRsUiIJt54M1nGnDW1b+nKyo3XRdknQV8Gvi66B0pVI901VQFBOpDudtk6pO/Wet+P0ULc9qNp9Mzv9eqQD5Nva/c5jAjuG84nqFcK9LWnAjQiACaUewWWM7/LbjY+gRZZACrTNitlqM3KC6EbjgWBcKSNrRKXB515+jQmYwy2JuuhNjGJQ6woxAU3WakNi7yyZhp1uNYZUsl74xGsxt070VILXgS53HaBVUJnHbwcnkWM6LQ3Lf+5LvmzdP9nk0LOHjAdbPob/8OKqqBDfQW5Bx4faHvfEXXkeFbaHsR9Uu0g8cHXKeT8eMID8Zvs3PBQfDOP8J1w== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=nBjy4UuM; dkim-atps=neutral; spf=pass (client-ip=147.75.193.91; helo=nyc.source.kernel.org; envelope-from=devnull+j.ne.posteo.net@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=nBjy4UuM; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=147.75.193.91; helo=nyc.source.kernel.org; envelope-from=devnull+j.ne.posteo.net@kernel.org; receiver=lists.ozlabs.org) Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4YqRwP3X91z301v for ; Sat, 8 Feb 2025 08:30:45 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id F3D49A43D88; Fri, 7 Feb 2025 21:28:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 49856C4CEEB; Fri, 7 Feb 2025 21:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738963836; bh=U5UemYYck+g6K/d3gcb9OegxZyY2n//O2XiyL7ugTcw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nBjy4UuM3SUjIdxik6BR5rm/ASIJDNQxPXN6mSjlI/9OhbWm0pZ67xR8x2mMfUhJ2 pmCvmwPfQNJr7yMaXgaW3IiGDMuUfwMsP2wZrEiXIdiePG6DyLpOc/jVvLhKwMUvma i+DRou6NNxW1lQyr6j3oepEfzlI7mFHYShrjOEAX3ss/mvHQq7j6TSmzceRed2Kyeg 22SUIbA3CvdGchhzow9F3mV0iGlv7y+4IPzE/IFPZ8cxKv37/E4K6uo59XGKcp1WcA Sdb1YkwjH0iM0Dz45WKyVSeHDPyPae/84FQDUuxGixxRDv7L3IWgcuMOxBIVZH3//b 0GhrBdgdRLEKg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38036C021A0; Fri, 7 Feb 2025 21:30:36 +0000 (UTC) From: =?utf-8?q?J=2E_Neusch=C3=A4fer_via_B4_Relay?= Date: Fri, 07 Feb 2025 22:30:28 +0100 Subject: [PATCH v2 11/12] dt-bindings: nand: Add fsl,elbc-fcm-nand X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20250207-ppcyaml-v2-11-8137b0c42526@posteo.net> References: <20250207-ppcyaml-v2-0-8137b0c42526@posteo.net> In-Reply-To: <20250207-ppcyaml-v2-0-8137b0c42526@posteo.net> To: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Krzysztof Kozlowski Cc: imx@lists.linux.dev, Scott Wood , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Damien Le Moal , Niklas Cassel , Herbert Xu , "David S. Miller" , Lee Jones , Vinod Koul , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Bjorn Helgaas , =?utf-8?q?J=2E_Neusch=C3=A4fer?= , Wim Van Sebroeck , Guenter Roeck , Mark Brown , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, linux-pci@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738963832; l=2741; i=j.ne@posteo.net; s=20240329; h=from:subject:message-id; bh=A7t/u30eqpoJx8jMTUhNPC2EH5W9JFBL9vrCsuCzJiM=; b=6cIaRoAnn733LBvmUf6ToU9hIJ7bv+M0rf3gbWNtCLaOwrVFONlFsub9Dce/9cDwwRNLlYNWC H/IAes0Q6zqDDWsbACciyF+d+riDCoYn9mhlEeFsw3WbFpHU26/6A9t X-Developer-Key: i=j.ne@posteo.net; a=ed25519; pk=NIe0bK42wNaX/C4bi6ezm7NJK0IQE+8MKBm7igFMIS4= X-Endpoint-Received: by B4 Relay for j.ne@posteo.net/20240329 with auth_id=156 X-Original-From: =?utf-8?q?J=2E_Neusch=C3=A4fer?= Reply-To: j.ne@posteo.net From: "J. Neuschäfer" Formalize the binding already supported by the fsl_elbc_nand.c driver and used in several device trees in arch/powerpc/boot/dts/. Signed-off-by: J. Neuschäfer --- V2: - split out from fsl,elbc binding patch - constrain #address-cells and #size-cells - add a general description - use unevaluatedProperties=false instead of additionalProperties=false - fix property order to comply with dts coding style - include raw-nand-chip.yaml instead of nand-chip.yaml --- .../devicetree/bindings/mtd/fsl,elbc-fcm-nand.yaml | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/fsl,elbc-fcm-nand.yaml b/Documentation/devicetree/bindings/mtd/fsl,elbc-fcm-nand.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1de97bb24fa4a83e2ea5d94ab822dd0e37baa102 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/fsl,elbc-fcm-nand.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/fsl,elbc-fcm-nand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NAND flash attached to Freescale eLBC + +description: + The Freescale Enhanced Local Bus controller (eLBC) contains logic to + interface with NAND flash, called the NAND Flash Control Machine (FCM). + This binding describes flash attached to an eLBC using the FCM. + +maintainers: + - J. Neuschäfer + +allOf: + - $ref: raw-nand-chip.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,mpc8313-fcm-nand + - fsl,mpc8315-fcm-nand + - fsl,mpc8377-fcm-nand + - fsl,mpc8378-fcm-nand + - fsl,mpc8379-fcm-nand + - fsl,mpc8536-fcm-nand + - fsl,mpc8569-fcm-nand + - fsl,mpc8572-fcm-nand + - fsl,p1020-fcm-nand + - fsl,p1021-fcm-nand + - fsl,p1025-fcm-nand + - fsl,p2020-fcm-nand + - const: fsl,elbc-fcm-nand + - const: fsl,elbc-fcm-nand + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + localbus { + #address-cells = <2>; + #size-cells = <1>; + + nand@1,0 { + compatible = "fsl,mpc8315-fcm-nand", + "fsl,elbc-fcm-nand"; + reg = <0x1 0x0 0x2000>; + #address-cells = <1>; + #size-cells = <1>; + }; + }; -- 2.48.0.rc1.219.gb6b6757d772