Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18937335rwd; Wed, 28 Jun 2023 02:48:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZZQ9n/pf72jV/vvpACTyhelSEGGuHiKWoE1rpY1+w3upcbYCrM5Jz3qpA3GF6mmTgK2ZO X-Received: by 2002:a05:6a20:3956:b0:110:f66c:a0e1 with SMTP id r22-20020a056a20395600b00110f66ca0e1mr1020913pzg.14.1687945728310; Wed, 28 Jun 2023 02:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687945728; cv=none; d=google.com; s=arc-20160816; b=gnXt3bj3oqwevAHpQVr4sl7EYHEZqMUsw003VRLdReNt7OGjt7cUCMqQIU9jlArrP8 NROC5he1N00db8J6pWU7t2fIkw9uVciWQNs/52XUpvHnt1xczIn4/ZM5bSuhc3YdYQYX ba+kvTc+9PfVXyA6fJZ/a76rxjECrtsPBi5Nmu/Ck17nFUuawL2gbGuhck6iGj9Tv8Uf j3WELLR4d8dp7zPVnrtFSUDPQZJ5GfgzrqV9ckD0QzlZKl1bDsZAC6Ukr6+VIBowWHxp bivxcxM8R1NltNy0tirSfYCUIncJXY6jSHuVoWsIAjr3q15Ch0bpn5uREJnyLB8ASSIe Blbg== 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=vGCVllH+y5ytBS5C200cIgse7YjarqOwjLXMb1F5F8c=; fh=k7ETyw+aHRchnd6dKPcwVvq7qVrh82q5IThQAOs5BF8=; b=S79UdcS8IPivOpTib+CLKj+TqZ3qU0XlnVVlk3K2fy6PcI8IFRwCznrsfKrtq/FCSp Wby3qGyJKAzeB4UlY84pspRDLCS2TYpuyBxj+4lI4qfTrS9E4/bXOc1mSyb8ZMygUS/V WKUVN6vutu+aV0wIDDJb78mIC4ymCR/N8ujoCd6rdRG9FQfV0RlL0ItYs3Sn5MD+SsMF nDYj1rVglJSiecjfDttyS1yHGlV6DghRZX25TBZjoXBW9RuC0DjzAFrJEM77BcR57V+1 2j4v08T8fbkpcLIQynZn1/fCdIxwh2BOKkDzRTRpdBIICxaTZ0xI4bAxrtbVwpsWHVU3 WpOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j190-20020a6380c7000000b00524cf947601si8623161pgd.23.2023.06.28.02.48.36; Wed, 28 Jun 2023 02:48:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232070AbjF1J0r (ORCPT + 99 others); Wed, 28 Jun 2023 05:26:47 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:22191 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235315AbjF1JSB (ORCPT ); Wed, 28 Jun 2023 05:18:01 -0400 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, 28 Jun 2023 17:16:11 +0800 From: Huqiang Qin To: , , , , , , , , , CC: , , , , Huqiang Qin Subject: [PATCH V2 2/2] irqchip: Add support for Amlogic-C3 SoCs Date: Wed, 28 Jun 2023 17:15:33 +0800 Message-ID: <20230628091533.3884385-3-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230628091533.3884385-1-huqiang.qin@amlogic.com> References: <20230628091533.3884385-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: X-Mailing-List: linux-kernel@vger.kernel.org The Amlogic-C3 SoCs support 12 GPIO IRQ lines compared with previous serial chips and have something different, details are as below. IRQ Number: - 54 1 pins on bank TESTN - 53:40 14 pins on bank X - 39:33 7 pins on bank D - 32:27 6 pins on bank A - 26:22 5 pins on bank E - 21:15 7 pins on bank C - 14:0 15 pins on bank B Signed-off-by: Huqiang Qin --- 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 7da18ef95211..f88df39f4129 100644 --- a/drivers/irqchip/irq-meson-gpio.c +++ b/drivers/irqchip/irq-meson-gpio.c @@ -150,6 +150,10 @@ static const struct meson_gpio_irq_params s4_params = { INIT_MESON_S4_COMMON_DATA(82) }; +static const struct meson_gpio_irq_params c3_params = { + INIT_MESON_S4_COMMON_DATA(55) +}; + 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 }, @@ -160,6 +164,7 @@ static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { { .compatible = "amlogic,meson-sm1-gpio-intc", .data = &sm1_params }, { .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 }, { } }; -- 2.37.1