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: 9362013 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 D3937600C8 for ; Tue, 4 Oct 2016 15:13:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C439328450 for ; Tue, 4 Oct 2016 15:13:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8A5F28BF4; Tue, 4 Oct 2016 15:13:57 +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=unavailable 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 B34F328450 for ; Tue, 4 Oct 2016 15:13:53 +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 1brROG-0006Nt-Aj; Tue, 04 Oct 2016 15:12:20 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brRLJ-00029I-Ue for linux-arm-kernel@lists.infradead.org; Tue, 04 Oct 2016 15:09:21 +0000 Received: by mail-wm0-x22a.google.com with SMTP id f193so25874662wmg.0 for ; Tue, 04 Oct 2016 08:08:57 -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=XIWppweEZFEH4oNLCFCOysMqHFYt2ijHlS3m5PXifwbAWWAxFT19YOcvXQ+VKxsxwj Fa1AyY6RAajE5NuDw0wM7GmkTtKZ2E8ZAWKKw7n6iMDGMeJhReGbH2vxJlHfjan0EbAI wZE66JQsKO5vUldDK6wjkf12dx5u2fCslm0R0HMhGQemvh4W9RoLQSw3JHF5Lp7B0IqA V16Rie3D5hBz8wO5EKgKcSiIS0g4GhlSPpkWtDSuelpjGMb1fHRh/HqyFN06hJJPX46E TffXRgAM1DBZc5oXy+wiQ6Pexc1k0pXw5a4qhSFCPk9Uwiq0NvH6hrf+6dMFPyzfiVuB Drxg== X-Gm-Message-State: AA6/9RkQi5NDhvYI8S2H2eb3z/LX9fbGqWHs8S98VWsZa/J+W/s6Odo3Opi3GHEENt8wHmXS 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_080918_407085_5E47679D X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 {