From patchwork Tue Jan 30 12:07:42 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: 126217 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp3300544ljd; Tue, 30 Jan 2018 04:09:01 -0800 (PST) X-Google-Smtp-Source: AH8x226ip3lTczo6qJcLErlM/XLkJrHBcFQRa/mXt+UPSwsjQOGjkqyLmGI4YSpTq6V66AQY/GLc X-Received: by 10.98.242.2 with SMTP id m2mr30680410pfh.102.1517314141438; Tue, 30 Jan 2018 04:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517314141; cv=none; d=google.com; s=arc-20160816; b=rmyX8z9nNhOaOduJktbTDztt5jVQK6uzoMv4DIikjlqbt0T3IqOdpKCMBegZ9qaTrU YRL/RIQNuQydShGL2tTmYzFw/4xz+TmuVbj5lOT/qEkrP/TOSLiiOWWOEbsyGZAah9NI lh3/MUlGWFK6BEO2kz0kwftJpu8OkmF/k9cFv4cZi7E4or0cnE8pP+w1DSRn48o/yTBk Mg9QrE/JSm6jo2tJTZsSFFNVXlx8pBy7r5K3b5ZrrR4IwU4vwcqvf+Bm8PUqBt/KGqCe ofO+WzhNlLRyZ9KQZHrWt/7JFSffzMSDXqZ82eTvXXZDvAPHOi8n9fliAfKFZkQrpogj r9Xw== 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=MJbec79m7RGDG5cB4OoY6gWoIWxfDLn972BtMdWwpO4=; b=bft5MFVp0MqFqOQGZl+dw0cheAQz7OFjy2WaF4LyOms0BY3YTzwXM+z9eAcnm2ZvKM 7zf0QIifRsB1QCZlgkU9o+5KfOJ4KlYDukX3jYKhMolKy9a9hW23guYsFhfd42yLapWj 8Er3SoSq0mccdraOYU+/v9rECvlVmpQNMv3tflQ2J0YKvPvHikb1knO24ijiC0yHF9HP 62yI3WIaOfk4y70XgMm1q8Ts5Id9yD9H+9mfqzpZsNkRlXUF5IucdPgpXl3hAqvaf1si GXyVfsnSG9ZmfcuxEunPBPkUxHX/1OIoVePj++jpw7qqDeQKdJaTEkM5wEnqd3Y23SKV vssQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JSIhNGKF; 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 bg5-v6si2125659plb.822.2018.01.30.04.09.00; Tue, 30 Jan 2018 04:09:01 -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=JSIhNGKF; 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 S1751798AbeA3MI7 (ORCPT + 6 others); Tue, 30 Jan 2018 07:08:59 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:45793 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbeA3MI5 (ORCPT ); Tue, 30 Jan 2018 07:08:57 -0500 Received: by mail-pf0-f193.google.com with SMTP id a88so8705538pfe.12 for ; Tue, 30 Jan 2018 04:08:56 -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=Fw+oTKOcD9WPc+Cak6Evz27nASVE/9LUbVzUjk3BZCU=; b=JSIhNGKF/rZQjpkDSkPKuMcbTXZ+9V2D4ufiVuyF0O5gE2TRaWyc8ROlX7EWW8bJu0 oNrLEhWQsQr6n291W6wSMum7FvHJF8C1aWJLMCy/V7vpinkXo0T41LqEp/zDwxUW9O46 84QDxpjuc+ErC8H6L0d4OZOMbBgyaBbZGK9BY= 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=Fw+oTKOcD9WPc+Cak6Evz27nASVE/9LUbVzUjk3BZCU=; b=FwxDjWTjEi/ecEKHWNdmw847xWOJ0FYv8O5XsSKQGz09Tg5ngKdepwDZY3bSKSYDPk m4/QnMv06nb+2Of9lZ8nw50oCtiK1fi5EtxuCRzY2opstsGd+lQQos/BCJgycyXzJbwd OscPGJ4ksFpUCMJyspH706xJmoSR2rHbx1koA12TcT/VX/R0Bg8GPg2AlAtiL52faqES v0FpVv8WC6Bj2hJ5NoerM429frXuOWrPH1La7tOQjvn4E0Au3Y2aOnmfvaigX1MFGhtu dL/MOQoHxv5Zvv8MEz44UmKYcdfvXwaLE45AGVHuZYapb+SV5psSJ87K0AoeS6oR+hxS 29yg== X-Gm-Message-State: AKwxyte9bCccrGKnaCBJKJXqHOvlObVZUHFbHuDzuZX48QVuGaJ3bTza 5KgrM87yk7ENd6ohUTjIhBzxpA== X-Received: by 10.98.59.80 with SMTP id i77mr30418301pfa.146.1517314136463; Tue, 30 Jan 2018 04:08:56 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id y1sm22961534pge.78.2018.01.30.04.08.53 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jan 2018 04:08:55 -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 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation Date: Tue, 30 Jan 2018 20:07:42 +0800 Message-Id: <2834309f69a1ec37b84a33f153a3d0b90336bcc6.1517313987.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 --- .../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 = ; + };