From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f12.google.com (mail-pj2-f12.google.com [74.125.227.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A8E9235BE2 for ; Mon, 21 Sep 2026 01:57:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789955843; cv=none; b=ZR4CFQ5A0/4C/X0s23jgVWVjDIL/kYP3swwDWUvBRApyVdyTHP9/ZEuC+7UT0FzQ08GWCfUSG3l8iIKsOO65rzZyJUasiSPo+Y0C/cgzm7hO1gWrrLTooMCHjjRIFaJ6oJxtlWq9LKAeDihIpRO7jdi/Cn2Oj7gZDA6K6W1edhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789955843; c=relaxed/simple; bh=xi0pxSfmqiNpR+z5WtVSMg8N6VZKsykMe1JR+wnmwoY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=suGW5oS1Ksk3yu00Ll7zpE98JjXe4SIdaVc8zkv0r+4oqCsqJtsFBkPfDVCA4KXZ1eceVl8OuENSQ7jVLFtYcc1GXQm6QvlKXxrC4rqXb+sb2uCOxf5k9qpFVAP3bxbgR7TFB5ywBuMUL1ANda6qRKuBD4Ticf0DrGJRrZqS32Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AOWeuOaW; arc=none smtp.client-ip=74.125.227.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AOWeuOaW" Received: by mail-pj2-f12.google.com with SMTP id 98e67ed59e1d1-396ccafb74fso2464095a91.3 for ; Sun, 20 Sep 2026 18:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789955842; x=1790560642; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=lqPPHQuisFYTUn7TmLcY7RMbMtgC/j1ZvNyK2Z7ksw0=; b=AOWeuOaWQwP1ELBlqV92elOQ/a5VASXCQIjg+zxdn97yDEf+zoQhoiKIWu9pWPwidi 2LQdvCoigVFe8tbmnD3vgXjwsrfNi+Zr4RaJFl14wWpnpW10q+1IRc7Qg+MHrWTTK5Ld 58qJGb0Anh1CC7Fcvfxhmm3dIMzm/E+zrfvBIQN5ihffYvMtrvib8QtLGugupmYIJYu0 mMKtDNJCQQwoQTdIxWbgLH1KNEWepILNKg3h97MEHq6cVu172VdZRsXAG+MREKANmTGa OJBryUS7xThqGXjfXSajIDve4tknCyoqaa1fC/sw3vp1hZyLJXB68MCt4iy085QvoR8B jiUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789955842; x=1790560642; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=lqPPHQuisFYTUn7TmLcY7RMbMtgC/j1ZvNyK2Z7ksw0=; b=LzhDExFpxCH0v0elmOLw5sDFzXfmNUhzdi+1pcyl+0OG64eF9F61JnUNg+EtaZp1QZ gnhfBW3ENJsYvWhkx8WX6RC+SQfsKMOFNfSnbN1SmEq2f4jOtAknGCPUXq8Al5Yfn5GM A+5f3+1X/upx7CasWmg2YRf1PZ+poDENK0Q1r/a87DdgMoe8hvBsLBdsPN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:a17:90b:440e:b0:39e:6c69:7777 with SMTP id 98e67ed59e1d1-39e6c697978mr8690113a91.32.1789955841685; Sun, 20 Sep 2026 18:57:21 -0700 (PDT) Received: from ryzen.lan ([2601:644:8000:7a86::e35]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a027ce61cfsm9765295a91.8.2026.09.20.18.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Sep 2026 18:57:21 -0700 (PDT) From: Rosen Penev To: devicetree@vger.kernel.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd@lists.infradead.org (open list:MEMORY TECHNOLOGY DEVICES (MTD)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] dt-bindings: mtd: convert IBM NDFC binding to YAML Date: Sun, 20 Sep 2026 18:57:19 -0700 Message-ID: <20260921015719.1045365-1-rosenp@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The NDFC NAND flash controller was only described in a legacy text file, so dtbs_check reported "failed to match any schema with compatible: ['ibm,ndfc']" for the ndfc nodes of the bluestone, canyonlands, eiger, glacier, sequoia and warp device trees. Convert the binding to the YAML format so those nodes match the generic nand-controller-legacy schema. Describe the node's reg, ccr and bank-settings properties, along with its "nand" chip node which carries the legacy partition layout. eiger's ndfc node omits reg (supplied by U-Boot), so add a placeholder there to satisfy the newly required property, matching the flash@0,0 node in the same file. Assisted-by: LLM Signed-off-by: Rosen Penev --- .../devicetree/bindings/mtd/ibm,ndfc.txt | 39 -------- .../devicetree/bindings/mtd/ibm,ndfc.yaml | 89 +++++++++++++++++++ 2 files changed, 89 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/ibm,ndfc.txt create mode 100644 Documentation/devicetree/bindings/mtd/ibm,ndfc.yaml diff --git a/Documentation/devicetree/bindings/mtd/ibm,ndfc.txt b/Documentation/devicetree/bindings/mtd/ibm,ndfc.txt deleted file mode 100644 index 869f0b5f16e8..000000000000 --- a/Documentation/devicetree/bindings/mtd/ibm,ndfc.txt +++ /dev/null @@ -1,39 +0,0 @@ -AMCC NDFC (NanD Flash Controller) - -Required properties: -- compatible : "ibm,ndfc". -- reg : should specify chip select and size used for the chip (0x2000). - -Optional properties: -- ccr : NDFC config and control register value (default 0). -- bank-settings : NDFC bank configuration register value (default 0). - -Notes: -- partition(s) - follows the OF MTD standard for partitions - -Example: - -ndfc@1,0 { - compatible = "ibm,ndfc"; - reg = <0x00000001 0x00000000 0x00002000>; - ccr = <0x00001000>; - bank-settings = <0x80002222>; - #address-cells = <1>; - #size-cells = <1>; - - nand { - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "kernel"; - reg = <0x00000000 0x00200000>; - }; - partition@200000 { - label = "root"; - reg = <0x00200000 0x03E00000>; - }; - }; -}; - - diff --git a/Documentation/devicetree/bindings/mtd/ibm,ndfc.yaml b/Documentation/devicetree/bindings/mtd/ibm,ndfc.yaml new file mode 100644 index 000000000000..96e25771a8fe --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/ibm,ndfc.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/ibm,ndfc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM/AMCC NDFC (NAND Flash Controller) + +maintainers: + - Miquel Raynal + - Richard Weinberger + +description: | + The NDFC is the NAND flash controller integrated into the IBM/AMCC + PowerPC 44x SoCs. + +allOf: + - $ref: nand-controller-legacy.yaml# + +properties: + compatible: + const: ibm,ndfc + + reg: + description: Chip select and size used for the chip. + maxItems: 1 + + ccr: + description: NDFC config and control register value. + $ref: /schemas/types.yaml#/definitions/uint32 + + bank-settings: + description: NDFC bank configuration register value. + $ref: /schemas/types.yaml#/definitions/uint32 + + nand: + type: object + description: NAND chip attached to the controller. + + properties: + "#address-cells": + const: 1 + "#size-cells": + const: 1 + + patternProperties: + "(^partition)?@[0-9a-f]+$": + $ref: /schemas/mtd/partitions/partition.yaml#/$defs/partition-node + deprecated: true + unevaluatedProperties: false + + additionalProperties: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + ebc { + #address-cells = <2>; + #size-cells = <1>; + + ndfc@1,0 { + compatible = "ibm,ndfc"; + reg = <0x00000001 0x00000000 0x00002000>; + ccr = <0x00001000>; + bank-settings = <0x80002222>; + #address-cells = <1>; + #size-cells = <1>; + + nand { + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "kernel"; + reg = <0x00000000 0x00200000>; + }; + partition@200000 { + label = "root"; + reg = <0x00000000 0x03e00000>; + }; + }; + }; + }; +... -- 2.55.0