From patchwork Fri Nov 17 16:27:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Tai X-Patchwork-Id: 744985 Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9BC7A4; Fri, 17 Nov 2023 08:28:15 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AHGRf5tA3225374, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AHGRf5tA3225374 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Nov 2023 00:27:41 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Sat, 18 Nov 2023 00:27:41 +0800 Received: from james-bs01.realtek.com.tw (172.21.190.247) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Sat, 18 Nov 2023 00:27:41 +0800 From: James Tai To: Thomas Gleixner , Marc Zyngier , "Rob Herring" , Krzysztof Kozlowski , Conor Dooley , James Tai CC: , Subject: [PATCH v2 0/6] Initial support for the Realtek interrupt controller Date: Sat, 18 Nov 2023 00:27:03 +0800 Message-ID: <20231117162709.1096585-1-james.tai@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Originating-IP: [172.21.190.247] X-ClientProxiedBy: RTEXH36505.realtek.com.tw (172.21.6.25) To RTEXMBS03.realtek.com.tw (172.21.6.96) X-KSE-ServerInfo: RTEXMBS03.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Introduce an interrupt controller driver for Realtek DHC (Digital Home Center) SoCs. Change log: v1 -> v2: - Tested the bindings using 'make dt_binding_check' - Fixed code style issues - Resolved kernel test robot build warnings - Replaced spin_lock_irqsave with raw_spin_lock - Replaced magic number with macro - Removed the realtek_intc_set_affinity function James Tai (6): dt-bindings: interrupt-controller: Add support for Realtek DHC SoCs irqchip: Add interrupt controller support for Realtek DHC SoCs irqchip: Introduce RTD1319 support using the Realtek common interrupt controller driver irqchip: Introduce RTD1319D support using the Realtek common interrupt controller driver irqchip: Introduce RTD1325 support using the Realtek common interrupt controller driver irqchip: Introduce RTD1619B support using the Realtek common interrupt controller driver .../realtek,rtd1319-intc.yaml | 79 ++++++ .../realtek,rtd1319d-intc.yaml | 79 ++++++ .../realtek,rtd1325-intc.yaml | 79 ++++++ .../realtek,rtd1619b-intc.yaml | 78 ++++++ drivers/irqchip/Kconfig | 28 +++ drivers/irqchip/Makefile | 5 + drivers/irqchip/irq-realtek-intc-common.c | 192 +++++++++++++++ drivers/irqchip/irq-realtek-intc-common.h | 77 ++++++ drivers/irqchip/irq-realtek-rtd1319.c | 218 +++++++++++++++++ drivers/irqchip/irq-realtek-rtd1319d.c | 227 ++++++++++++++++++ drivers/irqchip/irq-realtek-rtd1325.c | 227 ++++++++++++++++++ drivers/irqchip/irq-realtek-rtd1619b.c | 217 +++++++++++++++++ 12 files changed, 1506 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd1319-intc.yaml create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd1319d-intc.yaml create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd1325-intc.yaml create mode 100644 Documentation/devicetree/bindings/interrupt-controller/realtek,rtd1619b-intc.yaml create mode 100644 drivers/irqchip/irq-realtek-intc-common.c create mode 100644 drivers/irqchip/irq-realtek-intc-common.h create mode 100644 drivers/irqchip/irq-realtek-rtd1319.c create mode 100644 drivers/irqchip/irq-realtek-rtd1319d.c create mode 100644 drivers/irqchip/irq-realtek-rtd1325.c create mode 100644 drivers/irqchip/irq-realtek-rtd1619b.c