Received: by 10.223.176.5 with SMTP id f5csp1610611wra; Thu, 8 Feb 2018 00:03:42 -0800 (PST) X-Google-Smtp-Source: AH8x226ufXyWfpbQMpU0agvmxpwayss9jFrlwNIwJqe8OImtLUiSmEY2dTgQ4CGOfZDfEKTvea6S X-Received: by 10.99.104.131 with SMTP id d125mr7321711pgc.125.1518077022009; Thu, 08 Feb 2018 00:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518077021; cv=none; d=google.com; s=arc-20160816; b=nRGjUe2o9i1615/FwfdrSqkfhSpzLWzqAwuVCykOPOUNuiFY4LGaq9suRY61nzNRL6 sQvsU8CMF+O1LhilYmli92L7jMLQKIRjcNgmYJ1WIpPi+AeK+8PFi61D0ONEqmJ2GtCz yxxI7APZtuOpaZXy0DMLl7UyOgxJv2nE7vGD4sXKt4URmW25FmI7RJDlMee7IsEJkY76 Bt0lRScbCrIDbbphLFy4vPksB9eZj/cVecMmClWXyCRdbjdNKRHw8S5Qy84RcXtbmkho fc+b60ZONYz73jUivl5sD0jPQv6Zr9cOnBIE138e+XI3jO05nlVEgpct9kg9YPph8GtP Raug== 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=kbjuYO3tEDBWwTIaqQoLiptgd0PYHUDE6C3cCgyqhEU=; b=p4tEcKrrL/3cYvCQw+PTzVrVHyJ71M72W6gCnoxdD+NJeBfZggVncndNELcHiEFOrH wkNU31j2lt0uBWpn9bN8lWM9sBfLSPDuJVVKgSOIJIgpiDotXrVu7QP2dHJbCOJ8eMtp b1o2N/tyb4DXQNMhq0z9K5CEmNU2Hay+I/fPdgKiF9rOLsGDvQXsVWetLGhZrOd6ODoc F6Nbribi624C2mSFl5Fp8oXRW/QPiM4kkMZLe9PN7lWRkjR5kXAO/ikluNjY/NnzrNoc CjbCPjhZIh0L4Yrwpq5epQ9vCKWL77OMBaB81R0KaY7Ijfl6KulV8gmuQCu8Z74IAaAa 6M4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xp+ltz8t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 u190si2107280pgc.60.2018.02.08.00.03.28; Thu, 08 Feb 2018 00:03:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xp+ltz8t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750982AbeBHICN (ORCPT + 99 others); Thu, 8 Feb 2018 03:02:13 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:41616 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbeBHICL (ORCPT ); Thu, 8 Feb 2018 03:02:11 -0500 Received: by mail-pg0-f65.google.com with SMTP id t4so305251pgp.8 for ; Thu, 08 Feb 2018 00:02:11 -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=kbjuYO3tEDBWwTIaqQoLiptgd0PYHUDE6C3cCgyqhEU=; b=Xp+ltz8t3TwTXkHNx09p3mrVpMwLSDFSLojlj4Jehk0d4AIe1RrM3GibgisPrY7Tu9 9ONrG7W7ab4zHm6TH/n8dc497Hdkg4z7RLjmlRRREEr6e07YuDiGPXAv8tpBkbwK3Ojm PxQRLnn9hPKvGjl5ehec5qVyLQ54YJmDxQFS0= 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=kbjuYO3tEDBWwTIaqQoLiptgd0PYHUDE6C3cCgyqhEU=; b=gPK6AV2O8PZn0zAW6uc+i4W7EvvZSyIZIVxxtdq5YMWJDUH/7bJg5XVBeJCBKs6700 rbqTKia4uUbjN0wR4MasOf/jTyUrYYwvaFE9H8uulV/7+lRuNHrPmUG5KpjhWpr93X9s JDr0P0ytxgPHi6McBxp6HKdLlQ26w4Kcw+tKgfX7uWSZ/COtdKz//8yGdfn2sPegVkb5 6oKY0/wGvMVH6EM2KwtM2j17VRitlFtN8ecdAV2Pcd4WyZgiSZEs7ryzJ4R4Jcq+pIzu 0M4EkYKvj7X26zPXFFwhC8jR7+0pIQEmcK2fjIQt9aCo6MS0f5uLlh1+sz5l/OGmhBgU 3YtA== X-Gm-Message-State: APf1xPBhwO7kfMjsZ+ABXmfk+HBIjcSti98ZE50kbEYkEkf3o81qTv1A fF5RXKVYDssnPnuviGxx6iws7g== X-Received: by 10.99.113.11 with SMTP id m11mr7231601pgc.57.1518076931171; Thu, 08 Feb 2018 00:02:11 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e189sm8136726pfa.4.2018.02.08.00.02.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Feb 2018 00:02:10 -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 1/2] dt-bindings: gpio: Add Spreadtrum EIC controller documentation Date: Thu, 8 Feb 2018 16:01:42 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the device tree bindings for the Spreadtrum EIC controller. The EIC can be recognized as one special type of GPIO, which can only be used as input. Signed-off-by: Baolin Wang --- .../devicetree/bindings/gpio/gpio-eic-sprd.txt | 51 ++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-eic-sprd.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-eic-sprd.txt b/Documentation/devicetree/bindings/gpio/gpio-eic-sprd.txt new file mode 100644 index 0000000..34f194f --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-eic-sprd.txt @@ -0,0 +1,51 @@ +Spreadtrum EIC controller bindings + +The EIC is the abbreviation of external interrupt controller, which +is only can be used as input mode. The EIC controller includes 4 +sub-modules: EIC-Debounce, EIC-Latch, EIC-Async, EIC-Sync. + +The EIC-debounce sub-module provides up to 8 source input signal +connection. A debounce machanism is used to capture input signal's +stable status (ms grade) and a single-trigger mechanism is introduced +into this sub-module to enhance the input event detection reliability. +In addition, this sub-module's clock can be shut-off automatically to +reduce power dissipation. The debounce range is from 1ms to 4s with +the step of 1ms. If the input signal is shorter than 1ms, it will be +omitted as this sub-module. + +The EIC-latch sub-module is used to latch some special input signal +and send interrupts to MCU core, and it can provide up to 8 latch +source input signal connection. + +The EIC-async sub-module uses 32k clock to capture short signal (us +grade) to generate interrupt to MCU by level or edge trigger. + +The EIC-sync is similar with GPIO's input function. + +Required properties: +- compatible: Should be one of the following: + "sprd,sc9860-eic-debounce", + "sprd,sc9860-eic-latch", + "sprd,sc9860-eic-async", + "sprd,sc9860-eic-sync", + "sprd,sc27xx-eic-debounce". +- 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: + eic_debounce: eic@40210000 { + compatible = "sprd,sc9860-eic-debounce"; + reg = <0 0x40210000 0 0x80>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + }; -- 1.7.9.5