From patchwork Tue Oct 4 15:08:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9362007 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 3FD03600C8 for ; Tue, 4 Oct 2016 15:13:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30E5328BFC for ; Tue, 4 Oct 2016 15:13:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2586D28C10; Tue, 4 Oct 2016 15:13:25 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2F09528C0F for ; Tue, 4 Oct 2016 15:13:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1brRPA-0007FE-Lm; Tue, 04 Oct 2016 15:13:16 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brRLQ-0002YE-Sw for linux-amlogic@bombadil.infradead.org; Tue, 04 Oct 2016 15:09:24 +0000 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brRLK-0004Hz-Kx for linux-amlogic@lists.infradead.org; Tue, 04 Oct 2016 15:09:24 +0000 Received: by mail-lf0-x229.google.com with SMTP id b75so54400850lfg.3 for ; Tue, 04 Oct 2016 08:08:58 -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=MCS8zIDpb5H5Ln6gIFfwJ6WyOZjUqngiPJ31LMcPc6w=; b=pTYdexPOWq4ZHy9NAbbKqPk1mIjDB4u7OZZyFib6Z4AjtcMiCLttszKnuY5SvB+Db9 F6OcLpbOEsdKDn4OlVmgFQSC8p9b/iN+AUuofvyS9YBLIas/Thgem1T8MDKIA44qRHNv 1hxG4JKE70GswQkqBCftSJ6IZ3QLCXgpy0fcsLBiLuNSSk9oYTckmq1N6kkD5AZJ9wrg Tc1dhHx2HwSwiqirh5M0yTARu6IG9ciQUA15hnYXmd4gvdlWjlMX1LXTiysWmhNFyiaj vgHSM+oEqr+gk490VyWPXVEGmUZzYc5+d1Tz7mSJ0Kgp9+z1Db4X/NEdwmMn2J7DkYqD Ed+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MCS8zIDpb5H5Ln6gIFfwJ6WyOZjUqngiPJ31LMcPc6w=; b=JvvKguzf3DNcJxltJ3LNoJLWl3NlVu2jcNhY5TDwC4YafDiiVyi3+lh/w2fa1d+xdY kyh/N6UKOxYbeDq4HNVpnHJhWF30rq1HmQgwIliqvNCrjLGbLFrJj2WnX5pz3cnQj60i RO7/nmdTZ6aKtkDiV0SwUjhP8nqlKnTK+otFpTlj4PZevKbxlskGfp5kYaWdMoai0gX4 5wNoZZXrSLS/P0BGyytsVhiNQc4nrP9zYh8ROm9Qz/IXs0fsK7byT/Tbfcvv2pu9lggS ixDpk2GtCpG7ss75QbzsNMaH9EvH5EMLbMU9VVcbD7oShGIgMZgRhFK3GlrkmQ2ApXRZ GzTg== X-Gm-Message-State: AA6/9RmAnLS+6titU1lCCFgLN/WOiYp19kAJ+RwbhJO5NH6nCugRrCBJwRX1P8iRT5Gfnvso X-Received: by 10.194.56.69 with SMTP id y5mr3518796wjp.4.1475593736113; Tue, 04 Oct 2016 08:08:56 -0700 (PDT) Received: from boomer.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j198sm4583539wmg.4.2016.10.04.08.08.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Oct 2016 08:08:55 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: [RFC 09/10] ARM: dts: amlogic: enable gpio interrupt controller on meson8 Date: Tue, 4 Oct 2016 17:08:27 +0200 Message-Id: <1475593708-10526-10-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475593708-10526-1-git-send-email-jbrunet@baylibre.com> References: <1475593708-10526-1-git-send-email-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161004_110918_855815_81A04148 X-CRM114-Status: UNSURE ( 7.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.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 Signed-off-by: Jerome Brunet --- arch/arm/boot/dts/meson8.dtsi | 19 +++++++++++++++++++ arch/arm/boot/dts/meson8b.dtsi | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 45619f6162c5..82690e0352c9 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -43,6 +43,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include +#include #include /include/ "meson.dtsi" @@ -91,6 +93,21 @@ clock-frequency = <141666666>; }; + gpio_interrupt: interrupt-controller@c1109880 { + compatible = "amlogic,meson8-gpio-intc"; + reg = <0xc1109880 0x10>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + }; + pinctrl_cbus: pinctrl@c1109880 { compatible = "amlogic,meson8-cbus-pinctrl"; reg = <0xc1109880 0x10>; @@ -106,6 +123,7 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; spi_nor_pins: nor { @@ -148,6 +166,7 @@ reg-names = "mux", "pull", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; uart_ao_a_pins: uart_ao_a { diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 41fd53671859..d76e7cb4d3dc 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -44,6 +44,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include +#include #include #include #include @@ -183,6 +185,21 @@ status = "disabled"; }; + gpio_interrupt: interrupt-controller@c1109880 { + compatible = "amlogic,meson8b-gpio-intc"; + reg = <0xc1109880 0x10>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + }; + pinctrl_cbus: pinctrl@c1109880 { compatible = "amlogic,meson8b-cbus-pinctrl"; reg = <0xc1109880 0x10>; @@ -198,6 +215,7 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; }; @@ -215,6 +233,7 @@ reg-names = "mux", "pull", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; uart_ao_a_pins: uart_ao_a {