Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6762185ybf; Fri, 6 Mar 2020 04:08:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vuKqXY7pZ1d6NixXodIfxlnDGzjicvEpscpatrPgSRrWGM9g0pdG8ApTYFm85jw9wBN55d4 X-Received: by 2002:a9d:554c:: with SMTP id h12mr2299353oti.16.1583496500033; Fri, 06 Mar 2020 04:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583496500; cv=none; d=google.com; s=arc-20160816; b=fleSwUOcfQzUhXJAt3SA8ojP9WVqEeFfou6PXZLkm5rAJ8lqGgkAx9RSenqnbkEMY1 I/EPySLm5reTTDiydAXoqrAt52yRzTMvRC9MCDlH4yh6rgTgCyHOlzRTAczItWabo+xZ RwGrWhVnyj50dqLTMUXcz78WacqWVo4GKd56Zt/FZB98EaJMvaiQUwbzKfqoxcxZCIEL TmxUAGAoBVt8lsRunC0gwwtjzeWv0Vd3nGC11lvvQm3oHdasJ1mYY3IlkuiKbHX3bd1m 7H9M3+u5UpJqXseyPeja+80ncAgL5GDekR0x3Ff/FIbhzf5fZ2SisOoM6KKRXDbXiO8m 5lRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=07payItSCRTRsWQU9/ey0NpovJaHQhVkyuyMV/2OtzE=; b=r8m4ybDyXQruM9klq8NweUnv1CDym5ee3xqiJ9FS9CMs7jHgLcnsrl9d7kg7jCu/pa +v57JLB2Xxw5kAXoCYQcDFax/AUKP9CQj4UqVRWa7GsENrLMt5qANtyjhSthEjFBo3TG hxpEXm/0330F8C0EvTMkFm/Y2n12v4aPEfq2Fe+a6rcg/RixXCqpWBaaqQJK9dQpBCe2 fCidYQ3dqEr1NK8kfK4aNrZCB7jtTEdAdYeRIWkbegcd8qAbDz9mJ/rgO4LGhVfBYfnd ne8AZHkFEUw3+DD3rVL05C+QI8PsCAwlxKY3+5X3nAv7e61n7ZyM0uTyM/vzN3l7CBac FBWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=cBP3CStA; 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=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j36si1202504ota.58.2020.03.06.04.08.07; Fri, 06 Mar 2020 04:08:20 -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=@megous.com header.s=mail header.b=cBP3CStA; 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=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbgCFMH3 (ORCPT + 99 others); Fri, 6 Mar 2020 07:07:29 -0500 Received: from vps.xff.cz ([195.181.215.36]:53666 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbgCFMH3 (ORCPT ); Fri, 6 Mar 2020 07:07:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1583496446; bh=xEkZMnAJaW3CjRi8Tr1/kP+MDL1qKFyRyqRQ+hjJeW8=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=cBP3CStA3Edz4S9BwQCuNbfWe+Fj/lOclcu8ezWy/dUGtOlmx74M2LTAsfj8Tw4d1 cJPGiiAfwrWAvq+4ii9HKLCpyxfF6lQoYVG4GA9jOX7ub842aFUHH4Wv+5bVBbcKgU PGdpmjIyPoyGpyHQb1mgINbbcfEWPzxHIhgukGPw= Date: Fri, 6 Mar 2020 13:07:26 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Icenowy Zheng Cc: Enric Balletbo i Serra , Vasily Khoruzhick , Enric Balletbo Serra , Jernej Skrabec , Nicolas Boichat , Laurent Pinchart , Neil Armstrong , David Airlie , Torsten Duwe , Jonas Karlman , linux-kernel , dri-devel , Andrzej Hajda , Maxime Ripard , Hsin-Yi Wang , Matthias Brugger , Thomas Gleixner , Collabora Kernel ML Subject: Re: [PATCH v2 2/2] drm/bridge: anx7688: Add anx7688 bridge driver support Message-ID: <20200306120726.t7aitfz5rq3m7m6y@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Icenowy Zheng , Enric Balletbo i Serra , Vasily Khoruzhick , Enric Balletbo Serra , Jernej Skrabec , Nicolas Boichat , Laurent Pinchart , Neil Armstrong , David Airlie , Torsten Duwe , Jonas Karlman , linux-kernel , dri-devel , Andrzej Hajda , Maxime Ripard , Hsin-Yi Wang , Matthias Brugger , Thomas Gleixner , Collabora Kernel ML References: <5245a8e4-2320-46bd-04fd-f86ce6b17ce7@collabora.com> <20200305193505.4km5j7n25ph4b6hn@core.my.home> <2a5a4a62-3189-e053-21db-983a4c766d44@collabora.com> <5d72a8c6824b31163a303b5ef1526efe05121e5d.camel@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5d72a8c6824b31163a303b5ef1526efe05121e5d.camel@aosc.io> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 04:53:46PM +0800, Icenowy Zheng wrote: > 在 2020-03-06星期五的 09:46 +0100,Enric Balletbo i Serra写道: > > Hi Ondrej, > > > > On 5/3/20 20:35, Ondřej Jirman wrote: > > > Hi, > > > > > > On Thu, Mar 05, 2020 at 10:29:33AM -0800, Vasily Khoruzhick wrote: > > > > On Thu, Mar 5, 2020 at 7:28 AM Enric Balletbo i Serra > > > > wrote: > > > > > Hi Vasily, > > > > > > > > CC: Icenowy and Ondrej > > > > > Would you mind to check which firmware version is running the > > > > > anx7688 in > > > > > PinePhone, I think should be easy to check with i2c-tools. > > > > > > > > Icenowy, Ondrej, can you guys please check anx7688 firmware > > > > version? > > > > > > i2cget 0 0x28 0x00 w > > > 0xaaaa > > > > > > i2cget 0 0x28 0x02 w > > > 0x7688 > > > > > > i2cget 0 0x28 0x80 w > > > 0x0000 > > > > > > > Can you check the value for 0x81 too? > > root@ice-pinephone [ ~ ] # i2cdump 0 0x28 > No size specified (using byte-data access) > WARNING! This program can confuse your I2C bus, cause data loss and > worse! > I will probe file /dev/i2c-0, address 0x28, mode byte > Continue? [Y/n] > 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef > 00: aa aa 88 76 ac 00 00 00 00 00 00 00 00 00 05 05 ???v?.........?? > 10: 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0............... > 20: 00 00 00 00 00 00 00 00 00 00 00 24 f2 e4 ff 00 ...........$??.. > 30: 06 40 00 04 94 11 20 ff ff 03 00 bf ff ff 10 01 ?@.??? ..?.?..?? > 40: 72 a4 00 09 00 08 05 84 15 40 17 00 00 0a 00 e0 r?.?.????@?..?.? > 50: 00 00 00 0a 10 00 e0 df ff ff 00 00 00 10 71 00 ...??.??.....?q. > 60: 10 10 04 29 2d 21 10 01 09 13 00 03 e8 13 88 00 ???)-!????.????. > 70: 00 19 18 83 16 5c 11 00 ff 00 00 0d 04 38 42 07 .????\?....??8B? > 80: 00 00 00 00 00 74 1b 19 44 08 75 00 00 00 00 00 .....t??D?u..... > 90: 01 02 00 00 00 00 03 00 ff 30 00 59 01 00 00 00 ??....?..0.Y?... > a0: 00 ff fe ff ff 00 00 00 00 00 00 00 00 00 00 02 ..?............? > b0: 00 00 00 00 00 00 40 00 28 00 00 00 00 44 08 00 ......@.(....D?. > c0: 00 00 00 00 80 00 10 01 0a 10 18 00 00 fd 00 00 ....?.?????..?.. > d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > e0: 50 10 08 50 00 02 00 70 00 00 30 10 0b 02 1c 01 P??P.?.p..0????? > f0: 00 0b 07 00 94 11 7f 00 00 00 00 00 00 01 0e ff .??.???......??. My values for 0x28 address match this. ^ Interesting that it returns different register values for different device addresses. > root@ice-pinephone [ ~ ] # i2cdump 0 0x2c > No size specified (using byte-data access) > WARNING! This program can confuse your I2C bus, cause data loss and > worse! > I will probe file /dev/i2c-0, address 0x2c, mode byte > Continue? [Y/n] > 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef > 00: 29 1f 88 76 00 ac 11 00 11 20 10 10 00 00 00 00 )??v.??.? ??.... > 10: 03 00 ff 8f ff 7f 00 00 00 00 05 00 10 0a 0c 00 ?..?.?....?.???. > 20: 00 00 00 00 99 06 c0 00 00 00 00 00 00 00 02 00 ....???.......?. > 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 40: 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?............... > 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 70: b8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?............... > 80: 01 25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?%.............. > 90: 0f 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ??.............. > a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > > > > > Thanks, > > Enric > > > > > > > regards, > > > o. > > > > > > > > Thanks in advance, > > > > > Enric > > > > > > > > > > [snip] >