Received: by 10.223.185.116 with SMTP id b49csp3315667wrg; Tue, 13 Feb 2018 00:30:26 -0800 (PST) X-Google-Smtp-Source: AH8x224ogboeD1FSK/8Ayk1ghM7D1S0uchKGGlNnBeHgpgaQmZliI1HSZy8bPkO2V3yryDNXHQdy X-Received: by 2002:a17:902:848c:: with SMTP id c12-v6mr402306plo.329.1518510626663; Tue, 13 Feb 2018 00:30:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518510626; cv=none; d=google.com; s=arc-20160816; b=0NXpwNrlAZn5i/+RNc2FZGbbr+9l3TGhN1JxBDkHOWXBiVQiunc8I2L1erjW7J7LrT htoYj/f3uu0IdQeRs/uz8b1LtAOzjWRZiWCp38czNaC47DgTNFS5yDrm4YFZKG1PD4yi JfARwcaaaUlnctHojTaFyFp8n4N5TCsjm6EA0VruTidjTAY5xdpf6qVhC1dLN7bxXUwC vruFLPEkuagXZfZ0OnMJU3GWxUUlicghOpK43M3BD8izyhVnvZbYUlNH5GPs0kLfwoF9 i5xLPMw5a2l0582HINd01DALwli0VK2x9sGY/ohrVWnlApCenOYOyUGOAkuVDfcwWvRe 6cpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=et3jsQWoY2DDHPm0MtSEGYbYklP509ThvUfBEdKr1gc=; b=FMlBp4r916V19xLLjgJBMKMncHmADsYI+B3I2VpFciJ3yKRTVQ1VRj3NO3L7LwHD/F xEZUYLCTFwUAy83RHL7smHGwOSlonWG+tMtTju2qr5GWxWoaIyoB361J7sW1JaGLU91Y OwnwdST6mOkICyOM3jwkKPutvQ8m1j3TV0n6aUYPZyN4XPKURLaojFAu0+JS+/mwez88 Wf8AfJbAkfMuBP21zfdE+maa2dEXGoGgIKUyLGv3bkcsYVdEn3S5DJD83HGpv9L+rRae kxLLN5HNBXbaku6mNGaj6wYNVGmuLzLVLVz1qWLRSTf+B9Dwsn9ks10EyHa4O1aObsAA JFhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwRlySpn; 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 c74si5142387pfb.306.2018.02.13.00.30.12; Tue, 13 Feb 2018 00:30:26 -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=dwRlySpn; 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 S933749AbeBMI2U (ORCPT + 99 others); Tue, 13 Feb 2018 03:28:20 -0500 Received: from mail-it0-f43.google.com ([209.85.214.43]:53461 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933584AbeBMI2S (ORCPT ); Tue, 13 Feb 2018 03:28:18 -0500 Received: by mail-it0-f43.google.com with SMTP id i144so10164225ita.3 for ; Tue, 13 Feb 2018 00:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=et3jsQWoY2DDHPm0MtSEGYbYklP509ThvUfBEdKr1gc=; b=dwRlySpn3LpshRvarhfD8IaO/1G2SXuWa6E8jeLPd3+NbkkKeING4k9eZcEPdOd9j3 fjs7BZ+mq6RZOlgJeB6KwTVv+fBkudtumKqqYkCp4SswVo6drwSyDf87MUB3/IZT/81h 1h3EMWu1np6A3PJ/c5/F6MU4j66a5quC8P+nU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=et3jsQWoY2DDHPm0MtSEGYbYklP509ThvUfBEdKr1gc=; b=TzQ+IazYhyuAb9lfBieZImhcH6bb6lZ5ESFUiyEQkWt1fvjMw4WVv+NHtSf2Rkje4K lFqVXPmLRy4+ePhNIE5rWWVxXD0VwVAeAr5hstYk/v8AO2QRJhaXGi3YvlhFuf9d9hE6 L7k7sYUtr29Wb+f+VJvq1/ca4wbZa02tw9xc86lB18grVgmyKGtmleqP6GgGPe/26XeR LqQkkco9G22q99RcTXaJgFtc9jQ35kDJ3hKcz2Z9/1rCF2c6pYc+NVUhjQpGF6jbTi4h +s0Byic0twQYcHfm9oivAOvGpJU48m6VB0AooUolQv/y7MlpD2ETCw7Pvlfia3MXJMfR Su3g== X-Gm-Message-State: APf1xPCfawV7MOaxFBqbaF/pxGgFw1ZzhsVK59MkR2zms0hibCjB+s1U jQwrN5aFfMoESbKG33++2hGChWMtWYGy+GiefeTiYw== X-Received: by 10.36.20.215 with SMTP id 206mr640860itg.101.1518510498162; Tue, 13 Feb 2018 00:28:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.102.131 with HTTP; Tue, 13 Feb 2018 00:28:17 -0800 (PST) In-Reply-To: References: From: Linus Walleij Date: Tue, 13 Feb 2018 09:28:17 +0100 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: gpio: Add Spreadtrum EIC controller documentation To: Baolin Wang Cc: Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , linux-gpio@vger.kernel.org, Mark Brown , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baolin! Thank you for your patch. On Thu, Feb 8, 2018 at 9:01 AM, Baolin Wang wrote: > This patch adds the device tree bindings for the Spreadtrum EIC > controller. The EIC can be recognized as one special type of GPIO, s/recognized as one/seen as a/g > which can only be used as input. > > Signed-off-by: Baolin Wang > +The EIC is the abbreviation of external interrupt controller, which > +is only can be used as input mode. The EIC controller includes 4 can be used only in input mode. > +sub-modules: EIC-Debounce, EIC-Latch, EIC-Async, EIC-Sync. Are they four sub-modules that are always synthesized into the silicon at the same time, or do you mean that when producing the hardware, the designer will choose one of these four types (it looks like that from the example). > + > +The EIC-debounce sub-module provides up to 8 source input signal > +connection. connections. > A debounce machanism is used to mechanism > capture input signal's capture the input signals' (note plural signals genitive) > +stable status (ms grade) is that millisecond resolution you mean? > 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 no dash in "shut off" > +reduce power dissipation. The debounce range is from 1ms to 4s with > +the step of 1ms. a step size of > If the input signal is shorter than 1ms, it will be > +omitted as this sub-module. I don't understand the last part, do you mean the signal will be ignored if it is asserted for less than 1 ms? > +The EIC-latch sub-module is used to latch some special input signal signals (plural) What is special about them? > +and send interrupts to MCU core, and it can provide up to 8 latch > +source input signal connection. connections (plural) > +The EIC-async sub-module uses 32k clock a 32kHz clock > to capture short signal to capture the short signal > +(us grade) Do you mean "microsecond granularity"? > to generate interrupt to MCU by level or edge trigger. What is MCU? I think you can just omit it, it could be integrated elsewhere. > +The EIC-sync is similar with GPIO's input function. Do you mean that the EIC-sync module is a synchronized signal input register? Please write that. > +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". So it looks like there is one at the time, so in the SC9860 all four modules exist, but at different addresses? (...) > +Example: > + eic_debounce: eic@40210000 { > + compatible = "sprd,sc9860-eic-debounce"; > + reg = <0 0x40210000 0 0x80>; So does this mean that this is a debounced-only EIC? There are latch, async and sync versions somewhere else in memory? Or there could be? And they are never say debounce and latch at the same time? Etc? Yours, Linus Walleij