From patchwork Sun Jan 22 12:18:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 92148 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp803129qgi; Sun, 22 Jan 2017 04:19:21 -0800 (PST) X-Received: by 10.99.234.21 with SMTP id c21mr27286202pgi.166.1485087561254; Sun, 22 Jan 2017 04:19:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si12261922pgg.140.2017.01.22.04.19.21; Sun, 22 Jan 2017 04:19:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbdAVMTU (ORCPT + 4 others); Sun, 22 Jan 2017 07:19:20 -0500 Received: from mail-lf0-f51.google.com ([209.85.215.51]:33165 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbdAVMTT (ORCPT ); Sun, 22 Jan 2017 07:19:19 -0500 Received: by mail-lf0-f51.google.com with SMTP id k86so80443689lfi.0 for ; Sun, 22 Jan 2017 04:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=3nJ14gMLdY/p5+eyTM0Hize3MjAs8ciujxVTe8Yzl7o=; b=T3NIfWv7EBHj8vycJnIVeKlDfi/fCr/vyXB+Y+Q3Nrj6Es+ncrT4eSCczIOTi0zLbd UTRdhQgmXmKxe35WUaFTNSI64VmA/PTjYAeyuRgNys/Urt01oJiCXSOjhRq6Zi+IwU2v rSYQfBvso3rruqV25NShbpaZV616Z9XpjxhgQ= 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; bh=3nJ14gMLdY/p5+eyTM0Hize3MjAs8ciujxVTe8Yzl7o=; b=ABAmFS5aGN7AoCeiVa4dOOkrceH2pFAk8ysmvmb/gdqb42pzLUAYgdTsfZteskDnMe 38VxnyOay0I+/Mq+mkaZoXEJlAQtTJt951YXBStrxUx7DWpw3IrRPvER5KPprSxRaQWT QzjUOzWMXItwcGgiSvV3Wurug0shKyfBDeOnTgowULeotqdRj24WCTO+L6Sah4z+6zVL 6bzRWLXhENXjMPEXoLOkHuQDllhEzevLZ7k9QxeNirFr0nD8msfdY/sWOmm54Y8Y0T7W ifKg4xrdXtopHdN34hUCxL0yBmD+QSShzKDaCqgMNah2aWLIMWSfdB2oezCgveB1B7K+ OHhA== X-Gm-Message-State: AIkVDXI/N46jlqiVNHcpMjSE+cmjDB0f1yp1uNPyYJLT1LScUF48YZ29yJBkUs+kKn62nYZF X-Received: by 10.25.37.145 with SMTP id l139mr7646272lfl.124.1485087519834; Sun, 22 Jan 2017 04:18:39 -0800 (PST) Received: from localhost.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id t23sm5379063ljd.30.2017.01.22.04.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 04:18:38 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli , Linus Walleij , Alexandre Courbot Cc: Janos Laube , Paulius Zaleckas , openwrt-devel@openwrt.org, Arnd Bergmann , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 06/22] gpio: add DT bindings for Cortina Gemini GPIO Date: Sun, 22 Jan 2017 13:18:30 +0100 Message-Id: <20170122121830.10336-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This adds fairly standard DT bindings for the Cortina Systems Gemini GPIO controller. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- Note to self: just apply this to the GPIO tree when discussion is over. --- .../bindings/gpio/cortina,gemini-gpio.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt b/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt new file mode 100644 index 000000000000..5c9246c054e5 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/cortina,gemini-gpio.txt @@ -0,0 +1,24 @@ +Cortina Systems Gemini GPIO Controller + +Required properties: + +- compatible : Must be "cortina,gemini-gpio" +- reg : Should contain registers location and length +- interrupts : Should contain the interrupt line for the GPIO block +- gpio-controller : marks this as a GPIO controller +- #gpio-cells : Should be 2, see gpio/gpio.txt +- interrupt-controller : marks this as an interrupt controller +- #interrupt-cells : a standard two-cell interrupt flag, see + interrupt-controller/interrupts.txt + +Example: + +gpio@4d000000 { + compatible = "cortina,gemini-gpio"; + reg = <0x4d000000 0x100>; + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; +};