Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp36374lqn; Thu, 11 Apr 2024 12:59:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKpQ1HZyUb4CWP/pGZAVEG5jcWQ9HJaLB4vfSpEa5/rvpOSavALZv2ip0UAUBUK57uGox0DLfismI8TXUnxRmMgRkIfwDvovWaDkBjEw== X-Google-Smtp-Source: AGHT+IE8133c2QU3/XGot0zTIklTYG8e0DMlt9WYcihq2Qm/TxQfZTTIr03mPnl8d8LPUO/smmgo X-Received: by 2002:a17:906:f855:b0:a4e:5676:417d with SMTP id ks21-20020a170906f85500b00a4e5676417dmr603746ejb.58.1712865590840; Thu, 11 Apr 2024 12:59:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712865590; cv=pass; d=google.com; s=arc-20160816; b=Ib3+kXGoHFNm+Qz35JoDjpCkgLebii3IAZcld715JdqRdlnp1t4vwxWfX4lyJBo8z8 Q7a2kqo6/WubhsWVFASniA3KEylmmhlkoZYrBqaJ9sZX8ZfpQXdCsXaU+9f7hItO1UBK F9kIjy8yspqqgMoVoRYvneI5DiCnctyWs4D8urvm6uuqr2KqLYowHcmT1Axp1ALBs2Qf teKTht+Dp1plTF8wiqttl2znBGunbflNcyJkVNoIc24IlCGiLBhCJPIn71lJucIplhDI HKDtwnJ63zqF7btA9oPaktTVItouoSYnZL3ZY6F6+kTdhNMlQENc8lUbcwJIiM6ps41U dKvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Iwn+JX8xlhjGnXsfpBzohHUIfjRXih/t5ZCgll+Ab1M=; fh=ss+1gqjkPG5klPXEGjDg1aC0SkQICYqR+nUw7DGanRE=; b=YJHr7U3QWhYeEapDw0JkZI0UEyY99S8RhNwnheY1xZavLSaisMw0fDRgWJ0CFF7W7c j2iP8LV7CX4l4NjZyh0kSyRP37naaXGyW2QS+vBWfOiKgw413bzXfb7h3l06Jp7K87s4 J6rPOu45+YOtVPTcVspvrVKJHuBxEvvCfQb2M2W6of67ugOwRNmCHUy5Hf7I6bTfi9co DuYzHpDLzUd4NUBbGhjfHGgpH1FME/LyWMN625xHWmCPCiM0VZyXs1HqhW0Ubx7KgZ8Z 0/7I8kYOf5VQYKcAJPrYKF87uunY9VigMqAZX3qavwGIElcL3v6lbqwywf+J0AuWuPbc ZYBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e61DVOrd; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-141554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qb8-20020a1709077e8800b00a5222703604si946092ejc.192.2024.04.11.12.59.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 12:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e61DVOrd; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-141554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 638CC1F22AD6 for ; Thu, 11 Apr 2024 19:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFF9D17C61; Thu, 11 Apr 2024 19:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="e61DVOrd" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 0360017BD5 for ; Thu, 11 Apr 2024 19:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712865581; cv=none; b=OtDg5Vkhio1VCbzHiNzdGlrbpKz5lgyYpQ2F2rSUZkGXeh5qa0BdNA7+Gp0rISv0QmGUBJ+OI5kju9Euhnnn241b4kA0wdncGq1ut153slDOxIfupUsxzMhbtC3hFLNnVkDkwNhEYB0/3dJ8irEahFp0BsneiUSD3mpefJ+0XJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712865581; c=relaxed/simple; bh=uhtySGVK5A6+vHp5UrGYLuo5kUbyFoALPVif91nqwuc=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=IZUFjyEhHyZONL5yJGtHBa2KAz/ZrZ2HYCICUbO28VJ6gDSmuga5fHHBuctHKN4CNs7pPnnzTbix+HRUGZsFgtoPLp+CzXG5pWWopNDCKIt3hqIuz5j5fTDMLtvfAUpz1TUtHnhXcxLug/HKVn3fizM005Oy6s7SnxKGhsF/HMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=e61DVOrd; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-343d1003106so92486f8f.1 for ; Thu, 11 Apr 2024 12:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712865578; x=1713470378; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=Iwn+JX8xlhjGnXsfpBzohHUIfjRXih/t5ZCgll+Ab1M=; b=e61DVOrdec3IWMoxUsnQnjS5QMpThRxoM+v64JmlGAFOfRoT2F1fR5LLq7pla4ADVd db2alSNCnHesNyQNKn1n+0dmuHQOi94shYRx5ufIuCSnMhWUcapVm3QK0RgiDZGTVa1u 36MufoUf6p8UwVabZMLRDqxoJGZxD++hVJksFuFWI4SyTplQwKxvKAt6pMJxcjU7grW6 xXI2m0j1I4nfioxKi9ji0tL4b1sa1+SxLPIZa/EKkOteVqDkPgyV9CMGkb4m5WLYVrP5 6Ugq70imZCsSbD0gZ/oQAii57w0QVT8CtSBhDlt9sKif8jGQKpIbkpMJNC8c5Ttzy6vs 534w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712865578; x=1713470378; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Iwn+JX8xlhjGnXsfpBzohHUIfjRXih/t5ZCgll+Ab1M=; b=rqmW8sYF9SxjKvf6jpDKqsm4DDiJtqUFDhiVL8t4CT+If9wM1+9LRO5Owcl1Jzyszq 54fPMeZLFTqFCP2xPmGuspzMGeeWK9qApwnAK0nNdxWERqEOmfjCy3FbnQginUdtQ43Y Q6QtdgYxSBV2Md9hvpJAqb2SiqbWBPza/QqhrDkGtU5goS3QLaIh1STgrEeAcaNDvsSE 5rxHW6RGxa1gJ14AnkL4Vgw9P1kqUcI31V+JFdNK1GY8zO3AIhp9ItZ8R0dKejHNsjxE mA9BvdovnpjZZgtRtL/2B13hAD3s5yp4z4Z6IslWC6koFzy4+yQzyX1BPIm2ovav3drO nD4g== X-Forwarded-Encrypted: i=1; AJvYcCUMj3U+rNO/rs/7wmmkQQa1YVlXcUCYDSk3PiIsLcoiMfTNRiQOI+2pYFIiU1r7934m8g/5EvuSX4b5YnA00RWF/so0UL/yc/wW63rg X-Gm-Message-State: AOJu0YzK536HdTxceSp+H7TQX2UyVLJDdtBpieJMnTXmBiFj3abPjHb7 uJxKBjtKBJrrpnCptEwUFgoTpjAVdXMv6GuSURjnMx8QDSzy0x+x9swSNQiG9qY= X-Received: by 2002:a5d:4743:0:b0:33e:8b93:87c6 with SMTP id o3-20020a5d4743000000b0033e8b9387c6mr420612wrs.42.1712865578120; Thu, 11 Apr 2024 12:59:38 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id c12-20020a5d4ccc000000b00343f662327bsm2496475wrt.77.2024.04.11.12.59.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 12:59:37 -0700 (PDT) Message-ID: <025d268f-96d0-49fa-9a67-f80ab81ed102@linaro.org> Date: Thu, 11 Apr 2024 21:59:35 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv3 1/2] dt-bindings: usb: typec: anx7688: start a binding document To: =?UTF-8?Q?Ond=C5=99ej_Jirman?= , 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 References: <7976e254-ed1e-406d-870b-1ecdc4b1e23c@linaro.org> <1502383c-9caf-4362-8bd6-ed719a304f08@linaro.org> <97f2d38d-c863-4c76-91f1-52cd250759d7@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2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JQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10/04/2024 04:20, Ondřej Jirman wrote: > On Mon, Apr 08, 2024 at 10:12:30PM GMT, Krzysztof Kozlowski wrote: >> On 08/04/2024 17:17, Ondřej Jirman wrote: >>> >>> Now for things to not fail during suspend/resume based on PM callbacks >>> invocation order, anx7688 driver needs to enable this regulator too, as long >>> as it needs it. >> >> No, the I2C bus driver needs to manage it. Not one individual I2C >> device. Again, why anx7688 is specific? If you next phone has anx8867, >> using different driver, you also add there i2c-supply? And if it is >> nxp,ptn5100 as well? > > Yes, that could work, if I2C core would manage this. Either I don't understand about which I2C regulator you speak or this is not I2C core regulator. This is a regulator to be managed by the I2C controller, not by I2C core. > >>> >>> I can put bus-supply to I2C controller node, and read it from the ANX7688 driver >>> I guess, by going up a DT node. Whether that's going to be acceptable, I don't >>> know. >>> >>> >>> VCONN regulator I don't know where else to put either. It doesn't seem to belong >>> anywhere. It's not something directly connected to Type-C connector, so >>> not part of connector bindings, and there's nothing else I can see, other >>> than anx7688 device which needs it for core functionality. >> >> That sounds like a GPIO, not regulator. anx7688 has GPIOs, right? On >> Pinephone they go to regulator, but on FooPhone also using anx7688 they >> go somewhere else, so why this anx7688 assumes this is a regulator? > > CC1/CC2_VCONN control pins are "GPIO" of anx7688, sort of. They have fixed > purpose of switching external 5V regulator output to one of the CC pins > on type-c port. I don't care what other purpose with some other firmware > someone puts to those pins. It's irrelevant to the use case of anx7688 > as a type-c controller/HDMI bridge, which we're describing here. > > VCONN regulator is an actual GPIO controlled regulator on the board, and > needs to be controlled by the anx7688 driver. So that CC1/CC2_VCONN control > pins driven by the firmware actually do what they're supposed to do. > > Not sure why it would be a business of anything else but anx7688 driver > enabling this regulator, because only this driver knows and cares about this. > If some other board doesn't have the need to manually enable the regulator, or > doesn't have the regulator, it can simply be optional. > > There are also some other funky supplies in the bindings, that are not connected > to the chip in any way, but need to be controlled by the driver: > > + vbus-supply: true > + vbus-in-supply: true Yeah, the vconn looks reasonable. Just provide description of the supply, so it will be obvious. > Best regards, Krzysztof