Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1458205rwb; Fri, 12 Aug 2022 00:57:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR7q+Aq7Jw5j973ao9HYZBY2GH3j277zCfaxI01yJ4ShF5jmVS8v3qC800QscMXt0iHgr6g1 X-Received: by 2002:a17:90b:3d85:b0:1f7:6a32:3576 with SMTP id pq5-20020a17090b3d8500b001f76a323576mr12296256pjb.187.1660291047672; Fri, 12 Aug 2022 00:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660291047; cv=none; d=google.com; s=arc-20160816; b=qSaiMMMD+5RYmhYkAhI8insTs8E2IYwDA80W8ThLiqxi8oKtecsKNYdg2PIlu+U6QV gJ1d65BLIMhVvICGRfqsUsqkrakBRHTrNFpCquTP+Nepb5K94iY6n1/Klmw62jmUkGpt AATXeIwjYo8Zy9zymxAXRtO00opKuOOsZoggwdIfDZTOBT6hVu/7nSLbHdZG54Ds/TNQ TqFUNa0Dt38Itx5/QUy0dEBcHAnLTCvs6qlLwUAMMUAOK9tIekUVsAmyasmrNA28FI6h C16TQhqgHXWDDJJ1E38N4xIjBegFw7Q+q9zTmaeciT6n7RcKQc+UfPLj8evBuYYn0iGk h3Qw== 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=Y1FgwE1S0sZxGVZfKzOP1495FUieOVb1Ijht3ICAFkg=; b=urRdP0XibwgPDvNMvbFEWH35iSaR2PgSyHWXsThqIMaOnBP/MkHQuWy4Sa3hIehe9i FCfbElyNe9sKlgf9yiGOJBuxjcCVN4QDCCuwuigEwRdl0tusKgl64H3wSYesOBlklTDm ahmHE4ElTdZdsYbStJU0Q32mezt1TeCHRjti7FdHc0oS2PbRc6LEkgHoqH7/QjzAa7fA wM0dhiEWEitWLIaOFH1JXtME7nUxrsGx9tpcEgb86bpvYdBCU00NfjnAqxJGuiTESSZs 5n1hwavJAXOwMaZxJv5rrj11z9tVG9nsvhx9DkEQIZc6OEKDfTZsuScchrnp3lAzxwMS f7Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mL0W5VC6; 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 s134-20020a632c8c000000b0041c506dde92si2034207pgs.636.2022.08.12.00.57.14; Fri, 12 Aug 2022 00:57:27 -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=mL0W5VC6; 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 S237609AbiHLHwR (ORCPT + 99 others); Fri, 12 Aug 2022 03:52:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237399AbiHLHwP (ORCPT ); Fri, 12 Aug 2022 03:52:15 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FF1CA6C2C for ; Fri, 12 Aug 2022 00:52:14 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id bx38so173083ljb.10 for ; Fri, 12 Aug 2022 00:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=Y1FgwE1S0sZxGVZfKzOP1495FUieOVb1Ijht3ICAFkg=; b=mL0W5VC6YSoWJdmliy79TMTZKdBE0ndlkNHtLaGGwh6t3xDn+H2ok9auBHCeQ88/Pr akeMAs/sbQxBsK39m3xjJHHbOo9x6yrGvlspQtODqTOgqChqdD1hKHnANPOhSTLnm00N I7n/2QBlBqTZ+PBv4evi+qLwiJos6vXDlo8lmnSoajfFbooNbIXyWsIlBGu9hjERgQgc QNt9VSW65T9PvyuMsZ17SkJBTzyXmqZkxIP1Y23gHfdCDPUI/sX0dvDVOFjE3qgRvQDO dr8x/65eK7Yfl7khzi00d7fI15M5Gdm+HZ3zc9Q9OYpqKXmSFFrsiGwbsCCaY98pCNBC lf4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=Y1FgwE1S0sZxGVZfKzOP1495FUieOVb1Ijht3ICAFkg=; b=F9fp8YbBdeVn7wQ62u6SkiKr3SwM/ueZ0kGrhbb4D/TweVVCsn0EIXIIJUpFCEjOzJ DBGs4Wk3eCZCC4tfllYAM++MBJC5Bo9xtISM4niM7eYRAo6qWedwpYkMZX0xDeYK7Jvg WjgMxyC7/FWRXNozsmFBIo4gl7SawtWsnqhs+mdBUaWkaxAZgjc2FycvNUd3XWCNTkbQ FCZdWqA/pRc2qQBaWzoZarj4icUqDQySOQC8IUFnaoQ/kFX2tc7+ZgEcfE7Kw45OBzqx A4VMML0FceS/RY1ny2JPb2wNQuS0EkPauMDZBT7f+xb4rsi03eWLlR8Sk8ZYBI+RNxW8 ZN3w== X-Gm-Message-State: ACgBeo1CPr+cP/qljy438BXnLSF1wvDN77Ys6qcFkD8U2I+HMGCLffKY DdaGu0/fv+32FW6yp5rNBtAjrg== X-Received: by 2002:a2e:bd89:0:b0:25a:9386:75d0 with SMTP id o9-20020a2ebd89000000b0025a938675d0mr866830ljq.431.1660290732392; Fri, 12 Aug 2022 00:52:12 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id i27-20020ac25b5b000000b0048b18fb378fsm124440lfp.119.2022.08.12.00.52.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 00:52:11 -0700 (PDT) Message-ID: Date: Fri, 12 Aug 2022 10:52:02 +0300 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 4/4] dt-bindings: PCI: microchip,pcie-host: fix missing address translation property Content-Language: en-US To: Conor Dooley , Daire McNamara , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Greentime Hu , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Conor Dooley Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20220811203306.179744-1-mail@conchuod.ie> <20220811203306.179744-5-mail@conchuod.ie> From: Krzysztof Kozlowski In-Reply-To: <20220811203306.179744-5-mail@conchuod.ie> 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,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 11/08/2022 23:33, Conor Dooley wrote: > From: Conor Dooley > > When the PCI controller node was added to the PolarFire SoC dtsi, > dt-schema was not able to detect the presence of some undocumented > properties due to how it handled unevaluatedProperties. v2022.08 > introduces better validation, producing the following error: > > arch/riscv/boot/dts/microchip/mpfs-polarberry.dtb: pcie@2000000000: Unevaluated properties are not allowed ('clock-names', 'microchip,axi-m-atr0' were unexpected) > From schema: Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > > Fixes: 528a5b1f2556 ("riscv: dts: microchip: add new peripherals to icicle kit device tree") > Signed-off-by: Conor Dooley > --- > I feel like there's a pretty good chance that this is not the way this > should have been done and the property should be marked as deprecated > but I don't know enough about PCI to answer that. It seems bindings were added incomplete and now based on DTS (which did not match bindings), we keep adding "missing" properties. I don't think it is good. It creates a precedence where someone might intentionally sneak limited bindings (without controversial property) and later claim "I forgot to include foo,bar". Therefore the property should pass review just like it is newly added property. > --- > .../devicetree/bindings/pci/microchip,pcie-host.yaml | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > index 9b123bcd034c..9ac34b33c4b2 100644 > --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > @@ -71,6 +71,17 @@ properties: > msi-parent: > description: MSI controller the device is capable of using. > > + microchip,axi-m-atr0: Name is not helping. If it is offset, add such suffix (see brcm,iproc-pcie.yaml). Unfortunately I don't know PCIe good enough to judge whether the property makes any sense or some other ranges-style should be used. > + description: | > + Depending on the FPGA bitstream, the AXIM address translation table in the > + PCIe controllers bridge layer may need to be configured. Use this property > + to set the address offset. For more information, see Section 1.3.3, > + "PCIe/AXI4 Address Translation" of the PolarFire SoC PCIe User Guide: > + https://www.microsemi.com/document-portal/doc_download/1245812-polarfire-fpga-and-polarfire-soc-fpga-pci-express-user-guide > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + minItems: 2 minItems should not be needed, but you should instead describe the items in the matrix. > + maxItems: 2 Best regards, Krzysztof