Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp722053rwb; Thu, 8 Dec 2022 02:00:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf7FQD3LGwOuh3BGKfeOLL+7jY4Bp9r1SbktiTEm7yY9KtYPj87TwPZCL+BGWvr+OK/IOIuF X-Received: by 2002:a63:ed55:0:b0:479:729:4e27 with SMTP id m21-20020a63ed55000000b0047907294e27mr2623641pgk.417.1670493659514; Thu, 08 Dec 2022 02:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670493659; cv=none; d=google.com; s=arc-20160816; b=o2Z9RC8DZLPb48XXC0CjVY9TVdj9SGhc5av01aM1hhhSOUwgwRVDRi4TabgLGXhSbq hrc0Qa7arw1FVNRxYtrOJYNiCJfmJTp/Pvdo9mnS9gGnlAkzrPHHAiCkNk6gR+isjIFG KkZhkr/5YYrjxHMh1fBnpJtoRJPKLzXBBBxZhxGMH2nu0408OPuttBG8UVH/0O2Bz1mT g7ECJwl5aF3R4wlLAEaUUu9dExh6cOpBEQ6dYEl2368r+Ad1FDblRkLbhZFwUd0rZeZG hiASMz0nWARodTM6NIeDUHcMT1vOQ/6E1QGAZ5Olxfa/ZFyZmOq0RSCYptMhoaL7MYeL Fx9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tR+f/+3nybjrz985QuJTlkfFuvKyHlsK8G2EHEYD21M=; b=cmoD8uJjMFH3CahjwiMace/feP/79ktQcr8XeXHYz50e7Q/y2xmBOCruGLU5pTkvuO nLLHX6BBbt2SgLY7c+I6zQbBWcc2eX/Onh5ewuAIzmNcu322wkfd0ep4/k3edl7/F7rO jd10+qvVbv8p4QMxbw2seZzCTeMCGREV/3k+CNiBmTleY7EJq+qAeMlI1uc/hQloAMWz hdU/7jRzXD47frr8M+hUmHgn2hILg4zuCSswJ/Yz8OTlAtiT8JUNOELPRS4wmpRL2J5y G3WWmcd0mLGsR1kvhgarwV/fbQBxP9GVsbkWvVNFqI+Yl8Vy2VOofXg20bZoPFG5kBj7 uuNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NvP+hneT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a63d758000000b00477ff64b022si23097404pgi.19.2022.12.08.02.00.48; Thu, 08 Dec 2022 02:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NvP+hneT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbiLHJoY (ORCPT + 75 others); Thu, 8 Dec 2022 04:44:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbiLHJoW (ORCPT ); Thu, 8 Dec 2022 04:44:22 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0377B6D7C0 for ; Thu, 8 Dec 2022 01:44:21 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id p36so1169348lfa.12 for ; Thu, 08 Dec 2022 01:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tR+f/+3nybjrz985QuJTlkfFuvKyHlsK8G2EHEYD21M=; b=NvP+hneTcrJLq5aKAbWBlzRJJD/2srJe9IAT/Pq2hUX9OAuJ1vz01KfcttkSjfGWq6 MkVQq1uw8kaTQSnVB8uX4rSsEPLC1n/PxH/go/ginVJgW0kAhDGkoNoRs1nCQHSk4/ck 94ktgccj6TDjOHMk+TlN+wvvuCtzqnhdW7+fA1IExI/sPZyyW9qQ4IwDE45IaqKWgC1L fz0+PgDy6EuN18RY7i+dTcRX5m1e/rFaC7S5djIFlmkXMFDMfb3lBRwtf1W/F9Vre7Gh 5Y9A7wMqnRq2lIyDogonPN6I6vu4NSaPH0jxR54Lwuur/QSXC6XPAOQghUC7UTeLNFms ZW0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tR+f/+3nybjrz985QuJTlkfFuvKyHlsK8G2EHEYD21M=; b=iJCg+p8+VW3vT9+Im9S5U41bOgn7II4up5oaGHG1xZRrrmOgeJig2cN0+ei4a3dTEU /0nS8/tcDbNI9RTbILxPFj5WbwKNFtQZgYs1j2b+G9dHYbNsd5Q13aZdnu9wFxn8vbRy MSWibL2SVmSdCymHbROgjGqC9REKioGAsdSxSvFDA2yXwCqru7T5DmLteJ2ryKHUD27M pMTQpIphVxzyMy0Ybbp04tm6KzB7tJCWOTGnN0baNm9esRfUPiJtTVwzje1TU6l8f49P pAoYTOumqnwmdZdEuRKsBHgkBn7j+lQ5VS3OPbWhzcXgnHzXHrgI7hcGI7oF2lZ/v0/X x84Q== X-Gm-Message-State: ANoB5pm9p8fj3M65LS4kg1oxSbm+/GFJPlBwpi9/1kq/eNmWvrhzTok1 XC69Gy4OSk7PJaGg2dU9PLMk3w== X-Received: by 2002:a05:6512:31c5:b0:4a2:3ca7:3a44 with SMTP id j5-20020a05651231c500b004a23ca73a44mr26614010lfe.23.1670492659337; Thu, 08 Dec 2022 01:44:19 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id d23-20020a194f17000000b0049482adb3basm3257906lfb.63.2022.12.08.01.44.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Dec 2022 01:44:18 -0800 (PST) Message-ID: Date: Thu, 8 Dec 2022 10:44:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v3 7/9] dt-bindings: mtd: Split ECC engine with rawnand controller Content-Language: en-US To: Xiangsheng Hou , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Mark Brown , Chuanhong Guo Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, benliang.zhao@mediatek.com, bin.zhang@mediatek.com References: <20221208062955.2546-1-xiangsheng.hou@mediatek.com> <20221208062955.2546-8-xiangsheng.hou@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <20221208062955.2546-8-xiangsheng.hou@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/12/2022 07:29, Xiangsheng Hou wrote: > Split MediaTek ECC engine with rawnand controller and convert to > YAML schema. > > Signed-off-by: Xiangsheng Hou > --- > .../bindings/mtd/mediatek,mtk-nfc.yaml | 154 +++++++++++++++ > .../mtd/mediatek,nand-ecc-engine.yaml | 62 ++++++ > .../devicetree/bindings/mtd/mtk-nand.txt | 176 ------------------ > 3 files changed, 216 insertions(+), 176 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml > create mode 100644 Documentation/devicetree/bindings/mtd/mediatek,nand-ecc-engine.yaml > delete mode 100644 Documentation/devicetree/bindings/mtd/mtk-nand.txt > > diff --git a/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml b/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml > new file mode 100644 > index 000000000000..eb1a44c7ae4e > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/mediatek,mtk-nfc.yaml > @@ -0,0 +1,154 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/mediatek,mtk-nfc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek(MTK) SoCs raw NAND FLASH controller (NFC) > + > +maintainers: > + - Xiangsheng Hou > + > +properties: > + compatible: > + enum: > + - mediatek,mt2701-nfc > + - mediatek,mt2712-nfc > + - mediatek,mt7622-nfc > + > + reg: > + items: > + - description: Base physical address and size of NFI. > + > + interrupts: > + items: > + - description: NFI interrupt > + > + clocks: > + items: > + - description: clock used for the controller > + - description: clock used for the pad > + > + clock-names: > + items: > + - const: nfi_clk > + - const: pad_clk > + > + ecc-engine: > + description: device-tree node of the required ECC engine. > + $ref: /schemas/types.yaml#/definitions/phandle > + > +patternProperties: > + "^nand@[a-f0-9]$": > + type: object This should be instead: $ref: nand-chip.yaml# unevaluatedProperties: false and then properties below (due to current dtschema limitations) should list properties from nand-controller.yaml: nand-on-flash-bbt: true Optionally, we could create additional schema - nand-controller-chip, which would be referenced directly by nand-controller and itself would ref nand-chip. > + properties: > + reg: > + minimum: 0 no need, 0 is the minimum. > + maximum: 1 > + nand-ecc-mode: > + const: hw > + > +allOf: > + - $ref: nand-controller.yaml# > + > + - if: Best regards, Krzysztof