From patchwork Thu Oct 19 12:01:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10016575 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 5696060215 for ; Thu, 19 Oct 2017 12:08:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AAFA28CFF for ; Thu, 19 Oct 2017 12:08:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E50F28D04; Thu, 19 Oct 2017 12:08:16 +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_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 C971B28CFE for ; Thu, 19 Oct 2017 12:08:15 +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=4fA42S9WtOpXs87f+SvU3N6+GWnOvJF6zyEwoy3RKxI=; b=N6wlsrrlBKEZvgyGpXfuxot64O Sg2jNrENSMXjIoOg6UsM4EyBRogea0wWKzvxHXM4bZBaYBrbQLrXqAjhlmO8xG0IkfSvZPQnf+0C+ 3SAOkUQSuYKuWj8ipxUUENArs0Q2KM7tdvgbBCLu5KjXg7yCvbrXA+5fvHATSMpDvGDzAvCzZPzjw B73myQ0fixM+n9V3DARkVnwgV+yLcc6hZ2dGdQNLUbrygNAvmIhX0mgoFi4CT0QmgH9fDs6ZoE03k pkqwemrHEbsahJWYUdQb8kigsXWj3k5i47Yecb6MIVK/ESI7r/B2yO3QTfaKfws2suS27lmJlzF4C BCzBt3ag==; 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 1e59cT-0007Ih-Ho; Thu, 19 Oct 2017 12:08:13 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e59Wf-00032M-7C for linux-arm-kernel@lists.infradead.org; Thu, 19 Oct 2017 12:02:25 +0000 Received: by mail-wr0-x242.google.com with SMTP id k7so8062090wre.2 for ; Thu, 19 Oct 2017 05:01:54 -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=OSr0UpPmx0EunKuxPjOOLBm9xdqAPYyKDxxjAaGH+zI=; b=NE0NyRLM7eUy5MXXhlTopEM79Z0LNoQfEuFf688Ndjj0AO4OOaNH5wusEJaoZgNQ4L 3NvkynxTMK5j1hcwaQD4cUmJPdsY/BTd1YdcHnCHNQ37x4l7HlLnQ1KoU0xEjdDrIA4d 3VVZ5OsEAnwexDyepmKGTreMb8LOHQtSvUstWNld+Zi6NAfuTNm1AU5bbozFvpt7Gwll rlwjCfLYpQ3hQXb1+ZM3dO/8l2A06TyGOJttj6pupcZ40FTrM8xq3AKks+8ALiJTF1Vb y5wqwlJvP1/Vg7phV8Eye405bLjlEnIL2Du9O6+QdYChU/cQa4dlhw21fQQ0m831O5yW hxnw== 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=OSr0UpPmx0EunKuxPjOOLBm9xdqAPYyKDxxjAaGH+zI=; b=BZjT3iRXX0dxgdhuq2ZdZzTMCXAjg4wv/xiFjlXHFHIOoxkR5lfGa1D7WcIAfClcUT /AMlCUBLM/F0Vbm5ATmnUNtNaBKIHwnouVJi3igZESjk33v1qz9GJ0nxm6SfCFuDk+a9 paigW55Zk4c7DBfijGliqbFt92YYDbxZrxQ3IeAgHYLPeq2NHENBkQ9xzX09igALKmbn 1iLHngreZvDQmxCZEkrggW3osYkQzXimFpcRAtCTHT1iFI+MNpCAJb32EJmLtEhk0XRi k0Mv8ScBTyJMDto/u90h3+Zac3FZnr8Jr0jX48PRhxt8Q21q2LcRZswOsZZFzOfoNrfH 0HYA== X-Gm-Message-State: AMCzsaWnDfrWmB8EYmutVkKHw1vVgWIy/FtbTTZiwpkZFVc14qA5e6pf eg0jXmwGKCwIXAxxo/WRvulYRw== X-Google-Smtp-Source: ABhQp+RuQcq8GDFy7lnu+opMsRtwXnfr5EPUwpDVZ2wu1qZvXuLpxXnlAf3Q+VSKkAyDTnPhyBPDUw== X-Received: by 10.223.157.203 with SMTP id q11mr1490944wre.131.1508414513234; Thu, 19 Oct 2017 05:01:53 -0700 (PDT) Received: from localhost.localdomain ([217.110.245.107]) by smtp.googlemail.com with ESMTPSA id x75sm1484089wme.3.2017.10.19.05.01.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 05:01:52 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH 4/5] ARM64: dts: meson-gx: add gpio interrupt controller Date: Thu, 19 Oct 2017 14:01:42 +0200 Message-Id: <20171019120143.20581-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171019120143.20581-1-jbrunet@baylibre.com> References: <20171019120143.20581-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171019_050213_538121_2AF0C7BC X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-amlogic@lists.infradead.org, linux-kernel@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 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 b7723436a04b..ab7ce1644cdc 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,channel-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 3d41db9c9d22..ead895a4e9a5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -323,6 +323,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 d3a51031a711..0aa71a35ce64 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -225,6 +225,12 @@ compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc"; }; +&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>,