From patchwork Thu Feb 22 07:46:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 204598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp101282dyb; Thu, 22 Feb 2024 00:10:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmdafnE2TxQxUe+4nIcqptdz/FtAijtShTeZTuIsvtznN7Cfl/f65QLOhSXgjpxKN10v9OBaeJ4oEZmmfCL1GB+dMLag== X-Google-Smtp-Source: AGHT+IG8Jc4CNJLiFmy+QVqvcJCVcwhttqPa4qi9hGlCikY3WGnjdG/Xd0GBCoT0sGHQdVGjSeoM X-Received: by 2002:a05:6a20:6f8e:b0:19e:4a68:46d0 with SMTP id gv14-20020a056a206f8e00b0019e4a6846d0mr25154948pzb.60.1708589427673; Thu, 22 Feb 2024 00:10:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708589427; cv=pass; d=google.com; s=arc-20160816; b=nLL/R6n9nQcpvrEsLYn1ly2s+xTj+s48rqqf9uaIB97eGRM9JvkJPv8cFKfgX5DwCr 4tNSKcDkNxZymD8rN9N/WFwInov24biRc0undG4ydTGjipB4NoWM73NvCpsV0EzZgtEO s/VPqUgrhhBHe3n0L9fXPPBw18mwLpCLgvBzWyowVyswR9tAP26bVpi6xmGm9KE1xRzU rTEpR/W5l2lSlUL9cMm50GZiB3T/ABlZYtkeYHGL0SweULhHzL0W+e8Hp/kHK/rRMyD8 DWnd930G3mayifpcVRHpMgLeBTC9bHGW4yNlOVW2vY3Q+06y8IflK47KDeDAvKUxn2xB 80BA== 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76044-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y6-20020a170902ed4600b001dc4b6c7432si813429plb.556.2024.02.22.00.10.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:10:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76044-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76044-ouuuleilei=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 BC2B42858E1 for ; Thu, 22 Feb 2024 08:03:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB90C19478; Thu, 22 Feb 2024 08:02:33 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791585867352950960 X-GMAIL-MSGID: 1791585867352950960 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 }, { } };