From patchwork Mon Feb 5 01:55:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 126826 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1577980ljc; Sun, 4 Feb 2018 17:55:34 -0800 (PST) X-Google-Smtp-Source: AH8x224p4FieqqxNLHHLTTPh13d29RcAgDzt+QVnIaWtajehI6zfvbS8m8uhDkg5hkcvPrSZAfqc X-Received: by 2002:a17:902:6186:: with SMTP id u6-v6mr41300323plj.390.1517795734345; Sun, 04 Feb 2018 17:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517795734; cv=none; d=google.com; s=arc-20160816; b=EBygkSAbQf9nsuYThOEtHfh2YL9itAw9DrFwGPBQaDMgLsXcqVd6aVqUV01gEt9mCr 1i5W98kNjSX+SKyYE9DY8ymAjeuLdvDmzQhpV8jesWEbMQBtimyQGoD/DQ6tT3tYVrYn GKjDDro4cGg7UPB6ShOJbg25c2WYI0kEb6IQLh8138FA0EjDSethS/jstzcPvakORVnw luLcrTYoAwYPoYqhs7JPMO7MrRlkyixJmuNnw6SEvHnLBI8aH0Qsv9opnog7vV5V5V4s E1omx/YVj3fbSwujshKMTo5etntHmcIGtqZX1C8NsynroJMAL+GgfJU8d7k//7Howq0N Z4Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=/c7UHPdvuHHarbuFHweHQh7GsumlCKcH1uNxjBxInlY=; b=qwhGXOQtuDy26J9G6J76Mv2WwtKdRNgA/TnUzIBfIWxLsFg1hZ2XcSFJ/lZAumjWNn CaYlV70FGate2ZDdEpBLyUublFnCftgJEYQ+En8zERgRBk0WAsTj7YAi2nRqtDp57SDk CNMXFLw4OiBIgEz8PtOtuX0f0UPCsieo1PGtpZCMpGud1Dh30/jiw68qHhm9YPUJ0UDl zKQSPOA3xrUmUE23WIMpKmXmgIMK7uUzwTTp5g20OLcVfdQOlGHoJEBcw9MehVu37FqQ Qt+kYATXYgc1zEkZkfkhNm6pNlaJywJXBuWI0PzL3XWQN1p7X4UK40/1yIQ2mkb9rHQo SFGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lyv7r6ez; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8-v6si1543957plk.87.2018.02.04.17.55.33; Sun, 04 Feb 2018 17:55:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 header.s=google header.b=Lyv7r6ez; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1752256AbeBEBzb (ORCPT + 6 others); Sun, 4 Feb 2018 20:55:31 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:46318 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbeBEBza (ORCPT ); Sun, 4 Feb 2018 20:55:30 -0500 Received: by mail-pl0-f68.google.com with SMTP id 36so10757123ple.13 for ; Sun, 04 Feb 2018 17:55:30 -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=2oqtYYjQkMeVa0mKCIAOyHHiirr83ipCUPsUzsfHOBA=; b=Lyv7r6ezmHXL/aaygqr/LhIwNv51EVNX8YM2umpQ3uY+nt66GiuTDZnUG8Y5MaBH5S /sc7VMw4jw/gGFV9exvcurfiB1OPTVXTxZJv7E7toDMTqmxSuVDVtCJvw0+i8G2gjjkT QJNuyGGGjC1IPiqikx9mbHVym9AbjrTf6jP34= 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=2oqtYYjQkMeVa0mKCIAOyHHiirr83ipCUPsUzsfHOBA=; b=JX4tOSj2rOmIWMnOAYFi2VBZRzGJw+M2QdgxkiFWQKIs00x3vPalw0J8U44ay2sED/ w0LxYp4bPMncrtG5yVb2l9lnyvyPyAK+v6LAWp7Y2N0ywR4o4AEVrrdPC5V5Q2yfj2K5 9ThJQf7Yrg06PLnfO0pNCuQCWPJZG6FgzURao/kNf/7lQBCDdXFmGSLqZyb5Q5Lp/+kV 6N5nX+sy6X8+HXC5O9gj3fej0Toje+z4TBKQrlHxsDPaX6y4xzx/zc8NW9C9FA2FHIwF BOzjOvskRx1nPYcbiCitn4Mc8qzndfB5G1O10maCFkJ7K0I+i5cX6fkFVeQ96RFYFPMV yD9A== X-Gm-Message-State: AKwxytfp65wyRkvlujU7piCRBulyUbVCGX8zKb5W/mnV7b3kosGups7r S2wzqDt08la2HQvcRaqHu8fMIQ== X-Received: by 2002:a17:902:bc3:: with SMTP id 61-v6mr39720764plr.407.1517795730283; Sun, 04 Feb 2018 17:55:30 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t69sm15734677pfa.180.2018.02.04.17.55.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Feb 2018 17:55:29 -0800 (PST) From: Baolin Wang To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org, andy.shevchenko@gmail.com Subject: [PATCH v3 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation Date: Mon, 5 Feb 2018 09:55:10 +0800 Message-Id: <2834309f69a1ec37b84a33f153a3d0b90336bcc6.1517795460.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the device tree bindings for the Spreadtrum GPIO controller. The gpios will be supported by the GPIO generic library. Signed-off-by: Baolin Wang --- Changes since v1: - No updates. --- .../devicetree/bindings/gpio/gpio-sprd.txt | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-sprd.txt -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/gpio/gpio-sprd.txt b/Documentation/devicetree/bindings/gpio/gpio-sprd.txt new file mode 100644 index 0000000..eca97d4 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-sprd.txt @@ -0,0 +1,28 @@ +Spreadtrum GPIO controller bindings + +The controller's registers are organized as sets of sixteen 16-bit +registers with each set controlling a bank of up to 16 pins. A single +interrupt is shared for all of the banks handled by the controller. + +Required properties: +- compatible: Should be "sprd,sc9860-gpio". +- reg: Define the base and range of the I/O address space containing +the GPIO controller registers. +- gpio-controller: Marks the device node as a GPIO controller. +- #gpio-cells: Should be <2>. The first cell is the gpio number and +the second cell is used to specify optional parameters. +- interrupt-controller: Marks the device node as an interrupt controller. +- #interrupt-cells: Should be <2>. Specifies the number of cells needed +to encode interrupt source. +- interrupts: Should be the port interrupt shared by all the gpios. + +Example: + ap_gpio: gpio@40280000 { + compatible = "sprd,sc9860-gpio"; + reg = <0 0x40280000 0 0x1000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + };