Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1359457lqe; Mon, 8 Apr 2024 06:57:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9F2j/QR8RKhATFPN+Z8ZipfXKqe0ufhvajidQBl+2yLdPgj+w3dhPKA9TzVEiA11+SKIEjdC8ulw2iNooW41zT1HVZoDV5BTW1CItHA== X-Google-Smtp-Source: AGHT+IE6+n2a8zVUjlVcXboVkbTVxV1gy0/NnajGIujBW65gx0Js14s31bVOSluhH0GkqNE4p18y X-Received: by 2002:a05:6870:1595:b0:221:8228:ae32 with SMTP id j21-20020a056870159500b002218228ae32mr9960257oab.28.1712584640250; Mon, 08 Apr 2024 06:57:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712584640; cv=pass; d=google.com; s=arc-20160816; b=i6/2VfPYhoaKwG1yDDkRd0TDQ5c5U0reO5BhMZ4+crv38iC7tcS3r5NzPESbBKln+E LsRRulRT3sOxwVeM4Vklu9bXi8RXeOi2Hb8GJ8M7j78vCnUHWawRLVLI9e0wLGDlQFdc 1lQH18wcMjpgvJ5Efult+XCodXYmLjKwj05HM8b70z7rnsu/pYr6zuOLkdOuG6+lX13H LvV4NNP5AWa5MlTafr/orpq5BYpnUj/nLtGbOY3yZZDYT6RXfoojh0tCdfjgtTeHxU3m fBFybwt3ghx/MXCfXGXsgFy/WF9NgxUs5G/HhCy5gBQPhR9Hvu5c7RUufxLnUq1jdtrU qJeg== 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=TiZX3mVFBF7BLHgtOUkl0S2NrftfNbyBEoRd4uLMG+Q=; fh=+Q3ee2yp+hG99NR6a05aqBwl7ekpSAI0n1y26E214gQ=; b=wYN7nuxfIiYDMtFJRiQ6Un5N+y/1Dy6bAqjJ07v8GzK7tiXgUDG471hOfDa/Cxwntn tT+xWIQAcD5bWqyhKtvqH8yeQhTUTuXzeiwINWw2G2I+aJ9hB/VyH+J9xyZIkcAUPFx4 io4Y+M1LmgW7pPGHWQwf7aSrfeLVAAPvNYjVFi8nzs+rAxabcfjh/cSFiz8Lb8NP/LWU +GbQoepvQqozb9xeuuCw/Tn4jKY3ejaRlDiTKMc4WFHfG21N7m+BPvgtR56jHBYV6v6e OKNHWRzkk0M/y8Kgt9CX6AzmOSYo4URXjyJeX+wAAN+GewbbWGtEbRcIUyC4uxtYJMGD NTZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fw5bN7P4; 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-135434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135434-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t26-20020a63955a000000b005f3cba15535si6560650pgn.628.2024.04.08.06.57.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:57:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fw5bN7P4; 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-135434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135434-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 20413B289B8 for ; Mon, 8 Apr 2024 13:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2830E7D3F8; Mon, 8 Apr 2024 13:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fw5bN7P4" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 190CF7D07D for ; Mon, 8 Apr 2024 13:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712582827; cv=none; b=W4Ru89PHfu4N0HwkzsgpuG2M9esDJh3oJ5waaEFeQvg0RqzRJYpoXEx5FAouLYT1KHGsNbNcXlsZEP+5FHDkNJgau2y1VgEo4VV2Dn3RIvNc9ML3fGRdidDCkh8Mx5H1t+87XG11oQbx6Mslmn91kVPAP3BiAkutmoxJSWeHkok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712582827; c=relaxed/simple; bh=irNNoFJZO1Gz1+eRkFAf0ZYdvMxb4fZry5HvMmVnPXM=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=NJi8bLZ/1wukMXiwhHh7SF+V+Blvcd6GCr6egzYnHUfhiYmf56VuWsfSqHHTRjqit9uodauZQ4GArN6Zj2Q/71CHlFtkC09l/grq78+28qAHXAoEdbRT+PxwFBDs1Mzn9v3FIts058D5tKyuaoERO2NTFWZMANi87bD21hrbXFQ= 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=fw5bN7P4; arc=none smtp.client-ip=209.85.208.42 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-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-56c404da0ebso6735173a12.0 for ; Mon, 08 Apr 2024 06:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712582822; x=1713187622; 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=TiZX3mVFBF7BLHgtOUkl0S2NrftfNbyBEoRd4uLMG+Q=; b=fw5bN7P4KoIuJNNTvm/PcT8sRUSSUdr4SWHQst0KCOQ6AgMpxkNPcHeYgp/CxJo/Yy 9M4f9mQn1uJl3VJMgmG7nMUWaCplJc6a+6MPnkiw9uLxfoBqWYDtQYQvZrXdiWRUJ9Bc mzQ3Y25vzU/kl+gGjyFogJI5kadcUshzr9jBtI/z4TTqXzZJ78f20kqygO7cOuwGGcQ8 LAQc4VdrnVToTZMZsmjCzCLor2Vg//m0gzKb+Uvp/GZs9cK4BF1w4/pwv+asG3qi4Bbv 8jqdLlcJnZOQB6HW2CdZG6+YufJuapMt9tc/py1pMsLCE9MnoeOVmzL2nGMDGQtrtYJu HKDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712582822; x=1713187622; 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=TiZX3mVFBF7BLHgtOUkl0S2NrftfNbyBEoRd4uLMG+Q=; b=CLofdQOe4Ukm/KV0GG2lX4ikKiK+K9iEY7q6jr2iQv0cYvQjuuAtchBxrEFkA7V9fi c++fYoKuykO2m+bYSsmtTNjo4ORCb/YlPFCQPwkFuuKQW1naIss0oETwvN/Dx053+wN4 07x5S0H0Dx8nv01iShV6NdJpbCRFUkv/X3H3lQLc7Fj0QhzouCyErsiAwepfHwOfDUcn 7+3FGEZAu9OPWeCFONttvjHayGGgvX7raPjTXu9LbfN8o2Fd/FfAXyXP8ccYBnl5eg8A 1EDiyrfJ0Sj6o3fFgGR1iYSs7Ll65Pc+nJgRf8UpMQ3x8iw9oMeWUVk/YfTPbZFsO9GF DYoA== X-Forwarded-Encrypted: i=1; AJvYcCXOP3ntImpb4G9DVicgdHMZYlW8wO32Gz5PnuyB9dIf0OCPD3lm4eA7ZHmUAUuJlm9AaBcjTE0lQM08nAUOL7q/LnX4ULbafHBQVMTa X-Gm-Message-State: AOJu0YzT5QTNklf+Rha/zcgqWWTVF7OEwz7skxscaXbZHzg4HK+t++lP Hcrmh6CsoZBdboR1wIDMkFi5Pc2qrP9bht8DYpE80bko7uH71ItSYZn/E8XU/uM= X-Received: by 2002:a17:907:7ba2:b0:a51:b0e1:863b with SMTP id ne34-20020a1709077ba200b00a51b0e1863bmr6049600ejc.1.1712582822321; Mon, 08 Apr 2024 06:27:02 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id jy23-20020a170907763700b00a4ea0479235sm4453870ejc.107.2024.04.08.06.27.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 06:27:01 -0700 (PDT) Message-ID: <1502383c-9caf-4362-8bd6-ed719a304f08@linaro.org> Date: Mon, 8 Apr 2024 15:27:00 +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> 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/G23PcowM1CwPurC8sAVsQb9KmwTG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v8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+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 08/04/2024 14:48, Ondřej Jirman wrote: > 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* We do not talk here about the driver, but bindings, so hardware. > 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). That's still looking like putting board design into particular device binding. > > 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. You might need multiple schemas, because this is for anx7688, not for Pinephone type-c implementation. However I still do not see yet a limitation of DTS requiring stuffing some other properties into anx7688 or creating some other, virtual entity. Best regards, Krzysztof