Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp906297ybl; Mon, 2 Dec 2019 20:58:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwOFs2zuD1FSl8jEIDtjaWoRwF4Pp4Vm8Hq0WxnskMKfKJdgBmvIz1CHUTkAhsQz8seMbHc X-Received: by 2002:aca:c646:: with SMTP id w67mr2106507oif.171.1575349101434; Mon, 02 Dec 2019 20:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575349101; cv=none; d=google.com; s=arc-20160816; b=t+PVP+rbcrcBdwAh+BNYn32oZE/JUuAppnSqxKaSrlGH0Vw4COqWcraP5hUsTLnlBz 41ULJugh4avdJgxCt+KozmkL1BAuu3yAMH32CdFpGxpG66TZqevKOvyypORoqIWcM2IH vmv/wRies9k436BDsYhsqTk2T2FiL1nj+6p/hk8S00PskkGL9kaeIkVpnAxt+ko9SQgI nzOrLfDMSX6aKY27TcPGvx7OAiH6amDvwRqmTqXbm7YxG4LDS0YFu0QY2AcX7Tx2a+5U PGpOuzqlYZnY4I/4X8fNJHLXSfjww7WpsbhxKMytdfOps8M1nfj4XRIsdeh/f4genhg/ /VXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=pbRW1viad/GHjUmf3l7SOTRxkxISCKNgTFW5qUzFG18=; b=Gb5Ls7xAh0IbePvnYpx9VE/43ZiAIJJFFYfEfzYWOWIkLtP4WXWRyO79Fne0GJa1dn GdHIMP5jH8LOUbCfX5Fay01QXFDHLVRnWsLZNiNdgi5ZnEEo6MCZk2Im1zjY5C9xU9Lj xQ39r1aqnNL0YYJMwFyMJZ/5l+VJFuDBoBcFMjIj1fMfZRORCMAli6VoYKrfc8aW44lh 61XjnNDVKM5qdJqDS7vD/XJaQ3/UG3oAPENcU/CWxMQRoZGvVG8nsqNURaXrW7D4PwFO FZyJdy9fZpnuedQFlgp0wuBG6d96/CIr7Tl4oZZcCZYpSSTl2qzp1mq1d/KhQimVsKnh bK+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=WLmdWgto; 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 o16si717711otp.289.2019.12.02.20.58.09; Mon, 02 Dec 2019 20:58:21 -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=WLmdWgto; 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 S1727022AbfLCE5c (ORCPT + 99 others); Mon, 2 Dec 2019 23:57:32 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43901 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726968AbfLCE5c (ORCPT ); Mon, 2 Dec 2019 23:57:32 -0500 Received: by mail-wr1-f67.google.com with SMTP id n1so1926710wra.10 for ; Mon, 02 Dec 2019 20:57:30 -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; bh=pbRW1viad/GHjUmf3l7SOTRxkxISCKNgTFW5qUzFG18=; b=WLmdWgtocCq7SfivDEJxGQ0qYWEVC1FNP6Ngu0ZWhp++etMTGHgs+n3xeIFW14fTiV yhMj5yJWWCPDS2EsRAWEKGXN55BwurbaZnbUTdFro30TSZBmm596DFT99kyC5Rb5b2Zp hE6zmZw+W99FOnPwPVSHB2AwA5Hq6AacNcqZg= 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; bh=pbRW1viad/GHjUmf3l7SOTRxkxISCKNgTFW5qUzFG18=; b=hDTVmYDEaM5sYbLumMGfJamBU5gd/r/7ikHPd9V8tZCf1gcNq8JB3t5rX3bwcqyhsn MveSjxp9dm13nMUGtkEM8q/Vm8YzEQ4IC6JwrTEQPq4AYlsaUzJzOFiyMpWD8EpEnlvI bIOhgepskzz13+tr0vfOHvdCVwfN6TELWOl0Ghi+ZFc1wcJkgeVTuUlxmVY075J8zg+A +J5olZMdoCFCZhBrPgtnfuJc+v26Hbpk5pnP0FqF9u4amB9+m/DuZmt07A9vzDWgmPSY vsTIPfpjL6f7IThGZBG/kVHH3kVhs33//ruyK7g54MU7sobJa/pFO3YQicB3bgAD5Fje CUew== X-Gm-Message-State: APjAAAWrwt5p+mCTaHiZggLwQiLHV8u7aOaAIjwUYkCRepdSSwNw7lgM tE6ujctYjMf5ixaUV5ns3DxJUQ== X-Received: by 2002:a5d:5284:: with SMTP id c4mr2679212wrv.376.1575349049792; Mon, 02 Dec 2019 20:57:29 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Dec 2019 20:57:29 -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, Srinath Mannam Subject: [PATCH v3 0/6] PAXB INTx support with proper model Date: Tue, 3 Dec 2019 10:27:00 +0530 Message-Id: <1575349026-8743-1-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds PCIe legacy interrupt (INTx) support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system. This is now modeled by using its own IRQ domain. Also update all relevant devicetree files to adapt to the new model. This patch set is based on Linux-5.4. Changes from v2: - Addressed Lorenzo's comments - Corrected INTx to PIN mapping. Changes from v1: - Addressed Rob, Lorenzo, Arnd's comments - Used child node for interrupt controller. - Addressed Andy Shevchenko's comments - Replaced while loop with do-while. Ray Jui (6): dt-bindings: pci: Update iProc PCI binding for INTx support PCI: iproc: Add INTx support with better modeling arm: dts: Change PCIe INTx mapping for Cygnus arm: dts: Change PCIe INTx mapping for NSP arm: dts: Change PCIe INTx mapping for HR2 arm64: dts: Change PCIe INTx mapping for NS2 .../devicetree/bindings/pci/brcm,iproc-pcie.txt | 48 ++++++++-- arch/arm/boot/dts/bcm-cygnus.dtsi | 30 ++++++- arch/arm/boot/dts/bcm-hr2.dtsi | 30 ++++++- arch/arm/boot/dts/bcm-nsp.dtsi | 45 ++++++++-- arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi | 28 +++++- drivers/pci/controller/pcie-iproc.c | 100 ++++++++++++++++++++- drivers/pci/controller/pcie-iproc.h | 6 ++ 7 files changed, 260 insertions(+), 27 deletions(-) -- 2.7.4