Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3532822pxb; Mon, 4 Apr 2022 20:11:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4xFTG22uNKk3u1SjYAdDWp5slIPWWZctzROgplakoEhyN42lRoKOxsw8Pu/di4qNDS4d8 X-Received: by 2002:a17:902:740b:b0:156:9eed:d2d4 with SMTP id g11-20020a170902740b00b001569eedd2d4mr1408720pll.80.1649128308591; Mon, 04 Apr 2022 20:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649128308; cv=none; d=google.com; s=arc-20160816; b=DbmGFLnfePvnMYK7mdQ1vm5rQlN1cLS+vUC4wXi0W+gKUetgV05sXxbIMiI+c3ihAx /vW2CZOJkZSdTezMkZetIhJaw9eAGyHKDYRjYEeZGwN8gJ+nf3asUDmeDXFNslolEJAA E0hd9gja2NMSOIX4es+520Jqunb1cToP+mmG0DxoJh4ToDAEO+v/qfM491uYHdj7mWeW YVmcTTwQOTrYKdQeCK21zTiKYUeM9bpRj7kpkoIpGnGAwmgxi1THUwJlKg8BaQi/YwLS HfEmg3MY53pqChorG70Ly9tU09OJQEqy4FElDz8wyHxN5WXpt+CZgPl+OHZYVW0PRc4R Ayug== 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=eDFMs7EElGjgVXSi1G28DbTYKExJESQOSQxzUR+xKqM=; b=X5mNMvLZXMxD7lyN17xehOCBP2ixu3ZIbat0s8BcqjHu1SSKmPSFUVPCC7qMqsy9lA LhPkvsZIA63CPWP5qq0v/PyfAcVbDuEO9Ib2BHYJTH8A+1Kr4GNVNDLV2FgNTKdMh33G zb9QiC/sHYym4sjZ1dSiaR7JXPa9YWPICXembtIfS+w1zmQfTnTEJygRDU6v2IaOMM7A 8KQsKzo9+7R0pYqVnT7VHZExNBH4RiOLsOVi2rl5jnGVEHChHbobvBwd+sU+wboqLbSu ffbBF5TGUpOegdyekClhDwHcZs6ycKUrDWtArRFBIsQBF93tFTNmjKno9tLT6TF6XMfl wqag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lnbGEtla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q3-20020a17090a2e0300b001ca86a1e430si623111pjd.121.2022.04.04.20.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:11:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lnbGEtla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B5A0444960C; Mon, 4 Apr 2022 18:12:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359177AbiDCPjg (ORCPT + 99 others); Sun, 3 Apr 2022 11:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232259AbiDCPjf (ORCPT ); Sun, 3 Apr 2022 11:39:35 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE1B33E18 for ; Sun, 3 Apr 2022 08:37:41 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id h4so10886748wrc.13 for ; Sun, 03 Apr 2022 08:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=eDFMs7EElGjgVXSi1G28DbTYKExJESQOSQxzUR+xKqM=; b=lnbGEtlamweYbPt09LLUZZmY1OEhSHyThX/GrCcNl6El493Cx8SaCgtQqMkE17prcX J4LfZqyU7meN7ZKBqPiiaqhEz48OQnHqLhAsz6amdsKGeWKgN2kgs5yDi1GqwrBu1PqX Gbm4GlMU9jc9lgq2KPbfHuzHqtBonIWl+PqeIdB1b5Cpz4H5t624nAEKk4q2tOus8EbX ze51geAwftRiFo4VVmbrccFnbRQ7WwQvc/jJ302DDtrGiVE1dmAAG1WFhfGrfBVVPuXt MzsCJc8qaT8+5p98TbBnT842jG/MYim7LYqY2m7SIu/Lrq4rx6om8VKeS5BRzJaTTgMA j12g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=eDFMs7EElGjgVXSi1G28DbTYKExJESQOSQxzUR+xKqM=; b=N2GtSbEIAEc9TgtmtcY87SMRuidfJ+d9RPrzpKE5QCOs9G8Q7tmGqSpC6CvP4pD8dL Qq1Rd618EZUqUwIBw35Lnb2p+bH7i68mdz0Dx/Zx8fb5ZXiShmiwikIphD4QobeCF6zf KPIWuKYM/0zfVLFeVZOXTVj0Bo/ZKLAoJzhDBQd69wOuVFm5RrAZpXdQQyP3bNwnwXwy b767ZJlCiLmo2kDevMXWtRnUP+RJ88wJj7u0AxpJe08TNGjhskEV2Gmzzod2puozC0di jLgWILccGCN7jvbN8Cu6dFHI8KF3sJumpdGHYoS3vxiAW2rPDpZCm/cUJ0S2HNFWGf5E A31A== X-Gm-Message-State: AOAM530fU0gKgmVGPvGeioMekolPtI/rdFNkjjUObdgDGblqltg96PZ8 gXvVpWl+1txVxGQ1on5LzR1VcQ== X-Received: by 2002:a5d:47c3:0:b0:204:5b8:225c with SMTP id o3-20020a5d47c3000000b0020405b8225cmr14059127wrc.474.1649000259960; Sun, 03 Apr 2022 08:37:39 -0700 (PDT) Received: from [192.168.0.172] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id m63-20020a1c2642000000b0038e5fa06b50sm4607976wmm.31.2022.04.03.08.37.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Apr 2022 08:37:39 -0700 (PDT) Message-ID: <817dda10-39db-adfc-376d-a3d5e037937e@linaro.org> Date: Sun, 3 Apr 2022 17:37:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 3/4] dt-bindings: spi: add binding doc for spi-mtk-snfi Content-Language: en-US To: Chuanhong Guo , linux-spi@lists.infradead.org Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Roger Quadros , Thomas Bogendoerfer , Cai Huoqing , Florian Fainelli , Colin Ian King , Wolfram Sang , Paul Cercueil , Pratyush Yadav , Yu Kuai , "open list:SPI SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , open list , "open list:NAND FLASH SUBSYSTEM" References: <20220403131154.1267887-1-gch981213@gmail.com> <20220403131154.1267887-4-gch981213@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220403131154.1267887-4-gch981213@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 03/04/2022 15:11, Chuanhong Guo wrote: > Add device-tree binding documentation for Mediatek SPI-NAND Flash > Interface. Thank you for your patch. There is something to discuss/improve. > > Signed-off-by: Chuanhong Guo > --- > .../bindings/spi/mediatek,spi-mtk-snfi.yaml | 87 +++++++++++++++++++ > 1 file changed, 87 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml > > diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml b/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml > new file mode 100644 > index 000000000000..166c6b50b9d1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml > @@ -0,0 +1,87 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/mediatek,spi-mtk-snfi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SPI-NAND flash controller for MediaTek ARM SoCs > + > +maintainers: > + - Chuanhong Guo > + > +description: | > + The Mediatek SPI-NAND flash controller is an extended version of > + the Mediatek NAND flash controller. It can perform standard SPI > + instructions with one continuous write and one read for up-to 0xa0 > + bytes. It also supports typical SPI-NAND page cache operations > + in single, dual or quad IO mode with piplined ECC encoding/decoding > + using the accompanying ECC engine. There should be only one spi > + slave device following generic spi bindings. > + > +allOf: > + - $ref: /schemas/spi/spi-controller.yaml# > + > +properties: > + compatible: > + enum: > + - mediatek,mt7622-snand > + - mediatek,mt7629-snand One blank line, please. > + reg: > + items: > + - description: core registers > + > + interrupts: > + items: > + - description: NFI interrupt > + > + clocks: > + items: > + - description: clock used for the controller > + - description: clock used for the SPI bus > + > + clock-names: > + items: > + - const: nfi_clk > + - const: pad_clk > + > + ecc-engine: The nand-chip.yaml defines a nand-ecc-engine, so how about using that one? I know mtk-nand.txt uses ecc-engine, but for new schema better to use properties from existing YAML. > + description: device-tree node of the accompanying ECC engine. > + $ref: /schemas/types.yaml#/definitions/phandle > + Rest looks good, thank you! Best regards, Krzysztof