Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10568168rwp; Fri, 21 Jul 2023 01:00:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlHKXw5IGkMQ2JLmQGrXsp7heEjezPkEqAOHHJ3UujB/HaxtgRYzmCOm0sPQonjwHpms6oWO X-Received: by 2002:a05:6512:3b84:b0:4f9:586b:dba6 with SMTP id g4-20020a0565123b8400b004f9586bdba6mr880477lfv.10.1689926457288; Fri, 21 Jul 2023 01:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689926457; cv=none; d=google.com; s=arc-20160816; b=RT/CyHVhKl0PYO9GVwgldWYPJAsKCgF4TxRrvjW05D6lQ0nTyM2wQYWUGGdJpX1POv XkAbYVygoW0Pcc5EDW/L9lW2XLaEpIeFVgfWaGG0pXVL5eJpn+KxYB5sQLUgJs7qZ5CK 0cGetKQlrt2bDGy8BMjduexXxajMXLblQa6K3ZDbfNHESseM78+y+ayjg6hzONmYIO71 SgTeZG7V1P1f00t3tmWILPBl2Xp5SjFvqJmm3XtiHlVxTema6v2j5U0JZYqMaaeGDwMH 34j5uQQHJn8d1PanJyVNSIwI4qJ35sM3rxA5YJkWPl3qTmjkUxqQGHysD5jgszUgCeRS THzA== 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=+NBJp/cia1q/mnFxgrtRgSZdf/zgUchUujHMgyOGXcg=; fh=kvSoLBUJ9nCIAgiItg0rwlS6tGETktlfPJWv6NBz0tI=; b=I/psV9agkRs1dTjOxxQ0PokJn6Ciu2+57xwQHFNE8lEjWz/xRtNo20VJcWZoH0E/Qr R0wf7IQb+7M2qDWkw7x5l3XU61QoZlOe2PBTDJ1BoizN4FK2cei71cmC/G38FUNPIYqn CnUauoYjbpVMxHwqDj4eG2ipr3vyYV9FiFYaliq44qA62hbx0aWkFXwPIoC/sQ3miKCd FwLd+A4cVgGMv8quBycBXjYAYrWtey2tCgd1ryQqH+5mr5VKAwsMmtZaksSZD4mXaSKR owId2KCEltKE2VGWNHVc2RaUTf6S01IBh0++l9/OLherPskuTfEbLeDO7PZJb40wwKdB U5pw== 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 h20-20020aa7de14000000b0051ff124da4dsi2073165edv.513.2023.07.21.01.00.27; Fri, 21 Jul 2023 01:00:57 -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 S230319AbjGUHfn (ORCPT + 99 others); Fri, 21 Jul 2023 03:35:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjGUHfe (ORCPT ); Fri, 21 Jul 2023 03:35:34 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5C7519A1; Fri, 21 Jul 2023 00:34:46 -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; Fri, 21 Jul 2023 15:34:31 +0800 From: Huqiang Qin To: , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 0/3] Add binding header file for GPIO interrupt of Amlogic Meson-G12A Date: Fri, 21 Jul 2023 15:32:11 +0800 Message-ID: <20230721073214.1876417-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, RCVD_IN_DNSWL_BLOCKED,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 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 ++--- .../irq-meson-g12a-gpio.h | 126 ++++++++++++++++++ 15 files changed, 164 insertions(+), 36 deletions(-) create mode 100644 include/dt-bindings/interrupt-controller/irq-meson-g12a-gpio.h base-commit: c58c49dd89324b18a812762a2bfa5a0458e4f252 -- 2.37.1