Received: by 10.213.65.68 with SMTP id h4csp75946imn; Mon, 26 Mar 2018 15:32:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx487uo6C6DR96F8eGakb+z9dLZ6LQQydHkxvSkdCy1M/U1VBajzeNV4iEYN2ENNFzJQyf4Uj X-Received: by 2002:a17:902:76c4:: with SMTP id j4-v6mr1583214plt.31.1522103524984; Mon, 26 Mar 2018 15:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522103524; cv=none; d=google.com; s=arc-20160816; b=q3WcQ0RZteDH8JjIs3JUjFZtV2RArKfI9/K5NjTbYvc7DlVfTFZ2gN2+cNW6aDkhSX 2LLDrLuhoXOIUQ26pkTo0uATyUE4TPvMzLH/5hEzT0YziEk36Wchm8rq1qcbZcdIxj6E /zPczVVIBKUVwH0yVNn7a4OQlKnuBCTK+bhh4Ptzjx1W4Ax2pMfWQ0eS6DsWT6OVKBDW dmzAgoipHzg1FsQaY112rvd5JGPUdT/7GlmFmzOjhi1KA3v/bR1lDVn/MmTKIF7fuosW HSmRoabDFtHaYdCvzWRRgGWEiKS3DxtwE3jw3uAYdPpa7bIdhJQlqL5IDl3e1iyKY2BC rORw== 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=5EiZhPxr7qhTA7FzHAZl6xG0mhgUJha75PT+61dvGQI=; b=yvTvinfqncwWdkkYaa0jRlxEF0x9AoD+I3z2i6fEKIIDiwNm0Gv255kdT+hJmjYks2 nyGWOZo/rZ3ZLVilC1I/0rJiw1V4yuwqnFSx+gssniRilcrsD2Vne5Zf3fFQfRwp9B+o YIg64XUwF8eTJH9Vh3rRuuUugwri3l9lemFMi0Mw9nTITrgYHh3hN2XHBiz3weVy6IX6 F1YR/5YXKFyrIbrEexTwA2IrcitCGlfRudgC5gcez3yqH5q30wavjb9KOvagoAL+Df/w ELGKQSOSnBqtUJLJu7ytb/PpkAn8UbV7B10jdVHKu2fuamYxKxMuteZA2tCjT+zh9z9p 7tCQ== 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 f123si462654pfa.364.2018.03.26.15.31.50; Mon, 26 Mar 2018 15:32:04 -0700 (PDT) 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 S1752821AbeCZWaE (ORCPT + 99 others); Mon, 26 Mar 2018 18:30:04 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:39666 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbeCZWY3 (ORCPT ); Mon, 26 Mar 2018 18:24:29 -0400 Received: by mail-oi0-f67.google.com with SMTP id q71-v6so17490801oic.6; Mon, 26 Mar 2018 15:24:28 -0700 (PDT) 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=5EiZhPxr7qhTA7FzHAZl6xG0mhgUJha75PT+61dvGQI=; b=rp63WV0/gIhWMb7b++TD2GO3AEQk2diaxPNq28nkfHe6BsTTPLbIWpbo6Qzb2OHAwE WcyVTX2nSvlQC4ySghW9b5yHfJqHmHge/J5rfjMSPVF6E1gZKSXVc1s6AybkgbywO5Hj +6a8bOBK64xGrAAQXJcZwrGEtGrZ5+3/yQYlaNU843H86Sg5qnFxysgHxp0IJdim2HZy cQm7bZfq4v6vWHTp5k5owuyDmmYqaFAkGX1UMtQy51r3RfyDL+iidZxmXXFmOnGpMAnT Wt4QAdQzfdKQTtkk0uWn/BgMIXpZyZx0IcSpNCc8yramYQHC4s8VmaH0lr0YsB+3/ikM dU5A== X-Gm-Message-State: AElRT7EQzftH7PrPp1ZxWzphRGwq91EIJlAreNIIW0zqd8IwMYiQsfo7 WknI8umrLRO2cgVkXPef26ja3WA= X-Received: by 10.202.214.202 with SMTP id n193mr18085278oig.284.1522103068387; Mon, 26 Mar 2018 15:24:28 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id r125sm9338951oif.17.2018.03.26.15.24.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 15:24:27 -0700 (PDT) Date: Mon, 26 Mar 2018 17:24:26 -0500 From: Rob Herring To: Mark Jonas Cc: Dmitry Torokhov , Mark Rutland , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hs@denx.de, Zhu Yi Subject: Re: [PATCH] Input: add bu21029 touch driver Message-ID: <20180326222426.wbdjlyfy7yyan7fc@rob-hp-laptop> References: <1521651874-15379-1-git-send-email-mark.jonas@de.bosch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521651874-15379-1-git-send-email-mark.jonas@de.bosch.com> 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 Wed, Mar 21, 2018 at 06:04:34PM +0100, Mark Jonas wrote: > From: Zhu Yi > > Add the ROHM BU21029 resistive touch panel controller > support with i2c interface. > > Signed-off-by: Zhu Yi > Signed-off-by: Mark Jonas > Reviewed-by: Heiko Schocher > --- > .../bindings/input/touchscreen/bu21029.txt | 30 ++ > drivers/input/touchscreen/Kconfig | 12 + > drivers/input/touchscreen/Makefile | 1 + > drivers/input/touchscreen/bu21029_ts.c | 456 +++++++++++++++++++++ > 4 files changed, 499 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/bu21029.txt > create mode 100644 drivers/input/touchscreen/bu21029_ts.c > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/bu21029.txt b/Documentation/devicetree/bindings/input/touchscreen/bu21029.txt > new file mode 100644 > index 0000000..7b61602 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/bu21029.txt > @@ -0,0 +1,30 @@ > +* Rohm BU21029 Touch Screen Controller > + > +Required properties: > + - compatible : must be "rohm,bu21029" > + - reg : i2c device address of the chip What the valid value(s)? > + - interrupt-parent : the phandle for the gpio controller > + - interrupts : (gpio) interrupt to which the chip is connected > + - reset-gpios : gpio pin to reset the chip Active high or low? > + - rohm,x-plate-ohms : x-plate resistance in ohms IIRC, we have a standard touchscreen property for this? > + > +Optional properties: > + - touchscreen-max-pressure: maximum pressure value > + > +Example: > + > + &i2c1 { > + /* ... */ > + > + bu21029: bu21029@40 { > + compatible = "rohm,bu21029"; > + reg = <0x40>; > + interrupt-parent = <&gpio1>; > + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; > + rohm,x-plate-ohms = <600>; > + touchscreen-max-pressure = <4095>; > + }; > + > + /* ... */ > + };