From patchwork Mon Dec 19 19:14:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 34716 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2571347wrn; Mon, 19 Dec 2022 11:17:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXvq3Y80+m+RWeV0EkTTU3uPQ21mCFF57NqlZDk2ToLgZ1b9OKfZ67g9IDzKMUsLZXYDkU+m X-Received: by 2002:a17:907:a641:b0:819:2756:e090 with SMTP id vu1-20020a170907a64100b008192756e090mr5569004ejc.50.1671477470560; Mon, 19 Dec 2022 11:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671477470; cv=none; d=google.com; s=arc-20160816; b=VpQGCtjd4xYvSwByJevANbzGX2rGHTa52Xc2kyjSd+pCkPF6kBWpYBUnHYKN1q+qmu hDUGUVxTxZT/AjaXgQi+r6kpWkAftdFwyAXZmcU0fEXr2+g14Xe4/QSE9jEvxmT589kN u6N/paelbe8rHUqc/+kIUb21l/6JBZadrJX00uoCNVHsoMfZYp+FUkQmhZhXnMNDnPkZ yq6pP11H7tmM2F0P6spCz5Z3eJ9C/8ZMt5wYK+AOaeMtjGxMaryy3TLiO7pQ2R8xD1B/ PEG7gPz2r5ct2VK3LTv0KKo6L7/Zbke6BhOW1uuqIoA+o0kyTL/CtU3yPtPZF5FoO3os uGSA== 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=9agN2hOf+CL4HJ9ZbGXzkjZqDPOgTWQAwGYfyipiHIQ=; b=bvpqk6Yr2WaT0UyeX6OdH+/6k/zX437bfNP9kPbnEw8oj3aoABX6TTtaDiaKk9EmM8 GVLC692/t/EkmpmHWu6vCgvrKkMjURiJ1CJM3OxB9qRoa1ThuwsZ4YhPr1ir6+rHEoym 5K8SFCDgK0/trednjtLo9DvxdYXMX58qokri7y+LBAnmue1N904XcHz65Qz9d7AFSFE4 v1lLckhIJUCJm0spP6jG0KLj9jNBfA6UkOuzFb1bnDeZ0j11B0kHjbLvaFVx2ZKIYR59 zfj9eLQFtU+xZBEhgWLezu1wmtK3ozw4t65d0IAn4o/9FuGdoU6jOkioJcitd57l+IgX mSSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=btxnOBxz; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm17-20020a170907949100b007d82520def9si9910696ejc.503.2022.12.19.11.17.27; Mon, 19 Dec 2022 11:17:50 -0800 (PST) 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=btxnOBxz; 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 S232394AbiLSTQE (ORCPT + 99 others); Mon, 19 Dec 2022 14:16:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232410AbiLSTPD (ORCPT ); Mon, 19 Dec 2022 14:15:03 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2153E1183A for ; Mon, 19 Dec 2022 11:14:46 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id s7so9982261plk.5 for ; Mon, 19 Dec 2022 11:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9agN2hOf+CL4HJ9ZbGXzkjZqDPOgTWQAwGYfyipiHIQ=; b=btxnOBxzbKshtiQvz6qlHOmD0ilj28u9K1pdvGzXZo6Y+y5YVboduUvCynfNY55U8e aNaW42k2fyavRmJ0XxsPWkoHNJ8mUQi6AcvMnccBiakR3XkZOoS9DofZDWEJYqSVnC60 OF29eYMnKHv8WCuCbUVwP7IyxidHWEnRpnx9MCmwRyXA4S7ZhGccP9sSFMQyydt4XotT GAN19uexcDovmj6S3jsVUtn65vk0LOy2cWlnLb82KA7kb8nawvOPvaTRAbN8W6huwVDC yFOGtD3YdmWrQqQi+fxscnp0vpKzF4OPvZSbzCz4uevgpgNXWi2buICfjgGYsdgNANsn 633w== 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 :subject:date:message-id:reply-to; bh=9agN2hOf+CL4HJ9ZbGXzkjZqDPOgTWQAwGYfyipiHIQ=; b=Yn/1BBs+SZa2XWcu17E9FtzJUjpapn3pjm7cu//9bRZaJZEAgjrtFkCFt6U81oMg7a 1muslaHHrwabuXmMf2nyHqWHILI2HndkH4QpDsmM2X8mDPSojeTUmEWFjpwDhM/oZ3sG x7FlVUegW0/uD2cgohesO72/0bqyTEHIfcB4PdY98Knrp+I3opzLClmSLADKrX+OcCoA IrIq9OPpQfjdzPuQTFJcv0zbre8xuHa55kez1kwXsV2O8xnCCovjTcCz/kJJorMeKtxD xuymyJoddqO0Z54KVqoiN/cFn5xWniE9UzgDmUypQoPTLQwxSdcBguBK+KQamAFbMamW mVWQ== X-Gm-Message-State: ANoB5pkcBj1z+vBfSyU8vWyqFlZ5dH4wyLsdXQUb63qgq4nP7k+Lfwa5 ocvT2dzWqIcUoJUhsv82HhYa X-Received: by 2002:a17:90a:fe0a:b0:219:8cba:cbbd with SMTP id ck10-20020a17090afe0a00b002198cbacbbdmr45654393pjb.32.1671477285810; Mon, 19 Dec 2022 11:14:45 -0800 (PST) Received: from localhost.localdomain ([220.158.159.17]) by smtp.gmail.com with ESMTPSA id z4-20020a17090a66c400b001f94d25bfabsm9485803pjl.28.2022.12.19.11.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 11:14:44 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: bhelgaas@google.com, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 2/3] dt-bindings: PCI: qcom: Document msi-map and msi-map-mask properties Date: Tue, 20 Dec 2022 00:44:26 +0530 Message-Id: <20221219191427.480085-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221219191427.480085-1-manivannan.sadhasivam@linaro.org> References: <20221219191427.480085-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752671160270353975?= X-GMAIL-MSGID: =?utf-8?q?1752671160270353975?= The Qcom PCIe controller is capable of using either internal MSI controller or the external GIC-ITS for receiving the MSIs from endpoint devices. Currently, the binding only documents the internal MSI implementation. Let's document the GIC-ITS imeplementation by making use of msi-map and msi-map-mask properties. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/pci/qcom,pcie.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 02450fb26bb9..24c3e7ef14eb 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -100,18 +100,28 @@ properties: description: GPIO controlled connection to WAKE# signal maxItems: 1 + msi-map: true + + msi-map-mask: true + required: - compatible - reg - reg-names - - interrupts - - interrupt-names - - "#interrupt-cells" - interrupt-map-mask - interrupt-map - clocks - clock-names +oneOf: + - required: + - interrupts + - interrupt-names + - "#interrupt-cells" + - required: + - msi-map + - msi-map-mask + allOf: - $ref: /schemas/pci/pci-bus.yaml# - if: