Received: by 10.223.185.116 with SMTP id b49csp17126wrg; Tue, 13 Feb 2018 15:40:42 -0800 (PST) X-Google-Smtp-Source: AH8x224qc/kkgKEhhbEpR1NJ7dJox45uLmFnbwZzpEmke7KvHC3PNc5rT5L5DHpB0SR/3rk1rum+ X-Received: by 2002:a17:902:5982:: with SMTP id p2-v6mr2469964pli.289.1518565242347; Tue, 13 Feb 2018 15:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518565242; cv=none; d=google.com; s=arc-20160816; b=R/z2Tkjxjf86sVyQtcC4bAcuWC+1sJTMHppy7eZrDeaXn8XPqH+bbNwkT9n7QQ86Ih EtPR1aEdUe1QE6fFLIwN7s0vLaISz38zO8WpEVGYDDE0PNf/bLzLuyGBpk7k4Hz0drXq sy5JBZiGYNlwBluUC2DsUgIm9HScwAmWKWljdco6u0H+Kw2103fRGCUbbH5P4Pq3ryy3 nRvOodDiA3YM36A5BQHz6RlWOuhuto6wBPONxcG6UJ5r1ZUM00rMxUgPSj+Tk67s0J5m d7w0BrOYS+DT9UtNoKfuKQ0bV9H4cQ/FbjFL8+0S35KYx1u1mefOFf/M53M/N9gbqWSU J2OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=lZSAD+cFzNE2qSdoON03z9jgN5sSOx9jXzuWZ/iCPzg=; b=d/ltwM28SVp964S6cI0mp/dUjgRi8kaAjC0293vpnzy2F//WUWVI8wY4E/Elz2wXiK nvBDZBCTBZqyHEEHgCbBQzzdTltK3aglQVY54ZXvD8vrnXbuKn+QomUmXhjqw9Ej6UHt DFNXVVGKoppRtB2aZdTs/ByE2MhYPi1/x9WD9fXj8mIt6WxXNHxIn0oUd/r9iK8aOpFr IzWT3ITxPEHnenjuD9eQ0yBEa/iM57yzyWLxOF+1Ic+qWkJ2Cz1aIC0b4hMWo42ERkbb ARhnGM12lyPIBPJqq4MJPxODxvl93rvE/IfRsPJUGIUQj3BWT24VkOEHhilm2kQk+3Ce qzsA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si5183427pgv.473.2018.02.13.15.40.27; Tue, 13 Feb 2018 15:40:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966122AbeBMXjt (ORCPT + 99 others); Tue, 13 Feb 2018 18:39:49 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:33370 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966040AbeBMXjq (ORCPT ); Tue, 13 Feb 2018 18:39:46 -0500 Received: by mail-ot0-f196.google.com with SMTP id q9so18879028oti.0; Tue, 13 Feb 2018 15:39:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lZSAD+cFzNE2qSdoON03z9jgN5sSOx9jXzuWZ/iCPzg=; b=TaiKn++L6ESObVtLLm2dsGhgFkV+JU28H5b2ky1J4pVGIpdvfeip8ByIx93sqecDr1 5UDFGPXBXBnhhjONt2178/tqGIi+Z0bSmqu0LYzuo6gg6Q55ZVzH6voj1qWJVpvMfzjm xOV7WT02KtYVY6v0ZryYlw0wiYN0rwqzjJe93+/fIdzWvJSQNmbl//65fEfOk6GjvNU/ 9S0kATEZbeXSz2lhzCuA89w1stdmkxQWHEIx9sK/BpVkYHMiP1USQqBE3z3IiynUURlM InYaf4fQbx/LRKTO83+LssJY8ZX6yh/GVzK9a/I5kuqCwKMxzZ4GXe8UL9i0/S6rL0Tl KIKQ== X-Gm-Message-State: APf1xPAwjKE9GEr30ZdWiID9lRBj4WPhFuSdaKzyMzlVVnyENhqm+4dU R5qL+IaeD9XB2tJXsbmXLNNXstk= X-Received: by 10.157.52.98 with SMTP id v89mr1980145otb.169.1518565186139; Tue, 13 Feb 2018 15:39:46 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id h186sm2552579oif.30.2018.02.13.15.39.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Feb 2018 15:39:45 -0800 (PST) Date: Tue, 13 Feb 2018 17:39:45 -0600 From: Rob Herring To: Baolin Wang Cc: linus.walleij@linaro.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, broonie@kernel.org, andy.shevchenko@gmail.com Subject: Re: [PATCH 1/2] dt-bindings: gpio: Add Spreadtrum EIC controller documentation Message-ID: <20180213233945.55mfqpydfxmimak2@rob-hp-laptop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 04:01:42PM +0800, 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, > 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. Why a gpio controller? Do you read the input pin state? > +- #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 { interrupt-controller@... Or (if this remains a gpio controller) gpio@... > + compatible = "sprd,sc9860-eic-debounce"; > + reg = <0 0x40210000 0 0x80>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = ; The example doesn't seem to match your description of the block or blocks. You talk about a bunch of sub modules and then there's just this one node? > + }; > -- > 1.7.9.5 >