Message ID | 20230913080924.3336391-3-huqiang.qin@amlogic.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp928122vqx; Wed, 13 Sep 2023 01:14:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNZ1EnE6pyZ0gGLMqs4wifIqe9gSt73WgVeTsT5SkiJCsdf15RlmVeSdpF6HSDp/AUqmvj X-Received: by 2002:a17:90b:3503:b0:26f:e9fd:8287 with SMTP id ls3-20020a17090b350300b0026fe9fd8287mr1532658pjb.20.1694592847473; Wed, 13 Sep 2023 01:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694592847; cv=none; d=google.com; s=arc-20160816; b=YLoQM9hX9dPTaPJEYpy3MjH9YbQ8MrNiGnsjZBCkgRN+Ur9VR0EYpkzSy+vynnneX5 52nlqTbLw/0mFZBCcSSnjTJ69hCg28YAq8EF+vPTXs9p6telI8UFlvMD+cLE48ozVCCU aYCTH2ZrMVuTXD/Z2L4psDHA+4KdjTw/vDdXfDDbAxcSuyePOCGzUelMk8OuN/gN1vEZ uO2/+sLPhCnLUMmGVEceBxOf5JH1afV9C9B+BXqXeIVAA9RStFE5dPHTwrADkynnVAC1 pT3Dl60pcgQ85kJjwGNVQrbwC1mxc5YgDqYvPmQm9Y5zWti3vMpWatuL8q0y8ZZ49+XM 3p8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1QwKWgUkLgAFytu4LAQ2nvDlh5RjhG2LXZTzkFdXt+c=; fh=k7ETyw+aHRchnd6dKPcwVvq7qVrh82q5IThQAOs5BF8=; b=QkuFWeLCI7eYARIdSOAj2IelkqBbCEdgXWNyfmF9dZYPKMBfVzxE3Y7FQc67y6B2kc Y4VPuP59onRHJvvbEMZe1IteZB2R1bwDE8fBugSHP9H8u2QgSA4eQElrHQdZXMpWrCyL hreudbeYYSorjt4YPNEOANzh7aiRwq0S3inHjaNT4oHs6rW9nYvugS6tFD95QOZ/cRbB iGdua09rb4nEv8utyGoqW+KqmjMZpTWcehltHELOVmMxXOCssrnDaFJbGC/8n44fS+p6 XsHzoI6WFkWpQuSQQfO+mr04oJgBK5riLu9sFzS1Fl8P1yjSfim+kpwaVOd8S/2gwAwn Kn5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id ls12-20020a17090b350c00b00271bea73dcesi1143572pjb.96.2023.09.13.01.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4022C80DB4D7; Wed, 13 Sep 2023 01:11:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238826AbjIMILI (ORCPT <rfc822;pwkd43@gmail.com> + 35 others); Wed, 13 Sep 2023 04:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235651AbjIMIK6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Sep 2023 04:10:58 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87BB31BDC; Wed, 13 Sep 2023 01:09:57 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Wed, 13 Sep 2023 16:09:47 +0800 From: Huqiang Qin <huqiang.qin@amlogic.com> To: <tglx@linutronix.de>, <maz@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <neil.armstrong@linaro.org>, <khilman@baylibre.com>, <jbrunet@baylibre.com>, <martin.blumenstingl@googlemail.com>, <hkallweit1@gmail.com> CC: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, Huqiang Qin <huqiang.qin@amlogic.com> Subject: [PATCH 2/3] irqchip: Add support for Amlogic-T7 SoCs Date: Wed, 13 Sep 2023 16:09:23 +0800 Message-ID: <20230913080924.3336391-3-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230913080924.3336391-1-huqiang.qin@amlogic.com> References: <20230913080924.3336391-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.11.83] Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:11:15 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776909389968081397 X-GMAIL-MSGID: 1776909389968081397 |
Series |
Add GPIO interrupt support for Amlogic-T7 SoCs
|
|
Commit Message
Huqiang Qin
Sept. 13, 2023, 8:09 a.m. UTC
The Amlogic-T7 SoCs support 12 GPIO IRQ lines compared with previous
serial chips and have something different, details are as below.
IRQ Number:
- 156 1 pin on bank TESTN
- 155:148 8 pins on bank H
- 147:129 19 pins on bank Y
- 128:115 14 pins on bank M
- 114:91 24 pins on bank T
- 90:77 14 pins on bank Z
- 76:70 7 pins on bank E
- 69:57 13 pins on bank D
- 56:40 17 pins on bank W
- 39:20 20 pins on bank X
- 19:13 7 pins on bank C
- 12:0 13 pins on bank B
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
---
drivers/irqchip/irq-meson-gpio.c | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 13/09/2023 10:09, Huqiang Qin wrote: > The Amlogic-T7 SoCs support 12 GPIO IRQ lines compared with previous > serial chips and have something different, details are as below. > > IRQ Number: > - 156 1 pin on bank TESTN > - 155:148 8 pins on bank H > - 147:129 19 pins on bank Y > - 128:115 14 pins on bank M > - 114:91 24 pins on bank T > - 90:77 14 pins on bank Z > - 76:70 7 pins on bank E > - 69:57 13 pins on bank D > - 56:40 17 pins on bank W > - 39:20 20 pins on bank X > - 19:13 7 pins on bank C > - 12:0 13 pins on bank B > > Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> > --- > 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 f88df39f4129..9a1791908598 100644 > --- a/drivers/irqchip/irq-meson-gpio.c > +++ b/drivers/irqchip/irq-meson-gpio.c > @@ -154,6 +154,10 @@ static const struct meson_gpio_irq_params c3_params = { > INIT_MESON_S4_COMMON_DATA(55) > }; > > +static const struct meson_gpio_irq_params t7_params = { > + INIT_MESON_S4_COMMON_DATA(157) > +}; > + > static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { > { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, > { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params }, > @@ -165,6 +169,7 @@ static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { > { .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params }, > { .compatible = "amlogic,meson-s4-gpio-intc", .data = &s4_params }, > { .compatible = "amlogic,c3-gpio-intc", .data = &c3_params }, > + { .compatible = "amlogic,t7-gpio-intc", .data = &t7_params }, > { } > }; > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
On 14-09-2023 09:26, neil.armstrong@linaro.org wrote: > On 13/09/2023 10:09, Huqiang Qin wrote: >> The Amlogic-T7 SoCs support 12 GPIO IRQ lines compared with previous >> serial chips and have something different, details are as below. >> >> IRQ Number: >> - 156 1 pin on bank TESTN >> - 155:148 8 pins on bank H >> - 147:129 19 pins on bank Y >> - 128:115 14 pins on bank M >> - 114:91 24 pins on bank T >> - 90:77 14 pins on bank Z >> - 76:70 7 pins on bank E >> - 69:57 13 pins on bank D >> - 56:40 17 pins on bank W >> - 39:20 20 pins on bank X >> - 19:13 7 pins on bank C >> - 12:0 13 pins on bank B >> >> Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> >> --- >> 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 f88df39f4129..9a1791908598 100644 >> --- a/drivers/irqchip/irq-meson-gpio.c >> +++ b/drivers/irqchip/irq-meson-gpio.c >> @@ -154,6 +154,10 @@ static const struct meson_gpio_irq_params >> c3_params = { >> INIT_MESON_S4_COMMON_DATA(55) >> }; >> +static const struct meson_gpio_irq_params t7_params = { >> + INIT_MESON_S4_COMMON_DATA(157) >> +}; >> + >> static const struct of_device_id meson_irq_gpio_matches[] >> __maybe_unused = { >> { .compatible = "amlogic,meson8-gpio-intc", .data = >> &meson8_params }, >> { .compatible = "amlogic,meson8b-gpio-intc", .data = >> &meson8b_params }, >> @@ -165,6 +169,7 @@ static const struct of_device_id >> meson_irq_gpio_matches[] __maybe_unused = { >> { .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params }, >> { .compatible = "amlogic,meson-s4-gpio-intc", .data = &s4_params }, >> { .compatible = "amlogic,c3-gpio-intc", .data = &c3_params }, >> + { .compatible = "amlogic,t7-gpio-intc", .data = &t7_params }, >> { } >> }; > > Reviewed-by: Neil Armstrong <neil.armstrong@linaro.orgTested-by: Lucas Tanure <tanure@linux.com>
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c index f88df39f4129..9a1791908598 100644 --- a/drivers/irqchip/irq-meson-gpio.c +++ b/drivers/irqchip/irq-meson-gpio.c @@ -154,6 +154,10 @@ static const struct meson_gpio_irq_params c3_params = { INIT_MESON_S4_COMMON_DATA(55) }; +static const struct meson_gpio_irq_params t7_params = { + INIT_MESON_S4_COMMON_DATA(157) +}; + static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params }, @@ -165,6 +169,7 @@ static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { { .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params }, { .compatible = "amlogic,meson-s4-gpio-intc", .data = &s4_params }, { .compatible = "amlogic,c3-gpio-intc", .data = &c3_params }, + { .compatible = "amlogic,t7-gpio-intc", .data = &t7_params }, { } };