Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp42212rwb; Fri, 19 Aug 2022 16:28:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR79taqwMr0FQoBwpHk4lb390APjEASuW20bGGc8wXzSACfoVbzTsAfQekJQXqCl2bfpLjc5 X-Received: by 2002:a17:907:8a1a:b0:731:6475:68f7 with SMTP id sc26-20020a1709078a1a00b00731647568f7mr6153849ejc.359.1660951721369; Fri, 19 Aug 2022 16:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660951721; cv=none; d=google.com; s=arc-20160816; b=UVSBtDQYmii4Noxr67AjllWgOVo+bYuOMkb/NRFT2ZIgim+Gb18KgCk3vnPbnS5HEc ++iAy7IuI4D7XaHodn2lQxVG0Cgp3rTwSV8ikCEb1wy4T571gk0btEWNTRY+//Oimzug I6moYji/Iz9OileZJX++wMFzkOJtlZhTswXxahPQM5Y38PN9SSE9p/8zLMkW1BTrStdi KBY6btZWsx1S8fJsO6iU7/PtMds6vW2iZ0pvVTEmoC1q/+svNc0WoY//BCH1n7xVzyET kZvL2IY1khYFP4ufYbHUNBm+nOfW/SOUx3mLky09OdhUjyAtXWuLQEI60HfFPfXUnpIE Ab7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wh/YppWbOFIra6XEEBi8TGN83nz+Cc+tSET8IzCpaZI=; b=Y+Q8/yZ+dGDu0SfL/BiQsXPOBhfSctc+aMV0LgNt/Yu8DgpcmXUpYp6IM4Suqql6+4 GCO6zA13pEuMSrT5l+6QUTUkjakcAPN0cgtNhRkuPvW5EWZZpi3jaBDlxa8YC/+fTlCU s2FchwZJD5ny8BfpflHg9QqVprYA2VV2n1iFSBK8+QIN2WsVn4WdKUC+V/eEU5Sf+SP+ 4av0exP5Dq2SC2xIUUyToZ4GhN608GR4Vo7Da7KZxvPOt6/51fYVJzgBuQEBeCIOjSxx YcSz7FbmniNIckOBwvg06BXL1+s+Sko3slo6SUrIyeiVPvXOFP8k0keGmZomBeLcwjur 24Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=W9D4Kf3q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a17090679d600b00732fd03ab1fsi3638659ejo.492.2022.08.19.16.28.15; Fri, 19 Aug 2022 16:28:41 -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=@conchuod.ie header.s=google header.b=W9D4Kf3q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242572AbiHSXOm (ORCPT + 99 others); Fri, 19 Aug 2022 19:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239403AbiHSXOa (ORCPT ); Fri, 19 Aug 2022 19:14:30 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D068CD31C2 for ; Fri, 19 Aug 2022 16:14:27 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id h24so6710423wrb.8 for ; Fri, 19 Aug 2022 16:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=wh/YppWbOFIra6XEEBi8TGN83nz+Cc+tSET8IzCpaZI=; b=W9D4Kf3qouskAMJZ3q6S/VeXqLdByauzGngx+X+7e6HXVLyRJp2qiV49imrSF0crmZ L+/lw+44dXb25H5IyJUD9JCCTqUzJA+1/oxrn1Ci9GzGUNH221jW2FkfphFIrHIejF7U ePmkg+areMAdab8CVPvpshz9cX8IBKJS5PaIZLQACojidQmF+bbc24BtVq+G33logClN ASxboCEXR/ooftCzJuSRf6o5XGW/B22Jh8rfq9tjHTZzNEsGhjbvZO3b6LnW5/tZqv4O tzWIHhx8HZxn4AmZouZVFEcaBTlSqJRDFKEQ2wi310TqNvc8s5m72sM67xTqkWIDnjim mBzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=wh/YppWbOFIra6XEEBi8TGN83nz+Cc+tSET8IzCpaZI=; b=XUczWoJjFYAyvifC3g6NvVzVxMxV+AP86A2BmPZshxGzAOnm0bKIz+rbPHo+UQATfc bU4Mqvtia35EFGyuTAs+HgG2b+wis332az/icRbspj6MKo5eLp6gEf8xvVtUkSevYKVs 5+3CXNTGzA20sEBou+AkKrQ+bg/8ImFLvgabpHAmjoHKK/klD3VqH3/t3ND9xCpHNXmQ 9CazjmHbhRqHYNCWI29q6J4D36eGX7v5Fa5iniDtzXvAxrxRQKYPVAEeUMF4d3OvFZkl 5B001InwSgkiQzHtfE0MvIgQLhw0Hyx3cj446qbSiMva+Gp1f+vKliCP1KSdkiwnjRNF qy0g== X-Gm-Message-State: ACgBeo2Ry5vUa98ZVCbPNzjwMDZPb4lgzl7SouicFMskjDoXXsT3jGEN uprr7FrcH8nJ6nZW7EuurHSwSQ== X-Received: by 2002:a5d:64ca:0:b0:225:48a0:d9cb with SMTP id f10-20020a5d64ca000000b0022548a0d9cbmr98484wri.399.1660950866431; Fri, 19 Aug 2022 16:14:26 -0700 (PDT) Received: from henark71.. ([109.76.58.63]) by smtp.gmail.com with ESMTPSA id g17-20020a5d46d1000000b0020fff0ea0a3sm5198522wrs.116.2022.08.19.16.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 16:14:26 -0700 (PDT) From: Conor Dooley To: 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 Subject: [PATCH v3 2/7] dt-bindings: PCI: microchip,pcie-host: fix missing clocks properties Date: Sat, 20 Aug 2022 00:14:11 +0100 Message-Id: <20220819231415.3860210-3-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220819231415.3860210-1-mail@conchuod.ie> References: <20220819231415.3860210-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Conor Dooley Recent versions of dt-schema warn about unevaluatedProperties: arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dtb: pcie@2000000000: Unevaluated properties are not allowed ('clock-names', 'clocks', 'legacy-interrupt-controller', 'microchip,axi-m-atr0' were unexpected) From schema: Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml The clocks are required to enable interfaces between the FPGA fabric and the core complex, so add them to the binding. Fixes: 6ee6c89aac35 ("dt-bindings: PCI: microchip: Add Microchip PolarFire host binding") Signed-off-by: Conor Dooley --- dt-schema v2022.08 is required to replicate --- .../bindings/pci/microchip,pcie-host.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml index edb4f81253c8..6fbe62f4da93 100644 --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml @@ -25,6 +25,33 @@ properties: - const: cfg - const: apb + clocks: + description: + Fabric Interface Controllers, FICs, are the interface between the FPGA + fabric and the core complex on PolarFire SoC. The FICs require two clocks, + one from each side of the interface. The "FIC clocks" described by this + property are on the core complex side & communication through a FIC is not + possible unless it's corresponding clock is enabled. A clock must be + enabled for each of the interfaces the root port is connected through. + This could in theory be all 4 interfaces, one interface or any combination + in between. + minItems: 1 + items: + - description: FIC0's clock + - description: FIC1's clock + - description: FIC2's clock + - description: FIC3's clock + + clock-names: + description: + As any FIC connection combination is possible, the names should match the + order in the clocks property and take the form "ficN" where N is a number + 0-3 + minItems: 1 + maxItems: 4 + items: + pattern: '^fic[0-3]$' + interrupts: minItems: 1 items: -- 2.37.1