From patchwork Tue Oct 4 15:08:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9361979 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 C850D600C8 for ; Tue, 4 Oct 2016 15:09:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9F3128C00 for ; Tue, 4 Oct 2016 15:09:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEA0C28C12; Tue, 4 Oct 2016 15:09:47 +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=ham 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 8CFA528C00 for ; Tue, 4 Oct 2016 15:09:43 +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 1brRLg-0002rA-I7; Tue, 04 Oct 2016 15:09:40 +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 1brRL8-00027F-Pl for linux-amlogic@lists.infradead.org; Tue, 04 Oct 2016 15:09:10 +0000 Received: by mail-wm0-x236.google.com with SMTP id b201so150773092wmb.0 for ; Tue, 04 Oct 2016 08:08:46 -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 :mime-version:content-transfer-encoding; bh=nU7aJGGpnujC4rLHWrrZrquuIeSX7HQI+rTzJmOWXuM=; b=pjGjYlNoTOdGanNWqNHvTKLcUI/lJMzeFJicmBSlLIMfOPNqToG7KuXa9kYaZeIYZj //n0TwngQcvkQSqF4A1wkw7hbuOGX8zUuzWeiPPtuA+auwPFP04uUqDgklQGuTDOX/7T ELXW7mUa18VSGrjDo+Yb85KgrEpOn6wRppDAJkag/R84HBS1QZaWb5aoV+/S3KrPEvzG yH3xOWrx8D+2OBcQiTo/BTgk7plNRxZsPn6jEPAno9XOGT82kYFWs6Wu4QqK6b9fa/au mOjc0uTswuN6ts/MpDbgWT/q1o7VxjgfCKYdCpIF8BpzbQURjU0v1n07VtzQRFGKbnmS pydg== 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:mime-version:content-transfer-encoding; bh=nU7aJGGpnujC4rLHWrrZrquuIeSX7HQI+rTzJmOWXuM=; b=asNNn6Y8Irtg2MIV4SfrzxUquHE1+gp7V8Rir1ZTwN5dmnH9BkoA1AXkCZCpYepOxW NlzEoWSdElEh28M9iDqJIC3nWs145HRZcAU3DqmroIuPVer47UUCtg2x3AE0YPB9p5DB TWsx54GcsxtY/Qn2+7VDYQ2pilXec7DHJWwpbBq298wNRbvWktn0Tp7WsyR0o16TqdkZ Hc7Mbfe/wlP+S7DW2iHOheYsszBCk7wIA2ZXPguetMHmJEVHBeeQ0fddGpIiXDrA3Bwx ZyeYRyKj24wAOSi1UzNRJhD763iMoakhqKWd3/AE8T1TNlGpFnIOT21BdVqMJQOCPaUJ EkuA== X-Gm-Message-State: AA6/9RmptGpjToEwrPcB9OoWkE/B44fR6EYDqF5jnOWtozSXxO+EZMB4fiYufyi9z4XAA8l7 X-Received: by 10.194.175.106 with SMTP id bz10mr3436872wjc.42.1475593724981; Tue, 04 Oct 2016 08:08:44 -0700 (PDT) Received: from boomer.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j198sm4583539wmg.4.2016.10.04.08.08.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Oct 2016 08:08:44 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: [RFC 02/10] dt-bindings: interrupt-controller: add DT binding for meson GPIO interrupt controller Date: Tue, 4 Oct 2016 17:08:20 +0200 Message-Id: <1475593708-10526-3-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475593708-10526-1-git-send-email-jbrunet@baylibre.com> References: <1475593708-10526-1-git-send-email-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161004_080907_175324_BA080413 X-CRM114-Status: GOOD ( 13.11 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This commit adds the device tree bindings description for Amlogic's GPIO interrupt controller available on the meson8, meson8b and gxbb SoC families Signed-off-by: Jerome Brunet Acked-by: Rob Herring --- .../amlogic,meson-gpio-intc.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt new file mode 100644 index 000000000000..bd4cceefcda1 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt @@ -0,0 +1,39 @@ +Amlogic meson GPIO interrupt controller + +Meson SoCs contains an interrupt controller which is able watch the SoC pads +and generate an interrupt on edges or level. The controller is essentially a +256 pads to 8 GIC interrupt multiplexer, with a filter block to select edge +or level and polarity. We don’t expose all 256 mux inputs because the +documentation shows that upper part is not mapped to any pad. The actual number +of interrupt exposed depends on the SoC. + +Required properties: + +- compatible : should be: "amlogic,meson8-gpio-intc” or + “amlogic,meson8b-gpio-intc” or “amlogic,gxbb-gpio-intc” +- interrupts : List of the GIC’s interrupts used as parent interrupts. + There should 8 of these interrupts. +- interrupt-parent : a phandle to the GIC the interrupts are routed to. + Usually this is provided at the root level of the device tree as it is + common to most of the SoC +- reg : Specifies base physical address and size of the registers. +- interrupt-controller : Identifies the node as an interrupt controller. +- #interrupt-cells : Specifies the number of cells needed to encode an + interrupt source. The value must be 2. + +Exemple: + +gpio_interrupt: interrupt-controller@9880 { + compatible = "amlogic,gxbb-gpio-intc"; + reg = <0x0 0x9880 0x0 0x10>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; +};