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 94BC6414A15 for ; Thu, 24 Sep 2026 21:22:43 +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=1790284964; cv=none; b=lMxqzQ9+xBHV5J+pY22p35CAxmZzGukbXgr4bjDyxhcA6ahmSt0akpJVHk1xFSLaGFjc739w6pGCkvC8QbknV35uZO3A7Y1Pw2Du0RdSNnt/6JdfyMPzkdFVJHCxcwj+1db5keysTS5Lv+WMZoOmQ5r5IdXDXsa4h//JoutiELE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790284964; c=relaxed/simple; bh=a8UW03hFC4y6xIrI/jY9IpQN2DP0E4+UInOOitHWCq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RpRlVge24azDf/HM/SKEG+noW6hP5K16L1SSAtxe25QjuXZ+IeuAcbh5znhZbM3vTg4glhbG49BOwKUc3wCKLP+VDewemdlgXxtqayGHYqyRMzDtVslVQdM214hkDvUm8MtxWLpHY9m023wkJLuUqvWRl953cj3D7yDRl0miBNY= 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=UKWg6FeI; 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="UKWg6FeI" Received: by mail-pj2-f12.google.com with SMTP id 98e67ed59e1d1-398c066106cso202205a91.1 for ; Thu, 24 Sep 2026 14:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790284963; x=1790889763; 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=XNeX0VLmUYHcPXZxiAvv/hSZfqe9z0guoQ2EWN7NS/g=; b=UKWg6FeIp+QcZbBOi9RV8Vsv0ybC+q/eQVqfLW9gXNewL1D4v7MyuCnzSRSIZMm4Ya cOcl4aI7OKLygx0FoKHCqsfc8AZp+mP1zMRP23MWAWOh6646wDaGF6bzNAwJ7dftM8tw SJeD16wrp2Pa7gqrWpzaYA2KHl8Xo9BQHwxpLsZGTYWMtAi5FJC+qzeeCdcLYhXrag14 AcNwbzyL1+2s+SxjA1wnoRDigjo96wy7nDsKINvwAUrxuzGs/t3b4o9PA9B5yO1J5kRo LF/xltEpKvIeZbFdJimhiyCwZKvWnST7j45zFQHVEBscPwZeMetjV+kmxkay1OzYFILW PUFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790284963; x=1790889763; 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=XNeX0VLmUYHcPXZxiAvv/hSZfqe9z0guoQ2EWN7NS/g=; b=pQhCxbku7DLi1OLJpj5fFt2lRwjs4aX4ssJHav+Gpnq8CS/QrTZ3VX6ZVZl5HAgEKO zndX/Rs/ZR+3S7S3OCW1HP1di/etNTPqPSXEltKUwBRcOH+AGUK1lQM/uNNmaopg1YoL YdcudM8p/+LtBa8YcJNYuP7/1ZRdzRRN7ku7hCfk80jxJRHXT2PMxB1S/WwtaImhK+fp owW57a+yHwM2wdLW5jII4mCnc6aVIp+N7e1io2E/VIGJwi1Gv6FLmWTtOhOW9bJxpw9I 77L8dpzGsrZ5y17U7khWgF5o6/QnAL3UiXNgdhi7oH5JtJRnUXvth6sSER6HjnwFaKve KgHw== X-Gm-Message-State: AFuF++lSabpQlQIYNsNWB1jVgaCpcxYZUfDl2lHP5gYVskR6BgWHzH0v oT4oI+YyawzZO8iz86PTPubd8/aQLJVE7dHht4xCB05w1nT2mWTu9vROEPsvww== X-Gm-Gg: AYBFou3QPyj2HNp3ojhKCUJGu7s62ieVJM1bRgtjcwJN6tOf8SLKBCzgGoeKl3wRN6t ieE+Ot5+3CnxHuI5mqr3WIPInJK4NeJQt5pJz2mYuOgoHLZwfA5hqHa1HqNxkJi3ZvWT7l/5H2r L8UQOdHUE6EaUOZj3bMe3eAkwSGmai9obvPVMnJTqCVifd5oYsEc8YP+ZqYcVC8WBCu08QZh6P3 nf8vOchUsrJK/7raEvXoprX9XzOj3ajc1vEsdV/5XThFvxPGfwnpDmz/+j9yyvhXMZDZNvkIlg6 NKQ11uXqArVejTuXVxquARBwAPf/+dWvDeAOtIK8NkxASobgt9GdUc3/1vI6U3VRq6yZJDZnadp BTTiAUIoreLy3Mid7++bndAPQvCSKwkaRX7EBItnGHGaCniCvzC3Xax7ThKaEIwFY0jXyQ94mGn EBLnkh89EoCKL43hqDmf6SrLWVA5x6wmIz+6OuFyE7f0W0/G/vSWhqQ7dh6oLV8QG7tFQmB+85f mz2tPbNi/5X42OYFTa38ufjZnuER5ThncHXK3LNruEzq+BwoKSC3+f2PHL2TxycnM3oFUShaHDK k0DFFxUJsKaeUKT7v1oFQqmfKoPfQspMRr3lDQT+jAnCFOGsfhXb/Yg/hG0= X-Received: by 2002:a17:90b:4e8f:b0:39e:6c68:1551 with SMTP id 98e67ed59e1d1-3a09896c4demr3131575a91.25.1790284962600; Thu, 24 Sep 2026 14:22:42 -0700 (PDT) Received: from ryzen.lan ([2601:644:8000:7a86::e34]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a0b99e5711sm461579a91.17.2026.09.24.14.22.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 14:22:42 -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: [PATCHv3] dt-bindings: mtd: convert IBM NDFC binding to YAML Date: Thu, 24 Sep 2026 14:22:40 -0700 Message-ID: <20260924212240.81857-1-rosenp@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: devicetree@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. Assisted-by: LLM Signed-off-by: Rosen Penev --- v3: fix wrong regex v2: fix reg value .../devicetree/bindings/mtd/ibm,ndfc.txt | 39 -------- .../devicetree/bindings/mtd/ibm,ndfc.yaml | 88 +++++++++++++++++++ 2 files changed, 88 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..e614c5855b42 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/ibm,ndfc.yaml @@ -0,0 +1,88 @@ +# 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 + +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 = <0x00200000 0x03e00000>; + }; + }; + }; + }; +... -- 2.55.0