From patchwork Thu Jun 15 16:18:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9789107 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 476F460348 for ; Thu, 15 Jun 2017 16:19:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38E422866A for ; Thu, 15 Jun 2017 16:19:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D89C286B2; Thu, 15 Jun 2017 16:19:49 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable 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 E323D2866A for ; Thu, 15 Jun 2017 16:19:48 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=t7o6auA/S+xA/QVtB6t9tXwFYgqI2LOKoYPA6YGw8Yc=; b=hxmdzfNL+q/Fel0lF6jauPVmZ/ em+RCDy9RvZYQ9QyE7mn3pNsXxpvyrM/p8gUE3iDiYKJsvRsY0TD+Fxm3ICTS0dY26RSXWoDwyA7B HyAghsZ+w4VUy22Zd6jqYvYrTOA3s/gjOKpB7UB9OEIfrPf8zNSNBG1S7bUkv5uFXnGSo6urINtqi DL515wvHhVnX1fF158mZpq1RjRSM/hMSDTU0UomlWZrOkt9PW7Uc4ul8q1ygidjNGkjKvSmA3zuvt HCDtFuw8HeAaNMBq2lfhKQ8sv6vHB6C7dVtH/22HjLRPsqroXvLoByDX4G/btRp+IZTz9j74OyOkb kzdFkMUw==; 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 1dLXUl-0007pP-53; Thu, 15 Jun 2017 16:19:43 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLXTe-0006OJ-If for linux-amlogic@lists.infradead.org; Thu, 15 Jun 2017 16:18:43 +0000 Received: by mail-wm0-x22c.google.com with SMTP id x70so4099183wme.0 for ; Thu, 15 Jun 2017 09:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ICZGvXSlZQLl7ho/AGbN+3CK2NfcDzrMUUa08EaZSi8=; b=dV8VsWGESA5Wzp3VodWUsZC7GqfUZdUeCCd0OztdcKjUQEDwqj+yrnKHolEYBWvgSL EdV33NB1O6fgI1W+aE+jKnqn+RmfilxRy7Usc5xpNMPn62v0jBDSjmdIhdhjp96z4Q+7 3dWjmnbZYFA2CpUp/46dJimCv1U7EAHEGI8wMdB46EQ4rhuZYqLa7sTCF+fn7bYRvDPl 7BipXwZa1jrQxfkR9aRxRG3J49xJkW/cJK/Vbdg/Y9YdPkHA9KFx2cY12XS2smbyQ7gX q3ODAwOHeV/SUI/yXsDNeoXEQ33EmI0DrByGlUq1Lw00VrOBeFTYodEQ8vWEBJnCSZGs rnww== 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; bh=ICZGvXSlZQLl7ho/AGbN+3CK2NfcDzrMUUa08EaZSi8=; b=TF6mJt62cU/aHNpkygTAW70HUqp5FqMNkuuiCENBQN44OZdKo5wUFvgJKRqktP61Wb WUsGIMzd4/PsNf+oxDC/jefKP+sMdFrL11PVmj59bRKSccDB5V6xR+RnHu2zEO9kqkQH 6zT7obQtycXg5/1StRDnkwLb18+GuuMEJUTmTTRZZ+sAq0NK+ADjEpeN9M/HLOTV3lwD kw9EdhzIrcXwYHqywXrx7HAvAdeB6KijqfTdEFHudBJBvcYu6hb28fA5weDHjZoog00U cCLj2NFZHWyP7uaNuLct8IhtpSnTKeL1ic+bZ5Zu6++FA1sUvkB5pvg/UvseD9zYIsCM 3l8Q== X-Gm-Message-State: AKS2vOwWOPadGTETEkqZGOEIGxtNbFng4k92mzNEP3Hh8l5BbjzstPCo /GhgvhL3+RjNJOMV X-Received: by 10.28.107.87 with SMTP id g84mr4226153wmc.63.1497543493796; Thu, 15 Jun 2017 09:18:13 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id z184sm673177wmz.0.2017.06.15.09.18.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 09:18:13 -0700 (PDT) From: Jerome Brunet To: Marc Zyngier , Jason Cooper , Thomas Gleixner , Kevin Hilman Subject: [PATCH v3 6/6] ARM64: dts: meson-gx: add gpio interrupt controller Date: Thu, 15 Jun 2017 18:18:04 +0200 Message-Id: <20170615161804.32658-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170615161804.32658-1-jbrunet@baylibre.com> References: <20170615161804.32658-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170615_091834_815454_F99D05F8 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add gpio interrupt controller to Amlogic GX family SoCs Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 9 +++++++++ arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 6 ++++++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 6 ++++++ 3 files changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 603491df9f0f..95d4f4c60b4f 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -218,6 +218,15 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>; + gpio_intc: interrupt-controller@9880 { + compatible = "amlogic,meson-gpio-intc"; + reg = <0x0 0x9880 0x0 0x10>; + interrupt-controller; + #interrupt-cells = <2>; + amlogic,upstream-interrupts = <64 65 66 67 68 69 70 71>; + status = "disabled"; + }; + reset: reset-controller@4404 { compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset"; reg = <0x0 0x04404 0x0 0x20>; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index dbd300fffa8a..b6f3561c803c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -314,6 +314,12 @@ clock-names = "stmmaceth", "clkin0", "clkin1"; }; +&gpio_intc { + compatible = "amlogic,meson-gpio-intc", + "amlogic,meson-gxbb-gpio-intc"; + status = "okay"; +}; + &hdmi_tx { compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; resets = <&reset RESET_HDMITX_CAPB3>, diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index 4dfc22b07bf0..08268cedd965 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -207,6 +207,12 @@ }; }; +&gpio_intc { + compatible = "amlogic,meson-gpio-intc", + "amlogic,meson-gxl-gpio-intc"; + status = "okay"; +}; + &hdmi_tx { compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; resets = <&reset RESET_HDMITX_CAPB3>,