From patchwork Tue May 30 20:26:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9755215 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 69F6D601D2 for ; Tue, 30 May 2017 20:28:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FBA127569 for ; Tue, 30 May 2017 20:28:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 545A0283C6; Tue, 30 May 2017 20:28:03 +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 0D62127569 for ; Tue, 30 May 2017 20:28:03 +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=XpkcNepZ7vsdd2hdqayoTW6F2GKXGWAUdpQRkzN4Lwo=; b=H1SS2AixoVvN1+ XCArQRMdFNWi7Z5fMNpFllI3XQ5JWssGtX1EujmGikVDmgAO+n+5ixM3mfDbwwnMhCyaN1/M+Dk5q w5AjeRCGLnp1RPNtT9Nf1eS94XjKpBVppLCRflPZKhlQOg4O0VNMnD10U7AQkRfywTClPrWJeWuW9 BpeOAWyZh33LLwXNOVAnP0piBFUHFinr+/06uEISu2MMavIdBlhcuwYDA1xywVQb8EN2dWPbnTA8C AdR0uNC9ZFLYd3tMgoMrz/Kdn4BmbBFmF3zkrtBoV8zJCizwAa5cQ71+QpWTCFg1/gylFJKQzZhC9 JtqjGYGleVIQ6gRAXCDg==; 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 1dFnkB-0004Vs-75; Tue, 30 May 2017 20:27:55 +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 1dFnk4-0004N7-TM for linux-amlogic@lists.infradead.org; Tue, 30 May 2017 20:27:50 +0000 Received: by mail-wr0-x241.google.com with SMTP id g76so1218225wrd.2 for ; Tue, 30 May 2017 13:27:29 -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=3TFnDZOtakmnx7TxTE8Lsjk70BloysCUGxdCwJLZgo0=; b=Q7p6/0NHs5PjczQkyqgCtOdjwFyAGUaLR70HrunKmY8N5T3+ZPcSbeD1ug7cRydKKN FsbfI6W7EegTMr/Pdoz98OtfdTWnmFRwGjMXenauQ34kD6WmKRGC1rKCOXLwh9HcD0w0 SLhN920GieAi0oIEhbBIfJ5GzkS820SKZmgZFBde1P55Om6saUaHuPz6WnwJJ/cZRj8N ZIJMx6eoikqoMSrkz435OFnUFw/wDGYl/aS59QDy7TzMrnVjRCiMdD5qx06A3T/etB7Q RJhvoDcga50ZTQxpIDfo5wNl6ikVDAqb18E58U8M2osQCIpeVES0Lm4NGszaaXJEe9js PNmQ== 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=3TFnDZOtakmnx7TxTE8Lsjk70BloysCUGxdCwJLZgo0=; b=BKlPljmDdsHthCsfrPjJdwA1w30WbfQyiNi69soaee+8zlDhNr+SsD/UvywoRseg4A /5yjgfyrPfoEr160Iq919uaGnsoZrySI6HyOXQk4Rp0a2Fx2QC1vc3Y6WJ8XFaP7ReeQ dC36VT30cwuwCr11sbd0++uD4nIE1rPTah4IatC5Hthla3QHZV3F/VcfB9QvLUP+lEP0 Av9fcN8sD8y/0beBsE9etuDqYNOoUlBcPCN8w2wJvAEvnT/aCJ/hS1uYYyAO/QM7af+J D4IXGxWzl30/+YvWdI4mh1FG608xRlCn/zM1LJ9EEQ6/KuSM016KkYT+hoITT53AEKXE NVDw== X-Gm-Message-State: AODbwcAba2UcssyTpfoBw8MAA3VHcsdPz9JVDTbuuGe7S3J5DCLtIodi gKU81l+0U9a2og== X-Received: by 10.223.136.131 with SMTP id f3mr558674wrf.151.1496176048682; Tue, 30 May 2017 13:27:28 -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 z12sm20278249wrb.41.2017.05.30.13.27.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 13:27:28 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH v5 4/9] ARM: dts: meson: add GPIO interrupt-controller support 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:26:38 +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_132749_105403_97B4E00A X-CRM114-Status: UNSURE ( 8.15 ) 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 Add support for the GPIO interupt controller of certain Amlogic Meson Soc's. Signed-off-by: Heiner Kallweit Reviewed-by: Neil Armstrong --- v5: - split ARM and ARM64 into separate patches - added Reviewed-by --- arch/arm/boot/dts/meson8.dtsi | 8 ++++++++ arch/arm/boot/dts/meson8b.dtsi | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 69930773..b4c4175d 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -126,6 +126,14 @@ }; &cbus { + gpio_intc: interrupt-controller@9880 { + compatible = "amlogic,meson-gpio-intc"; + reg = <0x9880 0x10>; + interrupt-controller; + #interrupt-cells = <2>; + parent-interrupts = <64 65 66 67 68 79 70 71>; + }; + pinctrl_cbus: pinctrl@9880 { compatible = "amlogic,meson8-cbus-pinctrl"; reg = <0x9880 0x10>; diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index d9f116a4..fedfef24 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -112,6 +112,14 @@ }; &cbus { + gpio_intc: interrupt-controller@9880 { + compatible = "amlogic,meson-gpio-intc"; + reg = <0x9880 0x10>; + interrupt-controller; + #interrupt-cells = <2>; + parent-interrupts = <64 65 66 67 68 79 70 71>; + }; + clkc: clock-controller@4000 { #clock-cells = <1>; compatible = "amlogic,meson8b-clkc";