From patchwork Thu Feb 1 03:04:31 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: 126421 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1310159ljc; Wed, 31 Jan 2018 19:05:57 -0800 (PST) X-Google-Smtp-Source: AH8x224IHSliqmiC8S8A5kmrtm3HDgrxaQE4JlnleOMm3P2eIMmFlLY/6aoL/ZSXLX76wtVl+XHz X-Received: by 2002:a17:902:d905:: with SMTP id c5-v6mr29845839plz.225.1517454350299; Wed, 31 Jan 2018 19:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517454350; cv=none; d=google.com; s=arc-20160816; b=TL9Tm5DzHQzSkn3h3TA+9nZ8XeykLr18nsidg8eIxofeoGBAagNOorFHPQoTVz/GOF 0FmYqw1OPj5PX8+ghwGKuq3DtbpncvP/ewnWeTmrABLdBIzMj+hbPsqxf18G6E7e90RI MHWUT9wY/fl58traOAlMRN+ZpwAEJZbFaDHEr4g7nAha9Gr/qMPMrsRNIc8GJ9Rymu74 eeiDenilYJyOeeRPlzWQYh4oNYXSo1M/PGuX3CCpIOq2Ic/TEkBoMHY5OdL8TAdJnZl1 nBP4sCvG7xUKSArjhcSiuioM+muHWJ1IB9ctYP6D7Aq1m7KyHftLi6DpSa92c57yhfii FRdg== 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=KfP8VcL6dG90a9ns0X9JnleTO5AKNnjvxx5IXqMZS8E=; b=OBpiwe1vZIRnmRHvw2/+tKJ2qeh9/OF7R+G4xZUtllFOT70mrWmhagvGMsx78OiRib 9B7nWBsVRl5fW6CFCHGGcFvZJdJioyLCGUNOQlemVQtjDCrYb2Lu6cxu7K6FFlMZllIH WseKIife7MAfkxD2q4D1Ps8jSaIgq5z5Gwwdkg0Qv/9s4EjEHgqWiP/fliVCW33kYzNG BAcpY59qJNNINjo00FXm4ad7B048vZujL1l87V0j8U8rbliGikq9NBQWjjg18XjyLQQO wCuWnLEs/4wAtlCdv1KRNZR+ZJ/Uv/BLrmta9QYYbAWXhnav3nHgBVJ/opD9uF1B9ANH lRpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=On+rWh8n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si11924398pge.137.2018.01.31.19.05.48; Wed, 31 Jan 2018 19:05:50 -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 header.s=google header.b=On+rWh8n; 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 S1751402AbeBADFr (ORCPT + 6 others); Wed, 31 Jan 2018 22:05:47 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:45807 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbeBADFr (ORCPT ); Wed, 31 Jan 2018 22:05:47 -0500 Received: by mail-pl0-f66.google.com with SMTP id p5so2408306plo.12 for ; Wed, 31 Jan 2018 19:05:47 -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=On+rWh8n6xnp11w+rObdUCxmb8GqHbqoVMfYj/Fz6160/NWRr8tZBkDaBzQQ7udqpj GzFqgbqyASS55U30PiChtcziGSDqjvSONfaxF1RLaJXRjKK6FxNBXDU2IFZGzw0po2ER QfzJJlknkyb/2gvVvaa1idz+Pv9HhccabUmtw= 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=jR5YL29ppvmrE5OpuwmbQnQSOUNqh8s9HU1B/gln1Lt7US1qHJ63iiPJfDlGLvCMkH djKOKu3lbUYO74EBURgZzXd8yWm5QJvxiw4+cYe7VgG9udlvcc4Q53NqzTkBJBd8BYVY F70GPya6pm7CrI2saA5MCo7a0Uicg5u2Ofrn29pvAQ/14MMi26Vh6JppVcu551KPNoDb Ydbdbg/ahLYxPGncrsmLDTJODikSdOzCgTy6PI2U93E0amFOrx9CaxXhKwgEMQ5vL0w1 WXfI2fP4Rj2b5mgRBKTZFNfflI/m0yEXbdsQL+h+kwuR8OMaF2zj8lb+Yvcg+B0fmYsA xfzw== X-Gm-Message-State: AKwxyteWIUodTx0Pl5Vnr47DyRNPufQnEIJYw6AsDwhtuXhTGfTv1/3/ wDp2PtgUvPttMP6Y1qxwKqO/lw== X-Received: by 2002:a17:902:4083:: with SMTP id c3-v6mr27058170pld.90.1517454346591; Wed, 31 Jan 2018 19:05:46 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id n76sm52102013pfh.95.2018.01.31.19.05.40 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jan 2018 19:05:43 -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 Subject: [PATCH v2 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation Date: Thu, 1 Feb 2018 11:04:31 +0800 Message-Id: <2834309f69a1ec37b84a33f153a3d0b90336bcc6.1517453568.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Rob Herring 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 = ; + };