Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp360953lqb; Thu, 23 May 2024 23:51:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7ZX5TbyieYbuBn78sa6fOzIvJaZRqR9k+OfpFp3vOycLkKY+zedx1YudaJ79LJUBH3v0kJTgf5Fyhv34VhT3KeeW5QTKS4Ic/JE8Agw== X-Google-Smtp-Source: AGHT+IGl36n9vHFA+dFraQcRtnOC1GsJkvM1zMW7U6gySheO9ALd9EyMxO7bnBNngGUzm8cr0Zt3 X-Received: by 2002:a0d:df93:0:b0:611:26e1:f482 with SMTP id 00721157ae682-62a08f0a0fbmr13128847b3.32.1716533515350; Thu, 23 May 2024 23:51:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716533515; cv=pass; d=google.com; s=arc-20160816; b=ooWs2S4JsiCORPWsJjFcTrtL8lLCoYr4lGeDzMgS4jh6Tzs9eB44SQ1d/5CejvAx3Y nEdJe1I5LKCsgUAenoML8craZ8Xc5Xe0TjeOTnbbD9eBJy6VobWr+smx53Ej8KG8S0SI ha3t1PnmrgKFnm30CmubVkP2sNbtzIawaxu3SsaquU2VqDTw/QAetC0WQKzU/PePKcBA rTpLicFEUNwHIw4dl2IgxWqmHEugOBE89rCaelFZfKiU6PworUMDUPRGwGyeZTrvkaFK VW9OOYeyBf58LnUMZBkysvGeBxuSxPAdGJ6ofbe4f1j7epl8urvqLZsfhHIn9CO2vepj IKAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=8AM6VA18bFGFYY5kMPUR9rqKd9gSuqX5euarcCf0EZ4=; fh=mmHVfWu852cpWL08HecXlQVCUlAl7yNgsDL0fS2Nhfk=; b=sVEdxtFEP+EiHcS2LkiM1PTXbecLWOQpxbPqHsrmBjygMzOfh5Y8K+a0/n7YPxm+Y9 EGl35WfhZ+0zfxxL7bsDYYVxiOvtWEmAEUpO/JRd5qeD0LjW6uRrBQysfehJzXJzio7T +d443T791QqYHUTvNqCznr+gPgPD0TulKXXvNGQhzTOb5lBUBlFVeDiB0BOqQjd+PUdl caaU+44+iO2RzKJhneEoEEdiHdH5vY6MG6FDmWAj9CfQdb7JhRTPicqv0b//crWsmRIf ab8Bl1p+ZBIUzFjXtIWEMM5ZBo8wTzaqcyJNd37btU1K98QycfuPAKAuhznWKhJE73SU CO4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="JPB3o/uY"; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-188367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd3d269si94507185a.468.2024.05.23.23.51.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 23:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188367-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=@fairphone.com header.s=fair header.b="JPB3o/uY"; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-188367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com 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 003A01C20BB7 for ; Fri, 24 May 2024 06:51:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A13BB128385; Fri, 24 May 2024 06:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="JPB3o/uY" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 D305C11720 for ; Fri, 24 May 2024 06:51:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716533507; cv=none; b=P53mHRcCzfwto2yEp1vraaZwaCG/Q8O9pEim78l7voG5e7XoV9eOHlrVCuUf/TDbGxvr++cnO8kEWNS13fn/FkA18u3T1N8teVIle9rsYoPO8II+bPyH5JI0dT/8yqBF7keQjSMDQZTjnrVenQvik79Qtgy801AsoKbQ1vDuzzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716533507; c=relaxed/simple; bh=bQ0F2m4aBg8Va1VvxQeZ4hY5GUZdpIU111SIkEQdJR4=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=NpT2pmxCdoeKiGq/8pnNJwhIWVqVrf+IacIHhwjBiAqmqVJKdGiYHy5OnZleQvI17WB1r00xTDNMFm6AARbLuXRREe1X/ebWjOSFKOFHJJsF2CZJ9niqSSPGnIULoXnIl8EZjmM2mXwvNp6BT1JvdBKJoOpJoM4AfKDyrFjZaEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=JPB3o/uY; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-5295a576702so581530e87.0 for ; Thu, 23 May 2024 23:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1716533503; x=1717138303; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8AM6VA18bFGFYY5kMPUR9rqKd9gSuqX5euarcCf0EZ4=; b=JPB3o/uYSvuidL+Z6sDJghVko9dUg0T9Cc8e/HNqOXeaWgqYuqR6ySsCpxTKt85UAf b99ytJ/vViHhqeTsPBe2Dtt8LSEHju/KuohBWjyHdyX8jXpQgJb7d87e/MJCkllseVf0 eq7NeiFRX7WI1bvbYa/EOdFiBZXL+zZqeA69wR9iFKFISoNFvP5ixiOKTWl+8FmGkYBw Nzzb91bAkINUaNHfgREUGnOcAwU1dSM0y2M23E3uzgs6F8tgIUU+cAdJuyw62i3JRkY+ DTMe/8nWNTdzX60IrRX5feamnUPPIA9DY8a6fB2O1GaSi3BGLh66AY9YI2vDefU+GeK5 e7Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716533503; x=1717138303; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8AM6VA18bFGFYY5kMPUR9rqKd9gSuqX5euarcCf0EZ4=; b=mraNAZDt11ocgXZVbOswanaSLUyO8oinVkjtG+OPEs0/THp9939DB/j9rQF8S4ZmGY G9478aWrnABk2E9x6HCEoLAxMckTOlx21Vo3+OGBJzKLp3yFYnywfl9Q+5sr8lXaSEpz uhb2Zk2OMgmtroSM/ADVJ7ghLIGh5aXcPCJ2Z23myqOv0mjOzlCRgRPiy6ZuNRxIQx+8 F+fZovSooA31Ox0dmE1V9G7Llwghi4BLan1r76N9HO+KLmsHXZ8uBoPTTHwLbYlAAQ6z BJEWxdAWwLNOSOaaJ+4Y1WKIVLDr+KcGeLjI8yQ5qHKJC9L9AMrgP/RigEC9txho2QmF jPSA== X-Forwarded-Encrypted: i=1; AJvYcCUnpEU3YDa6416x2RS3SVCcd9XXl+XZhwVhWvNgMrr88M5Dx82Xp8G7GOyEcpbGbYDcO2LTUeIBreRJhgqL0kGBZu8aOSrnbHxomc6f X-Gm-Message-State: AOJu0YyRIR7EBX5Ha7phMrTS/vwtqBKNwWEPD7ue2LVLGynqUm4H+lBt 3G7NoTyB3HnYz1UfIq/XNucaFQHcht0X/W63HhyPG62e+4LwOq/12p9fvuWjKME= X-Received: by 2002:ac2:5b12:0:b0:523:df53:93c2 with SMTP id 2adb3069b0e04-529666d81a6mr733669e87.51.1716533503025; Thu, 23 May 2024 23:51:43 -0700 (PDT) Received: from localhost (2a02-a210-20ba-5a00-9ceb-707b-2d57-26f7.cable.dynamic.v6.ziggo.nl. [2a02:a210:20ba:5a00:9ceb:707b:2d57:26f7]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5297066ba0bsm109560e87.163.2024.05.23.23.51.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 May 2024 23:51:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 24 May 2024 08:51:40 +0200 Message-Id: Cc: "Vinod Koul" , "Kishon Vijay Abraham I" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Abhinav Kumar" , , , , Subject: Re: [PATCH RFT 0/7] arm64: qcom: allow up to 4 lanes for the Type-C DisplayPort Altmode From: "Luca Weiss" To: , "Konrad Dybcio" , "Bjorn Andersson" X-Mailer: aerc 0.17.0 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> In-Reply-To: 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: > > > > >=20 > > Next, with DP 4 lane (not working on mainline but still plugged into a > > screen) the diff is quite a bit bigger. > >=20 > > See attachments for the full files: > > * usb_1_qmpphy_20240503_151052_android_4lane.txt > > * usb_1_qmpphy_20240503_122443_mainline_4lane.txt > >=20 > > 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 > >=20 > > 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_CT= RL stays at 0x3, > which means the mode doesn't get broadcasted to the phy because.... the r= etimer 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/a61fb3b816ecbe28= a12480367d9e09b700ec09e1 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 =3D 4 So feel free to add my: Tested-by: Luca Weiss Regards Luca > https://git.codelinaro.org/neil.armstrong/linux/-/commit/f6f976ff692bad43= 0cd945f02b835e355f19632b > > Thanks, > Neil > > >=20 > > Regards > > Luca > >=20 > >> > >> Neil > >> > >>> > >>> Konrad > >=20 > >=20