Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2710758rwo; Sun, 23 Jul 2023 23:10:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlECUvgAVIyoy+u8bUGRyB+I0nRmaCcK+ueiwrDXPt2I/J+d+qEezSvRy9RU8CXgni6EJk9G X-Received: by 2002:a05:6830:3296:b0:6b9:a3fd:e345 with SMTP id m22-20020a056830329600b006b9a3fde345mr4714282ott.26.1690179008837; Sun, 23 Jul 2023 23:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690179008; cv=none; d=google.com; s=arc-20160816; b=b33BgxgdZ/7AjFFzzfG5zzDJXTFpr6pax24Go0LX+skoERUJ7wGh4GbznWueHP12vH kwqVi52hniK2AUwMrNvIjVhwQiikA+9H1VOQGeT+2Rzk8cdJ6ndSyQOvETcxyvVPZygU 0ds8ZgZxRADwyh39ClYy5Ev8LE/La9JHfSum5wU2TlEk8/1Ft2mVLXHFWkSoAtmvKc2y TAYfB+Jbx47EyYIoa7m5UvvG/mFyNSj9m1/F9SvF/T6mK92zQcffemVDbJ/8JcY3Iio0 IMMgmzLx0P1VGyUPaenh8R9vzz8ayzqZ4HA0LWaU6aIEED+TMitkk9hsagtTtBRpwO9X QMAg== 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 :message-id:date:subject:cc:to:from; bh=sh5AxWp0K2hhyMfoSnNPOqVhIFEvEweMnlJUDirsSQs=; fh=kvSoLBUJ9nCIAgiItg0rwlS6tGETktlfPJWv6NBz0tI=; b=CyLnKb555VOc5DBrLaa/g/5CmzsCQTx0dkcLB4FHwGi0uUEU4on/bdI5qwxCV3ebPQ dNEl9n8EoyJexnbk3ObWJSoEbFzeALa4iXK5X6ZO5z9wkL5r0FBHpi+eK16ELqS5QCcV /GR+Mtpwzf280kuXGq2dH1HwTld2yinR6I5fH9RJVzcSLG3HU7qWsQkx7sP7bWDvLRs/ mLf67D2XFCpOfWFayL978dKHFNjvCQBO1nsk8QN7gRbnGSjmNNHk0OPEfRRd27Ho6Pqj kyCfealetDiHWlJ/2ObS+K3oH3yR7iCgRXWMt7zC/INDG1uXg3oHDlYvLhdt5rurygHS iPrA== 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 a62-20020a639041000000b0055fdc5875e8si8905138pge.381.2023.07.23.23.09.56; Sun, 23 Jul 2023 23:10:08 -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 S229634AbjGXGC6 (ORCPT + 99 others); Mon, 24 Jul 2023 02:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjGXGC5 (ORCPT ); Mon, 24 Jul 2023 02:02:57 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B5CDDE; Sun, 23 Jul 2023 23:02:10 -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; Mon, 24 Jul 2023 14:01:53 +0800 From: Huqiang Qin To: , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V2 0/3] Add binding header file for GPIO interrupt of Amlogic Meson-G12A Date: Mon, 24 Jul 2023 14:01:05 +0800 Message-ID: <20230724060108.1403662-1-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After adding this binding header file, you can intuitively find the interrupt number corresponding to each GPIO, and apply it in the format of IRQID_XXX where it needs to be used. Associated platforms: - Amlogic Meson-G12A - Amlogic Meson-G12B - Amlogic Meson-SM1 [PATCH 1/3]: V1 -> V2: Rename irq-meson-g12a-gpio.h to amlogic,meson-g12a-gpio-intc.h [PATCH 2/3]: V1 -> V2: Include header file changed to amlogic,meson-g12a-gpio-intc.h [PATCH 3/3]: V1 -> V2: Include header file changed to amlogic,meson-g12a-gpio-intc.h Huqiang Qin (3): dt-bindings: interrupt-controller: Add header file for Amlogic Meson-G12A SoCs pinctrl: Replace the IRQ number in the driver with the IRQID macro definition arm64: dts: Replace the IRQ number with the IRQID macro definition .../boot/dts/amlogic/meson-g12-common.dtsi | 1 + .../boot/dts/amlogic/meson-g12a-x96-max.dts | 2 +- .../dts/amlogic/meson-g12b-bananapi-cm4.dtsi | 2 +- .../boot/dts/amlogic/meson-g12b-bananapi.dtsi | 2 +- .../amlogic/meson-g12b-odroid-go-ultra.dts | 4 +- .../dts/amlogic/meson-g12b-odroid-n2.dtsi | 2 +- .../boot/dts/amlogic/meson-g12b-w400.dtsi | 2 +- .../dts/amlogic/meson-sm1-a95xf3-air-gbit.dts | 2 +- .../boot/dts/amlogic/meson-sm1-bananapi.dtsi | 4 +- .../boot/dts/amlogic/meson-sm1-h96-max.dts | 2 +- .../boot/dts/amlogic/meson-sm1-odroid.dtsi | 2 +- .../boot/dts/amlogic/meson-sm1-sei610.dts | 12 +- .../dts/amlogic/meson-sm1-x96-air-gbit.dts | 2 +- drivers/pinctrl/meson/pinctrl-meson-g12a.c | 35 ++--- .../amlogic,meson-g12a-gpio-intc.h | 126 ++++++++++++++++++ 15 files changed, 164 insertions(+), 36 deletions(-) create mode 100644 include/dt-bindings/interrupt-controller/amlogic,meson-g12a-gpio-intc.h base-commit: c58c49dd89324b18a812762a2bfa5a0458e4f252 -- 2.37.1