Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C907ACCA47F for ; Mon, 20 Jun 2022 11:20:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241509AbiFTLU1 (ORCPT ); Mon, 20 Jun 2022 07:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241491AbiFTLU0 (ORCPT ); Mon, 20 Jun 2022 07:20:26 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 351F413F17 for ; Mon, 20 Jun 2022 04:20:25 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id b7so11533185ljr.6 for ; Mon, 20 Jun 2022 04:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Twg17xcmQWEnSCcuxYrkuJYo007S5FBy/DKO7jdPon4=; b=xQvRcC/Lm8B1kRDra+OiJMWgucDp6pK2V45nmSB+Rns1n6NAf76aGBCJK+HB8GEfhj w6bCPPoMEXNxd2/ako4kddU0IqaIP+iThHXV0NmPzdLq6eMGp8CjGR/VHvc74Fao0ujv WTLfFNQnp+le8xM9XEhJ9vYOZLru1Isn2JNm4vjqxI+2BTgDt3LIrc1nazseRupeZj8j G4Tknp7HjqkfMtXkk3EOZjHWA0atlcPv13pG5Ks4EFUTqkaXS3oFEcV/zE39PkjOLB8D UT9tzyHuz1iYuKIIgYC9kXHR/L6SPYZpFaqajdBUQPNhaqdpmdNRalkqo1UPFbLfA3fI gP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Twg17xcmQWEnSCcuxYrkuJYo007S5FBy/DKO7jdPon4=; b=u/ALjH1rzLq6lS1YaZwm7tFey4rtEC4uvRweTpj5tC2mfA++24f+P4ifmgJhxgU0Xn vH3Apy3wCDFQdJUXTtk+H/jjpSyk8avJvUExwP395p5s9nCJgIKaJB6cbj5E3wsAH/xr ZG5NIECzdeUDail108bbglkC3wIrYLXUxrdj+ygismkRxEqjwgCdNv2dhk16V3cVjG03 YWisRA92U5/9kd/NyNxIrd2KtbUFYTzomoh0OoV5nB1oD8MDsCkaFMi31v+mlpsgdC/A hPehk9o8d+o6WWZTd/TTaBImYr0PWZZw9gC0Mf6ha/qxjoB5BN76SIkODtzi11URr59Z A7jQ== X-Gm-Message-State: AJIora8jx8kdVAuqLmUi+JfBKn4Rei6smkiDlQdqpm+heofZgrkixC/h Y7tWr/kQfasX3rPyI/KrFG50QA== X-Google-Smtp-Source: AGRyM1ti28tiaV/s8yvNZRrZpLJzxqmjN8fQPK4/G1PqC/WaWUZdQJLG4207+ImsAGFO/YBCwL8H+g== X-Received: by 2002:a2e:964d:0:b0:25a:72d1:321d with SMTP id z13-20020a2e964d000000b0025a72d1321dmr946398ljh.511.1655724023503; Mon, 20 Jun 2022 04:20:23 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id o23-20020ac24e97000000b00478f5d3de95sm1727270lfr.120.2022.06.20.04.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 04:20:22 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Bjorn Helgaas , Stanimir Varbanov , Manivannan Sadhasivam Cc: Vinod Koul , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Johan Hovold , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v15 5/7] dt-bindings: PCI: qcom: Support additional MSI interrupts Date: Mon, 20 Jun 2022 14:20:13 +0300 Message-Id: <20220620112015.1600380-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620112015.1600380-1-dmitry.baryshkov@linaro.org> References: <20220620112015.1600380-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Qualcomm platforms each group of 32 MSI vectors is routed to the separate GIC interrupt. Document mapping of additional interrupts. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/pci/qcom,pcie.yaml | 51 +++++++++++++++++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml index 0b69b12b849e..7e84063afe25 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml @@ -43,11 +43,12 @@ properties: maxItems: 5 interrupts: - maxItems: 1 + minItems: 1 + maxItems: 8 interrupt-names: - items: - - const: msi + minItems: 1 + maxItems: 8 # Common definitions for clocks, clock-names and reset. # Platform constraints are described later. @@ -623,6 +624,50 @@ allOf: - resets - reset-names + # On newer chipsets support either 1 or 8 msi interrupts + # On older chipsets it's always 1 msi interrupt + - if: + properties: + compatibles: + contains: + enum: + - qcom,pcie-msm8996 + - qcom,pcie-sc7280 + - qcom,pcie-sc8180x + - qcom,pcie-sdm845 + - qcom,pcie-sm8150 + - qcom,pcie-sm8250 + - qcom,pcie-sm8450-pcie0 + - qcom,pcie-sm8450-pcie1 + then: + oneOf: + - properties: + interrupts: + maxItems: 1 + interrupt-names: + items: + - const: msi + - properties: + interrupts: + minItems: 8 + interrupt-names: + items: + - const: msi0 + - const: msi1 + - const: msi2 + - const: msi3 + - const: msi4 + - const: msi5 + - const: msi6 + - const: msi7 + else: + properties: + interrupts: + maxItems: 1 + interrupt-names: + items: + - const: msi + unevaluatedProperties: false examples: -- 2.35.1