Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp907280ybl; Mon, 2 Dec 2019 21:00:04 -0800 (PST) X-Google-Smtp-Source: APXvYqx0qYvEV4bCzlmASKF7iDSc6St2unifSoFqUFwVvj6+Vw8RLKJ7wFq9Z/6aSGfxYqjAjQ7l X-Received: by 2002:a9d:7854:: with SMTP id c20mr2027967otm.79.1575349204900; Mon, 02 Dec 2019 21:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575349204; cv=none; d=google.com; s=arc-20160816; b=gPJP0dWPA2CjusDAcjlkJP3gkycCdd2xCyb4aoIgam77+DebqYOQfrvbefj6BVezTS +P5vZ31ZRe20BnyMQPVCPQXuluejl2108H6MbEyhvBLG/jYBIekS6+ihW63LwBOJTzzC CvV49jHTZPlysPGriqo2TsZfE/vZ4/xl5YbH8GxK3lPqgbb+yGQjZjXIaFjobDjp34iJ d7SNxN8DuZ1PG/ZcV+XDNkcaczyvDjbMl0+lIuvWxSN08mOc0h1PIxMIkEEI0s0t8u5O aiymaQoL0qki/yxrpoRTGVBt7Eum3UPQkQU+K47smY5HDgtbf7P7zjQ8QgBbz0DlZbt+ Ci0A== 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=5EQ9rGer61vl3gVciY+E78pOpw9FBgHKH9v/WyZesyU=; b=ngfgZ3QizYm+JhwFCLcLqNA/Cf+0kuTE33SP6zw1h0/F3S5vECzbdgcRuAbr5E7S+v 9F2dIhbR6hUVGz0dbYFff/X7tRM8LeYbObObNj0q/UWug08aa9G9PYFto5JRzt0nO9m8 7+wA1bFL2a2jPEOcT0m9Zv032BRGeAZ71LZCpz12Ej7Qn2lDd/0QZjnbh6jfd+iqNA9E J5cqKTyOf240fjmSyGVwCAloJktnAE2roc+FqidI4wrblXmXc4GOnZEayeX4D+1GzYGw 2ss8ZYxgKy7Fg1Th7svKnhzBVlTcoKD+6Oxue+ygWJcErGoWkGCiohTVv2klcSm26Jkt VS9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=NnXC6a+Y; 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 q12si756753oic.195.2019.12.02.20.59.52; Mon, 02 Dec 2019 21:00:04 -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=NnXC6a+Y; 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 S1727239AbfLCE6A (ORCPT + 99 others); Mon, 2 Dec 2019 23:58:00 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56048 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727184AbfLCE56 (ORCPT ); Mon, 2 Dec 2019 23:57:58 -0500 Received: by mail-wm1-f65.google.com with SMTP id q9so490211wmj.5 for ; Mon, 02 Dec 2019 20:57:57 -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=5EQ9rGer61vl3gVciY+E78pOpw9FBgHKH9v/WyZesyU=; b=NnXC6a+YemKnNQ13CElebpttdTTNKjemUS6z48obW+5NMCOJia26Zab9+aqXpyc5IY h8msHprLS+2yUh3iy6vYhIwf7f6IWZcA2dIkxx/I0jlUjABfqOUm+1ZQQgjEMolcnDOx +Khj7F5LsrE4AtZz4TUBoFartiHt7hqXeM1dQ= 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=5EQ9rGer61vl3gVciY+E78pOpw9FBgHKH9v/WyZesyU=; b=mvjtrySB0PvlYoVMiXxhquG7w+OXHaFTrFSzpeaSNNVN79fIs0rKQIoNXAK+Qhk72i UqlE5JH46HqfvUlGWsZUMVgjoIa7s0kzmLi5z3CCmPLiGeH6Z5/4Oa4BHAHLWi7bZQPx cVgRz1ZnYwkM/CovMnYw1XAuGi1voiUG4DmBtYLECOysDnYIIVyhdftQxyd7GV2JftgB hgngBeAgkz3XuVuquTlE5T3bAVCAGzIEFC3vuwU5IHr/fMhqBprsHqfUVCdPwNvnpHmP ruIXMaAyaSIQhNiOWMGJqvvf7RQ9gUHS8B0uqK41uxWxIRmaoYUDCHt/zqTrgB7mWA8D Uodw== X-Gm-Message-State: APjAAAXxrFBd4ZqM8OmCwZYZYVth3FpPBiMJtmjf5sXpRjY5owSy3AB7 a3m0+P5fwPfnE+1J8M6uMkVsGg== X-Received: by 2002:a7b:c764:: with SMTP id x4mr17775306wmk.113.1575349076962; Mon, 02 Dec 2019 20:57:56 -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.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Dec 2019 20:57:56 -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 5/6] arm: dts: Change PCIe INTx mapping for HR2 Date: Tue, 3 Dec 2019 10:27:05 +0530 Message-Id: <1575349026-8743-6-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-hr2.dtsi | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/bcm-hr2.dtsi b/arch/arm/boot/dts/bcm-hr2.dtsi index e4d4973..d840190 100644 --- a/arch/arm/boot/dts/bcm-hr2.dtsi +++ b/arch/arm/boot/dts/bcm-hr2.dtsi @@ -299,8 +299,11 @@ reg = <0x18012000 0x1000>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 186 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>; @@ -328,6 +331,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 { @@ -335,8 +346,11 @@ reg = <0x18013000 0x1000>; #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 192 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>; @@ -364,5 +378,13 @@ ; brcm,pcie-msi-inten; }; + + pcie1_intc: interrupt-controller { + compatible = "brcm,iproc-intc"; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; }; -- 2.7.4