Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3433760pxb; Mon, 4 Apr 2022 16:53:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvyIP+Sgcn8Pp6tYglegB130kcD4ljlAOfuG+DGF4G0hyWFRzrxXfRxAno/62MK6+E5MJU X-Received: by 2002:a17:903:240c:b0:153:c452:f282 with SMTP id e12-20020a170903240c00b00153c452f282mr692871plo.88.1649116384809; Mon, 04 Apr 2022 16:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649116384; cv=none; d=google.com; s=arc-20160816; b=pSS6BNwTmuLnv+qulfd8+emaE1TNSnoCJqldjFqS9mTVTC34YO1Od5hf7bY0FFF1y4 gtdljOwldhKRGA+lwYpy5ZnqTP8naKcMycKjYYCohOO0+ibxlfybYka90Yy4OjxXjTPR lH8M9mkhdIDCVwdklV1b7sdRUIGHmYNi1xutI+tsE3ZKzh7BtLDQ843dBvbpg1vmbezT KjRV7vNsA7h3Pk6QjClsKIn7deegkM0Nn2CaThDUeRVbeZBGFetwmBKsxfrOvgvzgRDL ZhiLNQkpCkeoZVRb/3n8neYZAM8vNswWQE3d5sAnQIbrQyf55+p//BRGVowzXkvAavP3 e6wA== 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=Nl7mx8m7EnlbDwYYwvHzo6XZQrrQmR8xseakEJu/ApQ=; b=J/EPHaIRO3ZzOfW051qgFxDBSO2nwV9Vdl90dOmLMToi81DCUIqv042b6bv2gILPjS clJvMrS+nd97RmtlQddlcZ4xKDZAHB0CVd3Dg+THaOAR+WXq8lan3iL9Nwsm8GlHn3Uw Yfi07CA0ebjR2o+qR5AUZ9VQurB8PL9NP58bBRASYlYx5bAIpn9iaksbWGmlXFUAG/4O Gv0Gmw+YkvuUU42dXXhRIzlCMpn3zz3GnXGg6P5cp2SIlDrYYhtmQEux4ogyXcRtaMqh vtyMXWK/kESccNbjoyvTNP3plSJGpA5PMuRwlx+1yrE6FDECYMQz7gvbUFeVjoi0bRA6 mmHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MAqUTVvx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id i20-20020aa78b54000000b004fae16c6a7fsi10426496pfd.167.2022.04.04.16.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 16:53:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MAqUTVvx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 AB56345AE2; Mon, 4 Apr 2022 16:36:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355173AbiDCPvq (ORCPT + 99 others); Sun, 3 Apr 2022 11:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236415AbiDCPvp (ORCPT ); Sun, 3 Apr 2022 11:51:45 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E224338A1 for ; Sun, 3 Apr 2022 08:49:51 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id qh7so5250610ejb.11 for ; Sun, 03 Apr 2022 08:49:51 -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=Nl7mx8m7EnlbDwYYwvHzo6XZQrrQmR8xseakEJu/ApQ=; b=MAqUTVvxlESuAw6otRHcDSI7aSiMb/pzHxYyyc8ocwlSKeZ0QbusTy+3VVAT4PMjjZ r35T4x1/aKMCNukK3w5y4OjNLkM0JGY1j+bYY3bZiDiQBTONI3EcfWOlbKrHIEqQEpQm PulMplT17U+A4s8Q+qHr5FI/pw98uxA0mwdUGTLc3nomLuZLeeHl7TX+K04794pLORF+ OHiLPHqoQ8zeryorwhj0pYSbudxizi0JyQik9ge8WsZmBPAgYW679WPOg3T1LhmTKCAq CiZapoJ1nG8IcKCUzTyQJocZdDtPgCWWrBCInKFEIy1voIhcjpOjGk3xCcCwsX+n1NoL GiGg== 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=Nl7mx8m7EnlbDwYYwvHzo6XZQrrQmR8xseakEJu/ApQ=; b=1oi5qCCWRfmfs01CnMqnb8YL1JqkHHIJy2l69MuaaJlj9NrHh16ud5L587IXyxnU5u 6QOSaG8q0J5NCLFg3sKQaldE+QOEhFiwyWdUcMjPhMiD6AXUDfvMiktZaBB004ijxkN8 85sIoUbEahl13q0tNuN03kj22TAeCGMmPFYxwCItyYrtlyVhdEk7hymAbSSEXR5j0iDx aY1Te5ncmcBmSNZuFyHbFXMVAGA5yyIOeyd52Vt0yd9tK+sY9I6YWE2AZuEmpgtT+mre viRxIWoy8FZBLlfH5wztkPnVbpbTr33kNzKmxLzIZfKG8eArqO1Fy3rLMsNZmnHWBMmz PuIQ== X-Gm-Message-State: AOAM530zyrAz9sU7asQ7mEsXQxnEJb/2VVOIuUfhGRRlE/CsQTRwJOp5 ACqY0G4XnQq46+eQ5AgkDu97Ag== X-Received: by 2002:a17:907:6d0a:b0:6db:f0f8:6528 with SMTP id sa10-20020a1709076d0a00b006dbf0f86528mr7426771ejc.466.1649000989905; Sun, 03 Apr 2022 08:49:49 -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 ep16-20020a1709069b5000b006daa26de2fbsm3313742ejc.153.2022.04.03.08.49.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Apr 2022 08:49:49 -0700 (PDT) Message-ID: <06ef6b4b-c8e8-549b-54be-9eecf59a7757@linaro.org> Date: Sun, 3 Apr 2022 17:49:48 +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 , Miquel Raynal Cc: linux-spi@lists.infradead.org, Mark Brown , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , 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> <817dda10-39db-adfc-376d-a3d5e037937e@linaro.org> From: Krzysztof Kozlowski In-Reply-To: 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 17:45, Chuanhong Guo wrote: > Hi! > > On Sun, Apr 3, 2022 at 11:37 PM Krzysztof Kozlowski > wrote: >> [...] >>> + compatible: >>> + enum: >>> + - mediatek,mt7622-snand >>> + - mediatek,mt7629-snand >> >> One blank line, please. > > I'll fix this in the next version. > >> >>> + 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. > > The ecc-engine code is shared between mtk_nand.c and this driver, and > the property name is defined in the shared part. I left it as-is so that > existing dt for mtk_nand doesn't break. This can be easily fixed with: np = of_parse_phandle(of_node, "nand-ecc-engine", 0); if (!np) { /* Backwards compatible */ np = of_parse_phandle(of_node, "ecc-engine", 0); } I would like to avoid having one property in generic NAND schema and keep adding something slightly different everywhere else. Best regards, Krzysztof