From patchwork Wed Feb 21 23:19:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 204489 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1356807dyc; Wed, 21 Feb 2024 15:30:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVc6/QQXQ1w5V7JCjAkou5CcblxSYK6dvzgXlhnngvmDVaGG5f33KkwMlElCy8j/+03fOAhekndNE/n1kV6Olg/GicqDg== X-Google-Smtp-Source: AGHT+IEekSaMNj/A3CEsrIVYedHluEqKqipXTiaBQWKqtTmNqD7sPct2rk6grPZGHwuTvSPfifef X-Received: by 2002:a05:6358:41aa:b0:17b:56f5:3 with SMTP id w42-20020a05635841aa00b0017b56f50003mr4643232rwc.12.1708558254695; Wed, 21 Feb 2024 15:30:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708558254; cv=pass; d=google.com; s=arc-20160816; b=NTeh0VfcU2LfPeHRV4BOvffz3p7L7T1PFgHIByY5a75S4TtAEWTa8iD6//V1vEgW5C yiinHJbscSyiozfQHkGS9ALaYW3D46t2VkOIn1ekSgQ0VD6c8t052Q76bk/VP0wIKsV3 NaYAmn2J+GrK9uFsROHDIt92fL/Zq3lagBoUwaFMz2t6AU7M9JIqkVn/wLo0Jpw5CbMS UT63Y1VJreFhl37zbDkbNTXA5kpqu2ALYhLbGNr5OLAuVlif/XEbX1Sgs1DaRyWKw7s3 49w4he9JElPSmDteqXp5ZwRGWWv4lYmG4N7peRl3mC+Wux56N8DlF12AV3tDBPVYLIQ3 nMYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=QTP29uXayTppSGBG8X5DJFah/21DBQs8tbaymcmdRPs=; fh=Ph3D4iPhMs0qfrBSt7uGZnxnp3Fv4RZ3r2ELq4z6NQk=; b=Z7KS/SPiE3g6hH8BubN4vABAtTfrfCLW+ohrETn3T9jIGdBftnFw+2UYFynFhlxNIs wgGyHvl7dr+/sPSqBUR19B/hbX0DfywuyrBO5QOU/9dZa+nxw3+VMLxs4z+QP48ZWJrq Z2qeqsij49D22QkdLM0t+j5w/wwPY075ZHcpuejVXQd6b4vVMRjhqFj3dtGJ0s9wItHa yvd0QPnjBaLfL2QucNHA4Fd/kNmvoicP+OuFxL0UOrEKzh715JlTXigqbLUddiL2HKlD s6MCSuaABkAKWlnbAqJwyQdLN8+wbN1COcU0ZhlNTYjz38ZXdhN84ZGQ1lfAItCoYDzt kLUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=blNdUxc0; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-75646-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75646-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id by26-20020a056a02059a00b005dc8961f39dsi9335546pgb.69.2024.02.21.15.30.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 15:30:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75646-ouuuleilei=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=@quicinc.com header.s=qcppdkim1 header.b=blNdUxc0; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-75646-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75646-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E947287603 for ; Wed, 21 Feb 2024 23:22:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52F5E145347; Wed, 21 Feb 2024 23:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="blNdUxc0" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5733126F11; Wed, 21 Feb 2024 23:19:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708557569; cv=none; b=uDkKUby3u4qw1mrxbAGyfMQGdHqmObcwmb+WNJjhkc1fEchxJ09Ji32ffqn5JTGl7y/IxHM8VIj6x/c/JpZXwa3iQMIyXMn6JXEJd6l0twrJf24Vp50jetJUlimyecoZQE0gVEPHdEWttBMQhSz8tXn2tuoXFhRvInCYsZzS7tM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708557569; c=relaxed/simple; bh=Y2qSwk8mNfYuhwG1rzOt+sTbITj2QLeKwrRBBV+22Jk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=V6EBpqNUvbzwFROGW5z7Hhsi3v2wfY71KClykvz0DkeQ5AmWXgCOipwoYa9GMztPP1/GJueoRQ+BAbt4xND6M1FKFmkcRo2mqXAesfgp+y/t2FBOhM69Q3REj1tjutuZ05bgq61N/40rxznHMgk5n1uX/QGoNiOpVjUl2Y+PiIc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=blNdUxc0; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41LNHTUQ014377; Wed, 21 Feb 2024 23:19:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=QTP29uXayTppSGBG8X5DJFah/21DBQs8tbaymcmdRPs =; b=blNdUxc0Kn+7Srf3j4HTmT7KAu08rkxSwtKOW3p5uU7bVcirG+oL+9+ovf7 uw7eR68hFJRjSxAlvY531Qkgl3/CdDvWOlZaFKVqNd7TB0JaczvumKbA4SWAryzE yOs537Rm+eNnoQ65rlBKAv+1XTglXuOw38vRtJl6oaoIUMu7BEtBSiMs0grlkGrr qXLSAiHASlKvO1fmJls18RmabkJuqSq55SI8nRlyALdHpJ1EwQUrwq7l32iMq8PB WNcBjDOpTwGO2iFknqauBk/ACUHlYzZc+dqXQCLxZb89OhkSEAR/lbFwo1IhNcdS B2NDUnmwj4leV837ECXyWNeYazg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wdsk4r3we-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 23:19:16 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41LNJF9B000680 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 23:19:16 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 21 Feb 2024 15:19:15 -0800 From: Bjorn Andersson Date: Wed, 21 Feb 2024 15:19:16 -0800 Subject: [PATCH 8/9] arm64: dts: qcom: qcs6490-rb3gen2: Enable USB Type-C display Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240221-rb3gen2-dp-connector-v1-8-dc0964ef7d96@quicinc.com> References: <20240221-rb3gen2-dp-connector-v1-0-dc0964ef7d96@quicinc.com> In-Reply-To: <20240221-rb3gen2-dp-connector-v1-0-dc0964ef7d96@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , , Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708557553; l=2319; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=Y2qSwk8mNfYuhwG1rzOt+sTbITj2QLeKwrRBBV+22Jk=; b=2HBJlKPeitCH7Qs6wDT9HIUJ2DE13MalWy88CSXlms7Evl/wML8C3mEezy8bei51cSs/yxE1h 24kibnMHQoCDcd3EgxXN1LYZjYuVbo6Cl0TvbgI7TTzEtiFigYw9Tds X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: b1Gp7E8x9DXEtpo_5xcJZxwP1tW2zxDA X-Proofpoint-GUID: b1Gp7E8x9DXEtpo_5xcJZxwP1tW2zxDA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-21_09,2024-02-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 impostorscore=0 clxscore=1015 bulkscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210184 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791553180449442131 X-GMAIL-MSGID: 1791553180449442131 With MDSS, pmic_glink, and the redriver in place, wire up the various components to enable USB Type-C display on the RB3gen2. Signed-off-by: Bjorn Andersson Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 63 +++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 171ed979d55f..4bf1c6351467 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -149,7 +149,15 @@ port@1 { reg = <1>; pmic_glink_ss_in: endpoint { - remote-endpoint = <&usb_1_dwc3_ss>; + remote-endpoint = <&redriver_usb_con_ss>; + }; + }; + + port@2 { + reg = <2>; + + pmic_glink_sbu_in: endpoint { + remote-endpoint = <&redriver_usb_con_sbu>; }; }; }; @@ -476,6 +484,36 @@ typec-mux@1c { retimer-switch; orientation-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + redriver_usb_con_ss: endpoint { + remote-endpoint = <&pmic_glink_ss_in>; + }; + }; + + port@1 { + reg = <1>; + + redriver_phy_con_ss: endpoint { + remote-endpoint = <&usb_dp_qmpphy_out>; + data-lanes = <0 1 2 3>; + }; + }; + + port@2 { + reg = <2>; + + redriver_usb_con_sbu: endpoint { + remote-endpoint = <&pmic_glink_sbu_in>; + }; + }; + }; }; }; @@ -483,6 +521,15 @@ &mdss { status = "okay"; }; +&mdss_dp { + status = "okay"; +}; + +&mdss_dp_out { + data-lanes = <0 1>; + remote-endpoint = <&usb_dp_qmpphy_dp_in>; +}; + &mdss_edp { status = "okay"; }; @@ -534,7 +581,7 @@ &usb_1_dwc3_hs { }; &usb_1_dwc3_ss { - remote-endpoint = <&pmic_glink_ss_in>; + remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; }; &usb_1_hsphy { @@ -554,6 +601,18 @@ &usb_1_qmpphy { status = "okay"; }; +&usb_dp_qmpphy_out { + remote-endpoint = <&redriver_phy_con_ss>; +}; + +&usb_dp_qmpphy_usb_ss_in { + remote-endpoint = <&usb_1_dwc3_ss>; +}; + +&usb_dp_qmpphy_dp_in { + remote-endpoint = <&mdss_dp_out>; +}; + &wifi { memory-region = <&wlan_fw_mem>; };