Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6733357imu; Mon, 3 Dec 2018 01:45:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/UXjxtAmc3lii8ZB3LQ53/hLaSFVU6arg3QCAxr1d3hB+qk2BbhSQvMEKnNr3Et0BcwmEtr X-Received: by 2002:a17:902:e085:: with SMTP id cb5mr15070756plb.24.1543830344172; Mon, 03 Dec 2018 01:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543830344; cv=none; d=google.com; s=arc-20160816; b=oCVx/1l6ltjvteH9+fs1s9SNRUlPyR2+k2LknsiUPyvlp8txcZ43sSpTeNx1Bm/foB XAKo/4k3CkV4ubfvesKfxJOWH9tVtXaOseyAVaSCCujGUIT9ESw2marBJcqGuwu8WvtZ Or9ypMjaFq74cT9RsMhttEBZ+QooyHxXQSbWF+PCVg1BVxvdLqILtjZEVZC5iOt9zChz U2fPcun8xTtrKNb1Gxd40D8/3q0059Mv0dy15C6FjA5oIeu1sgeI/VFjvGJ3lre5z6M0 G1ke7NWRCm6yyQMs/JJ7gjNeCWpl2mPjCGTgzjE7VE1imzw53DOW1SV/p1kz4d1yWr/z 5eMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2jxQq/BN2esDvast1mrGGV65xYXmCrJrPkjYgtParDE=; b=u7U96UDLtYNZvk2MPUZs4qevT5QCoU+sCOY1gSVyiw8HPH/zNzllcRFUaGBGWAuP0l 4173q4a0fohXTkDE6bmehN3XkXY8qeUgcUktPRaWP+OFX1EW9WVdKC0xhB84EgO6BkOT t7R1o6S7SbbuNTkIF47myFZxVcjL5npPqEL9vQCeV5VlHzaZXcnV1KziT/mlmC/T7ybd wh1sPeO1eUImyGIEWvsbxna/lAMgpFYVKjHcJpGr80GDprVlIR9LSQ1AMIenbxMWKjJD +6sBdUdxLuKpWnT6B8xOPVK9RTtzo0RItHg01G3H9yuInPXatL4W9h0+oINeFyOH6k+r 6b/w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si12208288plr.186.2018.12.03.01.45.29; Mon, 03 Dec 2018 01:45:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726108AbeLCJne (ORCPT + 99 others); Mon, 3 Dec 2018 04:43:34 -0500 Received: from mail-sz2.amlogic.com ([211.162.65.114]:7148 "EHLO mail-sz2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbeLCJne (ORCPT ); Mon, 3 Dec 2018 04:43:34 -0500 X-Greylist: delayed 908 seconds by postgrey-1.27 at vger.kernel.org; Mon, 03 Dec 2018 04:43:33 EST Received: from [10.28.18.81] (10.28.18.81) by mail-sz2.amlogic.com (10.28.11.6) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 3 Dec 2018 17:28:26 +0800 Subject: Re: [PATCH 2/2] irqchip/meson-gpio: Add support for Meson-G12A SoC To: Jerome Brunet , Marc Zyngier , Jason Cooper , Thomas Gleixner , Kevin Hilman CC: Jianxin Pan , Carlo Caione , Heiner Kallweit , Rob Herring , , , References: <20181203061324.36248-1-xingyu.chen@amlogic.com> <20181203061324.36248-3-xingyu.chen@amlogic.com> <7a2f88d849ada782de6e27676518d0b9897e30e7.camel@baylibre.com> From: Xingyu Chen Message-ID: Date: Mon, 3 Dec 2018 17:28:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <7a2f88d849ada782de6e27676518d0b9897e30e7.camel@baylibre.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.28.18.81] X-ClientProxiedBy: mail-sz2.amlogic.com (10.28.11.6) To mail-sz2.amlogic.com (10.28.11.6) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/12/3 17:19, Jerome Brunet wrote: > On Mon, 2018-12-03 at 14:13 +0800, Xingyu Chen wrote: >> The Meson-G12A SoC uses the same GPIO interrupt controller IP block as the >> other Meson SoCs, A totle of 100 pins can be spied on, which is the sum of: >> >> - 223:100 undefined (no interrupt) >> - 99:97 3 pins on bank GPIOE >> - 96:77 20 pins on bank GPIOX >> - 76:61 16 pins on bank GPIOA >> - 60:53 8 pins on bank GPIOC >> - 52:37 16 pins on bank BOOT >> - 36:28 9 pins on bank GPIOH >> - 27:12 16 pins on bank GPIOZ >> - 11:0 12 pins in the AO domain >> >> Signed-off-by: Xingyu Chen >> Signed-off-by: Jianxin Pan >> --- >> drivers/irqchip/irq-meson-gpio.c | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson- >> gpio.c >> index 7b531fd075b8..971e8dea069a 100644 >> --- a/drivers/irqchip/irq-meson-gpio.c >> +++ b/drivers/irqchip/irq-meson-gpio.c >> @@ -67,12 +67,17 @@ static const struct meson_gpio_irq_params axg_params = { >> .nr_hwirq = 100, >> }; >> >> +static const struct meson_gpio_irq_params g12a_params = { >> + .nr_hwirq = 100, >> +}; >> + > > Same comment as on i2c, the g12 seems compatible with the axg. > Is this patchset patchset really necessary ? > Although the total number of pins is the same as the Meson-AXG SoC, the gpio banks and irq numbers are different. To avoid confusion on use, i think the new compatible string is needed. >> static const struct of_device_id meson_irq_gpio_matches[] = { >> { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, >> { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params >> }, >> { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params >> }, >> { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params }, >> { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params }, >> + { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &g12a_params >> }, >> { } >> }; >> > > > . >