Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1318863lqe; Mon, 8 Apr 2024 05:55:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbnGHZL4LW+DSZNzTitiS1q20diHgfojI+AfLcwvB4fH6GU/KCTl6Ki0un33HwGVLatac8A/PJFDYdtDyYZFZlg8eSbYJFWQodxdsSkA== X-Google-Smtp-Source: AGHT+IGd0KKEgQM6C9hY86KhVmJc3ejAxkcEF5KaYo/1BmjNEw2WKccT81s2a/dSWD4Hv1g7eB4Q X-Received: by 2002:a17:903:22c1:b0:1e2:ca65:279a with SMTP id y1-20020a17090322c100b001e2ca65279amr4895557plg.9.1712580912938; Mon, 08 Apr 2024 05:55:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712580912; cv=pass; d=google.com; s=arc-20160816; b=Q0fPeb5lxW+qf3JosSvOygybv3CH/b7L1TOEXnvgUlm0/QeTC/NnqeEiZtjuIJNFJ8 0qNAifaOwDNBiMH1J60vxPwHUjDDgnC15abkVS8hntXpXPx8fJufF0sfQ6IoB8KUTLSo ASrroLiRz6dq3mTw8oDmqBOIMMolvnsV1CDAouVFZKfDXZDm9g5XDIyEQUcIKYG1KE8R BAX13pS/XUoR2TDSEAomIy8feuQDvpoO9Bq2yqt/A5ELXmIqM9wh9ts7WAdsa7lr9cEB gDdA03gG3dH17v5HU97ZvdqBExbfJWKuIoa5mp/cmNPSqWApOJ9GlTrv+PyDbeoAmq5G vH3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9ter/nHwiy9A/zjEakr1ZVZslMKbSxOXYe79jxYXCWs=; fh=BG3t0rlwtJqF04gL/4yJVQvT9Rvr29GsZWL5ySM93Xw=; b=pwmdfKnZacG/VgJCbN3X7zcG3Ko+dOGdDLVZS2h6cNUk8qaarbFPkYacnuIGNZ7cdn M1kImKKxsYkFtvs8RPkU5tsbk3cQ7T2/qXVyTw2H8h4mz7eaCt3Pk+chaE2bjmYZXeWz QY5ieBzjNg2Rzz5ixbOQn71Dy74YMLZ1oFMqsT3amV8s7oCQFcsMXsEXePazaKNSeL2u tayHoCAjz29MdMIl+3iFsemHHmC8nxm0XM73PhzArHkXBb2wNkTYXczu9n/tvcGNaXNt 0HSzvRES4zZUBXdShnHhJ4MDeyflKDbrsjW8KPzR4ulNS34VN4dpbM2OpSYNs0hZB0uT xsWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=LJCAULDv; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-135354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w3-20020a170902c78300b001dd693cc79csi5971082pla.620.2024.04.08.05.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 05:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=LJCAULDv; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-135354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 15A98285ED9 for ; Mon, 8 Apr 2024 12:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA1E070CCB; Mon, 8 Apr 2024 12:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="LJCAULDv" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA9666CDDC; Mon, 8 Apr 2024 12:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712580525; cv=none; b=hUfOW4HlxtFmD5vn/XxWE30Tr/cBoVcgPBGZ8ztv9bOe1onJp0cSZ2QN8rp33HgeuelYuDCGgMtKcZjh4q9nTe0ugzQn0bisZ99K8aihNyjGThHQ0Ph20AQThkX6GK7Qmc2ZYfvNcfKilxderPci5q2FUd3qQmbO00rDthow6DA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712580525; c=relaxed/simple; bh=mpZN8yjoALuYbnUIvl1Jzyjr8C6Q7zr6LsHovN0NC9o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pg/1sNDCftqUSG4xz2HvJYG8T6kem8NsZznnfoGyfS6DMxcNohJLRE0z3TsO984j+37MdYsxXtPBhNZQRMOZjlKNFv/mbekEQjcgPi4PiKqzvZhb0+PLWX8/hBrOGG1sUP/e34a+p07MWNhlIXymo37X9ErjNByi068xEQmzwvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=LJCAULDv; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1712580519; bh=mpZN8yjoALuYbnUIvl1Jzyjr8C6Q7zr6LsHovN0NC9o=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=LJCAULDvuMRsyIafPbaNQo3zkuo+WIc3xesyh+5O/DMXTH821QOZoCFUWMhY56ryb bdQrZ4Gd/lD/OfSRlQI4uE3EQ+4UKfom3efaJSgRAX7bq7X7M3aFOVBPxgCUAcc6Dd evsI4KdJmuuktBmlLXiO7nv/NLo+xIJ2MS8MHbMg= Date: Mon, 8 Apr 2024 14:48:38 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Krzysztof Kozlowski Cc: Pavel Machek , phone-devel@vger.kernel.org, kernel list , fiona.klute@gmx.de, martijn@brixit.nl, samuel@sholland.org, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org Subject: Re: [PATCHv3 1/2] dt-bindings: usb: typec: anx7688: start a binding document Message-ID: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Krzysztof Kozlowski , Pavel Machek , phone-devel@vger.kernel.org, kernel list , fiona.klute@gmx.de, martijn@brixit.nl, samuel@sholland.org, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED References: <7976e254-ed1e-406d-870b-1ecdc4b1e23c@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7976e254-ed1e-406d-870b-1ecdc4b1e23c@linaro.org> On Mon, Apr 08, 2024 at 01:59:12PM GMT, Krzysztof Kozlowski wrote: > On 08/04/2024 13:52, Ondřej Jirman wrote: > > On Mon, Apr 08, 2024 at 01:24:03PM GMT, Krzysztof Kozlowski wrote: > >> On 08/04/2024 13:21, Pavel Machek wrote: > >>> Hi! > >>> > >>>>> Add binding for anx7688 usb type-c bridge. I don't have a datasheet, > >>>>> but I did best I could. > >>>>> > >>>>> Signed-off-by: Pavel Machek > >>>> > >>>> ... > >>>> > >>>>> + cabledet-gpios: > >>>>> + maxItems: 1 > >>>>> + description: GPIO controlling CABLE_DET (C3) pin. > >>>>> + > >>>>> + avdd10-supply: > >>>>> + description: 1.0V power supply going to AVDD10 (A4, ...) pins > >>>>> + > >>>>> + dvdd10-supply: > >>>>> + description: 1.0V power supply going to DVDD10 (D6, ...) pins > >>>>> + > >>>>> + avdd18-supply: > >>>>> + description: 1.8V power supply going to AVDD18 (E3, ...) pins > >>>>> + > >>>>> + dvdd18-supply: > >>>>> + description: 1.8V power supply going to DVDD18 (G4, ...) pins > >>>>> + > >>>>> + avdd33-supply: > >>>>> + description: 3.3V power supply going to AVDD33 (C4, ...) pins > >>>>> + > >>>>> + i2c-supply: true > >>>>> + vconn-supply: true > >>>> > >>>> There are no such supplies like i2c and vconn on the schematics. > >>>> > >>>> I think this represents some other part of component which was added > >>>> here only for convenience. > >>> > >>> Can you give me pointer to documentation you are looking at? > >> > >> The schematics you linked in the document at the beginning. Page 13. Do > >> you see these pins there? I saw only VCONN1_EN, but that's not a supply. > > > > The supply is U1308. > > That's not a supply to anx7688. Yeah, I understand where the confusion is. The driver is not for anx7688 chip really. The driver is named anx7688, but that's mostly a historical accident at this point. I guess there can be a driver for anx7688 chip that can directly use the chip's resources from the host by directly manipulating its registers and implementing type-c functionality via eg. Linux's TCPM or TCPCI stack, etc. (eg. like fusb302 driver, or various tcpci subdrivers). But in this case the chip is driven by an optional on-chip microcontroller's firmware and *this driver* is specifically for *the Type-C port on Pinephone* and serves as an integration driver for quite a bunch of things that need to work together on Pinephone for all of the Type-C port's features to operate reasonably well (and one of those is some communication with anx7688 firmware that we use, and enabling power to this chip and other things as appropriate, based on the communication from the firmware). It handles the specific needs of the Pinephone's Type-C implementation, all of its quirks (of which there are many over several HW revisions) that can't be handled by the particular implementation of on-chip microcontroller firmware directly and need host side interaction. In an ideal world, many of the things this driver handles would be handled by embedded microcontroller on the board (like it is with some RK3399 based Google devices), but Pinephone has no such thing and this glue needs to be implemented somewhere in the kernel. Kind regards, o. > Best regards, > Krzysztof >