From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796568130; b=5ZKeA5SxD2VAOJuVN2a6FN094DllsWybyhx6MJSC1b9+hLoaYuzxMIfA4R2/DIf5frka dixZaE5aIh2dTIMmcHkdBjmaHYGtsRAwCx/ZKcE7/H+sIoPb0J1oShfWwasqMJHQ505zA z2Mi5lWq7EN3IL0n+HZE9Yf+PrMntSHViOQDNSdUeFfuDSjTFVfErFlUACnID21cp7C0H EfuxL/eYrgulNujxDPP+dyMDtefwstbGgwEaei7pq8cRMapK3Hn7Q2LrIaXEG62TWPNCJ bdVImbqUWB5a7jSxVCbSysxJPVIAMFHbjRfi3m5ipBPsn2DZBEFZ6cE1mLPCkupuqng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796568130; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Nn0Ip/67fy+Olm6uf7ih85e2MrkdBBKzqNvMi3QBOAg=; b=ztlRT+3IGejRYrnwi9qZnxRNsG5s634UxmF1+TySZavZ7RuyeXkVLqRXQ5i2qyP5d4a6 EnzflJpxDcma9HNjHYRw3GHJiVRo5G9UjgFf1FkynSppWe2ZD8q63aXVyeCQYxxFlh2c6 8w4twlAN1wViMR9TsIVeWASu3sqRSf82wGHyI1jofmKV4BepLBgl6saOOK4RyoGy9rmgR UuFuwAf6m1nIDM75cGpnPlUXLK1zFZELolUypOI6cFLu3lkppNN/w+naeWbkTgnkSWlqb 2KtzcqE/to+aitcE88yFsct0gVXi1ylk3CVADN1Qzd6Jt0GYojS+AJ/UsNA/y8G+dUA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QcNlhjRS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BCFA606A31F for ; Sun, 6 Dec 2026 14:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QcNlhjRS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0447D1F0092B; Sun, 6 Dec 2026 14:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796568130; bh=Nn0Ip/67fy+Olm6uf7ih85e2MrkdBBKzqNvMi3QBOAg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=QcNlhjRSf/SXytD0pOkhjAn9m+9JtjWKvzuGzNW3OBo86KpNy7w5ZXhI7H1LELFot nlH/G0KGTZki5bdX2ByFw4OBTRW7atFg7bB38+56zMZ09RX5XcCdOCZeE4hlveLXPb pwHmfVk5oW/8ruhL1HQlqt2ZawkctGJku+d4RGa2P3e1aqMEK6NL4fRODRso7H0S3X XvJIrVIMlCKMUWaF+qLQnsryYuBzpN6ALMPkakb579s3H7ojZYf3TysUXD1aM0t39a +uFyWUW8ko+gOxGHqCMN1rqkYDTWNpj7vd14anf8OVwyzpVC1Lp1lBx6NVAaNiFm5G dE5tip5lkfdaA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v9 2/4] dt-bindings: mtd: Add Cortina CS7542 NAND controller Reply-To: sashiko-reviews@lists.linux.dev To: "Fil Dunsky" , "Miquel Raynal" , "Richard Weinberger" , "Vignesh Raghavendra" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Philipp Zabel" Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org In-Reply-To: <20261206-b4-cs7542-nand-v9-2-b79bd1478bec@gmail.com> References: <20261206-b4-cs7542-nand-v9-0-b79bd1478bec@gmail.com> <20261206-b4-cs7542-nand-v9-2-b79bd1478bec@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 14:42:09 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] dt-bindings: mtd: cs7542-nand claims shared multi-interface flash controller - [Low] dt-bindings: mtd: cortina,cs7542-nand omits hardware DMA properties - [Low] dt-bindings: mtd: cs7542-nand reg minItems allows omitting data aperture -- commit ce4d2c13d0ce1e664cc4d0a332e069a1b216c301 Author: Fil Dunsky dt-bindings: mtd: Add Cortina CS7542 NAND controller This commit adds a Devicetree binding schema for the Cortina Systems CS7542 NAND controller, describing its register block, optional banked data aperture, clock, interrupt, shared reset, and NAND chip children. > diff --git a/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.ya= ml b/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml > new file mode 100644 > index 0000000000000..7c9953c59127d > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/cortina,cs7542-nand.yaml > @@ -0,0 +1,90 @@ [ ... ] > + The flash controller also has access to the shared SSP DMA engine; > + the programmed-I/O interface does not require that DMA resource. [Severity: Low] As reported by Miquel Raynal on v2 [1], should this binding include optional dmas (and dma-names, if multiple channels exist) properties for the shared SSP DMA engine? Bindings should describe the hardware resources even when a driver uses programmed I/O. Because unevaluatedProperties: false is set, any DTS node that wires up the DMA engine will fail dtbs_check until those properties are added. [ ... ] > +properties: > + compatible: > + const: cortina,cs7542-nand > + > + reg: > + minItems: 1 > + items: > + - description: Flash controller registers > + - description: Banked NAND data aperture > + > + reg-names: > + minItems: 1 > + items: > + - const: regs > + - const: data [Severity: Low] Why do reg and reg-names allow omitting the banked NAND data aperture via minItems: 1 for a single-SoC compatible? Neither the binding nor the commit message documents a CS7542 variant where the data aperture is absent. Allowing it to be omitted lets incomplete DTS nodes pass dtbs_check and risks breaking forward compatibility if a driver later relies on that region. [ ... ] > + interrupts: > + maxItems: 1 > + description: Flash controller interrupt > + > + resets: > + maxItems: 1 > + description: Reset shared by the NAND, parallel NOR and serial flash > + interfaces in the flash controller > + > +patternProperties: > + "^nand@[2-9a-f]$": false > + "^nand@[01]$": > + type: object > + $ref: raw-nand-chip.yaml# > + properties: > + reg: > + minimum: 0 > + maximum: 1 > + unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - clocks > + - interrupts > + > +unevaluatedProperties: false [Severity: Medium] Should this binding model the shared flash controller as a parent node instead of claiming it under a NAND-only compatible? This schema gives cortina,cs7542-nand exclusive ownership of the flash controller registers, interrupt, and reset, while nand-controller.yaml# and patternProperties restrict children strictly to ^nand@[01]$. The resets description notes the same block also serves parallel NOR and serial flash. Commit "mtd: rawnand: Add Cortina CS7542 controller support" exclusively maps the 0x300-byte block of interleaved controller and NAND registers, so a sibling NOR or serial flash node cannot claim it. Locking in a NAND-only ABI prevents adding those interfaces later without deprecating the binding. Putting the shared registers, clock, interrupt, and reset in a parent flash controller node (as in st,stm32-fmc2-ebi.yaml or arm,pl35x-smc.yaml) would avoid tying the whole block to NAND. [1] https://lore.kernel.org/r/87pkvryiii.fsf@bootlin.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206-b4-cs7542-= nand-v9-0-b79bd1478bec@gmail.com?part=3D2