From patchwork Mon Apr 29 12:43:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13646876 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 65552C15D for ; Mon, 29 Apr 2024 12:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394628; cv=none; b=UhK/hKbvrQj2Hcf69UGQTsTDaQyvO3KOJuq2jpyDXoqQggTiNNVVM0GJ2Duac8xWR8qqnecYrh4+ZFnMxiIgCLWTmgj1D3KdVzPZE2i4FD2zbiuU5VABDcCVUwXYAOKJZKnMqGCqPJHRrqkysH4gzZ9YlraAgY8JgANquCvUUWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394628; c=relaxed/simple; bh=3ahalgQrX1I3yfQnq7+cpNw3xYKZCyqvysUuHDXO+Mo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C90boIzk91XorcOq+I/8war545kjZkI9JuZ6L5VBU9dhyRBJXOVyNooSgcwclEhw3rQVxika1MBvQr33x7ghRz/UJgatEOLJSk1b+jAe7T9rVzaBubt53nUX6lJfaPw7ZGcUL2bNnoRznCPTc7FQ1BRB8kkqEZoRDtLTr6NCWFM= 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=u9KKIMvb; arc=none smtp.client-ip=209.85.167.52 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="u9KKIMvb" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51dc5c0ffdbso909396e87.2 for ; Mon, 29 Apr 2024 05:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714394624; x=1714999424; 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=NNutWFZyGINp4G7joe8+n09dkk5KMMBPhLsYqPUlzNI=; b=u9KKIMvbaViEflCuvFHS/uWv6HoUv3raijzwS26xrQK2T1XvUj+Dxw+wAQFGWRv5uv I+EJHXtJ3sa6Siq3RKlrHwvkR5vviX9E9z94F+7WeOKJuK438gp9eHKozSJlWxo7QdDi GknjiJY7RYqr7KZXReFgnj4dGRUVvZEOwjPvdyTQZCatZ63lzZz1jpB+nOI6PTMgAbsU CKziPnJiSi9pOMyjgVsTpz2OW/meiHiJNzPX7wZRxGOuVMQFEAiJlKbUVFiAQZU6wjTe Ma4IhEuQVBiuU/FlDxMPBmJs1OF1Q0hKwP4RSLSowg27z1o9QC1BAJVui5QMxMDYttYB WaeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714394624; x=1714999424; 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=NNutWFZyGINp4G7joe8+n09dkk5KMMBPhLsYqPUlzNI=; b=qTlYByShYaAbgWxP+l91aYdXiThO2LeJU99qFFiw6tIimjkuYqkKoaJcgiOSmavGMk 4ENoQKxtFegc5lOGp2DR8aja95rDh8/avZwBmVB0HxUvH/SLhJ62qGMJDoXR8BP1vuHl 5utDVNTrYRYquC8XMSTRe7YaqPv6C8U0r6SnQ92KT03YZNGgty/AAaHGjoiom9BCYGRJ ptJ+8eK+QVNKMb2hL17LpvxxoEPq6oDl4l28GnTrRzCxzx0CWfpeZQVB/hjkTQPIjnAC Ts1zDYNB8Eyfe4wfDevQZX0OBYlND3cbKcg/M35rIob0daUpKPyJgUIoCqsfDLI0ShtB BBGw== X-Gm-Message-State: AOJu0Yz8MsxSeqGWtfWW044ey84bdpC+dhVefZOz47vCrr+UsvvU64vM ec4WgSafjRp3KgbxfQNkdWdFz2FSnIgTqe4oD8dhg9YYqVjpp8OQoadIbCTvxLM= X-Google-Smtp-Source: AGHT+IEqM1Vl43HLK9dfl1bIMuF51ks5ITFNdbi3CKn/0fEHcDTFo4Ov7KI2UBym7WYpgkvbo8o4Aw== X-Received: by 2002:a05:6512:104a:b0:51d:98c4:94a4 with SMTP id c10-20020a056512104a00b0051d98c494a4mr3042535lfb.58.1714394624562; Mon, 29 Apr 2024 05:43:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:43:44 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 29 Apr 2024 15:43:38 +0300 Subject: [PATCH 01/12] arm64: dts: qcom: sm8150: 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-1-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=2204; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=3ahalgQrX1I3yfQnq7+cpNw3xYKZCyqvysUuHDXO+Mo=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmL5X9/mDMPuhor2aKIoNFUPaYHHrtHcUIR55XM CfkMaujkByJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZi+V/QAKCRCLPIo+Aiko 1UzVB/0Q8OdOxh0ZQiAxky+sBdCuAuqwjeEZsEjpN/UX3IV0oakPn2Er+gU1ZFz2a+/dsqX9xOe UQIslyEqpZDT40pRb+F/QuS53yAJN2Z0NP7XcItFiD3jmTj3cRvYdpqh7hheWsLvYDTzESCouMm ibIIT1jgU6Znfwn+Vqtw90Qi8OwEvVb3nlljux2dHuW3hFJM1rb5h3AEvNfspEpnmhFpS4krwrp zIQgwQRYcX8ck6V1JGRKaDj2BD/zW0kjoiguXt4/Z2aVYs2lFWuSSXPW9B305UXC0jko36/ewJ7 RxgZwT37ynVPNRmBljWdLqya3GEroqmq6U/810FhcjO2GGt4 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 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8150-hdk.dts | 13 ------------- arch/arm64/boot/dts/qcom/sm8150.dtsi | 4 ++++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150-hdk.dts b/arch/arm64/boot/dts/qcom/sm8150-hdk.dts index e9b9abc18746..bac08f00b303 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-hdk.dts @@ -470,7 +470,6 @@ &mdss_dp { &mdss_dp_out { data-lanes = <0 1>; - remote-endpoint = <&usb_1_qmpphy_dp_in>; }; &mdss_dsi0 { @@ -676,18 +675,10 @@ &usb_1_qmpphy { orientation-switch; }; -&usb_1_qmpphy_dp_in { - remote-endpoint = <&mdss_dp_out>; -}; - &usb_1_qmpphy_out { remote-endpoint = <&pm8150b_typec_mux_in>; }; -&usb_1_qmpphy_usb_ss_in { - remote-endpoint = <&usb_1_dwc3_ss>; -}; - &usb_2_qmpphy { status = "okay"; vdda-phy-supply = <&vreg_l3c_1p2>; @@ -711,10 +702,6 @@ &usb_1_dwc3_hs { remote-endpoint = <&pm8150b_hs_in>; }; -&usb_1_dwc3_ss { - remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; -}; - &usb_2_dwc3 { dr_mode = "host"; }; diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index ff22e4346660..cb878b7305c2 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3507,6 +3507,7 @@ port@1 { reg = <1>; usb_1_qmpphy_usb_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; }; }; @@ -3514,6 +3515,7 @@ port@2 { reg = <2>; usb_1_qmpphy_dp_in: endpoint { + remote-endpoint = <&mdss_dp_out>; }; }; }; @@ -3672,6 +3674,7 @@ port@1 { reg = <1>; usb_1_dwc3_ss: endpoint { + remote-endpoint = <&usb_1_qmpphy_usb_ss_in>; }; }; }; @@ -3894,6 +3897,7 @@ port@1 { reg = <1>; mdss_dp_out: endpoint { + remote-endpoint = <&usb_1_qmpphy_dp_in>; }; }; };