From patchwork Thu Dec 22 13:31:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 35770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp327221wrn; Thu, 22 Dec 2022 05:34:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXv9VpjTw2/tNklnmTFUH/PfhhIUgvG09eCtzeASaLBA323HQFxEaI+l/6kBuvu02Cfb6qE/ X-Received: by 2002:a17:906:704a:b0:83f:cbc0:1b30 with SMTP id r10-20020a170906704a00b0083fcbc01b30mr3915969ejj.10.1671716098084; Thu, 22 Dec 2022 05:34:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671716098; cv=none; d=google.com; s=arc-20160816; b=F9QFf7ls892idvkGz2C5Zvn++guiXNvEvRf+D0uk27yoWo0HRA6h/xohdxIE68zpW5 TJN7SkvoDuJgxT10fF1uiLGM2/3rNrkXqkZfyUwguduaxut5FrYVucgaUWd4zw5oGpv9 3PNxGHVI8b9fbayohlx8hjK1MQNfKXUSXjri1+yTmnGO4WCOojF482ShvAQzP8TgWbju O2uxNKu6pc6frzwjBE6cA8BUk5wU5supWExWxVGDbeV5kQsBHyUzN+2u9og7rj4ddcjm wNqYeTRbfw/+GDl/UG6i8zBuvv8RU6axpy4BXkSsHud39toy1IJgjzHXLdUN6rO0nnW8 4m3g== 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=jOniKrb0GQ9WjhoUQcWo7o7ITGbjHRsfNlny869TuiA=; b=YOsNqTIicQbNzPVbs1qurtjoAFkhf2EFXR2mU975FVMQde4xJZE+gDmgS6W+3AloLb 4lBL8EoEqBQd0SlS4QVMEwJB8fRckbeTY5cUsg6VSjZdZQnJOA+jZMJlpLB8PMC1tlHg GsrxirddY1q7yjkWw2uwO9/xyf8XAB442218gtQy2T1UszOmbBOLaqLtmDZNkwaSUuBh chlCAfstOZxO3Xbr32F6CP60sPOlFfjD2TH5OmyH65OzLLa371LC0HBp3O8d9u0/S2G6 8qNfzoTjOAFTjh8UAwFyeUvSveX+eStD3a/ZUnnkY/M+8NsDMwqkn7f0047lnX83cOIy q4Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RXfCUc6D; 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 wt12-20020a170906ee8c00b007c0d4f96d8esi450994ejb.566.2022.12.22.05.34.34; Thu, 22 Dec 2022 05:34:58 -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=RXfCUc6D; 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 S235350AbiLVNby (ORCPT + 99 others); Thu, 22 Dec 2022 08:31:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiLVNbs (ORCPT ); Thu, 22 Dec 2022 08:31:48 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD9A14D38 for ; Thu, 22 Dec 2022 05:31:47 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id d82so1212458pfd.11 for ; Thu, 22 Dec 2022 05:31:47 -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=jOniKrb0GQ9WjhoUQcWo7o7ITGbjHRsfNlny869TuiA=; b=RXfCUc6DuscK6pSxe4TWf7ROX9vnBY/mOBG8/W2FUvubLqbhzjVOE3w/Hf6dXzf8gh IkhVVvyKBH3hEhzV0bTP+hgPrXzgs4uUUnpdTjeBKY6BQRbkDWcvGqyAQCHRa/0xtUgx mwAoA30aOtXjknVTCEVlt22ks/lj6ule3aPYzWYon0qjYDxjY2pgTVOcwpStvlibqdHk QXlyOfIrhAwFBG+Ms7WL8WDih0el88qT7UFslSFORnuJ8ycSfZJede76gZoOuB9COoud F9sghyxBYljYN7xJZIEfN8dDdvxJEI88GK6P3bZYiN1lW3i6UPcBWQgc3Gk9TC5CJh4R W/gA== 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=jOniKrb0GQ9WjhoUQcWo7o7ITGbjHRsfNlny869TuiA=; b=F/XOiCQGUyGE78mAvq/OdfX6OqTn3TXzlGPc96UIVdpk6VjB3q5DFzOxw7mS59Tnmu lA2XtnkVLR4DVETtSu2YmYl756lSXbdB/hfT96n3KfhLEQYu9YqQ5blbs+aoImwkLcSS dPUEd+ZpqpaDwBTESeFe1CVq6UI+PJl+V9fS1iXzbQ5TBpGQi8Tdm6SNZ6yag9MaK7tX wLLVxBaupHFwon3UjdonQkurxvOblPMczu8v8+MTCC68QsOJMUXgiA17yF3jpltq8S5A qKxPFP50Ds0mhOcsKF+af5RD+GDJw8HpkhqfNQElZqkwGlDYX780MCL9pn9qp/oJTBHl YJCw== X-Gm-Message-State: AFqh2krjwdVW0+RPH69vLP0b0XT5zp1j2hXDApNEn/CxrVMgYv/M5Euj eBKfydV3URhvFssczCCZymld X-Received: by 2002:a05:6a00:13a4:b0:57f:f7a4:511a with SMTP id t36-20020a056a0013a400b0057ff7a4511amr8553345pfg.2.1671715906971; Thu, 22 Dec 2022 05:31:46 -0800 (PST) Received: from localhost.localdomain ([117.217.177.99]) by smtp.gmail.com with ESMTPSA id f66-20020a623845000000b00573a9d13e9esm737467pfa.36.2022.12.22.05.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 05:31:46 -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 v2 2/3] dt-bindings: PCI: qcom: Document msi-map and msi-map-mask properties Date: Thu, 22 Dec 2022 19:01:22 +0530 Message-Id: <20221222133123.50676-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221222133123.50676-1-manivannan.sadhasivam@linaro.org> References: <20221222133123.50676-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752921379484655705?= X-GMAIL-MSGID: =?utf-8?q?1752921379484655705?= 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. Only one of the implementation should be used at a time. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 02450fb26bb9..10fec6a7abfc 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -104,14 +104,20 @@ 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: