Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5812771ybf; Thu, 5 Mar 2020 07:29:17 -0800 (PST) X-Google-Smtp-Source: ADFU+vtQglQvaHXMov8cWriNMQgSt00WrlWDE62uVp0aUz/sZ3iPG7DMOiQjGOGQWUchRmwsO2kZ X-Received: by 2002:aca:fd4f:: with SMTP id b76mr6226197oii.140.1583422157651; Thu, 05 Mar 2020 07:29:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583422157; cv=none; d=google.com; s=arc-20160816; b=lEHm+p55Jni449wsrkXlkeg5ePaQ1pBrjfpN3d09CorU6AcQqFfhPUocD54zDDxHW5 B/a2mFEN191SvMSbXc/d1fTciJo7PbqZD5q16qvoTfjzOXARI9QOaE7PH2eAHQLdZCZ4 Jg0MNF4cKGGGVIC69Nq5SBywYJ6oRybwoIlv6ZbpqnIkcGDQ7xGaTnonr9XVonHZKYep DDisukM8uJNv+JSXy9L6zswn3Oql0KN/xGobtRhjLRyAHc3Jt3dJr2u5V9i3h1BNaZUA BpFtEmhICLOwwwBqpNeB1BwTldB9XmawF7xmaeE5ovSaN1n8UEN1zxwP8hW0JKJoS9V4 WHNg== 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:from:references:cc:to:subject; bh=Sk9m1WQgIfL269NSpvPqAOUISHb8fVw5I74j/ilIgMA=; b=zfcia3DFy9aeVvY8tnXy6hb5pb9Fsrc4bt7U+do3R+JW1+uSPkPkgLFjE3eKQx5vF2 0GjBpKWSfIiQQKFuRFI8QPhclDka89/sdjzTx1vkrmCWJn0RZpf9yR9PqokjSL9P+sNJ tuxkx3fjuJZBCt4VmypvsCXUbWoSEkoze9Vlc6eHmAJUHj4YprLgHhFcFfM2Vl384J3w JyOWCK+10bAV9C01APsMGU//H4/fKNN1uVy6tNUoHF4PbhSZ3jGRYeYCtM4Z0xiTcv8g ElTmuI4pqARx2zfFgee2P5W0aR0qgtSV3dNjAUji15xnCNDU7SJu4BHQ9redYc+z3OOa wIkw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si3777491otn.190.2020.03.05.07.29.04; Thu, 05 Mar 2020 07:29:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbgCEP2j (ORCPT + 99 others); Thu, 5 Mar 2020 10:28:39 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56182 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgCEP2j (ORCPT ); Thu, 5 Mar 2020 10:28:39 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 10B6A296C1B Subject: Re: [PATCH v2 2/2] drm/bridge: anx7688: Add anx7688 bridge driver support To: Vasily Khoruzhick , Enric Balletbo Serra Cc: Icenowy Zheng , 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: <20200213145416.890080-1-enric.balletbo@collabora.com> <20200213145416.890080-2-enric.balletbo@collabora.com> From: Enric Balletbo i Serra Message-ID: <5245a8e4-2320-46bd-04fd-f86ce6b17ce7@collabora.com> Date: Thu, 5 Mar 2020 16:28:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vasily, On 14/2/20 23:22, Vasily Khoruzhick wrote: > On Fri, Feb 14, 2020 at 2:20 PM Enric Balletbo Serra > wrote: >> >> Hi Vasily, >> >> Missatge de Vasily Khoruzhick del dia dv., 14 de >> febr. 2020 a les 23:17: >>> >>> On Fri, Feb 14, 2020 at 1:53 PM Enric Balletbo Serra >>> wrote: >>>> >>>> Hi Vasily, >>>> >>>> Missatge de Vasily Khoruzhick del dia dv., 14 de >>>> febr. 2020 a les 22:36: >>>>> >>>>> On Thu, Feb 13, 2020 at 6:54 AM Enric Balletbo i Serra >>>>> wrote: >>>>>> >>>>>> From: Nicolas Boichat >>>>>> >>>>>> ANX7688 is a HDMI to DP converter (as well as USB-C port controller), >>>>>> that has an internal microcontroller. >>>>>> >>>>>> The only reason a Linux kernel driver is necessary is to reject >>>>>> resolutions that require more bandwidth than what is available on >>>>>> the DP side. DP bandwidth and lane count are reported by the bridge >>>>>> via 2 registers on I2C. >>>>> >>>>> It is true only for your particular platform where usb-c part is >>>>> managed by firmware. Pinephone has the same anx7688 but linux will >>>>> need a driver that manages usb-c in addition to DP. >>>>> >>>>> I'd suggest making it MFD driver from the beginning, or at least make >>>>> proper bindings so we don't have to rework it and introduce binding >>>>> incompatibilities in future. >>>>> >>>> >>>> Do you have example code on how the ANX7866 is used in pinephone? >>>> There is a repo somewhere? >>> >>> I don't think it's implemented yet. I've CCed Icenowy in case if she >>> has anything. >>> >> >> It would be good to join the effort. Just because I am curious, there >> are public schematics for the pinephone that is using that bridge? > > Schematics is available here: > https://wiki.pine64.org/index.php/PinePhone_v1.1_-_Braveheart#Schematic > Would you mind to check which firmware version is running the anx7688 in PinePhone, I think should be easy to check with i2c-tools. Thanks in advance, Enric [snip]