From patchwork Tue May 30 20:27:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9755221 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 1AD9E601D2 for ; Tue, 30 May 2017 20:28:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 109FD283BA for ; Tue, 30 May 2017 20:28:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0577B28405; Tue, 30 May 2017 20:28:10 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham 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 B9261283BA for ; Tue, 30 May 2017 20:28:09 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rD57VLc/030+076kiE2uhDdIs47X3XHrXE3u9rlF5rI=; b=T6eOPxV1WWIkh7 4jMEliaXZ3SJtmuH61HT9IsSFr7uRt94U7zZOoBcv9QB4HcbVYb7pyfyHfJDVoKEs49d88YBMrWtY aMknv7REDGmTcodDU11HYxIHtEN/mPv99fpCubHSL4TPNYqzNAmM8jOyfUIUKCotbn9MRHD/MeGOr 6tfYHQW5mkijktz+o06YMymD95A/QaI/OplfJczM9IVQm7fRCb9ONUP2JCRXn5EdIhlIw9vH08MXo wllsODddaBIp2aEXk2NMfgBNrVMd5UT2dSk9B0CsbtZNpUXSM5znkWAgWRAH2XEjf24fdC7OltNdV lz+oye8rRH7z1m55T1sg==; 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 1dFnkI-0004hn-6L; Tue, 30 May 2017 20:28:02 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFnk9-0004NT-KY for linux-amlogic@lists.infradead.org; Tue, 30 May 2017 20:27:57 +0000 Received: by mail-wr0-x241.google.com with SMTP id g76so1218562wrd.2 for ; Tue, 30 May 2017 13:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=sTC4A051kB6tNCO1Y0bpHVVTAv45JdMlnzCATfE83is=; b=BMLdw+/3NhsyDAdarUW5MortCfexAdb7M4MXdDVjZFWF+yYRbiQ0uVN0cumKo0N+TV XeT9EkpCK7G0BlqwR9rbh534ZerFB/2QP+kWDeyc/nK13iiUiv+A9+605k6IOgzkfc4X ZJRNF2DXK12XIsRbk+4GCaTZvjkty+TL9bHC9mETWCiLvQq7sIlb71s2wbELtCeJZZB6 l/7j+Hsp+0QGxmY54l6w6lfMxEkg2KxG75D+l+Ud2/nlOf3Ko1tqTgnwgpUy8dw1MRuy z646hkpPwo7C26EH9G4Xq3EMQtDfmDQ+u36HaW4fBUljos74V++Wu9NvQxzeq9Q5cznX 59OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=sTC4A051kB6tNCO1Y0bpHVVTAv45JdMlnzCATfE83is=; b=X2BCW9npuQCMG1yk/P4p66ns6eK5Jp9hWFja/CJfU+M36rohBEC3Y55ZKb9KTl9uKl zYs3ZUQF0Ome+Ttsf41E4NeJW8c0alpFM8VVOnHWXGptnC9o0emc22ca5zUkKTV0NRgN pOJbK3gDbGfLx+Cdirx3RP9zpCHGcsvsBL85a1yqt56icES9J1VZR3/op0jGkgzrhboL 2CadSqeDZHpiFgJhSVZVnwF/XTtHeQ3JB61YReCzz+eMdW7TLVFxun2Fg7K4v9ndb0XB zu1e3Ks4WPdJ9P45yVfpFE1m9wbu8hjwbiuggtn02a+KbFxXor1+2lHWb3FBDUtSgMbe XBEw== X-Gm-Message-State: AODbwcDyMOEv2ttiABFTlLEM5abomb9QpqiArwchptwqwtAgQlYGv/06 sdpOpZY/3/zuPg== X-Received: by 10.223.165.14 with SMTP id i14mr18842644wrb.127.1496176054867; Tue, 30 May 2017 13:27:34 -0700 (PDT) Received: from ?IPv6:2003:c6:ebdd:1100:88ec:a768:3ada:81a6? (p200300C6EBDD110088ECA7683ADA81A6.dip0.t-ipconnect.de. [2003:c6:ebdd:1100:88ec:a768:3ada:81a6]) by smtp.googlemail.com with ESMTPSA id j65sm18217677wmg.0.2017.05.30.13.27.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 13:27:34 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v5 8/9] ARM: dts: meson: mark gpio controllers as interrupt controllers To: Jerome Brunet , Mark Rutland , Marc Zyngier , Linus Walleij , Kevin Hilman , Thomas Gleixner , Rob Herring , Neil Armstrong References: <66c57893-0a9e-4f8c-a017-ab346abbdfd0@gmail.com> Message-ID: Date: Tue, 30 May 2017 22:27:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <66c57893-0a9e-4f8c-a017-ab346abbdfd0@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170530_132753_847473_EE963EEE X-CRM114-Status: UNSURE ( 7.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thierry Reding , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, "thierry.reding@gmail.com" , linux-amlogic@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Make the GPIO controllers act as interrupt controllers. Signed-off-by: Heiner Kallweit Reviewed-by: Neil Armstrong --- v5: - separate ARM / ARM64 DT changes - add Reviewed-by --- arch/arm/boot/dts/meson8.dtsi | 4 ++++ arch/arm/boot/dts/meson8b.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index b4c4175d..c64ddd58 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -106,6 +106,8 @@ reg-names = "mux", "pull", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; gpio-ranges = <&pinctrl_aobus 0 120 16>; }; @@ -149,6 +151,8 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; gpio-ranges = <&pinctrl_cbus 0 0 120>; }; diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index fedfef24..dd7ed539 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -99,6 +99,8 @@ reg-names = "mux", "pull", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; gpio-ranges = <&pinctrl_aobus 0 130 16>; }; @@ -174,6 +176,8 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; gpio-ranges = <&pinctrl_cbus 0 0 130>; }; };