Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp367783lqb; Fri, 24 May 2024 00:08:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpl3ffHlVH5c83DzuvGOCjmSVD0kaujEo1RgL2Yc4fLbtsNALDLlDUZqTVFlS83oJ+KrtIXHhJCSIH3oWH51x1xmG+NFGUWvjRwJRPhA== X-Google-Smtp-Source: AGHT+IFGFQb7Zpv/xypAl4c1uPjhZ+9vEZJ0214014p1f5GL8f+quNjZlL+4n3R6EgE+M30jfAwS X-Received: by 2002:a17:903:22cb:b0:1f2:fb86:5cc5 with SMTP id d9443c01a7336-1f4486b5dbamr14787015ad.10.1716534535155; Fri, 24 May 2024 00:08:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716534535; cv=pass; d=google.com; s=arc-20160816; b=cEYplV2q5JT+nPr2E1Qft3ruHqFCnq+JEhBDLY/1puU3Z5wWbnJQz6ZETuSZAkxGRW FLvXM5lMTePYvvG62WFMspM9yfmr5KPSYZKPTdDdMxLhqDPSPaS6+tb55J4ukCr1a3s4 VRjs6ItEJFAuZkXVEaRtXhOLM6CGe5/DXFpiqf3c+MjkelS1+EnCgjsZMeoKbovwTL4/ cOmhK9Cxc/w4zQrj3S+Mi3EfqcHzCXTh8AK6sXOUGN94UV8GbLVqR+oaUGpyFUReqz4c RF7b5nDT/72NMMiN3sZkOM5H8Cz2ZVy4d0dSMN8QMnQGK7TwqGi/DVPpN3vv+6SVl/Xi Cd1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=E8MAm3h3NI5iKT+iweY3kApju3idNJyvBAdIptvUy6g=; fh=qaD8N1dw5+nqLHsToLJpNLOFR5T3+y+P/Hxwd/1V2dg=; b=IO9yWAF4uHtpImM90oL/2ym2YgFb7qGMMFFUk/FVugOu3fK4Ad0LYyuAqqV9PHh4hs 74S59ggz62mgs4Tyk1FyGRUlyMcljPVDT2uvdx1Y0AjmJMs9gZUyc9TrmzUX4SDC0qKr 9pQttDnyjP92TGH9hIbTQ7r3DzcO6MTZkaSU3ONlioc3oecxK+Yx1VKt5OBUQtbGfq1F zrR3rylZ1x+D3GMykAMasskZRDVpBhiCKKhOoQSGdqNhlb3mjSujPid4EVNwhiZwpSER k+xC5PNd2Xx5n+qA2CGHmy+fvwFeg39xzEppbVZgMNIVvDrtMWEyyNEe5ROp1VjkZNyp gN4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePDb2sDG; 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-188381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9aa822si8142715ad.433.2024.05.24.00.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 00:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePDb2sDG; 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-188381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188381-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A4CAA2816F0 for ; Fri, 24 May 2024 07:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67FCA128814; Fri, 24 May 2024 07:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ePDb2sDG" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.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 B4A1A86AFA for ; Fri, 24 May 2024 07:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716534526; cv=none; b=uxpJLJ++3eL/75tmBohqt76xzQQA97TCJE4W9rHXKhVFZhyLdAglT1hpTeqs9MEXdYkdvPzwF9e1VI3qAtvzvLDc5uuL3aGSI9y7UenZqAY0LC0Zwqp1oSMW4b50xf3LQNZ+0aCB3xsB/N9z3E4y+w0103m6jasc70yEmSY9kHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716534526; c=relaxed/simple; bh=0zL78J9MpyFNUiYWqKOJbE1a9M+z4vN5gFKzhKamHTM=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=hqY8Yv2r3Z7nmPvFk4LkSGjGm8M6MoRRMzD5jN5cC+Teaa1SNY7dXPmFAR4+OD2qZPEYKrwrvk+sHgFxbr4qvlqN9wJ9CojJp+W9OX8Pyiw8+PQruV2oeuNelKPdcNsPvZzZx+U48q/pGB3C7D00JQsSLsME5bTg75xK+w7tW0o= 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=ePDb2sDG; arc=none smtp.client-ip=209.85.167.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-lf1-f42.google.com with SMTP id 2adb3069b0e04-52449b7aa2bso5975367e87.3 for ; Fri, 24 May 2024 00:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716534523; x=1717139323; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=E8MAm3h3NI5iKT+iweY3kApju3idNJyvBAdIptvUy6g=; b=ePDb2sDGAdYyCu4xf77GuFpwdQjgaSkotctDzWD/LFYyN2WEdkp3EkPzFXZiI3MSYu eL+EiCAwGuxFV2pcTFaOpsdEyTxySSQFmI3CP77F7KqaWHI/FUiAqBVPR4UIEuUvJnFk TBZkSH+yLMAJ+J+oVjKfLMfaRfg0uZlYZeS384BTizckgGp1mRs4F+lpbqBnX1I9kUs/ tIgrvDjRrCgWOu60zzmgUsKGzdc/qyO7cMkEXEmYWfKSOW3JnfX6N2eNCpA4M8cp2DSY 44TQBmTUvLwdK7Vg1UpvWOnlJ8MZxzoCBoffR0inSQh0KFE7Nl/KpYaTDnoFPtxYqYJI yb+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716534523; x=1717139323; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=E8MAm3h3NI5iKT+iweY3kApju3idNJyvBAdIptvUy6g=; b=IUXBxuCl4mRN+93Kv8GXNNs1RXf/Ah5+L7UMxRAniWMiFbVebcDqxB5Ujic2uO9NRD rPdYbQAVHPD1nO7g2Ozbzt9GumVhSgblJ6Zqz+3J5ewL1ZH+DehroqvEH0dNgUq0I3FT K03W3vO5JR9oQpLsxzzHnWTMiNHQ0WLQKxqJQ7N3mibmRU4eHzsK8Xho1rrWGEo5La+q PrCKw3NtCauogZOW7Q8H38vQpojtOwv1R5lsxnlrgqR2eLkVTve6RixbXVuftuT6Tehr zNykotsbiq5NPFKD8ANr/eQ/ELn2MR8rd5cl+V7bBJ0YVZcvGIJoV/+eH9WuQlvPN5gd JU2w== X-Forwarded-Encrypted: i=1; AJvYcCVi6cvQpKvIO92elsShMdhQfrBPA1HVEW6zgQ68bVBJKQkrDdcyu10TUFHBOdTj6JwTKktldoC5KKGgJOeQb7rsftcKMegXO1rj7eBM X-Gm-Message-State: AOJu0YyFAjUA7GvXC/9x7iR6uHUIV/3T6TudMuBmeDRI5AINw1lM8kC2 K71k925t+/++eCSjwW+O6JYIbIfidgOV2kNHmtsbUZVmtu0LKvKKlP3i0pH1Hko= X-Received: by 2002:a05:6512:4cb:b0:521:54b5:86a3 with SMTP id 2adb3069b0e04-5296717fec4mr687397e87.64.1716534522716; Fri, 24 May 2024 00:08:42 -0700 (PDT) Received: from [192.168.7.32] (212-114-21-58.box.freepro.com. [212.114.21.58]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-421089cda51sm12113335e9.47.2024.05.24.00.08.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 May 2024 00:08:42 -0700 (PDT) Message-ID: Date: Fri, 24 May 2024 09:08:38 +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 From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH RFT 0/7] arm64: qcom: allow up to 4 lanes for the Type-C DisplayPort Altmode To: Luca Weiss , Konrad Dybcio , Bjorn Andersson Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abhinav Kumar , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240229-topic-sm8x50-upstream-phy-combo-typec-mux-v1-0-07e24a231840@linaro.org> <7a7aa05f-9ae6-4ca0-a423-224fc78fbd0c@linaro.org> <236a104c-fc16-4b3d-9a00-e16517c00e3a@linaro.org> <963b60e5-6ab7-4d9f-885a-ba744c2b7991@linaro.org> <864063fb-eeae-4eb7-9089-0d98011a0343@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgH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gfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24/05/2024 08:51, Luca Weiss wrote: > On Thu May 23, 2024 at 11:06 AM CEST, wrote: >> Hi Lucas, >> >> On 10/05/2024 08:51, Luca Weiss wrote: >>> On Tue Apr 23, 2024 at 4:08 PM CEST, wrote: >>>> On 23/04/2024 15:03, Konrad Dybcio wrote: >>>>> >>>>> >>>>> On 4/5/24 12:19, Luca Weiss wrote: >> >> >> >>> >>> Next, with DP 4 lane (not working on mainline but still plugged into a >>> screen) the diff is quite a bit bigger. >>> >>> See attachments for the full files: >>> * usb_1_qmpphy_20240503_151052_android_4lane.txt >>> * usb_1_qmpphy_20240503_122443_mainline_4lane.txt >>> >>> Not attaching the diff because it's quite a lot >>> $ diff --ignore-case -U0 usb_1_qmpphy_20240503_151052_android_4lane.txt usb_1_qmpphy_20240503_122443_mainline_4lane.txt >>> >>> Not sure this is helpful to anyone, but at least wanted to share what >>> I've done so far here. >> >> Thanks a lot for the traces, it founds out the QPHY_V3_DP_COM_PHY_MODE_CTRL stays at 0x3, >> which means the mode doesn't get broadcasted to the phy because.... the retimer only broadcasts >> the orientation and not the mode... and it works on the HDKs and the X13s because they don't have retimers. > > Hi Neil, > > This was it! > >> >> So I made the changes in nb7vpq904m and ptn36502 drivers to get the next mux and broadcast the typec mode, >> if you find time could you test it ? >> >> Bjorn could you also test on the rb3gen2 ? >> >> The changes: >> https://git.codelinaro.org/neil.armstrong/linux/-/commit/a61fb3b816ecbe28a12480367d9e09b700ec09e1 > > With this ptn36502 patch on top, I can confirm that DP 4-lane seems to > work on qcm6490-fairphone-fp5 smartphone with DP over USB-C! > > Tested with a USB-C dongle that only has a HDMI port on the other side > (so no USB), and cat'ing dp_debug while connected showed num_lanes = 4 > > So feel free to add my: > > Tested-by: Luca Weiss Thanks a lot for testing, spinning a v2 with those patches! Neil > > Regards > Luca > >> https://git.codelinaro.org/neil.armstrong/linux/-/commit/f6f976ff692bad430cd945f02b835e355f19632b >> >> Thanks, >> Neil >> >>> >>> Regards >>> Luca >>> >>>> >>>> Neil >>>> >>>>> >>>>> Konrad >>> >>> >