From patchwork Sun Oct 29 23:05:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10031791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 379E46039A for ; Sun, 29 Oct 2017 23:06:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B0C0285E6 for ; Sun, 29 Oct 2017 23:06:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FF5728668; Sun, 29 Oct 2017 23:06:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DCBE52870C for ; Sun, 29 Oct 2017 23:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=o2edG4USidMhjcHpPM4fAOO6pzuFaC9LoCTcETkH+hQ=; b=rMdS0NFp5wbHCJ OCwmPEf/C8MmfoY4G6qRLh7eGjatwVFr0aV7X9mGsftnw7jagcbBTtRgCJrbSdksbpP01DGseTG8C C+Nnsvr2N6mrjgHqcBNxdY9EGwMjbB0hmnz58Djte4CQ3cZY+jm1Z9n8xNv0h20IhppW38In7Oiik G4NKsF6Rf4XSmYkFRXe4F36wXpdqdbaEYsNtGkLnH56Xfh7PEKINkYD8Zoa4DSFS1vnCDNHLzomh6 i9mUoDwtaOCnifUdEq1/Balnrzc6SiPAhuWOIllvDDNEqMPAEfKTtaikprOgygqR0LlFM/Mt7JuRN 0/3DGhZCG5uwjOmrCsIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e8weY-0006Kx-3q; Sun, 29 Oct 2017 23:06:02 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e8weT-0005Nr-4c for linux-amlogic@lists.infradead.org; Sun, 29 Oct 2017 23:05:59 +0000 Received: by mail-wm0-x243.google.com with SMTP id r196so12945523wmf.2 for ; Sun, 29 Oct 2017 16:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7/YUK0QcHIOhnrX0hY5YDvYZZHCWo1EQTvHYsMiLQ6Y=; b=Ow2YDpc2VFE/Mn6HtgFK6630qb2IaGxzuG8O0LalYQgIkW6nCxDanMBh/DDOU6MIba ozlbahRAOc1vdM9IICKmvtnT23PZAjTCJviebVci6MaI58JOF56UdhYelSRX3sIXavLx bgQxXffeRf/uCgrpe5WR6bj3SBsW4b5EtcrEIEQk0eIF6lwagRzf4exZLthkcotuiNdM UBH7ebzhHKkyZ/kLIL8fv9547PnvMjrpQocGtrvLipJfR/AjN1RLLcJ9CHbNmwro3NVt +nByxlTWzbHRFFVq1PeNXm1nRRNDDg4AmvKpVJq7PXa1PNJRRPcierbTjSxLC9vXAcC5 Il5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7/YUK0QcHIOhnrX0hY5YDvYZZHCWo1EQTvHYsMiLQ6Y=; b=ojnp3uh3TftnwnWR+6qf70p8dw/8qksO/gD+vQjsnK3ZMU19hKxVN2ec7/rTa4Z7fB XcABOlWCwAXe2ljjVQRoBfvU0wnVocYSndHhGgdwz9j3jx1AY5yCHMsebWD2OBlZOhYk 05p1tpv4zPSyiK/mfhmXhmBhk7Qzz/DekIQ7cdB38p6ucNNeLGJ/MDiqIwZIM7o1yPA5 C8jazxNzFVpfw+5yBxAulUpe6wJe5Vql4XLEEnaPS8F0fb0tSZ4sMuMyZmNCcruPeuVo 1SHWmBmaKBkI0skS/NkssJWbEtzgEBK4FGv9uBcsy6Ad8Cz36VsvdPeBKfdk44G2WuBj 6gPA== X-Gm-Message-State: AMCzsaVw/bgczOhUgmxuWDza55V16M9y66tCaAObr8hTdeTYAjH6QYwM Sduj7iwOfEABFH1g2hn1CBs= X-Google-Smtp-Source: ABhQp+RA9UYfbPUW29exj0T/U5hiEm1wJ4DehK86sJEf4xcrnl/Q5vKo1JSKeiX3LX6aMTb2dkAhew== X-Received: by 10.28.141.211 with SMTP id p202mr1776102wmd.61.1509318333195; Sun, 29 Oct 2017 16:05:33 -0700 (PDT) Received: from blackbox.darklights.net (p5DE386B3.dip0.t-ipconnect.de. [93.227.134.179]) by smtp.googlemail.com with ESMTPSA id m8sm11382108wrg.55.2017.10.29.16.05.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Oct 2017 16:05:32 -0700 (PDT) From: Martin Blumenstingl To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 1/3] irqchip/meson-gpio: add support for Meson8 SoCs Date: Mon, 30 Oct 2017 00:05:21 +0100 Message-Id: <20171029230523.7355-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171029230523.7355-1-martin.blumenstingl@googlemail.com> References: <20171029230523.7355-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171029_160557_412204_A8FDED0E X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: carlo@caione.org, khilman@baylibre.com, linux-amlogic@lists.infradead.org, Martin Blumenstingl , devicetree@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Meson8 uses the same GPIO interrupt controller IP block as the other Meson SoCs. A total of 134 pins can be spied on, which is the sum of: - 22 pins on bank GPIOX - 17 pins on bank GPIOY - 30 pins on bank GPIODV - 10 pins on bank GPIOH - 15 pins on bank GPIOZ - 7 pins on bank CARD - 19 pins on bank BOOT - 14 pins in the AO domain Signed-off-by: Martin Blumenstingl Acked-by: Rob Herring --- .../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 1 + drivers/irqchip/irq-meson-gpio.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt index 633e21ce4b17..a83f9a5734ca 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt @@ -10,6 +10,7 @@ number of interrupt exposed depends on the SoC. Required properties: - compatible : must have "amlogic,meson8-gpio-intc” and either + “amlogic,meson8-gpio-intc” for meson8 SoCs (S802) or “amlogic,meson8b-gpio-intc” for meson8b SoCs (S805) or “amlogic,meson-gxbb-gpio-intc” for GXBB SoCs (S905) or “amlogic,meson-gxl-gpio-intc” for GXL SoCs (S905X, S912) diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c index c7cc7e37a23c..a59bdbc0b9bb 100644 --- a/drivers/irqchip/irq-meson-gpio.c +++ b/drivers/irqchip/irq-meson-gpio.c @@ -47,6 +47,10 @@ struct meson_gpio_irq_params { unsigned int nr_hwirq; }; +static const struct meson_gpio_irq_params meson8_params = { + .nr_hwirq = 134, +}; + static const struct meson_gpio_irq_params meson8b_params = { .nr_hwirq = 119, }; @@ -60,6 +64,7 @@ static const struct meson_gpio_irq_params gxl_params = { }; static const struct of_device_id meson_irq_gpio_matches[] = { + { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params }, { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params }, { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },