Received: by 10.223.164.202 with SMTP id h10csp1332391wrb; Wed, 15 Nov 2017 18:02:59 -0800 (PST) X-Google-Smtp-Source: AGs4zMY6OxkocZKlRynt5mv0qUAR/N85xD32QPRBRMRAewWmsLJeBoI4WbSg6ACBUdjlGrbZFiTv X-Received: by 10.98.29.83 with SMTP id d80mr94714pfd.156.1510797778966; Wed, 15 Nov 2017 18:02:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510797778; cv=none; d=google.com; s=arc-20160816; b=UKm7trIN5ar9FCCD2w6IfqjD/Mj+XyY0q+yTjFnvwksTBwt7htsTnIZQAAP8FGeqKj mLy7tQaBI3SjgaHtujwwZtMGhpAx/2G8C70kwiW/3NU44kDtpoJyMMZSn7CqRniySvbM i5gO6uVF62rr4Rh50e18UIa2f0bWt8XcNTbiQkFk1Pi2G5n2QyfPE91cQZX+XW+Q6I5J aHaxKCZd0TwhEfI5Y1dVcPZzhQGpWtvtP0UrMnazOHeVB76GsfqseVZBMM91VKNZvseG zgOYdyV62+zjDsIqFcwWKhsvoEvZVYI+gWlX8X4fZLAayxmLdJSD6KDRb70Uh0xa3zjo DWtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=eP4hedIqPfv2fIsW4fu23xEdUrF3gkyM5x5eb3KmLkw=; b=IFlIawdL0LzhyzbS1diGkhL6wMwI3HvqqJKWvhYtXkP49Ez/WTIpdlTWtEJ6qCYqKf tDxysQ5mrQKh9wriKFzx55oM7zRbThWs/5Rt49yC2zgkcP3/FbdNyzgvMB0u2blgBul7 SgXeZdg2l7ms94rl59pQDUOCxdiyxAmuVXKXZKycMCPquPJSLubMdQlrYmL4H3LhDg7a EyOiaeVWbIt/f16pzxTxNMj5GrUr04s5Hj79F9laSeK7gzzNzZj3w+U0nydNB7ofBBUx iqWIKT2dz1K9bm0uL+zrfNmkDQ0fNBU8uEIh6/O9BGV9eUSkDYRbwYHPGpyz3HIw4ru8 1/HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=r3FxqXcA; 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 y73si323plh.706.2017.11.15.18.02.46; Wed, 15 Nov 2017 18:02:58 -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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=r3FxqXcA; 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 S1758504AbdKOW3J (ORCPT + 89 others); Wed, 15 Nov 2017 17:29:09 -0500 Received: from mail.micronovasrl.com ([212.103.203.10]:49386 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757211AbdKOW3D (ORCPT ); Wed, 15 Nov 2017 17:29:03 -0500 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 590E2B004BA for ; Wed, 15 Nov 2017 23:29:02 +0100 (CET) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:references:to:from:from:subject:subject; s=dkim; t= 1510784941; x=1511648942; bh=mrHybw7DA0xELlS4WeQmQ1BDB21PHtAIVKG QPwr9l1w=; b=r3FxqXcA0So6ajrZVOMG5FtVaK2C771QYqwl2gt+JeAwciaJNfb jBGQ1fKwubBBouHOPsMuLfefyQ4aBycO3X05XSLw03hs/9jWs+jM+X2WiZt06ZfQ TQPKLGH2Psdu3dd0quGKwfz6u4HQiXGpudQ4vmN+vhwWjg1hgZMWR4zk= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VC185a05SlGh for ; Wed, 15 Nov 2017 23:29:01 +0100 (CET) Received: from [192.168.123.48] (unknown [192.168.123.48]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 21749B00365; Wed, 15 Nov 2017 23:29:01 +0100 (CET) Subject: Re: edt-ft5x06 question From: Giulio Benetti To: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, rydberg@bitmath.org, linux@roeck-us.net, stefan.schoefegger@ginzinger.com, luca@lucaceresoli.net, simon.budig@kernelconcepts.de, martink@posteo.de, a.mathur@samsung.com References: <49b16b2c-772d-b9d6-993a-063c41e46200@micronovasrl.com> Message-ID: Date: Wed, 15 Nov 2017 23:29:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <49b16b2c-772d-b9d6-993a-063c41e46200@micronovasrl.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Simon, sorry but as for Luca I've lost mail with mail filter. See below my ideas on how to improve it. Thanks Cheers Il 15/11/2017 17:30, Giulio Benetti ha scritto: > Hi Luca, > > I had problems with e-mail filter, so I rebuilt yours by hand. > Forgive me. > > See below. > > Thanks > Kind regards > > > Hi Giulio, > > > > On 14/11/2017 22:42, Giulio Benetti wrote: > > > Hello everybody, > > > > > > I'm using ft5206 with edt-ft5x06.c driver, > > > but what I see is that registers with M09 or M06 > > > seem different from focaltech ft5206 > > > https://www.buydisplay.com/download/ic/FT5206.pdf > > > > > > For example, except address 0x80 for threshold register(thgroup), > > > all the others don't appear: > > > GAIN 0x30 or 0x92 should be 0x82(thcal maybe?) > > > > > > Can someone clarify this? > > > > Are you having any problems, or just investigating? > > I need to add some other IC register to calibrate sensibility with > different glasses, but starting from ft5x06 or other Focaltech standard > IC FW. > > > > > > Maybe M06 or M09 are a custom firmware for focaltech ft5x, > > > then it has different registers? > > > > All the FT5x06 are 8051-based chips designed to implement touchscreen > > controllers. The FT5x26 are similar but with a more powerful core > > (Cortex-M IIRC). > > > > As far as I could understand and guess, their register interface is > > fully implemented in firmware, so it could change completely from one > > panel to another. However all panels that I have seen seem to use > > firmwares with either the "M06" or the "M09" protocol, which are > > implemented in the Linux driver. > > In my case driver recognizes M09, but only address 0x80 > register(thgroup) is correct. > The others: > GAIN: 0x92 > GAIN: 0x93 > GAIN: 0x94 > GAIN: 0x95 > > are not described in that datasheet. > The point is that datasheet seems to be official by Focaltech, > like if they deliver that IC with a standard FW inside. > I can't find a way to safely probe if it's a standard FW or from EDT M09 > or M06. > I wouldn't write a different driver ft5x.c because it's a repeatition, > but EDT seems a special version(FW) of ft5x. > > Maybe on dt-bindings I could force to be EDT or standard. > On legacy sunxi-3.4 the driver handled this as datasheet I mentioned. > What do you think? > > > > > The driver also performs some checks to understand which of the two > > protocols is implemented by the controller. These checks are quite > > horrible, but they worked for me. > > I have FW with registers as described at > https://www.buydisplay.com/download/ic/FT5206.pdf > and I would like to add them as attributes more and dt-bindings to > improve trimming. > I would call those registers the same as manual: > THGROUP > THCAL > etc. > > And I would also like to add a tasklet that recalibrate every > minute(specified by attr or dt-binding). > I want to do this(already done succesfully on 3.4) because I've > experienced problems on temperature and mechanical drifts. > > > > > The best thing is that you ask a datasheet to your supplier, in order to > > make sure about the protocol and avoid guessing. > > > > Regards, > > -- > > Luca > > -- Giulio Benetti R&D Manager & Advanced Research MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale � 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642 From 1584153483439678180@xxx Wed Nov 15 17:21:30 +0000 2017 X-GM-THRID: 1584085398794430736 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread