Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp93111imn; Wed, 27 Jul 2022 00:07:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9dlf7GJSRkVuhTIl0OPE7aotvXaIrE/xsDnDtjvsWxd8hIJlwH9dXhOQn/FYas7KuVfCe X-Received: by 2002:a17:906:9b86:b0:6f8:24e7:af7d with SMTP id dd6-20020a1709069b8600b006f824e7af7dmr16692862ejc.295.1658905676566; Wed, 27 Jul 2022 00:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658905676; cv=none; d=google.com; s=arc-20160816; b=EjK02Q2ayBcIva286c6nv+6jPFMtW+1LMAOp7lk8ae41k6a08xxL94J70GiYGJ+j3o FRpLQD3/WAwR0PqHoYSRGCsFlkreE6kMjwMb2VGKBkSX7h168HtMGiuOgkjojYwpgryf sh5Hah/BuoazxS+Oq+7BebSbokZPB1Ch3NIaVMHJghxyeJgsgz0PXO8sYI2wOs3c97su AbrdyUykbCUZHshy/V9JsIN733VjWvjdVKLToedkCg0rIcBIGSHT4he/hcsRyorIT05r IR5VHJoOjviXNlUS7IdBIwjeH6ZDa5rPo4RoWEWymeMkMg4rLClWXTjXe75qXwk+X8yE iXyg== 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=aJUcWFFmWH0ACuT+DEaxkfE7LttZ2cDcW0MPuo+aX+s=; b=WgoFMe/8NaU4/6g1vbfw1c9nODOB2flp+dHfmnsDZgVPGNw2dw8POJkYtdGSP94BT4 bFcHnkWJMqX4khBzwuTHOMF6DiXkrlXos0orOyupaJSgRGsZ0V1BJjXxiCGs2w5LB6Mg gkxwpTglCf8t4gxMlIg41dX0Rauc/q7qr9f/dIHLcc8V/G6IGLmb6TvaeJtlVQO4D7R8 MIC45MDqXZb71fF7po8gh2O/MOA56HF4HXFMnlNn6updBHGY4dIfOyjOBAoVgdqQGbJU Rkh13MISV2zrw6WnkqwDUVXUOKJ7rqPe9sdtsaili4tgibJ4P+FPj+dmWy0ym5QCiQO6 hZog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vtx7QZ7D; 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 oz9-20020a1709077d8900b0072abb95e8e4si20958031ejc.598.2022.07.27.00.07.31; Wed, 27 Jul 2022 00:07:56 -0700 (PDT) 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=vtx7QZ7D; 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 S229600AbiG0GwC (ORCPT + 99 others); Wed, 27 Jul 2022 02:52:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbiG0Gvq (ORCPT ); Wed, 27 Jul 2022 02:51:46 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20347F5E for ; Tue, 26 Jul 2022 23:51:15 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id m9so18731717ljp.9 for ; Tue, 26 Jul 2022 23:51:15 -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=aJUcWFFmWH0ACuT+DEaxkfE7LttZ2cDcW0MPuo+aX+s=; b=vtx7QZ7D3Fz/UFYvObJYc0p4k7igsEZqawJNaTCN9XLR0p2eXTc+WIMlOoklwoTvVg +QLAzNztvGzIkJqCovfYla9H+MiEhwjj9TDqG0s6Qqd0aXmLCTUdzoviFSPZPS9rq3R5 uUcqItXA0SmeaFAn1fWctXsDsM1nEVL1UdJuHBRUrFcZnrJ6gHOilwMN6guglZL5610v /vX6PUe/gnAMkcr6aZ6Hf4t2/JYgoUvY3hL240dIqbwhPvDo+M8/IyVsFJ6L3oZGzTfB dgqF8MvxA7kwGoiHvO6l4MUBuaevuECVhPUkEGtzp3iXH1d8BsdLYv3R5DRnTz8DTQYw lubg== 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=aJUcWFFmWH0ACuT+DEaxkfE7LttZ2cDcW0MPuo+aX+s=; b=RqfczIQNahruTPl5UOGj/OCM7aqPIQEHOdVQdjqxvOyHuCiowx4PdybMQIf2YMF8TJ /RdCOHurY1a/B/RJuiBs4HwgyudXRIBUTOqQVP8r22iNROkJcgCK0bYlUqCPMl9orQFM RCG1Cic6O2JdENDLDoJWji/Srq69JZT7qp3ynFqRbbhb6EpKJmV1SgkkR44GQvnWIqR/ EEvkY5RkdEo8G8JeGNESadkXf+VvdeQ9rfm22UMD/iY4QZ1lmYPYlwCk0LkDMSN2yI3n HbxU+1xPAnH2g+fE6N+0OEeJwhACpbUcgNVE3/6goLdOVikZzxVgPAF6kKMh+AcJrPKk 7uHg== X-Gm-Message-State: AJIora8iXZ3aRZTyV1SsQfp2QDIiRmkAEO8B7nQENKaLtmuQtfvveBpW BMsJhwBmnwVQMEv7estZW/6kJw== X-Received: by 2002:a2e:98d5:0:b0:25e:c1b:f262 with SMTP id s21-20020a2e98d5000000b0025e0c1bf262mr3590812ljj.343.1658904673405; Tue, 26 Jul 2022 23:51:13 -0700 (PDT) Received: from [192.168.3.197] (78-26-46-173.network.trollfjord.no. [78.26.46.173]) by smtp.gmail.com with ESMTPSA id h7-20020a19ca47000000b0048aa00a03fesm808662lfj.215.2022.07.26.23.51.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 23:51:12 -0700 (PDT) Message-ID: <8463a831-f263-31b2-6cd7-482ae9594bc1@linaro.org> Date: Wed, 27 Jul 2022 08:51:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 2/2] spi: npcm-pspi: Add NPCM845 peripheral SPI support Content-Language: en-US To: Tomer Maimon Cc: Mark Brown , Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , Krzysztof Kozlowski , OpenBMC Maillist , linux-spi@vger.kernel.org, Linux Kernel Mailing List , devicetree References: <20220722114136.251415-1-tmaimon77@gmail.com> <20220722114136.251415-3-tmaimon77@gmail.com> <0c8688d5-b0c1-8cc1-ec27-292acbb38dfc@linaro.org> <20869b88-41f3-9e9c-347e-17c3d01baa5d@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.1 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 26/07/2022 21:32, Tomer Maimon wrote: > Hi Krzysztof, > > Thanks for your explanation. > > On Tue, 26 Jul 2022 at 12:47, Krzysztof Kozlowski > wrote: >> >> On 24/07/2022 10:44, Tomer Maimon wrote: >>> Hi Mark and Krzysztof, >>> >>> Thanks for your reply, >>> >>> On Fri, 22 Jul 2022 at 21:57, Mark Brown wrote: >>>> >>>> On Fri, Jul 22, 2022 at 08:47:24PM +0200, Krzysztof Kozlowski wrote: >>>>> On 22/07/2022 20:43, Mark Brown wrote: >>>> >>>>>> ...with a fallback list required by the bindings so the driver actually >>>>>> binds. Note that bindings are currently not in YAML format so there'd >>>>>> be even less enforcement of that than normal, and as they're currently >>>>>> written the bindings don't require fallback. >>>> >>>>> Yes, the bindings document should be rephrased but we were living like >>>>> that for few years. :) >>>> >>>> The binding document as it stands only has one compatible, there's no >>>> existing problem with it other than the YAML conversion. If we're >>>> adding something new that requires a fallback we should be explicit >>>> about that rather than have something that's actively misleading where >>>> previously things were clear. I don't mind if we add the compatible to >>>> the driver or document the requirement for the fallback but we should do >>>> one of the two. >>> >>> is V2 good enough? adding the compatible to the driver and the document? >>> Or should we use fallback? >>> If fallback is choosen, can you explain how I should do it? >> >> I propose to use fallback. The preferred way is to convert it to DT >> schema and then add new device support (so two commits). Other >> acceptable way is to rephrase the TXT so it clearly states desired >> compatibles - one for old device, two for new devices. There are plenty >> of examples in current sources. > Appreciate if you could clarify. > in case we use DT-schema, we dont describe the fallback like we doing > in txt document? > I mean that in the yaml file we should describe the NPCM PSPI > compatible property as follow: > compatible: > enum: > - nuvoton,npcm750-pspi > - nuvoton,npcm845-pspi > > If yes, how should the user know that he needs to use fallback incase > is using nuvoton,npcm845-pspi? only from the device tree? > If you use DT schema format, you must code it as with fallback (so items). This is the most popular setup for SoC components so you will easily find such examples. Best regards, Krzysztof