From patchwork Fri Jul 21 07:32:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 12382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp37060vqg; Fri, 21 Jul 2023 00:49:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIkm7QHdu9DaYsCHQD1ZhYgoJufIu80GLUrEkkx+rikLkVWUdvme9dgxG11BG5SiX7jhlI X-Received: by 2002:a1f:c142:0:b0:471:875d:5a34 with SMTP id r63-20020a1fc142000000b00471875d5a34mr672824vkf.16.1689925792697; Fri, 21 Jul 2023 00:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689925792; cv=none; d=google.com; s=arc-20160816; b=bw9apPIz3JRne0RbFQKH5S6KCafyEGJqaluEh+UckoHHoe9U5eFRJF65txSCiwSFu9 4jl3wFRhbCmDPCQoUzha5EMg5qej6N8dtwrXr75CVhenfzdmgLsiclM+CTASx5VQCtA5 J1AQLXPGc94ZSSIKP5LTiaE8VeAWE6tsNvHsNia8atDXKP/bJn/0vDMdfV+gkrQq8mFw RRyGa5Fd4S+4IWdUOiYEgOqU/+FQT69GkfPzSEUyMTuaXjBMqE0ZB2GrRBBl5mwPgdrv qEtG8AZTbw6sZkKC69CME559gdEWCMuGhXtdm7OXy9efDSEZQKL4X5IKa0LrmcLmTUt8 q11g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a17090a55c800b00263a923c189si2709081pjm.100.2023.07.21.00.49.39; Fri, 21 Jul 2023 00:49:52 -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 S230322AbjGUHfn (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772015628033182345 X-GMAIL-MSGID: 1772015628033182345 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