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: 116381 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp408485qgn; Thu, 19 Oct 2017 05:02:24 -0700 (PDT) X-Received: by 10.84.177.195 with SMTP id x61mr1327517plb.286.1508414544859; Thu, 19 Oct 2017 05:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508414544; cv=none; d=google.com; s=arc-20160816; b=0g0hjIlrYndgufUwarYXKSrNt3Z5xMOZmnG+z9ZUyjuU7lRFeWg44S4/vvL4Xh5vvj wXyJo04WyL9CkkMQ1nvaAUehMuAevATsa9TrnFLk87x85TlSx5WH7lfvVi6yGQHEGome 5AhKNR9D7IueG96fAW1q0pDIuMIZzPPTB8sVAttTyx/ZvnIOIUDY6jWIEh7xWdNIkWx8 v9OUaty12fAcpJKtK2t4/+Ju7XiWBbyKvUM6heACIWDKkPglxzF39bb30H5nInPeb0n7 5NCsmUKWs0WiFtc1sIFf3AafOzdUFZPWFTqvpgk6eZ+QNAaKrL2BNglKF9/MJGFwbjJ7 rSLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=OSr0UpPmx0EunKuxPjOOLBm9xdqAPYyKDxxjAaGH+zI=; b=wxq4D4yL4rkBkCUMahiaNrhizFGoWrhllo+swvc5Hi7hNmHyBrx6XkJUi2BgcTcymg xz9rrRlr/kLQYBtCbBxJE9o7PEwmQj+U1m3CbY4awQJpiPN0uaLFYwDM10h6Ydwn5Uo6 YQfslj+UYNUYoCCN9UoVpNuSqbb70RJidPA6+mOmuqFkmwdtWLlqpvc2WiIgBB3D4te6 w1X73t7Fkfo0prwvOrWF2E87LtQXiKF3aq1zC1RTDNcP2f+2aZC1JEfTyAkkV3CiNSmE HZZShzK8IjuoNamHYr/rvwzO37SoWETziTE7L5RO0cdEyRF41hBxHbX48wxKQzCRteqo EA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=NE0NyRLM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g59si8842253plb.16.2017.10.19.05.02.24; Thu, 19 Oct 2017 05:02:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=NE0NyRLM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbdJSMCX (ORCPT + 27 others); Thu, 19 Oct 2017 08:02:23 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:47961 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbdJSMBy (ORCPT ); Thu, 19 Oct 2017 08:01:54 -0400 Received: by mail-wr0-f194.google.com with SMTP id y39so8061508wrd.4 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=HlgSycQpBheJvmijNfWz66JYQOMRtuNmOai9Z3J2B1rAAWyJDldVRZa5n/hY4IpqbK 1N/Cm1Gink+8sOlYiAiRs01oC9aynzrNtfPkI6XJdWtSsJh0RwxSNyvSVhBDxpnlIH5T pqRCZAQ3Jm1IRg7dPtjGysZuz8uF9h1ioJk1DETONGbDJWLfs862UqsXZkSPPlckxyU6 il1+lo27zUa5TqllxbQvmVV7/98MtfwBmLGch36OQissuqiRM9xx9KJzmw3TyH+FK7Sk HbfAXWw+aA9y2oZxINHuGP2f0nxd6bL5Ep8OwSQ2ds7eV0QhUw8xsiv8H0t7ACG2xe9X frQw== X-Gm-Message-State: AMCzsaVR5V4/5b6lKSE/57XEIJSoQ3apWKdTOZvPYPsr2y2VFnayPaQ3 RAyDuirff1fSPJeqr0PXMO/AmQ== 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 Cc: Jerome Brunet , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.13.6 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>,