Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1284320lqe; Mon, 8 Apr 2024 04:51:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyhYL31jE1tMI+su9q4wg1FfxX0O04j7gBGPjcA9qHxXf5qe1tnz49zJqnkd64THim4wML6LGWSNsqH8ywlTc47+KhqUOKOyKpvoY2xA== X-Google-Smtp-Source: AGHT+IGe/DDj/hGwpVWYSOILlExmVbWHCEbwfhnPqN8rZ8goE4/1cXnFU7Wdq37NT8ssRXSqSdUw X-Received: by 2002:ad4:5c44:0:b0:69b:1930:6a15 with SMTP id a4-20020ad45c44000000b0069b19306a15mr3898431qva.51.1712577099409; Mon, 08 Apr 2024 04:51:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712577099; cv=pass; d=google.com; s=arc-20160816; b=cD7EMtLkhTrxY0rnxQc1PLIRrLufQ3VXdUYn/C7UkgpZ8wS29gK2LR9GbJ6QvMQd70 I0NdxOvTc+10xkilEJ53yDVS1IVYi59PtKroEL3EGxTxlEFgwTOPpnF6SI/Q6sFmq50Q tqT+WFWGZN+sUsKkBzo4dsQj0xFBd/9ANVF3PjLGRTzpaic7WdEz8YW8uEbezHLsNyYp I2qyqSMwQ2hAqBO6WP+5z3kSLFRuxHYE2brS7KT8S9lHYXY04eqzS/ThUxzmQ3VcP7W1 ThzP02I+tJ2mJAkWC6TZL5uHtfjIKsxeLbKy0fmZ8AFDKAjZZVKQQCgXGlGYOasm/Frx OYWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to: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=opyUDjSmvvW7ezXih/FZGTAWk8y0OU74wKeS4NNTdr4=; fh=BG3t0rlwtJqF04gL/4yJVQvT9Rvr29GsZWL5ySM93Xw=; b=FIGQQ7Rj1sAChG4+qto9ZJ/h+0JF3p3f8lf+wY8AeUWyYE49ikbRUJwfNAURMbH3Pm BQ+dKk8bAKQL4A24hU9WH900uSL5U9tCKVr+lA/8fXVR62p6nB1SJkm4oIJHm/VdQ+gz 3BFnZeOw0q0XPmX+20L5/VSA7Jfru6yb5Y70H4yB9eHetWv+FUHOZ5VBYnARin1VGWlG vXCOJQhX8A00VRcX740dO5bcS5faSKPDlJCzREfVQTtB/UASpyJDteKEG+m3eWhnH84A fY9+nV0Qed5WbUah17YS1k2SJ5D8O1sCgT4pWLNNQAwFdzKdm9wUr9pzwYXv9D20XaRo zbBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=rxDSbYHW; 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-135288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c18-20020a056214071200b0069692931520si8049794qvz.526.2024.04.08.04.51.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 04:51:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=rxDSbYHW; 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-135288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135288-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 21D921C21496 for ; Mon, 8 Apr 2024 11:51:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 049076A333; Mon, 8 Apr 2024 11:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="rxDSbYHW" 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 528BF69E07; Mon, 8 Apr 2024 11:51:26 +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=1712577090; cv=none; b=GEpGfGvBRwYiBiZl0fF0xJ01GxfcJguChmP5/oAKQHAWRlBOY2uLDnc1YBga0nQ9AAY/O2gi3Wchvf7U9Dcwx1Bz9V/oENY41lrmLXtx+KFjwplake7DoT3LDvhd9TD9e45wv+XGG6Ityo8rxHNG7CAWuA0uRsDdYSjfv3GgRpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712577090; c=relaxed/simple; bh=I5yljxzZzXYcwlpP5I426+Gg1XBkRYcBytW1okcfLJc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VGd44+tcMp87g9Ks4wJE2N++Kpgp0JMt7c3zzP4W6NqXpXSTiZhGr8Tql8cH1FzaakSLEJdZfSx/sn9hQrmF/TuEPm4lw8CCwbj8jZVf/x1PDs9ATYV/Yt16y2w+EcLHQkvnQkihWuc6Gqz21KNUXFJPK5Niz9JjsJZz9PAy0NA= 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=rxDSbYHW; 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=1712577078; bh=I5yljxzZzXYcwlpP5I426+Gg1XBkRYcBytW1okcfLJc=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=rxDSbYHWltTdqEXQq3e2/NVcU5m38sByYCxFziUb6aFv88v9TSrHQGWkO7ZnOJlLf 9pBS6jQO02xwbKyxnIK1MYOP3/5t4khGbOOWoI4P1bD3R1D9knXzZ5ve898ZcZcdD4 +z6mwTIo5pDtgMunTvW9yJhVtlHUCskppb9JaebI= Date: Mon, 8 Apr 2024 13:51:18 +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: <35tqaktf533qtpaquvzb7p5juupjyakktstlqgr2hqretnt7lv@chubnabkyqjz> 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: 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=us-ascii Content-Disposition: inline In-Reply-To: Hi Krzysztof, On Mon, Apr 08, 2024 at 01:17:32PM GMT, Krzysztof Kozlowski wrote: > On 08/04/2024 12:51, Pavel Machek wrote: > > 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. Which schematics? ANX7688 has VCONN1/2_EN GPIOs that control a switching of VCONN power supply to resective CCx pins. That's just a switch signal. Power for VCONN needs to come from somewhere and the driver needs to enable the regulator at the appropriate time only. On Pinephone it can't be an always on power supply and needs to be enabled only when used due to HW design of the circuit. (default without ANX driver initialized would be to shove 5V to both CC pins, which breaks Type-C spec) I2C supply is needed for I2C bus to work, apparently. There's nothing that says that I2C pull-ups supply has to come from supplies powering the chip. I2C I/O is open drain and the device needs to enable a bus supply in order to communicate. You can say that bus master should be managing the bus supply, but you'd still have a problem that each device may be behind a voltage translator, and logically, bus master driver should care only about its side of the bus then. Both side of level shifter need the pull-up power enabled. You can also make an argument that bus supply can be always on, but that causes several other issues on Pinephone due to shared nature of most resources like these. There are other devices on shared power rails, that need to be turned off during sleep, etc. Kind regards, o. > I think this represents some other part of component which was added > here only for convenience. > > > > Best regards, > Krzysztof >