Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp194608rdb; Thu, 22 Feb 2024 00:10:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUiQHIffDDbSuSVSDOWTiDwzEFLPbC3ppyyXAS/kIOlNaeYcUkm4fxp8sJrUoN0cC+kG0GzUYRs7s3VLF7p0sLXdSnNFytR7V83c6mGyg== X-Google-Smtp-Source: AGHT+IFl5tWgfLW4u2qTvXeNC15zV6kYVXMurW7yMG0ubCXswBbD4Ba8qkxMx5YxGFcOUGPiHQHf X-Received: by 2002:a05:6870:d150:b0:21e:88ee:8680 with SMTP id f16-20020a056870d15000b0021e88ee8680mr14095766oac.36.1708589431694; Thu, 22 Feb 2024 00:10:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708589431; cv=pass; d=google.com; s=arc-20160816; b=W2TMe2ZMv5InHqMecC8vOgTw8eJjfFcPs6gkwXwB2lq8xGx9OFWkByVjt0HQ02f9Yv p9spqMkXsoJBAjusNUQLotC06t2UuofnqAvkHETV/ROhpwnNkNcgBfzgExrtFR7zEJFx oqztFHbIvdyHH4pdyMeVqTrlkUNMZMjNcmq32pVLiv9DTuoiMgRefWJXVCgmliCnGQwK sgLOuSOdW63PK4RjHbRO40XM/gCcWrQBg71VbHbioqFdn7PYynUUzbbXtxjYithabyJg lJ7P6TwnltkYnWQP1PKYvzrtyqhEntezZh5UXMvsHezq/XI7F4rSaybSJhZC+Lx4Unm/ /Jlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=yqsOpiWB38A6cKLGPtiNWwWMoswrk8pFVx3F5QJIFAo=; fh=x2k4fEaFoFpvkd02MojHAkBfbEU6ueG7eVHGWcATlwI=; b=C18KwdJWlUTDwMvzqQ2B8B/ZcD5uXii4zbOdb5kTrOg/8f8/x8tTYb8/uPfw8BiVTk i1SjLZDPvb0OxMU5TrPSvRT3dgU2r0YheIldEHjf+fAVhv0Jknb0oT8Z84TDy6rh5201 Os1wdrlEibBZJmA2noD8ReyvAQjHQgtdbkVJMSTddehlJtE7fpXPm6UXRrKb07K0NiT1 252y7ZzjwRpUfSq56be1cuiBo7enqfqdcb1tH72qoEoKNciru97AF2jq21Rln7I/igbO vbbpgItIbg0vCgND//ML8paj4FdtD3QsWkCBWMyDwe4uF6CNz/4B7InOhxVTN1jUCP+R 5rlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=amlogic.com dmarc=pass fromdomain=amlogic.com); spf=pass (google.com: domain of linux-kernel+bounces-76044-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x187-20020a6363c4000000b005d8badaa0c8si9816159pgb.621.2024.02.22.00.10.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:10:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76044-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=amlogic.com dmarc=pass fromdomain=amlogic.com); spf=pass (google.com: domain of linux-kernel+bounces-76044-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EE59B285591 for ; Thu, 22 Feb 2024 08:03:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0E9D18657; Thu, 22 Feb 2024 08:02:32 +0000 (UTC) Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE2AB17C7C; Thu, 22 Feb 2024 08:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=58.32.228.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708588952; cv=none; b=MdtXaVli1spfAnwGhwd1iXrSPjwt3fBMq0k5Qn8nCZu6rlysyFOvfzKU+jw7pEfvxiEbaFt4kDrDqpspamyGfhO3XhO1FUcTQBI4O6JHJ53AhwpoP8qBmQO/FkNfnF6MQuue5ksKlwfb1UxK6+gRGe2unpqnvgKizYZjub7CFkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708588952; c=relaxed/simple; bh=qIygGq4laBZ5hKLDwCrWRP0SAoByZ0qSN3CFLnDgXWQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gYm8xZP3nW+i1yVrH/sKWhPlXlH1c1DEEe39kxewaRBn62fiM1z3RpLfT3Wwl763wB1rhg+Qar9KB8FUxx82mBapCfDQ0iQEzyR1ezCad/tmpHu2FrD1Pt/lHMhCKvUd4SWuStZDzJ8ReV9tFO7dCc7KoFXP/2dA6yNFs+q6lMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amlogic.com; spf=pass smtp.mailfrom=amlogic.com; arc=none smtp.client-ip=58.32.228.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amlogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amlogic.com 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.6; Thu, 22 Feb 2024 15:47:18 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , Huqiang Qin Subject: [RESEND PATCH 2/3] irqchip: Add support for Amlogic-T7 SoCs Date: Thu, 22 Feb 2024 15:46:38 +0800 Message-ID: <20240222074640.1866284-3-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240222074640.1866284-1-huqiang.qin@amlogic.com> References: <20240222074640.1866284-1-huqiang.qin@amlogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 Reviewed-by: Neil Armstrong --- 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 }, { } }; -- 2.42.0