Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4833472yba; Tue, 30 Apr 2019 05:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlJJD2hRok4XaChXcnyDh91IsAB9WbAtOk0URPpcADXwQt94C5OgiGfAdz0qpiUgurJQkE X-Received: by 2002:a65:63c3:: with SMTP id n3mr51130266pgv.170.1556626465120; Tue, 30 Apr 2019 05:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556626465; cv=none; d=google.com; s=arc-20160816; b=vFUmCpTqkzCAHYzfbffnH3WSMxpk/c2FHn8Ysfia9zNOocFm0Uxpp5vNhgv8blazEm f0QbWb0XHbsft2M4qC7I6YBD1f1fxTxuqKvlOgqs4qwcFC2YDhev9qNKF5fROSIaJj5M km2YT/iLK6GLpg5QAQRqUSnoIPvqDPQyt70/3bN0BFd6yod4Iph//A37sUOjt9530Id+ txQHh/K3BrdR9AmZZnRSveZxlj65P3NfL8bJFz5ppv/dum5jCt2+/2mQvsI6pqS8YMNE Wef5IWxicanbJv8M53NkVPFgy6MozBME2Vw6HZ9GCoUDpYWWdP+2g1Bq3N11RE8tgqIo /tJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Xa3MhOLj1NDFg1JQBLDDgs0JBik4Ki3blmj1XLGmZd4=; b=Sb2GO4vPz9BmlyysAQtUdw52sWoHoPqUIWyg5lVq1xbROTCJiNJE8Z80w7cmnGyA7x mzNPJvMCq9MttQan3iHfp/kcUMLWYTJ5nAaCfUCBpfY/DFO5uiJWvpB0pZwWNy9n2s8f tNAZJ3Zo/lL4wWay3Sks0F2GWF408rpurNZinKevZcfAsKcgWg1gvJJXSqmVecwfO/td mKue5U9FPhzFkdgJjKd31cC1IelaGP/hcKdVtIwaaWx/x/kL1igsL0MG8KKRgrqXoyac V0NKVycOk5jkxSTr1gWzFDnNOSLKOyW12P60XpCti6hrSYcW4ulx6hKy97jMmP92Iace /5qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l69si2586002plb.378.2019.04.30.05.14.08; Tue, 30 Apr 2019 05:14:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbfD3MNH (ORCPT + 99 others); Tue, 30 Apr 2019 08:13:07 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:59304 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbfD3MNF (ORCPT ); Tue, 30 Apr 2019 08:13:05 -0400 Received: from ramsan ([84.194.111.163]) by michel.telenet-ops.be with bizsmtp id 6cCz2000f3XaVaC06cCzUi; Tue, 30 Apr 2019 14:13:04 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1hLRd5-00086U-N3; Tue, 30 Apr 2019 14:12:59 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1hLRd5-0000z9-JX; Tue, 30 Apr 2019 14:12:59 +0200 From: Geert Uytterhoeven To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Simon Horman , Magnus Damm , Chris Brandt Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 0/5] ARM: rskrza1: Add RZ/A1 IRQC and input switches Date: Tue, 30 Apr 2019 14:12:49 +0200 Message-Id: <20190430121254.3737-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Unlike on most other Renesas SoCs, the GPIO controller block on RZ/A1 and RZ/A2 SoCs lack interrupt functionality. While the GPIOs can be routed to the GIC as pin interrupts, this is of limited use, as the PL390 or GIC-400 supports rising edge and high-level interrupts only. Fortunately RZ/A1 and RZ/A2 SoCs contain a small front-end for the GIC, allowing to use up to 8 external interrupts, with configurable sense select. Hence this patch series adds DT bindings and a driver for this front-end, adds a device node for it in the RZ/A1H DTS, and uses it to enable support for the 3 input switches on the Renesas RSK+RZA1 development board. Changes compared to v1: - Add Reviewed-by, - Replace gic_spi_base in OF match data by renesas,gic-spi-base in DT, - Document RZ/A2M, - Use u16 for register values, - Use relaxed I/O accessors, - Use "rza1-irqc" as irq_chip class name, - Enable driver on RZ/A2M. Dependencies: - Patch 3 depends on patch 2, - Patch 4 can be applied as soon as the DT bindings in patch 1 have been accepted, - Patch 5 depends on patch 4. Upstream strategy: - Patches 1-2 are intended to be applied to the irqchip tree, - Patches 3-5 are meant for the Renesas tree. This has been tested on RSK+RZA1 with evtest and s2ram wake-up. I have verified proper operation of low-level and rising/falling sense select, too. Thanks! Geert Uytterhoeven (5): dt-bindings: interrupt-controller: Add Renesas RZ/A1 Interrupt Controller irqchip: Add Renesas RZ/A1 Interrupt Controller driver soc: renesas: Enable RZ/A1 IRQC on RZ/A1H and RZ/A2M ARM: dts: r7s72100: Add IRQC device node ARM: dts: rskrza1: Add input switches .../renesas,rza1-irqc.txt | 30 +++ arch/arm/boot/dts/r7s72100-rskrza1.dts | 38 +++ arch/arm/boot/dts/r7s72100.dtsi | 9 + drivers/irqchip/Kconfig | 4 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-renesas-rza1.c | 235 ++++++++++++++++++ drivers/soc/renesas/Kconfig | 4 +- 7 files changed, 320 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,rza1-irqc.txt create mode 100644 drivers/irqchip/irq-renesas-rza1.c -- 2.17.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds