Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6068437ybl; Tue, 14 Jan 2020 21:11:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxEbm+9RHWV8+NmolqfxVyeUxWLcTV5ukhwxh1OXUOq7Jb7SInghpV6H5iS8/dCoStDEUub X-Received: by 2002:a9d:4f0a:: with SMTP id d10mr1517622otl.85.1579065065404; Tue, 14 Jan 2020 21:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579065065; cv=none; d=google.com; s=arc-20160816; b=SYn95+RckHmZm3PoaeQ6j/G0ATJP7PFPotGKkEUkPhvX6sCbQCZLCABMKclnMD+No4 8Ats/AWlrLmE8pMXWOxC7sgLKw+clwFD8ajla9aiK0Xv344z2PPIl+5UaloHqukY4LnG YaCOJ9SXN7+lDlQZSY79FsRQtB2XooEQ27FLFjsYmh56JVA5Zb02NCRfzZaBLlHT/0jw XrSCGK0mPJ3Ovu4fvT9tWtlcx9AsK8mYPR4vhzyv+GUitkmFPs/gHGmC4Neu8e12Rh24 EXuxORM08pH1RLADzvFWUUTc4Af/QtSBZliJDFt752hmHwXlqoCONJ4RlmB4iNBiAwIB 8N5A== 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; bh=FgOrewwYiz8GntwlticqZeoYfPtPsYEvbL0hcBSBKoc=; b=ADqIyK1SigVWLTM8BcC52Oh7ES/qIk6StXseMJ7hz3tQRnMMEYdceh4EeMrnGYB5wd C6TIf2E2Zs30IUi81G4LCiBLdLPqgjzZOLb9u96cun6T9JKA0lAJWFuXDUUZ46GEaXFR l+cCngofyc1eHQFdrGtJwDWv9mHZLFtnCA/5OR5MV0/wgoS9ojObsDI6vzgqalctYNQ9 Q0WkD+JnH9QhBOy2eHKbtZPQp4ULwasHcReTmMJx5jdPFamJlU+lh2JDS2lnqJfA7tKr Kd5/Fs2n5pbj2lDvCEMxPcaHAn+aG4CuAyFCFXbYx2J+UAO0tc1lxpu8uueU6Nb9PV/1 3sIQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si10143401otn.125.2020.01.14.21.10.39; Tue, 14 Jan 2020 21:11:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726075AbgAOFJA (ORCPT + 99 others); Wed, 15 Jan 2020 00:09:00 -0500 Received: from inva020.nxp.com ([92.121.34.13]:55508 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgAOFI7 (ORCPT ); Wed, 15 Jan 2020 00:08:59 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6EB1D1A052A; Wed, 15 Jan 2020 06:08:57 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6F9531A0529; Wed, 15 Jan 2020 06:08:51 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id F0276402AE; Wed, 15 Jan 2020 13:08:43 +0800 (SGT) From: Joakim Zhang To: maz@kernel.org, jason@lakedaemon.net, tglx@linutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, fugang.duan@nxp.com, Joakim Zhang Subject: [PATCH V5 0/2] irqchip: add NXP INTMUX interrupt controller Date: Wed, 15 Jan 2020 13:04:22 +0800 Message-Id: <1579064664-16452-1-git-send-email-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds driver for NXP INTMUX interrupt controller. ChangeLogs: V4->V5: *get number of channels by platform_irq_count() instead of 'fsl,intmux_chans' property *update binding files and remove 'fsl,intmux_chans' property. V3->V4: *set IRQ_TYPE_LEVEL_HIGH flag in .xlate callback. *fix comment format. *use an intermediate variable for irq_domain_add_linear(). *disable interrupts before enabling chained interrupt. *disable interrupt in imx_remove() for level interrupt. *convert binding to DT schema. V2->V3: *impletement .xlate and .select callback. V1->V2: *squash patches: drivers/irqchip: enable INTMUX interrupt controller driver drivers/irqchip: add NXP INTMUX interrupt multiplexer support *remove properity "fsl,intmux_chans", only support channel 0 by default. *delete two unused macros. *align the various field in struct intmux_data. *turn to spin lock _irqsave version. *delete struct intmux_irqchip_data. *disable interrupt in probe stage and clear pending status in remove stage. Joakim Zhang (2): dt-bindings/irq: add binding for NXP INTMUX interrupt multiplexer drivers/irqchip: add NXP INTMUX interrupt multiplexer support .../interrupt-controller/fsl,intmux.yaml | 67 ++++ drivers/irqchip/Kconfig | 6 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-imx-intmux.c | 309 ++++++++++++++++++ 4 files changed, 383 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,intmux.yaml create mode 100644 drivers/irqchip/irq-imx-intmux.c -- 2.17.1