Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp40538imn; Mon, 25 Jul 2022 09:41:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t2hukF7oJhHeI2YdGBIeV9VOfmsLjnuYkOgc5bmoAxCo4xQnYQ/0iiXRRJFLxT124VZe3X X-Received: by 2002:a17:906:2bc7:b0:72f:dc70:a3c6 with SMTP id n7-20020a1709062bc700b0072fdc70a3c6mr3019487ejg.645.1658767304369; Mon, 25 Jul 2022 09:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658767304; cv=none; d=google.com; s=arc-20160816; b=RrDe0JyVOk6LEfL/KKBxbcRxc5MKdyyd49W2DkcOH7bfFSVK9HGE+5XyeL+XFOaogh uRr6oyXTcX5M4NM8yHThRVCrDyLl++Ki5vlIJquzzHRNC/aXhZwI590mZfwvQq11se4e JKR/+SSC2QPOinafjYb5u6B/EbuQIe/sQroMagTg/wJbhm2EIPCunLbeFNecHZcwjWQf UJ2sIK7xIuuM2NnfAbegC1xQsX7mVMKWwHb4p1TH27sVoVbhinfFAVhnwhQc0ZP0xYFH X4TNVDdLVRO+AnkGq0Krusra9gH4TY5JicbftUww9E7PRo2EGhz29D6GRr4P55dLOmEm L94A== 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; bh=DeI5//arfmlZjVPxelisB6tpGtWrgyg4DTkJ+iuyaHk=; b=SJzN65hnymOOu0M6dXrr/GdgliO9NQ94y7Y1OF6b46wcwPqbQW4bfA/PdXa/4pHqA2 oo5TEojHEN9ish0ztgYSNEVqTBYqT3go7uNmz66e1/lnPwClk2Cmk2q5jPt8jrbiJbRV hwbj3NIFKPiuBFLx2b/0aKpXFFK3vw6Gw7HksiLFnuDHM3FDPGIr8Nzomu7ZDW0O79SE 4jbdMRTlWngCbDeSWKY9mRE0LkhfBPb+9YUSTW3hYGx7iu7qkvcCpOrS4vQz03SjGfcS rSp7V0pGlr/1XAPgIPLg0lhJVEpyxOFl8j+npNRNvZRONEnlATyttc+WVz3mCJcBhNl/ AGQw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a1709062daa00b0072b02ef4ad9si10371752eji.307.2022.07.25.09.41.19; Mon, 25 Jul 2022 09:41:44 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236470AbiGYQj2 (ORCPT + 99 others); Mon, 25 Jul 2022 12:39:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236347AbiGYQjR (ORCPT ); Mon, 25 Jul 2022 12:39:17 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 129FA1D303; Mon, 25 Jul 2022 09:39:16 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 654AA153B; Mon, 25 Jul 2022 09:39:16 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9B5163F73D; Mon, 25 Jul 2022 09:39:15 -0700 (PDT) From: Jeremy Linton To: linux-pci@vger.kernel.org Cc: will@kernel.org, bhelgaas@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lpieralisi@kernel.org, kw@linux.com, mark.rutland@arm.com, sudeep.holla@arm.com, boqun.feng@gmail.com, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Linton Subject: [PATCH 4/4] dt-bindings: PCI: Note the use of pci-host-smc-generic Date: Mon, 25 Jul 2022 11:39:05 -0500 Message-Id: <20220725163905.2024437-5-jeremy.linton@arm.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220725163905.2024437-1-jeremy.linton@arm.com> References: <20220725163905.2024437-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Note the addition of pci-host-smc-generic for firmware based config assistance, and the relaxation of the 'reg' property for such machines. Signed-off-by: Jeremy Linton --- .../bindings/pci/host-generic-pci.yaml | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml index 6bcaa8f2c3cf..b4471617fa46 100644 --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml @@ -18,10 +18,11 @@ description: | presenting a set of fixed windows describing a subset of IO, Memory and Configuration Spaces. - Configuration Space is assumed to be memory-mapped (as opposed to being - accessed via an ioport) and laid out with a direct correspondence to the - geography of a PCI bus address by concatenating the various components to - form an offset. + Configuration Space is assumed to be laid out with a direct correspondence + to the geography of a PCI bus address by concatenating the various components + to form an offset. The CAM and ECAM mechanisms require a memory mapped + interface, while the SMC traps to the firmware to perform config space + reads and writes decoded similarly to the ECAM mapping. For CAM, this 24-bit offset is: @@ -86,6 +87,7 @@ properties: enum: - pci-host-cam-generic - pci-host-ecam-generic + - pci-host-smc-generic reg: description: @@ -93,7 +95,8 @@ properties: bus. The base address corresponds to the first bus in the "bus-range" property. If no "bus-range" is specified, this will be bus 0 (the default). Some host controllers have a 2nd non-compliant address range, - so 2 entries are allowed. + so 2 entries are allowed. Machines which implement the Arm PCI SMCCC spec + must not provide this property. minItems: 1 maxItems: 2 @@ -109,7 +112,6 @@ properties: required: - compatible - - reg - ranges allOf: @@ -123,6 +125,16 @@ allOf: required: - dma-coherent + - if: + properties: + compatible: + not: + contains: + const: pci-host-smc-generic + then: + required: + - reg + - if: properties: compatible: -- 2.37.1