Received: by 10.213.65.68 with SMTP id h4csp357215imn; Mon, 26 Mar 2018 23:55:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/2bKW6w0u7VKQf6UXR8ioR6UzKC66H+GJD0pqtaZfOXFcslIAXV2IV7/jYZSv7Q5Nu8Fxy X-Received: by 10.98.17.85 with SMTP id z82mr85450pfi.206.1522133756362; Mon, 26 Mar 2018 23:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522133756; cv=none; d=google.com; s=arc-20160816; b=c2Qxk1cfOTpivJYPjYwqRMWL/rrdcrBDfYre6u5kFM/QdwMBBSOsoQYAci3nNHF4Uy QGha04RQrs5cjQF/OBDZ0RDXaHy99gqxtzNkudJfdSTrkEjEUeBHIq4XsXKN9ptcuj/P hpszMrdAPWVRLRIcVgiKk/nBOswwho+Zxt5oa5vaEvQAfa0ynrGAjELVkNqIPeUswtvf PzHvd/S/+uwW0zyi7PIDlwlkOpB0gociC+U2leMZFRR9ExPlaVpg1bmkNTgSd1Tmdsrj CkPJ95tXLMsZUW5AV58SVgEjCtfEmKyEXd+7XgaDVjgcYfkmSXxUZwI/eZRoKvzvZ23U K4IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=QGY84HRrKhWih5cRatadOQFU9r/OTlXzaR3xZ9Kp4WA=; b=rf2yIvK4oXhKuGZqvxK1uynZkomGunLE30XppF14ru2MFUE92k0patjk2X64ne9E3a X6ACs8VeLJ52Oz176cVwP3piZlzeeU/4/dCyLYwKSGtaQAFnfPx8Q2YGzWXjZ8MigWfU lPOU0We3uJXWhkSbGXchwqnaqo9JTubxnThSDM5cMeN0PMmw1rUoF6vE/jRgwsILj40x ttXPTbMEca3bQlRxDhmM1J/JUMZ6n1o47z9x6SPYTxum840vSvzdnX3yjZCmTgBiMKKH xbminXnQuk4yy4oe+g7KxUKuBU+F0kwvOapEeKZqjsbvHBWoJ6VvMCn0VOp42undVjdR izXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@de.bosch.com header.s=2015-01-21 header.b=wdZI8VcQ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=de.bosch.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si433211pgu.623.2018.03.26.23.55.41; Mon, 26 Mar 2018 23:55:56 -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; dkim=fail header.i=@de.bosch.com header.s=2015-01-21 header.b=wdZI8VcQ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=de.bosch.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752278AbeC0Gwg (ORCPT + 99 others); Tue, 27 Mar 2018 02:52:36 -0400 Received: from de-out1.bosch-org.com ([139.15.230.186]:34406 "EHLO de-out1.bosch-org.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752035AbeC0Gwe (ORCPT ); Tue, 27 Mar 2018 02:52:34 -0400 Received: from fe0vm1650.rbesz01.com (lb41g3-ha-dmz-psi-sl1-mailout.fe.ssn.bosch.com [139.15.230.188]) by fe0vms0186.rbdmz01.com (Postfix) with ESMTPS id 409MC40r97z1XLGPt; Tue, 27 Mar 2018 08:52:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1522133552; bh=SYup7iQMPWgw2VqV5i30B39APODM8ha50hzMduas/II=; l=10; h=From:From:Reply-To:Sender; b=wdZI8VcQfNq2ILZ48NlI7U4rtVIyWFLHP7pfCsKY3zBa2ckt33xLRajxBz7cUYfW3 7sSBeOQXsTJLm9MoN1RNH9bFpy1vCt30TB+1Xx0px7oUgZfI2AeS6hWV9G1ZAlxOoz LzEWnAlzoBzvAEUP1El5AorEcOwOpQ6rR+2x69ZU= Received: from si0vm4642.rbesz01.com (unknown [10.58.172.176]) by fe0vm1650.rbesz01.com (Postfix) with ESMTPS id 409MC40Q4Hz1C7; Tue, 27 Mar 2018 08:52:32 +0200 (CEST) X-AuditID: 0a3aad12-eddff70000016568-4f-5ab9ea2f0f9a Received: from fe0vm1652.rbesz01.com ( [10.58.173.29]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by si0vm4642.rbesz01.com (SMG Outbound) with SMTP id 8C.7A.25960.F2AE9BA5; Tue, 27 Mar 2018 08:52:31 +0200 (CEST) Received: from FE-MBX2050.de.bosch.com (fe-mbx2050.de.bosch.com [10.3.231.60]) by fe0vm1652.rbesz01.com (Postfix) with ESMTPS id 409MC35fbzzBpBV; Tue, 27 Mar 2018 08:52:31 +0200 (CEST) Received: from FE-MBX2051.de.bosch.com (10.3.231.61) by FE-MBX2050.de.bosch.com (10.3.231.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1415.2; Tue, 27 Mar 2018 08:52:31 +0200 Received: from FE-MBX2051.de.bosch.com ([fe80::d5b5:44fa:ef15:153e]) by FE-MBX2051.de.bosch.com ([fe80::d5b5:44fa:ef15:153e%6]) with mapi id 15.01.1415.002; Tue, 27 Mar 2018 08:52:31 +0200 From: "Jonas Mark (BT-FIR/ENG1)" To: Rob Herring CC: Dmitry Torokhov , Mark Rutland , "linux-input@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hs@denx.de" , "ZHU Yi (BT-FIR/ENG1-Zhu)" , "Jonas Mark (BT-FIR/ENG1)" Subject: Re: [PATCH] Input: add bu21029 touch driver Thread-Topic: [PATCH] Input: add bu21029 touch driver Thread-Index: AdPFmBvcuWcHIO+GQ4GRxNEfUInxQQ== Date: Tue, 27 Mar 2018 06:52:31 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.19.142.147] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA22Tf0wbZRjHeXvt9SgcHu06HruhaXUuc/JzxTTDKFFZamKi/yzGJmYrctIG 2mKvkMFmXHBjP8S5DTHQYQWBJiIGbMYojI3RYbbOKEHY1prRkQgIRbShWB1D6h0Ha//wn8vz fr/P53me97k7ApNeIhSE0WyjrWZ9mQqXCCV7v03PyAr267KvX8nRfDnyk0hz/as5pHHfu49p /EsRkWZ8oBnXdNwdE2iig25xgVjb5ehCWof9plDbb58Ua12dp3Bt2PXEmyKd5IViusxYSVuz XjwoMbR2zGPlH1GHbgw78KNoMek0SiSAUsPSnQh+GkkIKdUoAE93RMgfBhHMRIfF/GERQXC0 fsO5hsDvmMA5Hqf2wgnnD2Iu3kIp4WHt5yIuCaMuYHDMeVXAGTK2yXGfHeeT8qDuWp2IjzPh 4tQX67CQ2gHH7QPr+SSVD45AaF1HVDr09IxiXIxRaeCa/VvED05B+yCvAyWH+V/XWJ1gYyU0 N77Mp2eCr+EznI93g7N1AePLp4K3aVp4FsntcVXtcYg9DrHHIS1I2InkjDG70qR+Xp2baS2i mersnMx3LSYX4t+e1I0+7ijyIIpAqmQyabpfJxXpK5kqkwflEQKVnKx+kpVSiizFVQY9Yzhg rSijGZWCRAkJCVLZI5mpKDIZGcZoMXsQEJhqC1nawXJksb6qmrZaeMyDthFCVRpZV3xEJ6VK 9Da6lKbLaeumm08QKiBDcyyYaqVL6EPvGctsm7Yqne+5Nd6JbysgEj1oD5HM9n59nuvNlOtN jLFkA3+cx6Wbagy9hd4g1hqnajEicoV7+uYWajGp0Gwx04o0MomrRXGUocL8aBrFdnL3XdaQ xxmxikHkQ+w+ZWQvd5dk9oeJzQGkW9b8tjR1Q4xBue0sQ9UQ4KixwpB/HEH32iIGv/zTI4Km lhAOt6e+T4TVsFMC9vFIMgxdOJ8CK00Nj8Gx35Yo+N1rl8LPS6syaGwbAgi3zisgWvO1Euq/ G1dC+BPHDmifDDwDvtngTjjfFtoJE55PM2D5rxsZ0NM3zX5Is51ZsHw5rIYzgRkNPJiZyofl U9GXYKR78lW4POUvhFBgoTDI7ljA7vhSjZvbsU1v+58db6ixyymOoiPZF/NWugrnxu6fNURL /Z4E3bkm4z3H06PoOddK7i3DH92LZ1qCwadIWcHB6Or+h72H04hXDhR4b97WnXTtMgoN+wa0 20jFh7L338oY2N7bNqztSxrxqsujr+2Z2OU9t3LY2TCmSQl8885JdfoHV7f+u5/JOzFb31f7 p+rH0J1R5QOVkDHoc57FrIz+P0B+XGHJBAAA Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rob, > > +* Rohm BU21029 Touch Screen Controller > > + > > +Required properties: > > + - compatible : must be "rohm,bu21029" > > + - reg : i2c device address of the chip >=20 > What the valid value(s)? The chip itself can be wired to 0x40 or 0x41. The driver can work with any valid I2C address. Is this what you are looking for? - reg : i2c device address of the chip (0x40 or 0x41) > > + - interrupt-parent : the phandle for the gpio controller > > + - interrupts : (gpio) interrupt to which the chip is con= nected > > + - reset-gpios : gpio pin to reset the chip >=20 > Active high or low? The chip itself needs an active low reset. But depending on whether there is an inverter between the touch screen controller and the CPU or not, the CPU's GPIO might need to be active high or active low. This shall be configured by the polarity given in the device tree. The driver uses this information to drive the reset appropriately. Are you looking for documenting the required polarity of the touch controller itself? - reset-gpios : gpio pin to reset the chip (active low) > > +Example: > > + > > + &i2c1 { > > + /* ... */ > > + > > + bu21029: bu21029@40 { > > + compatible =3D "rohm,bu21029"; > > + reg =3D <0x40>; > > + interrupt-parent =3D <&gpio1>; > > + interrupts =3D <4 IRQ_TYPE_EDGE_FALLING>; > > + reset-gpios =3D <&gpio6 16 GPIO_ACTIVE_LOW>; > > + rohm,x-plate-ohms =3D <600>; > > + touchscreen-max-pressure =3D <4095>; > > + }; > > + > > + /* ... */ > > + }; Greetings, Mark Jonas Building Technologies, Panel Software Fire (BT-FIR/ENG1)=20 Bosch Sicherheitssysteme GmbH | Postfach 11 11 | 85626 Grasbrunn | GERMANY = | www.boschsecurity.com Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 23118=20 Aufsichtsratsvorsitzender: Stefan Hartung; Gesch=E4ftsf=FChrung: Gert van I= peren, Andreas Bartz, Thomas Quante, Bernhard Schuster