From patchwork Mon Jul 19 22:03:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 480150 Delivered-To: patch@linaro.org Received: by 2002:a17:907:d92:0:0:0:0 with SMTP id go18csp4997368ejc; Mon, 19 Jul 2021 17:01:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ZsZ7IyDZvl376L2yN2amd/hUB2L7zKWacoq8E8Z5lT19EX9raWDsHU4uwXSQq/oy1LCd X-Received: by 2002:a05:6402:60c:: with SMTP id n12mr6980924edv.189.1626739311193; Mon, 19 Jul 2021 17:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626739311; cv=none; d=google.com; s=arc-20160816; b=WdtCy5qfV8UKHV2CCRHRzNS0ulBfrE6l97Cu8sKEzeJx/whXK47H6XMvCBrOPHuqee Q8LzPLrTP+8EK/9YtMYjcTuJeeFqN8MEhUxGH90AWyU7QYGqMNmFBcrY/oH39rtgyOCg UBXztmlbVMw4q7kmAyGIvTKaXlYEsN0iJGBSlOXeT6qaLLrCDXjHP7T261brTVhtxxZV I34qnT/mjTUKezzgdAqF2e0TgiyVaCZJlIT3UHwNI6vSvgtGDRtaDlpTbJldNcL1FKUJ RI0WRjgZ21MjU2xkntRxr0uvgNc7PMNwoyZRJajS4Ep5Stiyz7osYdJwxThg9bd3lwBV Cgzg== 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 :message-id:date:subject:cc:to:from; bh=pzlQxVexFT0nXKu400I5otv1xS1kX5e7p5IFCKmC89Y=; b=iNspnabX0J346Jvf54O2ErFNrNbU/+gd8rI+D4bdn5N2mEOPEYra4i0JVyFtniUY1s zZRSMmeP8xOhHJCc7/cBmA22seJji+o54YaJOTQr21cLt5TkVjNBlESgErIi5aBbLT2N c6IBcRarpGzAf+ONJIra4xyVuL2uJtJ4XvbP0qumzQPiI+mINWC07QMUlip7MOJyyTcb tbw4o4jjq/EIAnL09fYgxwdduw+LWtjY7GaZAY90+dt+v5obKMQh5SRUfexUTla1vlnf ehsUjMBugoEUVtIh2AWoTjYVUES5YdnIxTAUxabMPpmV9W2LbNZXjQS71cTEu2TneHvu 2pvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh10si19438480ejc.319.2021.07.19.17.01.49; Mon, 19 Jul 2021 17:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S233618AbhGSXU3 (ORCPT + 7 others); Mon, 19 Jul 2021 19:20:29 -0400 Received: from mail-il1-f181.google.com ([209.85.166.181]:38474 "EHLO mail-il1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388871AbhGSVXS (ORCPT ); Mon, 19 Jul 2021 17:23:18 -0400 Received: by mail-il1-f181.google.com with SMTP id s5so10418947ild.5; Mon, 19 Jul 2021 15:03:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pzlQxVexFT0nXKu400I5otv1xS1kX5e7p5IFCKmC89Y=; b=bb9a7HluwskF/TsSO8yL6ED15xvhBp5iyeHRX2rv5wH7siOBM++Sd7xZCBNh176q0p IoKU9g7gG9u442xrIrLoz2lOBxe/HWbhwgq+w3PnynR+t0UJ6zPwPO6ZAJMoyt2zm3Or 9yu7nGuKNI6lLdYdnR1+sDhOvNJKzUdU5ZahniBipggWqQlW8pUS4b+OyFckoiQ0v5wM UiIs3xpMblfr6wTXM5JlJv6LzSGrZLVjbZ7wpfnOSuhnp9WXKAhEA1uOA8pNHdeAY8f0 2MBoHIhQPEfd7TslGtG5UBRsIkomVzKwH9LndZQQ+2vi4WKC0OCw2cgCfGdpi7Uzc3uO agdw== X-Gm-Message-State: AOAM533EnTMqVgJb4ffrxnlTt1kRwlRJMBhW3IpkQCsyMvzkGYF7hDGA vRY3f4hn2oXQE8EyC8j/DwWueUEWcg== X-Received: by 2002:a92:3209:: with SMTP id z9mr18796486ile.115.1626732235559; Mon, 19 Jul 2021 15:03:55 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.248]) by smtp.googlemail.com with ESMTPSA id e17sm9973095ilr.51.2021.07.19.15.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 15:03:55 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Bjorn Helgaas , Dilip Kota , linux-pci@vger.kernel.org Subject: [PATCH] dt-bindings: PCI: intel, lgm-pcie: Add reference to common schemas Date: Mon, 19 Jul 2021 16:03:51 -0600 Message-Id: <20210719220351.2662758-1-robh@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a reference to snps,dw-pcie.yaml (and indirectly pci-bus.yaml) schemas. With this, the common bus properties can be dropped from the schema. Cc: Bjorn Helgaas Cc: Dilip Kota Cc: linux-pci@vger.kernel.org Signed-off-by: Rob Herring --- This applies on top of Mauro's snps,dw-pcie.yaml series which I've applied to the DT tree. .../bindings/pci/intel-gw-pcie.yaml | 34 +++---------------- 1 file changed, 4 insertions(+), 30 deletions(-) -- 2.27.0 diff --git a/Documentation/devicetree/bindings/pci/intel-gw-pcie.yaml b/Documentation/devicetree/bindings/pci/intel-gw-pcie.yaml index a1e2be737eec..e15730d31274 100644 --- a/Documentation/devicetree/bindings/pci/intel-gw-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/intel-gw-pcie.yaml @@ -17,21 +17,15 @@ select: required: - compatible +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + properties: compatible: items: - const: intel,lgm-pcie - const: snps,dw-pcie - device_type: - const: pci - - "#address-cells": - const: 3 - - "#size-cells": - const: 2 - reg: items: - description: Controller control and status registers. @@ -62,30 +56,13 @@ properties: reset-gpios: maxItems: 1 - linux,pci-domain: true - num-lanes: maximum: 2 - description: Number of lanes to use for this port. - - '#interrupt-cells': - const: 1 - - interrupt-map-mask: - description: Standard PCI IRQ mapping properties. - - interrupt-map: - description: Standard PCI IRQ mapping properties. max-link-speed: - description: Specify PCI Gen for link capability. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 3, 4] default: 1 - bus-range: - description: Range of bus numbers associated with this controller. - reset-assert-ms: description: | Delay after asserting reset to the PCIe device. @@ -94,9 +71,6 @@ properties: required: - compatible - - device_type - - "#address-cells" - - "#size-cells" - reg - reg-names - ranges @@ -109,7 +83,7 @@ required: - interrupt-map - interrupt-map-mask -additionalProperties: false +unevaluatedProperties: false examples: - |