From patchwork Sat Feb 24 02:07:17 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: 129502 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1259508lja; Fri, 23 Feb 2018 18:08:39 -0800 (PST) X-Google-Smtp-Source: AH8x225OFPVca0q52u0W5O0pVEzyKPLOSMi0b1+gPu2PkD0e3HFqFPCzjP2sNND/BdqraQZGBvNM X-Received: by 2002:a17:902:20c2:: with SMTP id v2-v6mr2377988plg.82.1519438119535; Fri, 23 Feb 2018 18:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519438119; cv=none; d=google.com; s=arc-20160816; b=YcsRk8R0VYNUO+32d1WGAyxAzNOA1CsNIEgm1W7Yr9MV7Tjm8rTe+bXqb8A6KUmqIU kXtzrIpsm8dQYDtn+JIgbpSplX8E6T/6jP8VOn6+AcXVPJJJrecbprr+mHjcwnupIdJc znP9dzFJQxUwmLOnC/KzFR80oJ97nVTaOq3UbpLIoOMIAocwOYepXpclJKihbqtA9gex 3Fq6DMFejcH4H3tAuNaozhaEPrcpF2+195Wvn8L7ed5Mxo7b5cUFJjGWYcDGX8BbdQso bBIPMS3Pu2TN5Ga1ke4Oxz4hDnhbl2yyMkUs3QBiJyUIvSiHLZV9wyrmurWIGkzKTkMW J9sQ== 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=RP0bmg1KjwuDv/SylEoyhCRxRQ7uJD4fpkCqEqAyZ64=; b=FweHpZa3dIv+1QPKvqzD/BcTEm8vGZDMKN6CQcbvPJp5i1/ygU8UhLLNGirLessU5A U6FpUXDn6ceLIuz7uFMnwkldb+9pj8UIRl4XYN2H6GaV6HNrnfheuSWgqOlHz0Q8S1xQ bchCfqLU5MrCf0ZOR6RMdxpKT0vUoqyI8FAjKBO3U2AnF3R5squpjCNIcYho24UWPF2q d4x4oFp0aCKDQBDcV/YRdPj8xtNLTGj2cPB+qsiLmI1gjvj6tUp8QLtDX0Km9kmIC4bp wZcx1PGPK1W9Biw6d5ReFCDhNQCERQcHATReX4//p306IwWO+wr/fPBtrvC//QsJDD5L pIzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JlTTgWvg; 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 y184si2284676pgd.291.2018.02.23.18.08.39; Fri, 23 Feb 2018 18:08:39 -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=JlTTgWvg; 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 S1752433AbeBXCIi (ORCPT + 5 others); Fri, 23 Feb 2018 21:08:38 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:38594 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbeBXCIh (ORCPT ); Fri, 23 Feb 2018 21:08:37 -0500 Received: by mail-pf0-f193.google.com with SMTP id d26so4248500pfn.5 for ; Fri, 23 Feb 2018 18:08:37 -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=1Asrzb5W3BEITyhlYicYTE0dBU7g+02XcNACWVbfD60=; b=JlTTgWvgpPMqMuugmNdFyvkjmjsoCB4I0kkON41fcveci6AVc12G3BQZFmSKYd0Pmx lZ0rSdS1wbtIfhiY+v25y56xTJjQeegQasMorOKKi4bYqwZgkg1DpV84phhGD1hmV5oK JeDJcs68XIiMGDYh1nNyAQv5fs1ZPQzzR8ISk= 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=1Asrzb5W3BEITyhlYicYTE0dBU7g+02XcNACWVbfD60=; b=asKJDYAfqEFjamJtvAS/aE+UAHFPJq8sdmp0YP2r1G9FhVGpDYjgbtBilNbRxjrT8G LgNsRTz+oiuIzAm8JlKmebThqwf8zYA1uBfu4h4rpUAHaX7ZJ0eqzgHYOAIdByztKWzs GDphW55gYGirxPjr7WmY6gW65hsHphDeRrD6uL3fNc3wo4msRrTFJXo+y5iqCBmoAAzm UoDXzHsa2gigeokyRrqaY6MBfBuQ2hPtqDAwv5yDatvSjRcSTIB4adPvffbvxuliXWjx V530Q/5tkhUTcm7J088Ta01O9LWtulnOBC4Yt1cHf7oF6qRxrpm9xfjavYWd9kqnLYLn G7lw== X-Gm-Message-State: APf1xPD5J0ICIxCvpjFzQQdu6ERhxrnQ/avlCeRsm7cl6CMU1ADO9+sA 6FGbpQBjGvHrnnf23DvWsJYjdg== X-Received: by 10.98.73.140 with SMTP id r12mr3582224pfi.229.1519438117250; Fri, 23 Feb 2018 18:08:37 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id k1sm7387226pfj.161.2018.02.23.18.08.33 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Feb 2018 18:08:36 -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 v5 1/2] dt-bindings: gpio: Add Spreadtrum GPIO controller documentation Date: Sat, 24 Feb 2018 10:07:17 +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 v4: - No updates. 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 = ; + };