Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp451276lqp; Sat, 13 Apr 2024 04:32:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvdVxjCzl1/2tEscy2VpqKw00/tLqUqn86o+FZShOx/VHdVfizNdG238pvtWNc2PQNB+dcSPNVVkQrW1RioGpvyyRmYfSnRhEFednKNQ== X-Google-Smtp-Source: AGHT+IH5mP0iwy2uUiXmNv2iF4VnpcVuVe0+wPanQBO2FmbjtEmR8CxbtLcR1tMujkfjDOg7BYhI X-Received: by 2002:a17:90b:18f:b0:2a2:85a:454a with SMTP id t15-20020a17090b018f00b002a2085a454amr4765876pjs.31.1713007967725; Sat, 13 Apr 2024 04:32:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713007967; cv=pass; d=google.com; s=arc-20160816; b=q2+sewJLI7YEIfFo8eU4/276lwzYx1JuThAfh02cflWrIHTf2xqY6FUoAXJWiH2Os4 e9LsgdTSg3Zwqykgu0WiZVn7b+lcVq5s0uj78mGf7jv25vSva6Q1qYJ/BMqkKaqpx4Ss iOQBG5fw4xNUZwTkjjGv6m2ZJBetGDD8fCrdyudFtX0XD1SBQuPlDvzjnghCoMKojFyW 4S+UYpFS7qkxR2Of5APNB7YHYpQhzc3dLOmKLyyXPvHbo7ELP9KYdxj0NacfQd72dWF/ clCFuysyv/YdGoBeJ+CZXH4P7Im3LoiGGgrP5E8oouVCXsgKXEtISfpdaECvJSskvd0o GIgA== 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=jPKejXRsNRWTCZp534abFGDNN1elivq5IZpRnxY77II=; fh=+6dD9f1RvqTPB/sf74rJGVIpM4Yae9bOr7VNRsUoeEY=; b=dXe7F9vX1N0svapwylx0SlxqZIZDw/PWBD++3K580RChpx/QvIj9unNHwOk1h2xQLO aYibUKXZOB4/0QCCmoBCi8BFLX02OiI1pvN7/R9OiNIBQniv3ZO6WrKWE1kgmAqOXFJt 9asoJAJHkJk5ErU8JSo2SX962bSx2RHxAV1f/KRpIE8qV5c4ltrpHk5qvu9nMzdHdxp5 8BhuBdAamheIQnk/RpWikxeZBl75Weyr86Fg4Q2zNyPZPleuU3FYztZvbgufJ++3JCJS wm56mIrIlQHU6Vq++8igYhknFi3ek+zLFIsdgvId9gzHp5dZ/SKxLdiLc0NIoh6qiz9f 9d8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xqvkhgCb; 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-143721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143721-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 v2-20020a63b642000000b005f4371d25dcsi4651197pgt.480.2024.04.13.04.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 04:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143721-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=xqvkhgCb; 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-143721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143721-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 EE6B5B21A3B for ; Sat, 13 Apr 2024 11:32:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92647405F7; Sat, 13 Apr 2024 11:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xqvkhgCb" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 A20503EA96 for ; Sat, 13 Apr 2024 11:31:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713007916; cv=none; b=JQ9jT3pck+dugD3AhgQBCnCqBuaT9Jb0AZz9tWV5MY8HsNBUCL52C5mtNy7JBr1+UnQBJ+ZnzwE/kmzweVq8+ictqrLzpGQUry4v+gLSnHwK4NemXmOpgIoHB4FjaCP+ubMExGRc9qi4d4aJ6B4xrP7MpBujfJ6007Ev5Pc1UUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713007916; c=relaxed/simple; bh=6vRirpLmOtZE6DSzDNXVb1uJuDEiPhA+CYx6M9zr3yk=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=MgYY/IyBQoeLlp59GNaEvY5YkdMtcjKME5qTsaxjE2gvaILBqpG7IdMdCw7fYFKoQ5CcQ6rWGwLZXQ1TtfjB8mm7UQE0Vb5iNyUBHbE9wVwhFRXebu0HXBDZ91swA6ZFrK71iSJh/HGoH9peu4ndEu3agMCRvYgIezCffoMDuu8= 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=xqvkhgCb; arc=none smtp.client-ip=209.85.128.45 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-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4181e10b02bso2718245e9.0 for ; Sat, 13 Apr 2024 04:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713007913; x=1713612713; 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=jPKejXRsNRWTCZp534abFGDNN1elivq5IZpRnxY77II=; b=xqvkhgCbB5Dei71gImhGQCUM72Yc1WJQG+BaNxCu/gAWBejgqERGccsU8SRQVKyNGf wU8/Gdhd5Pqaht+XMNcyDRRkXKAaGpO5dx6m267BFYEsW/UwYrTFVh48BGfTOW4NH9+R D5T1pDbNe4OgDCk8732GYXArvD1AkWmKT4+m53QMQRflFPFr60Nsu/xMWXTYLSU/QtGt jlWZAM/OqmZMofsTYsfw1LiPvUyeSNw8t6XpW+y0WStix5ibh73L0dXI7UhZdDcGWLkb uN7kVcO1VNQ24zLNyH6Um8/mn0LJHX/rBeL6p1+bxAgFTVlfWUphci7wxwSQ/y0QHI6V r8VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713007913; x=1713612713; 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=jPKejXRsNRWTCZp534abFGDNN1elivq5IZpRnxY77II=; b=hGeFwk79diAsrabRGBU1tlXwrIftle+/5+84Ulf+TyjtU26A4z7F6P3LD7op3YwmSE L+uBq4ON67ur51jtwnDFZ2vH1In94MGJMUxHt3+KlagzUSmlVBBWGdu45ZrCNoYIhAq1 BmCCrQg+/0xyb9gEWY+bacy9H6+trkflhTt739Xw4iaelGVBmr9/U7lKqcG8X6H+pZte F4uvnYNKyxv0eP38iIn5LDBXJKM0vTCmgf3MFWIpxjDyvpQp4vXGGGrYU+ap+O5f8pDJ omBr3gR5j7u24uJxlmwbmCfaxyQY3nZhCWopzMe4ejTUDxtKZkzTP2YhezDGx5daGzUw Psjw== X-Forwarded-Encrypted: i=1; AJvYcCUFGsHekIzU6JVtx9TxT/4P8ZWHoYGD/ra+nQrjzHj32WVm4sdfRmBM69K4e1Xgjf2SjdrNIvjR0sgq3MQSBTLpM9aYyFRKo1102BJH X-Gm-Message-State: AOJu0YxOL3fb+6ObbufTV1GvgQ3rXWpvdeapuCuRn+7l5Fzl36j1+BxC 1JMHSMjOfoF6L7zmXfanbXKm5SxSfL2lUjZRt8fE+KZ5UrO3n7wtDDsIo+dmPJs= X-Received: by 2002:a05:600c:5493:b0:416:a0a9:213e with SMTP id iv19-20020a05600c549300b00416a0a9213emr3259942wmb.13.1713007912884; Sat, 13 Apr 2024 04:31:52 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id o4-20020a05600c4fc400b004170e0aff7asm11455864wmq.35.2024.04.13.04.31.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Apr 2024 04:31:52 -0700 (PDT) Message-ID: <07210bf0-b262-422a-ae97-83efb9cbe6de@linaro.org> Date: Sat, 13 Apr 2024 13:31:50 +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: [PATCH v2] dt-bindings: usb: add common Type-C USB Switch schema To: Luca Weiss , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Neil Armstrong , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dmitry Baryshkov References: <20240122094406.32198-1-krzysztof.kozlowski@linaro.org> <051c6e44-4844-48b9-846d-cf9b81611415@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++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5f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cJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/04/2024 09:35, Luca Weiss wrote: > On Thu Apr 11, 2024 at 9:25 AM CEST, Krzysztof Kozlowski wrote: >> On 11/04/2024 09:13, Luca Weiss wrote: >>> On Mon Jan 22, 2024 at 10:44 AM CET, Krzysztof Kozlowski wrote: >>>> Several bindings implement parts of Type-C USB orientation and mode >>>> switching, and retiming. Keep definition of such properties in one >>>> place, new usb-switch schema, to avoid duplicate defines. >>>> >>>> Signed-off-by: Krzysztof Kozlowski >>>> >>>> --- >>>> >>>> Changes in v2: >>>> 1. Fix language typos handle->handler (Luca) >>>> 2. Drop debugging left-over (Luca) >>>> --- >>>> .../devicetree/bindings/usb/fcs,fsa4480.yaml | 12 ++-- >>>> .../devicetree/bindings/usb/gpio-sbu-mux.yaml | 12 ++-- >>>> .../devicetree/bindings/usb/nxp,ptn36502.yaml | 12 ++-- >>>> .../bindings/usb/onnn,nb7vpq904m.yaml | 13 ++-- >>>> .../bindings/usb/qcom,wcd939x-usbss.yaml | 12 ++-- >>>> .../devicetree/bindings/usb/usb-switch.yaml | 67 +++++++++++++++++++ >>>> 6 files changed, 92 insertions(+), 36 deletions(-) >>>> create mode 100644 Documentation/devicetree/bindings/usb/usb-switch.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml >>>> index f9410eb76a62..8b25b9a01ced 100644 >>>> --- a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml >>>> +++ b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml >>>> @@ -27,13 +27,8 @@ properties: >>>> vcc-supply: >>>> description: power supply (2.7V-5.5V) >>>> >>>> - mode-switch: >>>> - description: Flag the port as possible handle of altmode switching >>>> - type: boolean >>>> - >>>> - orientation-switch: >>>> - description: Flag the port as possible handler of orientation switching >>>> - type: boolean >>>> + mode-switch: true >>>> + orientation-switch: true >>>> >>>> port: >>>> $ref: /schemas/graph.yaml#/$defs/port-base >>>> @@ -79,6 +74,9 @@ required: >>>> - reg >>>> - port >>>> >>>> +allOf: >>>> + - $ref: usb-switch.yaml# >>>> + >>>> additionalProperties: false >>>> >>>> examples: >>> >>> Hi Krzysztof, >>> >>> This patch seems to break validation for fsa4480 if data-lanes is set in >>> the endpoint like the following >>> >>> diff --git a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml >>> index f9410eb76a62..3aa03fd65556 100644 >>> --- a/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml >>> +++ b/Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml >>> @@ -102,6 +102,7 @@ examples: >>> port { >>> fsa4480_ept: endpoint { >>> remote-endpoint = <&typec_controller>; >>> + data-lanes = <0 1>; >>> }; >>> }; >>> }; >>> >>> Similar to how it's already used on qcom/qcm6490-fairphone-fp5.dts >>> >>> I'm guessing the 'port' definition in the common schema somehow >>> disallows the fsa4480 schema from describing it further? >> >> There is no such code in qcm6490-fairphone-fp5.dts. There was no such >> code in the example of fsa4480 when I was testing my changes (and >> examples should be complete), so this did not pop up. > > Right, I'm sorry this is just out-of-tree for now, I've forgotten this. > There's some dependency chain with some unsupported DSC configuration in > DPU for now that blocks upstreaming this. > > My tree with these patches is here if you want to take a look: > https://github.com/sc7280-mainline/linux/blob/sc7280-6.8.y/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts#L628 I think fsa4480 schema is incomplete. I looked at HDK8450 board diagram and fsa4480 sits between and connects: 1. Type-c connector 2. USB phy or controller 3. DisplayPort controller for altmode I think nxp,ptn36502 is done correctly. You need three ports and data-lanes would be on only one of them. usb-switch.yaml schema is ready for this and assumes data-lanes will be on (2) above. > >> >> You right, new schema does not allow extending the port. However the >> true question is, why muxing happens on the port to the SoC controller? >> The graph in commit msg fad89aa14 shows it happens on the side of the >> connector. >> >> Looks like fsa4480 mixes connector with the controller. > > Could be honestly.. I trust you with knowing better how the ports are > supposed to work. > > The property is for telling the fsa4480 driver that essentially the > hardware is wired up the reverse way. So with this info the driver can > handle the orientation switching correctly. > > There's another layer to this as explained in the patches there that the > OCP96011 essentially works reversed compared to FSA4480, that's why it's > all a bit of a mess. Maybe Bjorn, Dmitry or Neil have some more ideas how this should look like, but as of now to me it feels we should add "ports" property and move there to port@1 the data-lanes part of fsa schema. Driver then should check whether there is port or ports and use ports->port@1 in the latter case. Best regards, Krzysztof