Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1274405rwi; Wed, 26 Oct 2022 13:06:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7LV3STgNLG4qkAYs+57yp8koZH5sJ6CmSYgxquHs6mN2w3l8FQxdFRGgG9ifpLBLKODcqO X-Received: by 2002:a17:907:760d:b0:7a9:5281:9eda with SMTP id jx13-20020a170907760d00b007a952819edamr14186080ejc.50.1666814810494; Wed, 26 Oct 2022 13:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666814810; cv=none; d=google.com; s=arc-20160816; b=m1Y9NQNtKfyljXaqKenKujx9uRyv7Yo9hVlykEBpNQbusNz0uh/2bFHoHbjoNTAGfZ 0mgzPGs6c1IhM4pOoXHals2bu77Oow8Hvx3Ry54mD6VY1sTdU5T1FLcSEWz9XRf4rlsw x39GNHF+W9xWo2yAtLvCq+tl2KwR93RM12uTLcb/6n+MuhvHVNEprgWPVRvnbcKYHVMA ACBdfj6uh6VBVrXvNib6+ExSbaoT9rOWoeA/fmClp7Ld3oX7DfDxz9dCLp9JCAymTNR8 ytDqLli3V+mJe5bD5cf9EI5wPo16THNxZAbElzWSiSlr+koAUsmFi1ciCMCwh8fPZYMh w9CQ== 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; bh=FS6rm9BDQlab5fLy0WIjAlMKCNgvwb6RMvMQ+w+1YTY=; b=a7CcvBnIVYAV9rKV2KSRv0jQ1pDYXECjtC/bjH/FrWslv27HRNQhX/mkTb9mUzYrmf DwBim810oToPtaKpdNTMCPvRYg5OivXczoqFqImiXo7Xw7M/dPhfplY9js4KfYkl6oyr re2REdxcWzuWNr9+N7LjkwviURngkh+P8he4ou4EDDgYhwAHjDXgTVh5tINX+LPR+uXm 263PlV70OxeM4iTvfxOOsMu6ZM9ji1uU3zmMwm3Sa4Io2OLWrhcZX5x5WhBWVPRRR0S6 llOuLnEbJGWMPhhTlbJ+GC4cB8YX+EPEPhlpE1IKXSw9Tr2oGT1czJak8A2m/uvntekJ sxww== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf14-20020a1709077f0e00b007aaf5a45f5asi6573519ejc.47.2022.10.26.13.06.22; Wed, 26 Oct 2022 13:06:50 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234733AbiJZTrU (ORCPT + 99 others); Wed, 26 Oct 2022 15:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234623AbiJZTrF (ORCPT ); Wed, 26 Oct 2022 15:47:05 -0400 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D8B52A43F; Wed, 26 Oct 2022 12:46:18 -0700 (PDT) Received: by mail-oi1-f176.google.com with SMTP id t10so3226336oib.5; Wed, 26 Oct 2022 12:46:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FS6rm9BDQlab5fLy0WIjAlMKCNgvwb6RMvMQ+w+1YTY=; b=sszRyWPj7RqKdsCoopMwTeYYpH34otrd/zwRyBbRZoAaTmUB2SMxhY3QzRpLkUjzn1 sAbDFe8lXmmQcVDFM0huTKpwy1rfWZ5aFtx7bML1J/zzv+eEcN2DeZZfdN2SXXXAsSgE wVBek3sSJZux25ApsCvbsly6HsQOYDyvUTiz4oM6CkNMEPFFodlg0qjsasDaaq6V8638 H44Zoeemel0RQ35IV8Lhsd7eQE+IzTrpX/OaNA3KsfkrIX9k1qlXo9oJUDw449SBZvWK ZBKk/SZPe2wdVapKBBK5tfvkeqsefAuJJXeYB6QFwppErga9S0ueF0SHNxMezZn8UVLQ SFGA== X-Gm-Message-State: ACrzQf1cbKmygXKwlLK2jLxm5xxvBFOifFYQOZcbZOPuVLJlJShkOBZZ Hi5DwOk6ekXCtzoHE2RzCUFEMwe7VA== X-Received: by 2002:a05:6808:1384:b0:355:535f:118c with SMTP id c4-20020a056808138400b00355535f118cmr2677393oiw.35.1666813577379; Wed, 26 Oct 2022 12:46:17 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id x11-20020a056808144b00b00350743ac8eesm2407990oiv.41.2022.10.26.12.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 12:46:16 -0700 (PDT) Received: (nullmailer pid 1052629 invoked by uid 1000); Wed, 26 Oct 2022 19:46:18 -0000 Date: Wed, 26 Oct 2022 14:46:18 -0500 From: Rob Herring To: AngeloGioacchino Del Regno Cc: Frank Wunderlich , linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , devicetree@vger.kernel.org, Ryder Lee , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jianjun Wang , Matthias Brugger , Bjorn Helgaas , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/2] dt-bindings: PCI: mediatek-gen3: add support for mt7986 Message-ID: <20221026194618.GA1049502-robh@kernel.org> References: <20221025072837.16591-1-linux@fw-web.de> <20221025072837.16591-3-linux@fw-web.de> <22728b06-f460-6dda-21fa-1d7a7ae3b903@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22728b06-f460-6dda-21fa-1d7a7ae3b903@collabora.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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 Tue, Oct 25, 2022 at 01:10:56PM +0200, AngeloGioacchino Del Regno wrote: > Il 25/10/22 09:28, Frank Wunderlich ha scritto: > > From: Frank Wunderlich > > > > Add compatible string and clock-definition for mt7986. It needs 4 clocks > > for PCIe, define them in binding. > > > > Signed-off-by: Frank Wunderlich > > --- > > v2: > > - squashed patch 2+3 (compatible and clock definition) > > --- > > .../bindings/pci/mediatek-pcie-gen3.yaml | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > > index 98d3f0f1cd76..57d0e84253e9 100644 > > --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > > +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > > @@ -48,6 +48,7 @@ properties: > > oneOf: > > - items: > > - enum: > > + - mediatek,mt7986-pcie > > - mediatek,mt8188-pcie > > - mediatek,mt8195-pcie > > - const: mediatek,mt8192-pcie > > @@ -78,9 +79,11 @@ properties: > > - const: mac > > clocks: > > + minItems: 4 > > maxItems: 6 > > I'm not sure that this is really correct. > If you have a list of items (const or description, doesn't matter), you don't have > to specify maxItems, as it is implicitly equal to the number of items. > Also, specifying minItems means that you're "setting" one or more items as > optional. > > It looks like you're specifying a specific and definite list of items for both > clocks and clock-names... and for all of the supported SoCs, so, I don't think > that having {min,max}Items globally specified on clocks, clock-names make any > kind of sense. > > .....but I'd like for someone else to give an opinion on this as well. It does make sense. Globally, we have the full range of possible clocks and then the if/then schemas further restrict it. Rob