From patchwork Mon Apr 29 12:43:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 793471 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 99AEB6CDBE for ; Mon, 29 Apr 2024 12:43:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394632; cv=none; b=HadBBfZmnemzdHqK5Se8rDHM/3bEZ1MavdIa70racW3OWHTomQaoLpgBuba7aSoMF0fVULMD/VVZ3qPWsUZak/dEKmogvIw8bd8XniB7nxfyjghqGfD4RubBCgRPjCfv7OjSgECYmATCn7qr/FsFBCU3WB/BHDJSkhzQKBmcoic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394632; c=relaxed/simple; bh=lfCa8/A3WdTMZE4WDsCfE9ziDKBNSnFF8CBfBae6aH8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pSgsPxgln5496+OYjX0dRc/HJwyaz5i0f7keJKTtJsTKsjY0rgg4F9/EFX/4sRsh3ItGyi9m9vhA1+5VJSaVNxQG9YbvK7tHDVqzV4NUvkXeatCQp4nm4YfBN9FSIwILd/OfvFaM8l/E+c9J/C8LWL/bhDbCkaWCWL+iB9WoOKk= 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=TndRtTyO; arc=none smtp.client-ip=209.85.167.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TndRtTyO" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-51ca95db667so3792899e87.0 for ; Mon, 29 Apr 2024 05:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714394629; x=1714999429; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=G1PNklnw7rpcXPRbhJLkI3I7rSwQMAW7Mmxi2Rcau0k=; b=TndRtTyOCsQ72k0hq9IKd5V3sKoLk5t1NLiyIiyOWdteqiOZsTMqElXIA3el9oPEVC 1s/6s3BxGIzebpktGRRFntTeKE1ntj2+Ud/UzP7NoZQ+35ja6cbcyvGMJxo08UMJfU6O eMlBz7X+pQW6pzwH1SIrSRduJDVC8+S7yy43ggB45NqtrSGRg8/fU1kftlfG9+mQoz+o Ke81aYz3nFNp5sTxe6p+npXZzADIC1yhobM71abPcpxAY2Tsj9CVZwskOejp4rzw6Es2 4bmaJp2SAVxFbGeU+wVu4wiAX7L3D5gPiMU0UGYlFD6h6WIc5WxqnrA70blHwjMoGGhn H1xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714394629; x=1714999429; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G1PNklnw7rpcXPRbhJLkI3I7rSwQMAW7Mmxi2Rcau0k=; b=vwnoRIGuree8uCJHuZ1nyth6jxyVZ8UL0ok2v+37C1vY2P4m6OsEAvc9fIAI7DbjqL zBT5t2quHO2/VWj3c6/ipiZw77NJSdSs07DKq20yeM0eM7bFDsvSmanRaaIsiwJAm1wG 645NZJ9eijoQKshZFe0vU5ljpDV757i6Tg1rTx9Y39+A6hPtDS/1DKOKLg21Lju6eTxB vVECCZLOd5MjgywaXRHfr9LU6XBxsz7qFmFH69VuX8VUrgBhRjAVjmkko1Izr8A2TUiZ l6jTQ2+xGjqboG/rahjEaVW2ExHlVbm65HyO+eyDQHWd6QHaz5+ed71L6xZbINCfu87y 68tQ== X-Gm-Message-State: AOJu0YyTrLdgASyUpkWpuVMKHb1V00Tum/jVyzYl3fqVUbWhI6f8V1TZ RB6S2HBRaI7PM4+MoP70v3PRe5Y/K5i4Y6yiTrcQD3rBRXQ+Iho+xEEUYXRkj+w= X-Google-Smtp-Source: AGHT+IHvs8WWEj3p6TBwj4vs3xl32rzPrtcspSVEvP3UNooYhYk0FPySLN71TawbnGaXBKQEracfMw== X-Received: by 2002:a19:644f:0:b0:51b:223f:ac41 with SMTP id b15-20020a19644f000000b0051b223fac41mr8206330lfj.42.1714394626953; Mon, 29 Apr 2024 05:43:46 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id h18-20020a0565123c9200b0051d94297380sm467538lfv.241.2024.04.29.05.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:43:46 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 29 Apr 2024 15:43:42 +0300 Subject: [PATCH 05/12] arm64: dts: qcom: sm8650: move USB graph to the SoC dtsi Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240429-usb-link-dtsi-v1-5-87c341b55cdf@linaro.org> References: <20240429-usb-link-dtsi-v1-0-87c341b55cdf@linaro.org> In-Reply-To: <20240429-usb-link-dtsi-v1-0-87c341b55cdf@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2247; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=lfCa8/A3WdTMZE4WDsCfE9ziDKBNSnFF8CBfBae6aH8=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmL5X+mEJBHfZwIG87jh7rS6vG7tnHJWSkPk8N+ FrBErOzJmqJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZi+V/gAKCRCLPIo+Aiko 1ZxPB/0So9yTJ2Y7nrFAv5od+5wTkS1zY1sWmg4VsLRK9Wse2LqAxQlCeo7VI4hlImjmxdPZB+W m23GEi1qk2DvsbmfpCd/svK0soVKO9tpMPI6K8asXArZZmVelZsF1N6xkokHv2g+yBXkHNfM5eB siv56DbFaOPsSjoSa8qoGlUpZhoAntl6FtL16pOETetDzLMwdzTfHeXdG8E4YYTjXx4P6PFu53u QC9SGs6W9G+F3RXwwWiDL0H/w1gCpMEKoa/dQ4M0TXsvCVxLtxGqSsaY2QoYljZGB0lTh0WVApD NIpFrjTpUmHE1AXvTc3f2XllEINuEHbyA6aZ0l10PusCCruM X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Move the graph connection between USB host, USB SS PHY and DP port to the SoC dtsi file. They are linked in hardware in this way. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 13 ------------- arch/arm64/boot/dts/qcom/sm8650.dtsi | 4 ++++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts index 4e94f7fe4d2d..65ee00db5622 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -832,7 +832,6 @@ &mdss_dp0 { &mdss_dp0_out { data-lanes = <0 1>; - remote-endpoint = <&usb_dp_qmpphy_dp_in>; }; &pcie_1_phy_aux_clk { @@ -1211,10 +1210,6 @@ &usb_1_dwc3_hs { remote-endpoint = <&pmic_glink_hs_in>; }; -&usb_1_dwc3_ss { - remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; -}; - &usb_1_hsphy { vdd-supply = <&vreg_l1i_0p88>; vdda12-supply = <&vreg_l3i_1p2>; @@ -1233,18 +1228,10 @@ &usb_dp_qmpphy { status = "okay"; }; -&usb_dp_qmpphy_dp_in { - remote-endpoint = <&mdss_dp0_out>; -}; - &usb_dp_qmpphy_out { remote-endpoint = <&redriver_ss_in>; }; -&usb_dp_qmpphy_usb_ss_in { - remote-endpoint = <&usb_1_dwc3_ss>; -}; - &xo_board { clock-frequency = <76800000>; }; diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 8e0c1841f748..4624ea4906d9 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -3675,6 +3675,7 @@ port@1 { reg = <1>; mdss_dp0_out: endpoint { + remote-endpoint = <&usb_dp_qmpphy_dp_in>; }; }; }; @@ -3767,6 +3768,7 @@ port@1 { reg = <1>; usb_dp_qmpphy_usb_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; }; }; @@ -3774,6 +3776,7 @@ port@2 { reg = <2>; usb_dp_qmpphy_dp_in: endpoint { + remote-endpoint = <&mdss_dp0_out>; }; }; }; @@ -3864,6 +3867,7 @@ port@1 { reg = <1>; usb_1_dwc3_ss: endpoint { + remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; }; }; };