From patchwork Fri Feb 23 04:44:38 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: 129327 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp181031lja; Thu, 22 Feb 2018 20:45:08 -0800 (PST) X-Google-Smtp-Source: AH8x225I5Eq4Pz/yk/0Nz1ydAM+KtJmFWY6AwpZ0nxxWFEaoXsY49AIa9i+wyLEj4yNKnNyih1ze X-Received: by 2002:a17:902:44:: with SMTP id 62-v6mr455752pla.193.1519361108697; Thu, 22 Feb 2018 20:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519361108; cv=none; d=google.com; s=arc-20160816; b=jVrlbJC82rNr/nrFnqIP6RcOhfNAey9468krWFESKbUX8e3rYdQm00iJalr9+aQo3C WGsk+U+Dcdy01k/xVS/hlV4LM79frA6tBtsBkSQIurdR39W3yt57mX//fITNl/AJIjUh YENiMW+1MQPDyaJ88rVkE/ziR1fJJsRvzR5pM/DjQREX1bEBcHdRfj8WCeT6SDG5ppzD aIVXW1rHOmUh0TB5UvLv7zHOsM23F3tf3DLA+Mbq71dRpoTkKJMWg4LQuO3sJnaX/sa/ ZmAZ+0ZDVOuOxh95MnHpXGCO2jXu6/xzpDOwCyayDeAQksU8sVewis2izRERcrEkK6qk djIg== 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=SCKXAC9deop6fkKl5ZUuRz1JZ5I6MKnmk+rvRjcNfLU=; b=wWj3u8X+E06j8qNr3JBZM8/ltNq+3IvwLbaz7Oj9LglKxxHyz1bONfxOI+A7QX+Xat 0P0HmPjUKuD6YmQeKjb/woeuWXVwJFED2NgIFcn1H/MMaPx2Ww0XJ2wvI48VPW00SsRZ eZcIunHlwf36d+lM4Rukwi9EmYnCgBzR0jfcTNCy4YmnF3w7/9kY1izVzZgDOG92xZeq SczPJD9zem3rBlD+59GeleCwzweHuZkZsAzE/ufFMlREV0NFw/FK6Yf+AUB0Qf+NADvX FXtot3Xilvn2O5688+XRSAMIv4fDwGep6Gx5N1SiyCU6lobbnVbsrS12Kyxfe16cTPZC 7EUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ie+8UxDX; 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 l184si1003459pge.224.2018.02.22.20.45.08; Thu, 22 Feb 2018 20:45:08 -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=ie+8UxDX; 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 S1751404AbeBWEpH (ORCPT + 5 others); Thu, 22 Feb 2018 23:45:07 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:43661 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbeBWEpG (ORCPT ); Thu, 22 Feb 2018 23:45:06 -0500 Received: by mail-pl0-f66.google.com with SMTP id f23so4265528plr.10 for ; Thu, 22 Feb 2018 20:45:06 -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=hWyJ19OJdJnzZ7DW8l0XUW8A+6EqRn4bkrKbNat/yPk=; b=ie+8UxDXLnzeny/fPrTQGNdgDGiRLjUaT2oZF68NWt7JiFWmb/5+p+1xnTVK/+LIAc NGiwzYJhS48E76dxU4QLa/oky+LwurHJYtp270AndVcwAiaMaelv4K4gQuk2Cs0DGOql wkWFDYkpf3af54Td9yXNzWvSGxunFjK5zvWi8= 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=hWyJ19OJdJnzZ7DW8l0XUW8A+6EqRn4bkrKbNat/yPk=; b=PSWRmDoEq9abDQfFNgVPrmvWIPvRRlLuRhIre41TxAOisMywAthg5o6sWcDjpTZMLG OS2qy1J5/dzA+wNq/eaxESLVL/MvVX18O7x80kKSpxBifxSlgwmi40+ab50TML5fLqT6 kLElA/8e7iEFck0oWJu+03c+/rFz+PmGXQMrFuUR4AXWf/rSEBdSPGkRFUCRPTWdVqZ7 +co7XB3kHI7VInvAow4UE69bktuhz47lZFt/jhMEXvTmKQcBetmRdyysHyIy624+LWj7 Sk/fK8gjNmsWjqcuw7UJOtKqfS+p5R/b9aCeAebHZTWz11mY3EJK5k8c9h+tVQRCWWun 1g/g== X-Gm-Message-State: APf1xPDJMQyF01rWd7i9CPTbFBzytqhPzfn4kAg6RkRF/5zXnR/TusF4 35PkQdqBOfWNKsI6+hdc+HLONQ== X-Received: by 2002:a17:902:402:: with SMTP id 2-v6mr451437ple.353.1519361106145; Thu, 22 Feb 2018 20:45:06 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t8sm2008262pgr.21.2018.02.22.20.45.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Feb 2018 20:45:04 -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 v4 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation Date: Fri, 23 Feb 2018 12:44:38 +0800 Message-Id: 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 Acked-by: Rob Herring --- Changes since v3: - Add acked tag from Rob. Changes since v2: - No updates. 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 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 = ; + };