From patchwork Wed Oct 19 10:08:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9383813 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 4ECF560487 for ; Wed, 19 Oct 2016 10:14:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FE2C29903 for ; Wed, 19 Oct 2016 10:14:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3416129909; Wed, 19 Oct 2016 10:14:26 +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 778BE29903 for ; Wed, 19 Oct 2016 10:14:24 +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 1bwnrm-0000Xa-AY; Wed, 19 Oct 2016 10:12:58 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwnof-0005Oh-AI for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2016 10:09:48 +0000 Received: by mail-wm0-x236.google.com with SMTP id c78so50079809wme.0 for ; Wed, 19 Oct 2016 03:09:24 -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=PFSWunsH67ZpC9n/bvLCNt8Oj/YE5JHptblA569wBRw=; b=xCZl5TjiKsK3rMb0INwp3RXcKIxegSxyj0mRCmMCxaLNsRStgW7xvVuBjCgr9CQ1/Y Lqg3tFgjdnaMzUmC6kk3JGxaUwXk+bl8IQMLpRZ5CUNsva4S5U3eCOEdoMIM5mGVzePw 7f8HShsovHyKThHABo5QSxL8Sq9LlJ3bpF/1eVrrHSlheVfdlfcnXJQpZKO3kP9C+3d6 bCQVmqg+/zHp9SutUAgCxN403TXPQj0O/OU6Kh7mhio643/liQqDGz/4LuQ7AW9uOB07 lClMyZQRXjp9nCjSRvMS4TrMldjyXdwI8A3rw9PgUZDAh8+djz0vLjBinWmYkKiuyFtz f6cQ== 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=PFSWunsH67ZpC9n/bvLCNt8Oj/YE5JHptblA569wBRw=; b=mlfR8MgMsdNoo4dkDYG/yGCrMmFcb3QVmj2LxYJx/LQABBeBRNlnft/RM7aXtC9GWo vM9Sp9u9u7z4WQBuCN+efAmKVBzjKFhNn154AHoLiFBD6rXkZBm4yvrXDU/5xunFB34u a6DadgzLbys1+TfsuQvO90kCNAViJkFsuk/uenMzFxhVxYyYh0zhbVJCI7fThdkzjQd7 5k29oxvRpCaJgA1N1REmuIjNdXBcL97XX+zhyIBeIs2ZqkdoHjZcuXkhJK66VhWxLjXa yDxX5eGYlmIdBd6X2XuWykZVKAfobTgJhTsnbJb88x/BDbhdg069co6Byxw2/s1fKL1n Q5bw== X-Gm-Message-State: AA6/9RlrREn64aj1F5/YMGCyxzX1NRQsiwPjcRxdOG74vzFOQRT8yumkIPhdHSzq+ckt9eSw X-Received: by 10.194.148.7 with SMTP id to7mr3868583wjb.31.1476871763270; Wed, 19 Oct 2016 03:09:23 -0700 (PDT) Received: from boomer.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id l15sm4199066wmd.7.2016.10.19.03.09.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2016 03:09:22 -0700 (PDT) From: Jerome Brunet To: Carlo Caione , Kevin Hilman Subject: [PATCH 9/9] ARM: dts: amlogic: enable gpio interrupt controller on meson8 Date: Wed, 19 Oct 2016 12:08:29 +0200 Message-Id: <1476871709-8359-10-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476871709-8359-1-git-send-email-jbrunet@baylibre.com> References: <1476871709-8359-1-git-send-email-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161019_030946_329436_73E2482C X-CRM114-Status: GOOD ( 10.34 ) 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: devicetree@vger.kernel.org, Jason Cooper , Marc Zyngier , Catalin Marinas , Linus Walleij , Will Deacon , linux-kernel@vger.kernel.org, Russell King , linux-gpio@vger.kernel.org, Rob Herring , linux-amlogic@lists.infradead.org, Thomas Gleixner , 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 | 11 +++++++++++ arch/arm/boot/dts/meson8b.dtsi | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 45619f6162c5..713a22456ff1 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,13 @@ clock-frequency = <141666666>; }; + gpio_interrupt: interrupt-controller@c1109880 { + compatible = "amlogic,meson8-gpio-intc"; + reg = <0xc1109880 0x10>; + interrupt-controller; + #interrupt-cells = <2>; + }; + pinctrl_cbus: pinctrl@c1109880 { compatible = "amlogic,meson8-cbus-pinctrl"; reg = <0xc1109880 0x10>; @@ -106,6 +115,7 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; spi_nor_pins: nor { @@ -148,6 +158,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..36a239a645f5 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,13 @@ status = "disabled"; }; + gpio_interrupt: interrupt-controller@c1109880 { + compatible = "amlogic,meson8b-gpio-intc"; + reg = <0xc1109880 0x10>; + interrupt-controller; + #interrupt-cells = <2>; + }; + pinctrl_cbus: pinctrl@c1109880 { compatible = "amlogic,meson8b-cbus-pinctrl"; reg = <0xc1109880 0x10>; @@ -198,6 +207,7 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; }; @@ -215,6 +225,7 @@ reg-names = "mux", "pull", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio_interrupt>; }; uart_ao_a_pins: uart_ao_a {