Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp1990842lfo; Sat, 28 May 2022 12:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyj4GpQWueH5lxCcgSZd6modxJzXfsxK3BPJYK8SPhnYKbbljzVoI0tOIDXOFPEj0O2l5o X-Received: by 2002:a17:90a:154b:b0:1e0:6797:4018 with SMTP id y11-20020a17090a154b00b001e067974018mr14822658pja.172.1653767767320; Sat, 28 May 2022 12:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653767767; cv=none; d=google.com; s=arc-20160816; b=ek/G3uivJVgrsUAPAXIdwhhRwTLQsrdzWKbHJtH8VXV/XZwmoinYkCJRIgfQj0ujNZ ib41yp3IHODUQlQLiu7XH4N0tTMkx0whxTGsbgiHTpyZHCKaptVD0iLu2GeIxN12m4um Xqf8rMubSbydRiUxFPcD0FhJ0aqSexQxkQRXkJrcEaVVy040yrtE9sojFH6qWlI4XOqR 6Br5bOgZyVwY3IFByI5JekMvtZMe0jPrgw0NavujYdZNyrf9yyzzCi1g/4dbi3fFEDZP x/GI6WBBwol/AgmcJ0GXi1pvijgZfUzfBbWfKVPkwZMzEaPOD3i7A2B3jXjbt17yzDVQ mxRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gi1UXUaZy4pumdEIliaXakvgNV0H8sr+r4h0aX/ZCIw=; b=qaf971LODyh1vbyDMTEdsTgdn5T2Tp1vl6R+cs1T2v3TaKUKYAWVdfZWZ5V7/nmG7A tHrIcLyZrY8FOMTlyJN2wukAgegXZX1k/CO2Ks05Nd34HbQ5pyVTNfK96i2ny5CHU72W glVJnCtOCeeqdz3/zm/ZZJdVqPZDJeP0FhQk0mcncuqQKvXfptPNBd1hlbuSUzgN3aBd J2P6erT4RXmgtMycH8X+5/QESKUuwvaglLPqhU76bXyxlWyxIKGznC7Z7AhRiKRgS82Z dumjdnpGfvvxHWPJAJoIzraBr6O0HO5/L+4EfDnf8qOSG+sdrehzxxLDiFrScZSbLLw7 nj1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JOiBepAx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i190-20020a6387c7000000b003fb9df25809si8077094pge.366.2022.05.28.12.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:56:07 -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=@gmail.com header.s=20210112 header.b=JOiBepAx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE5FF8FFB7; Sat, 28 May 2022 12:15:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351296AbiE0Lcd (ORCPT + 99 others); Fri, 27 May 2022 07:32:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbiE0Lcd (ORCPT ); Fri, 27 May 2022 07:32:33 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0B9B11838; Fri, 27 May 2022 04:32:31 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id v9so4613196lja.12; Fri, 27 May 2022 04:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Gi1UXUaZy4pumdEIliaXakvgNV0H8sr+r4h0aX/ZCIw=; b=JOiBepAxKKOu/v5KC00CHfLz2phzG8AFNsrfTxcshRMkn/WzFMQtGM3zMnwJKylSZ1 Zk/TvetfANf+bt/y9NslL55kd3f37zL5/OG+MOsA2wgFmKQIFi5Hl8duYBsV5uUdZuUk +yQ9td11tfzJt6TUJt4ySHWzqxVK1WUV/I5EKIlLfA2OAwxEzvcgxzKoRPrTO5rYK5cM 1zVBk6kp1FVKVEeUKhsYXW1sSoG2kZT00bTvPhkupe8c2DTq5TO19+gIwZOvMjI+/adU Qqdrsttsd1vUL9NHWtHMQmGvK6W2VIdbEaUrAPdIn+T+36QILDTo2joi9NerKwPGj6W2 Gn2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Gi1UXUaZy4pumdEIliaXakvgNV0H8sr+r4h0aX/ZCIw=; b=Nh7DIOkRzvp2Q0c6wlxcueHET86Fchosk0NjZkzpJtuJ77ZoJKi+xxeytmr77h0N0y ZOqJbLLJbloEE5Nyk+t3uTU68BEMGgNpT2OMrgIXNPf3i3y+N6NStGdHuzHGq4tGvWHC xPJKqsDcSGy1rAolKbvRZgCLTxu4mjT+B24hvciwHl+y7tYKW9EHOmpvAah+Gsa2tcnK K9j83QJ7BWuHwvx8WV39c5Bx6rcc6RdZauNrVdpIhd9tGu15ld3BLpiBxBfx+X3QkxjY /EpjqKT6Y7kFX2S+FJS28EH7GBbkw4FAXcVr8mhJAUDHCqDVF6jVfl9ZKI27Rm8bGnF0 IgBA== X-Gm-Message-State: AOAM530fT98yyFm4l3Pek8NxG4RVhBsacpAuxtlZl+45ILuhNg3DmLqS mzois0NOyPEnVlGxQG1tsI4= X-Received: by 2002:a2e:8e78:0:b0:253:c31b:d059 with SMTP id t24-20020a2e8e78000000b00253c31bd059mr23920180ljk.393.1653651150144; Fri, 27 May 2022 04:32:30 -0700 (PDT) Received: from mobilestation ([95.79.189.214]) by smtp.gmail.com with ESMTPSA id w19-20020a05651c119300b00253b5bb829esm977037ljo.98.2022.05.27.04.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 04:32:29 -0700 (PDT) Date: Fri, 27 May 2022 14:32:26 +0300 From: Serge Semin To: Rob Herring Cc: Serge Semin , Pratyush Yadav , Mark Brown , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: dt-bindings: Move 'rx-sample-delay-ns' to spi-peripheral-props.yaml Message-ID: <20220527113226.x62neigmrnljxtph@mobilestation> References: <20220525210053.2488756-1-robh@kernel.org> <20220526054642.zw44mgw2bd2u5v76@ti.com> <20220526135404.GA3831942-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220526135404.GA3831942-robh@kernel.org> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, May 26, 2022 at 08:54:04AM -0500, Rob Herring wrote: > On Thu, May 26, 2022 at 11:16:42AM +0530, Pratyush Yadav wrote: > > Hi Rob, > > > > On 25/05/22 04:00PM, Rob Herring wrote: > > > SPI bus per device properties must be defined in spi-peripheral-props.yaml > > > for unevaluatedProperties checks to work correctly on device nodes. > > > > > > This has the side effect of promoting 'rx-sample-delay-ns' to be a > > > common property, but functionally it's no different if it was defined in > > > a Synopsys specific schema file. > > > > Functionally it is no different, but does this property make sense for > > other controllers? If not then I don't see why we should pollute the > > common list with controller-specific ones. For one, this now no longer > > makes it obvious that this property should only be used with the > > Synopsys controller. And if you keep making small exceptions for other > > controllers too, soon the common list will be full of controller > > properties and it will be a mess finding out what belongs to who. > > There's at least one other case already: > > cdns,read-delay: > $ref: /schemas/types.yaml#/definitions/uint32 > description: > Delay for read capture logic, in clock cycles. What about creating the schemas hierarchy for the device-specific properties as I already suggested in the other thread? Like this: https://lore.kernel.org/linux-ide/20220527101057.b5z7ase6y4naoxvk@mobilestation -Sergey > > > Too many common properties is not a problem we have. Too many custom > properties doing the same thing is the problem. > > Rob