From patchwork Mon Sep 18 13:46:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9956675 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 E1D93601E9 for ; Mon, 18 Sep 2017 13:47:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D25C628778 for ; Mon, 18 Sep 2017 13:47:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6ABC2888A; Mon, 18 Sep 2017 13:47:29 +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=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 241D428778 for ; Mon, 18 Sep 2017 13:47:29 +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:MIME-Version: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=hbe9OlJoSIcmP/jdCva1rJD8mqhVOd48zWzdUjhYoeI=; b=l4Wl9AeHFh0Qca X5a3Q+FEq8DN7XPdie47QH+FNSgb9Bxc3oeX2xI4xB5JHH0z0ZqZs5G6q9j/ZfsvEAEyzCEjF30NH wl7L8u6NZg9NEsA3vg3Kb08g2sQugAj6o0+iCikHJ338bUeyCVlpoYxn9x+qXrvV7Fht3kF/FzdeN 6ruJ7TrWtgNulo7Vasyu6UIH4wupnT/lCYKeto0LOKNTqRp2bAhwfg+d3K0RaKipDhlQHMfp9CouY OhhyRqZHI2hjg3y69QRrgJrHBVN86NnVSLrjfbIRtJ3+9OVVzJaJ6kQwyg0uUlHrQN9MsDpu7CzYK CVGY8gh6Wk7jYxJUlvWw==; 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 1dtwOI-00054M-1c; Mon, 18 Sep 2017 13:47:14 +0000 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dtwNi-0004SO-0G for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2017 13:46:41 +0000 Received: by mail-wr0-x231.google.com with SMTP id u96so534162wrb.6 for ; Mon, 18 Sep 2017 06:46:17 -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=r/zvGjiMzT2GM5av7cyQS7Gvu/XjANYw4OUvXWzraqM=; b=Gz4J7cW7LZO0xc06fhEn+XUe2tSkDmro7y0EkjWaWxlNb1ws5lcD8XM5qsQK9eHaD/ OaY5GNcGIV0OhBB0S7Px9DaxouRBUNU5OgjgmIIsN459gRNV3+R2JHr3EoA0GbIv3k+o M0Ry0cXGe3PT91vryVZtXgtsFpm3YRgx9QFDarPvNmXsPDvc1rkw285xU0Um0hNu2aTh 7vlL2ewD1/qjfRwJ/+eGQmQPv6+2Fue97LEqPncqwYLU5bIXNSBLh64msluqc5hIGEVl ATPUBMva3VQAXXQ5MReQ92Vwvekj4Fn/yzFcbi2F8CSkcthjbuKKIQqTMjMdNK5in2d1 6YAg== 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:mime-version:content-transfer-encoding; bh=r/zvGjiMzT2GM5av7cyQS7Gvu/XjANYw4OUvXWzraqM=; b=VZfzFF4Z7/r0SkluRKAZwTgHG0OWLUwgzaJfNmLYh3TWMiEWkfKVWKmTgW8zCt3bTL vqtpTkWTVQIu/vbk9S3OelpA0kzhOzlwPOrJyoR0Hk/DCsv8sFhqMWTyEf+MgwazvgcN DxGzRx528zovmYmqNJTGEjO6uFn8usqPCAg89MxBrpAqzXMFwESQxTaQvXAJQTgyp7Mk a7nFv4RKkXfxyINHNStyn+GdEB6tdFjYvigzrkaWOqAFhWz+OJ+/mPC0pspDOeCXmq3v OsaQWOT5qURluIvFwm/9bkarPBDC8VG+4gIO8K88CQ5sEEmn+Vv+Wl0hGaSqVfVeqh3H cxvg== X-Gm-Message-State: AHPjjUioihxRsh4KUEs/qh7AZGtTKP+FxmMMjflPYboK8HSbISB7ZUMN vMqCxVybW+vc9664EP0= X-Google-Smtp-Source: AOwi7QD7NhV5zDbzrJbhH/J0yNIThvodOAkN/cYBtvwszYIEe7VxbvR7gGNkAWtzwQ9mcAg/LuDHJQ== X-Received: by 10.223.161.137 with SMTP id u9mr14967752wru.280.1505742376200; Mon, 18 Sep 2017 06:46:16 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id n29sm6888585wmi.46.2017.09.18.06.46.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Sep 2017 06:46:15 -0700 (PDT) From: Jerome Brunet To: Marc Zyngier , Thomas Gleixner , Jason Cooper , Heiner Kallweit Subject: [PATCH v4 1/2] dt-bindings: interrupt-controller: add DT binding for meson GPIO interrupt controller Date: Mon, 18 Sep 2017 15:46:09 +0200 Message-Id: <20170918134610.17743-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170918134610.17743-1-jbrunet@baylibre.com> References: <20170918134610.17743-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170918_064638_220298_9BD8088F X-CRM114-Status: GOOD ( 14.98 ) 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, Kevin Hilman , linux-kernel@vger.kernel.org, Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet 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 This commit adds the device tree bindings description for Amlogic's GPIO interrupt controller available on the meson8b, gxbb and gxl SoC families Cc: Heiner Kallweit Signed-off-by: Jerome Brunet Acked-by: Rob Herring --- .../amlogic,meson-gpio-intc.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 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..633e21ce4b17 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.txt @@ -0,0 +1,35 @@ +Amlogic meson GPIO interrupt controller + +Meson SoCs contains an interrupt controller which is able to watch the SoC +pads and generate an interrupt on edge 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. It does not expose all 256 mux inputs because the +documentation shows that the upper part is not mapped to any pad. The actual +number of interrupt exposed depends on the SoC. + +Required properties: + +- compatible : must have "amlogic,meson8-gpio-intc” and either + “amlogic,meson8b-gpio-intc” for meson8b SoCs (S805) or + “amlogic,meson-gxbb-gpio-intc” for GXBB SoCs (S905) or + “amlogic,meson-gxl-gpio-intc” for GXL SoCs (S905X, S912) +- 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. +- meson,channel-interrupts: Array with the 8 upstream hwirq numbers. These + are the hwirqs used on the parent interrupt controller. + +Example: + +gpio_interrupt: interrupt-controller@9880 { + compatible = "amlogic,meson-gxbb-gpio-intc", + "amlogic,meson-gpio-intc"; + reg = <0x0 0x9880 0x0 0x10>; + interrupt-controller; + #interrupt-cells = <2>; + meson,channel-interrupts = <64 65 66 67 68 69 70 71>; +};