From patchwork Sun Jul 28 17:34:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 11063005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 417C214E5 for ; Sun, 28 Jul 2019 17:35:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 340A5286E6 for ; Sun, 28 Jul 2019 17:35:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2867A2883D; Sun, 28 Jul 2019 17:35:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82E81286E6 for ; Sun, 28 Jul 2019 17:35:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726141AbfG1RfL (ORCPT ); Sun, 28 Jul 2019 13:35:11 -0400 Received: from sender4-pp-o95.zoho.com ([136.143.188.95]:25535 "EHLO sender4-pp-o95.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfG1RfL (ORCPT ); Sun, 28 Jul 2019 13:35:11 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1564335292; cv=none; d=zoho.com; s=zohoarc; b=lra3vjJlTihpQSBPeT7fWgMc/mwYCjz/ymex5GCuDCJCo/vW8rY1bcrHbBucOn+tcd2+xfO7XYGCbXnqy1Nz97YbGKTVmDD8g6zznySBr1senN5njfsRQIxrm20swO8DHN2YRhDi8gjHO8tlhzU1Uuw0c1a7R+JEdfgpD3SUiRY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564335292; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=m/aL0to7/JF4dJlx4u5CY0Kt+iNyLQJ9D8Os6Q/mHHs=; b=DlzrHU1yh0stn2voJ1J2LfxBeVHNOQyAnaXm7rJG1LJkUCCx5Mkak2PoAgId2+Ln9pV2MZL/+W59NjZEs1Da+0VDwGkYloxYA1yR/aiqOImGYbJTkThWYLWI05tSVfYDaXa1IdO+MfrnGU7suL5fVHLKrvwR0BUHjo+6ei00Ego= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=F6H2TteVw8YgOKvaGC0bKKd1g/SYw8KjgE1Mr0qnkvQQcYmgpFJHAZl93jXMVrhIcUxtbWH4pJQm Qw+cijkDfgBd9WEJvpydEubWAs1iHsl8woERQrHcKG5j8S7K3Vyv DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1564335292; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=2906; bh=m/aL0to7/JF4dJlx4u5CY0Kt+iNyLQJ9D8Os6Q/mHHs=; b=rAYOtMve8cAGN+KeBUSfNzkMO5hx0DY496HGyyyI1t49DD0XQrpVbpekSiGXIlxp H3koj9TTG3+N+saF59OW56/PXjqVjTGjG26b5IyoHP9rFIjW98rwuSvoebg4l6SvxL1 aRjnRo+/bgWpVwZokCPoQmgG9DpglrBspWWM6gu4= Received: from zhouyanjie-virtual-machine.localdomain (171.221.113.137 [171.221.113.137]) by mx.zohomail.com with SMTPS id 1564335290824742.1386333116222; Sun, 28 Jul 2019 10:34:50 -0700 (PDT) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, tglx@linutronix.de, mark.rutland@arm.com, jason@lakedaemon.net, marc.zyngier@arm.com Subject: [PATCH 1/4 v4] irqchip: Ingenic: Change interrupt handling form cascade to chained_irq. Date: Mon, 29 Jul 2019 01:34:30 +0800 Message-Id: <1564335273-22931-2-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The interrupt handling method is changed from old-style cascade to chained_irq which is more appropriate. Also, it can process the corner situation that more than one irq is coming to a single chip at the same time. Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index f126255..49f7685 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009-2010, Lars-Peter Clausen - * JZ4740 platform IRQ support + * Ingenic XBurst platform IRQ support */ #include @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -32,22 +33,34 @@ struct ingenic_intc_data { #define JZ_REG_INTC_PENDING 0x10 #define CHIP_SIZE 0x20 -static irqreturn_t intc_cascade(int irq, void *data) +static void ingenic_chained_handle_irq(struct irq_desc *desc) { - struct ingenic_intc_data *intc = irq_get_handler_data(irq); - uint32_t irq_reg; + struct ingenic_intc_data *intc = irq_desc_get_handler_data(desc); + struct irq_chip *chip = irq_desc_get_chip(desc); + bool have_irq = false; + uint32_t pending; unsigned i; + chained_irq_enter(chip, desc); for (i = 0; i < intc->num_chips; i++) { - irq_reg = readl(intc->base + (i * CHIP_SIZE) + + pending = readl(intc->base + (i * CHIP_SIZE) + JZ_REG_INTC_PENDING); - if (!irq_reg) + if (!pending) continue; - generic_handle_irq(__fls(irq_reg) + (i * 32) + JZ4740_IRQ_BASE); + have_irq = true; + while (pending) { + int bit = __fls(pending); + + generic_handle_irq(bit + (i * 32) + JZ4740_IRQ_BASE); + pending &= ~BIT(bit); + } } - return IRQ_HANDLED; + if (!have_irq) + spurious_interrupt(); + + chained_irq_exit(chip, desc); } static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) @@ -70,11 +83,6 @@ void ingenic_intc_irq_resume(struct irq_data *data) intc_irq_set_mask(gc, gc->mask_cache); } -static struct irqaction intc_cascade_action = { - .handler = intc_cascade, - .name = "SoC intc cascade interrupt", -}; - static int __init ingenic_intc_of_init(struct device_node *node, unsigned num_chips) { @@ -139,7 +147,8 @@ static int __init ingenic_intc_of_init(struct device_node *node, if (!domain) pr_warn("unable to register IRQ domain\n"); - setup_irq(parent_irq, &intc_cascade_action); + irq_set_chained_handler_and_data(parent_irq, + ingenic_chained_handle_irq, intc); return 0; out_unmap_irq: From patchwork Sun Jul 28 17:34:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 11063007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B68EE13AC for ; Sun, 28 Jul 2019 17:35:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB000286E6 for ; Sun, 28 Jul 2019 17:35:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EBAE2883D; Sun, 28 Jul 2019 17:35:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E15C286E6 for ; Sun, 28 Jul 2019 17:35:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726229AbfG1RfV (ORCPT ); Sun, 28 Jul 2019 13:35:21 -0400 Received: from sender4-pp-o95.zoho.com ([136.143.188.95]:25541 "EHLO sender4-pp-o95.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfG1RfV (ORCPT ); Sun, 28 Jul 2019 13:35:21 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1564335294; cv=none; d=zoho.com; s=zohoarc; b=hP48aYQREOxjoPQ8HykMuUfZitoQc+HC2f8jVG2KP9IdKlE67kCP9P1yLaLBMSZt+ufWEdK6mAarHiNjnjGhsBMrVa5up0hANVJIhPkqUBn30FOK3nOUQe4Dvhhl14xatxm9Aqjusxc7qs17KBd4u0szcofFMXLFngPGylIfzP0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564335294; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=V5qObMXUjhJHo2UBczLwj4TPm2Z11EB7/1xGdRBJB+o=; b=ZhOgYWHA9Js7H/spF/ObLy8eijN0RNoJpcaztrgtaH74n1a5WEPLcE1dqeap7qIaRFgwCENUpOLUE0HeelZTPhZUDri6XjkSisasgGLwrkwRXykD2xxWA716mHbY1GkldUTAJ+qUbmM7B3ZnZhmYqyr3P6IHZaH4NUQjRO+qQy0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=T3QMd2v4PaYCtfAZunrpGVTUtCY9iyLs9Vq+z4vl+3BDG97EjTDM0bwG6AM9OvJA3v6KoLa2H34s qWRprzGoZDSloCjKnoT4dA68pqp1XCo5ZEe3zjjo/C3B/CLn3yIp DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1564335294; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=1406; bh=V5qObMXUjhJHo2UBczLwj4TPm2Z11EB7/1xGdRBJB+o=; b=YM//d4J3u4iH310jM6kVzAs1r5B+RohXjISGuQzH3hj02m8kYFUSRk+LHOf4D1QX lOvI+QDSAbBs4cbguc/66MsOt4e+HFX1WTLqhsjTMb6mUgu+wCarFfV22bwldTWKxMc mQbhVVRF/4gA47bGIyl5ik+pS9oOhTEYStGHvQOs= Received: from zhouyanjie-virtual-machine.localdomain (171.221.113.137 [171.221.113.137]) by mx.zohomail.com with SMTPS id 1564335293912857.1698662381924; Sun, 28 Jul 2019 10:34:53 -0700 (PDT) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, tglx@linutronix.de, mark.rutland@arm.com, jason@lakedaemon.net, marc.zyngier@arm.com Subject: [PATCH 2/4 v4] irqchip: Ingenic: Unify the function name prefix to "ingenic_intc_". Date: Mon, 29 Jul 2019 01:34:31 +0800 Message-Id: <1564335273-22931-3-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For the sake of uniform style, function "intc_irq_set_mask" is changed to "ingenic_intc_intc_irq_set_mask". Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 49f7685..8430f5a 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -63,7 +63,8 @@ static void ingenic_chained_handle_irq(struct irq_desc *desc) chained_irq_exit(chip, desc); } -static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) +static void ingenic_intc_irq_set_mask(struct irq_chip_generic *gc, + uint32_t mask) { struct irq_chip_regs *regs = &gc->chip_types->regs; @@ -74,13 +75,13 @@ static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) void ingenic_intc_irq_suspend(struct irq_data *data) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->wake_active); + ingenic_intc_irq_set_mask(gc, gc->wake_active); } void ingenic_intc_irq_resume(struct irq_data *data) { struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->mask_cache); + ingenic_intc_irq_set_mask(gc, gc->mask_cache); } static int __init ingenic_intc_of_init(struct device_node *node, From patchwork Sun Jul 28 17:34:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 11063009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E3F5913AC for ; Sun, 28 Jul 2019 17:35:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D79DA286E6 for ; Sun, 28 Jul 2019 17:35:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBC0C2883D; Sun, 28 Jul 2019 17:35:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B96D286E6 for ; Sun, 28 Jul 2019 17:35:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726278AbfG1Rfc (ORCPT ); Sun, 28 Jul 2019 13:35:32 -0400 Received: from sender4-pp-o95.zoho.com ([136.143.188.95]:25548 "EHLO sender4-pp-o95.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfG1Rfb (ORCPT ); Sun, 28 Jul 2019 13:35:31 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1564335299; cv=none; d=zoho.com; s=zohoarc; b=UD16/ho51libGqtc8voTuj7bQJ0O9184gcQerzY6yWlGg8pPugfDDZFdcHPfZwge6v2Eg+i+16LACO6DIdIpLQzxwc0LU+y2S/LTcuzwcL3vB2QVBcabsGnbOoe22L1A3FbnzmEX6A9PdNUGQAhExXnRuAj4Qf9IJSN9cnCn7VY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564335299; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=S+ASoNlvKJWLTR3Wk8l1E1SjJMD3YOkWjRfxdE+eCO8=; b=U1kB1m+gy5hmWdCZeJ5MON5F60ytCw0IbBFlSBhbn59h3gXoB/Hw1GCUd/YDNX318DEcFY/5m9M1JaW8175HnPnqIy9FwxkclaKmlQDDvdiSVQKjW0UcCUW5avCLOLkNkF9zWZ+8zu7mL9PhKpUYeSTb4oVtLfz4IudAeRkH2Xk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=hxeyvEBIJpOuXIRs/Z6ryC8X07tlbnq7DZZ8XsZXQhDMedNXaXQ7x2ZurUX439RGEzo2WQPcqyG0 f8Sdy2O9SQ+K3QSCKO6tC8jCxPDTLk7TcYFhFq2LdxBnnppSGt/0 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1564335299; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=1196; bh=S+ASoNlvKJWLTR3Wk8l1E1SjJMD3YOkWjRfxdE+eCO8=; b=kxdqj+oVt6J/Ox5t8xRSMu3LYhaGRyTOcNXCNtAG2GnHyjDIuFXwch5zuMwr92HV qUsFJAq/lwRcPYxistKTCt8gYYMrz8wHBDvBWm9j6dGWPlFAhtqIBwmnpR2NywNKtoN 5EpONpvYkQZfCZTyaSrs+h6Uqgc9ZNcyTM705aBs= Received: from zhouyanjie-virtual-machine.localdomain (171.221.113.137 [171.221.113.137]) by mx.zohomail.com with SMTPS id 1564335296996986.6903597740522; Sun, 28 Jul 2019 10:34:56 -0700 (PDT) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, tglx@linutronix.de, mark.rutland@arm.com, jason@lakedaemon.net, marc.zyngier@arm.com Subject: [PATCH 3/4 v4] dt-bindings: interrupt-controller: Add new Ingenic Socs bindings. Date: Mon, 29 Jul 2019 01:34:32 +0800 Message-Id: <1564335273-22931-4-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the interrupt-controller bindings for the JZ4760/JZ4760B and the X1000/X1000E and the X1500 Socs from Ingenic. Signed-off-by: Zhou Yanjie --- .../devicetree/bindings/interrupt-controller/ingenic,intc.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt b/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt index d4373d0..a96e120 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt @@ -5,9 +5,14 @@ Required properties: - compatible : should be "ingenic,-intc". Valid strings are: ingenic,jz4740-intc ingenic,jz4725b-intc + ingenic,jz4760-intc + ingenic,jz4760b-intc ingenic,jz4770-intc ingenic,jz4775-intc ingenic,jz4780-intc + ingenic,x1000-intc + ingenic,x1000e-intc + ingenic,x1500-intc - reg : Specifies base physical address and size of the registers. - interrupt-controller : Identifies the node as an interrupt controller - #interrupt-cells : Specifies the number of cells needed to encode an From patchwork Sun Jul 28 17:34:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 11063013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE5B814E5 for ; Sun, 28 Jul 2019 17:35:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C16581FF7F for ; Sun, 28 Jul 2019 17:35:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5714205A8; Sun, 28 Jul 2019 17:35:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 663A11FF7F for ; Sun, 28 Jul 2019 17:35:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726375AbfG1Rfl (ORCPT ); Sun, 28 Jul 2019 13:35:41 -0400 Received: from sender4-pp-o95.zoho.com ([136.143.188.95]:25554 "EHLO sender4-pp-o95.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfG1Rfl (ORCPT ); Sun, 28 Jul 2019 13:35:41 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1564335301; cv=none; d=zoho.com; s=zohoarc; b=CQPKLgoNNgn13oHB8qjgxhVwiVlr1Nu9BmhfO4J1E0zVZyyMhvu4LmjvBa19UCujoeOsGkP4TsAGyexvHKCeAOFbuRyGD8tel8veVFRf0hnNEyCaYce7LgaUUepr+/ptvipYLvyT2q5Z0P5NliNa2s7jktcrrB952h20FZvri30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564335301; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=3CvKS/H8g2Jlg6NBAPjVHVx9G8RKBMCrmsSG6pfSt8E=; b=QPqbHxaT91SwGP+7wPNv/Y7IEpwwrGzTfsXoirYSxuD9cae8xxGJ/0kfN9Lfd53q/gJa20D2ybjxSj0ymefUsyW5Fa+M5+cbXzd0V7E8mUDczLug9zEfLkZ1yfrMDfa1iTQFc0cuJe8AcxEBLNBgpgGq4XNO42qUz9OH89L9iUc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=u8xjmfuNDa+fnCoOK4V0Q7KctO0/8yQxz5RAMlLanwBdJmCwWYmMNKLxTFIkM6vbTmpk2MPu/B5D jGEeGc4I6T6Br4atfrYJQT2esaBsQaHUkKk94DJ4A/0n/p66MVaW DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1564335301; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; l=1183; bh=3CvKS/H8g2Jlg6NBAPjVHVx9G8RKBMCrmsSG6pfSt8E=; b=fmid9nFT16RQZtkkJQxAFwtaw39JwX7kn59qVNv1tTOgTtMEpYFRW2Ax3JdVlEsU 0rz+bDzEcA5EA8IzFRWTXY3OeqT3mMRIquze0SmFFqqZ8po4vckZAI/NBZb3plQTp1j eWmvdAir4qaWCA9Ui/8yO4UVvp6ohl+lrdDZudgw= Received: from zhouyanjie-virtual-machine.localdomain (171.221.113.137 [171.221.113.137]) by mx.zohomail.com with SMTPS id 1564335300084683.3522199792209; Sun, 28 Jul 2019 10:35:00 -0700 (PDT) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, tglx@linutronix.de, mark.rutland@arm.com, jason@lakedaemon.net, marc.zyngier@arm.com Subject: [PATCH 4/4 v4] irqchip: Ingenic: Add support for new Ingenic Socs. Date: Mon, 29 Jul 2019 01:34:33 +0800 Message-Id: <1564335273-22931-5-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> <1564335273-22931-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for probing the irq-ingenic driver on the JZ4760/JZ4760B and the X1000/X1000E and the X1500 Socs from Ingenic. Signed-off-by: Zhou Yanjie --- drivers/irqchip/irq-ingenic.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index 8430f5a..b72430c 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -173,6 +173,11 @@ static int __init intc_2chip_of_init(struct device_node *node, { return ingenic_intc_of_init(node, 2); } +IRQCHIP_DECLARE(jz4760_intc, "ingenic,jz4760-intc", intc_2chip_of_init); +IRQCHIP_DECLARE(jz4760b_intc, "ingenic,jz4760b-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4770_intc, "ingenic,jz4770-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4775_intc, "ingenic,jz4775-intc", intc_2chip_of_init); IRQCHIP_DECLARE(jz4780_intc, "ingenic,jz4780-intc", intc_2chip_of_init); +IRQCHIP_DECLARE(x1000_intc, "ingenic,x1000-intc", intc_2chip_of_init); +IRQCHIP_DECLARE(x1000e_intc, "ingenic,x1000e-intc", intc_2chip_of_init); +IRQCHIP_DECLARE(x1500_intc, "ingenic,x1500-intc", intc_2chip_of_init);