Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp906663ybl; Mon, 2 Dec 2019 20:58:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxGdn0NwyMY+pZWh+1u6YH4C+1u9oHwKgE3zKwjNFjVuwx+J2gf6XSh1+BV1YpQwLYK1JCj X-Received: by 2002:a54:4e94:: with SMTP id c20mr2278513oiy.27.1575349139396; Mon, 02 Dec 2019 20:58:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575349139; cv=none; d=google.com; s=arc-20160816; b=X5hpYjMJUgKy3so9A6/fESXUW2Fy3Mzmuv1ZcIgCesUIORp9spRszvpuNWLol3oeCf ds/EjYov3pkqEW5p9re1BzYomRnuoEXGmfaLesGGSn7Lyjy3708kYoPPaNS5XlX47jkp f0DYwrGRu5JTTFQDxIA6lQp6wMh5KBr9mUibB3rhfFgR5i5gt/PisMeyDP70LOLrMTI9 dRlVdlBrLj8fpG9tOWpfYvjHyegL7lWYKTq82lYvbYd9b9SWh2CG3nEN2YUTaCZZdYIV jA0pHaBXQmFo+tL9vVWoTBKrtqY0Mm7RZVp4bkKNspKKkO7gZWnTtWDET5FiJI+H16Kd o3+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=HjO9w3K+DhLv6DGPP4CnPl74iRTy3HmYOjIjOtLnJCY=; b=1ChX0q+ZHD1IR/WH2F+zQwyDzV57VT9Q33r23co/80wGSGauUn4w+JgVFo90ueXz2p yqN8QpJlLtgFHyMfe48okyExq6lYcX61Z35KLdZ08pwXeFB/aUfzJPq1dTQ6lXNB8kzg Z7EilDzB423haPYctREAhJuFcuILB4fONj4ZeRONMTifciEB9VtgCd1jWMXfITKCjLtH /AVP6YWr8cSxd2DNPkkOhNvEILxUyJFnQs1RzmgfXctaTwrZRmsffDNhflNL3eFDaLtZ Caln9yXkHN52hPKmn6+3F32lB4vcKc/dowITAoIsjoHpGHJHS6D3VGRPwg9VPYbwKtOg rvqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=AWQOz60q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u186si736836oig.29.2019.12.02.20.58.47; Mon, 02 Dec 2019 20:58:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=AWQOz60q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbfLCE54 (ORCPT + 99 others); Mon, 2 Dec 2019 23:57:56 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41315 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727184AbfLCE5y (ORCPT ); Mon, 2 Dec 2019 23:57:54 -0500 Received: by mail-wr1-f68.google.com with SMTP id b18so1950652wrj.8 for ; Mon, 02 Dec 2019 20:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HjO9w3K+DhLv6DGPP4CnPl74iRTy3HmYOjIjOtLnJCY=; b=AWQOz60qWcCWEkaMeyRO8A5AxxeLAoQZP6hAGBtxSHWoN4lNdoXqrgR07FDW4e+fnb sFmpDEYQCRONOLhzXuOyu7ExgpFBOozVR9P5M3xr1xogB/2GY53RENN8cQQZ0P347FxF zwWeoCAEg27FgXzw14RiJoJbq2kc2KZ4BX6aw= 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:in-reply-to :references; bh=HjO9w3K+DhLv6DGPP4CnPl74iRTy3HmYOjIjOtLnJCY=; b=c9ZccwvOiFrvmzOlRLxEOr/zXZh0jwIxN+9mYFNWFXMJS4kwF83q7C0Vx/ghU09PlL 5Fhb5lIC46K289UyQvUZnzRe/lAVBnXaLAFTkJkl7Dyf3UFvrHAwHCO0B3cC0y4ualwp 8qOzVO2O80yBbW+alE7YV3QZzEmdq6Ggh0vUVHG4ZODWKHa3PAXqQ/9pKfhBLCWzXmwx OLUsMDrWuWWQ4gyY0SEQNcDipY9x3o5k9MjpWmwZAcs7f010a6o1OR7DtXF1Zt3WVbf+ 9w2/cyFqw3fNTv3mmbyn0Xt1Gs0PpLnsI5hIYoDhsxavN4CSeZNNPXaF97sAvIkqZgq5 kxCg== X-Gm-Message-State: APjAAAUtUebA7geTGFD16tMNd58eVp23ILWkMVjTTCR7Yag4hwY/zEKc hzxb+RiBHf7YwBCvEoyd+AwkeA== X-Received: by 2002:adf:e78b:: with SMTP id n11mr2819529wrm.10.1575349071509; Mon, 02 Dec 2019 20:57:51 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id k4sm1667807wmk.26.2019.12.02.20.57.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Dec 2019 20:57:50 -0800 (PST) From: Srinath Mannam To: Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli , Ray Jui , Rob Herring , Mark Rutland , Andy Shevchenko , Arnd Bergmann Cc: bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ray Jui , Srinath Mannam Subject: [PATCH v3 4/6] arm: dts: Change PCIe INTx mapping for NSP Date: Tue, 3 Dec 2019 10:27:04 +0530 Message-Id: <1575349026-8743-5-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575349026-8743-1-git-send-email-srinath.mannam@broadcom.com> References: <1575349026-8743-1-git-send-email-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ray Jui Change the PCIe INTx mapping to model the 4 INTx interrupts in the IRQ domain of the iProc PCIe controller itself Signed-off-by: Ray Jui Signed-off-by: Srinath Mannam --- arch/arm/boot/dts/bcm-nsp.dtsi | 45 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index da6d70f..6d73221 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -529,8 +529,11 @@ reg = <0x18012000 0x1000>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie0_intc 0>, + <0 0 0 2 &pcie0_intc 1>, + <0 0 0 3 &pcie0_intc 2>, + <0 0 0 4 &pcie0_intc 3>; linux,pci-domain = <0>; @@ -559,6 +562,14 @@ ; brcm,pcie-msi-inten; }; + + pcie0_intc: interrupt-controller { + compatible = "brcm,iproc-intc"; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; pcie1: pcie@18013000 { @@ -566,8 +577,11 @@ reg = <0x18013000 0x1000>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie1_intc 0>, + <0 0 0 2 &pcie1_intc 1>, + <0 0 0 3 &pcie1_intc 2>, + <0 0 0 4 &pcie1_intc 3>; linux,pci-domain = <1>; @@ -596,6 +610,14 @@ ; brcm,pcie-msi-inten; }; + + pcie1_intc: interrupt-controller { + compatible = "brcm,iproc-intc"; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; pcie2: pcie@18014000 { @@ -603,8 +625,11 @@ reg = <0x18014000 0x1000>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie2_intc 0>, + <0 0 0 2 &pcie2_intc 1>, + <0 0 0 3 &pcie2_intc 2>, + <0 0 0 4 &pcie2_intc 3>; linux,pci-domain = <2>; @@ -633,6 +658,14 @@ ; brcm,pcie-msi-inten; }; + + pcie2_intc: interrupt-controller { + compatible = "brcm,iproc-intc"; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; thermal-zones { -- 2.7.4