From patchwork Tue Dec 3 04:57:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinath Mannam X-Patchwork-Id: 1203500 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="WLmdWgto"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47RqV50hPHz9sPL for ; Tue, 3 Dec 2019 15:57:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbfLCE5b (ORCPT ); Mon, 2 Dec 2019 23:57:31 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40842 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbfLCE5b (ORCPT ); Mon, 2 Dec 2019 23:57:31 -0500 Received: by mail-wr1-f67.google.com with SMTP id c14so1956574wrn.7 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=FOaElXNdBWwMB5IAJXce0iMU2Fdca2L755XN4mKPeqOmphRXVcLQxVXIAy+DZy/Avi 9XyYxXalcq6uxQL2VX4CqbIyphZ1RgnAm/y3ghVEiFoTtFMxcWvDG90MAE7hdjis9xIU pKSHB6AbnasaP+PZQm7vsUVSIsXJIUJLUZXuOPWvI0mAaq4oyWN1RZDerMqAH9Ofe92f ApSPO14nUQ3di0lwlji8u5XFpowbXnhoU5/QWfD1Y47H8EdouKyj7FRC3RFEpx9V2lfS 6O3+vwLKa1VqOrZ2VLCrj2NnIi5ciH6sDrgHoOwI8GBlEyZjKS6AM5sw/jHhu0EEth5V 8Rbw== X-Gm-Message-State: APjAAAUY0ntvL4pNpQOYQ6nSoPcPZFKyeSfsQDKTnCZ1+He7MKK76gb/ ZQj4ZFBCkvF9HCeY5coqMpvXXg== X-Google-Smtp-Source: APXvYqyUrHD9fDQwouHUkuIiwPBscZSDLCvUsyiXCIoV/4MEv6faKFnYd8o4XCGdWtnIMoM9UkEcaw== 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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@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(-)