Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1907690lqo; Mon, 13 May 2024 01:55:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUo/dJqkl0Gfgs1iZFU75vgdXIrC50c+Cz+6TPU+mqbXzKQPwivVlPZPYQeQ+A4tBp8L057nJcdJvq7IQ2R04K+DScjBMjJS5sxN3MBOQ== X-Google-Smtp-Source: AGHT+IGaBzpdeP5xoaTh9RBpN/yy4MrPtVy6rmXHJbF34lzl1qGaYGgxbdxZuxdPuBcSTqqB6oDS X-Received: by 2002:a17:90a:f98e:b0:2b4:33cd:173c with SMTP id 98e67ed59e1d1-2b6ccd8612emr8009968a91.42.1715590539595; Mon, 13 May 2024 01:55:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715590539; cv=pass; d=google.com; s=arc-20160816; b=G8kW7kSbGMVWp8Uh+yGBBzzgCOR8K/1eYSalxml/WH7SL9MWMqYpiyFuGF4r4glBvX 7grUO/EQOM87QxnrXxIKfAnEWFWUZS6zDBiSgFz80n2aAhokU8ajGmtG0J4BsOLZDffH +jP9sFoSqOocFFI3MIlKRHmkWDxutlba0518pQH1tH/Yj5aI6YMj2ViGrXKuP2Gv7Uzp kYz+TUzOlmXRYTE0Ez2obb/jFDh21vtF3gk5kcGtyxuQ3D2wE9BPRwfjNps7+sHYV0LY aJkhhQgQ4H6eYyF7qQp3cFxolkxS/T5ljdA+v/bTJIYCi5BZBTEoynP5oieDs3veGwd2 elCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=n7r1ozcFXwawuo7wc3VdYerw7WL6dsAoC65oKOl/8fM=; fh=8zTHa4J8YnE8KsdsJyyRQyjHtkCOaUAgaSvc0kesqE4=; b=R/xwbW98hbnQ6HeYMUEiHr1LthrJYbNPPbPMPKDCm5HgjVDKlwPz+widVjRyYl+GFc aPU5hwy2IGlJEc/JFXthWFNPfrxGjiY+N4DsAttnDil1cVyS7p1XGyLKPsBZPwQkJznb KZNT8abiHlJ76Zx/GgU1xieZkA90PczlgBhoOPshGDc0RCMHDeMu4KICRMbnPXXaYgDf gXkYN7mOvFyhs6/jFKJhspuz2tYHJXI8xKnsFZLVAMNJ0IVxkhnovfbehmak+3D4KNCO b9+wXFSj3z1Yzq1iGBFYmxNO1Tl1mzdz3KzivD+3mTtmaVZ6DBq3TVatsaqWb3yFlWws T8NQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Pc0A32Wf; 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-177362-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67116273dsi9002860a91.85.2024.05.13.01.55.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 01:55:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177362-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Pc0A32Wf; 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-177362-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177362-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2DA5DB224F7 for ; Mon, 13 May 2024 08:48:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D7E71487F5; Mon, 13 May 2024 08:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Pc0A32Wf" 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 86E73146A98; Mon, 13 May 2024 08:48:13 +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=1715590095; cv=none; b=BjlJcKRUNuVyv4YViIsGhEYqCV2Kz4oMQ+/LxMwwWU0IvvnXO2glltQwOl8pHLKYd6amttlzQzashYPmANKZ56tdzQeKJ34Mp4YJfAezw03xn8d56L24NOHpUF2D9/kHrO41y/xREzSBMZJ26X67AIbzNbMfUtJsZa0DzZ0BgSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715590095; c=relaxed/simple; bh=RGBolur9Ibr9FDtO1x/clsHNmAj56Tm3/ishTOGLFZY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HG3uSwYNhcuYeHGDYk918V1QIGMF1hkJtjACpofvsBcLMzto3EZci29nW09q1WWptr5qdZFm9RS2tUhwiDa/BXjNhrI8cyi1SaM2aZ7Nzh3OF3uGISjdj4SZ+JuJ4wl1wjzHk4p8Hj6PmpZz4yG3rpYsgkxpi3efw+SiJK/QPS0= 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=Pc0A32Wf; 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.18.1.2/8.18.1.2) with ESMTP id 44CMUEhW007092; Mon, 13 May 2024 08:47:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=n7r1ozc FXwawuo7wc3VdYerw7WL6dsAoC65oKOl/8fM=; b=Pc0A32Wfuphpbq13TLfq4Xt KcSCEcUZcvviREuwwwYFW2G67t6v8opUA6/5RuGKBphnEwF38eJS1YwRlKnJmuFU CvVYdfEiAsQhSKelM97gXw+IEMkbhIc65iSxHdB0W6zq8HqsDM1YHebAUlNnp8Tv sgLMPZNXsp4LqeRXfRyWg5/l+ejUW4kV9KiHkbOIPKy4q/A1C7i3ELxfCDZ78dOI XoyXhW9BcUHT5Sd4D9wWc1dHHeqvY7dkUX7SMBYYesV3W3y+cnmQlh83bLmwfXbT BOwltMwL0MT8YBdvQBOkxa0NgcPuz8LNkWvSJLCJg2n9ZiYE/8Cqj3FmeFVAlRA= = Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y21edaxdq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 May 2024 08:47:58 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44D8lvHE001163 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 May 2024 08:47:57 GMT Received: from tengfan-gv.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 13 May 2024 01:47:49 -0700 From: Tengfei Fan To: , , , , CC: , , , , Tengfei Fan Subject: [PATCH] arm64: dts: qcom: sm8550: Move some common usb node settings to SoC dtsi Date: Mon, 13 May 2024 16:47:01 +0800 Message-ID: <20240513084701.1658826-1-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ycUUkdlaFM6AhuqBK1hg8SzjrQwNNkjI X-Proofpoint-ORIG-GUID: ycUUkdlaFM6AhuqBK1hg8SzjrQwNNkjI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-13_06,2024-05-10_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=839 adultscore=0 priorityscore=1501 bulkscore=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405130053 All the board dts which base on SM8550 SoC dtsi refer to usb_1_dwc3_ss, usb_dp_qmpphy_usb_ss_in, orientation-switch and usb-role-switch, so move them to SoC dtsi from board dts. OTG is default for dr_mode, so it can be dropped from board dts. Signed-off-by: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm8550-hdk.dts | 15 --------------- arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 15 --------------- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 15 --------------- .../dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts | 14 -------------- arch/arm64/boot/dts/qcom/sm8550.dtsi | 4 ++++ 5 files changed, 4 insertions(+), 59 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550-hdk.dts b/arch/arm64/boot/dts/qcom/sm8550-hdk.dts index 12d60a0ee095..e6bfd3ce2bed 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-hdk.dts @@ -1258,19 +1258,10 @@ &usb_1 { status = "okay"; }; -&usb_1_dwc3 { - dr_mode = "otg"; - usb-role-switch; -}; - &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_l1e_0p88>; vdda12-supply = <&vreg_l3e_1p2>; @@ -1284,8 +1275,6 @@ &usb_dp_qmpphy { vdda-phy-supply = <&vreg_l3e_1p2>; vdda-pll-supply = <&vreg_l3f_0p88>; - orientation-switch; - status = "okay"; }; @@ -1297,10 +1286,6 @@ &usb_dp_qmpphy_out { remote-endpoint = <&pmic_glink_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/sm8550-mtp.dts b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts index 3d4ad5aac70f..fbcdf66f16d6 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-mtp.dts @@ -951,19 +951,10 @@ &usb_1 { status = "okay"; }; -&usb_1_dwc3 { - dr_mode = "otg"; - usb-role-switch; -}; - &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_l1e_0p88>; vdda12-supply = <&vreg_l3e_1p2>; @@ -977,8 +968,6 @@ &usb_dp_qmpphy { vdda-phy-supply = <&vreg_l3e_1p2>; vdda-pll-supply = <&vreg_l3f_0p91>; - orientation-switch; - status = "okay"; }; @@ -990,10 +979,6 @@ &usb_dp_qmpphy_out { remote-endpoint = <&pmic_glink_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/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index 92f015017418..3ad616e46cb3 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -1135,19 +1135,10 @@ &usb_1 { status = "okay"; }; -&usb_1_dwc3 { - dr_mode = "otg"; - usb-role-switch; -}; - &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_l1e_0p88>; vdda12-supply = <&vreg_l3e_1p2>; @@ -1161,8 +1152,6 @@ &usb_dp_qmpphy { vdda-phy-supply = <&vreg_l3e_1p2>; vdda-pll-supply = <&vreg_l3f_0p88>; - orientation-switch; - status = "okay"; }; @@ -1174,10 +1163,6 @@ &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/sm8550-sony-xperia-yodo-pdx234.dts b/arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts index 85e0d3d66e16..85d487ef80a0 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts @@ -737,19 +737,10 @@ &usb_1 { status = "okay"; }; -&usb_1_dwc3 { - dr_mode = "otg"; - usb-role-switch; -}; - &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 = <&pm8550vs_2_l1>; vdda12-supply = <&pm8550vs_2_l3>; @@ -761,7 +752,6 @@ &usb_1_hsphy { &usb_dp_qmpphy { vdda-phy-supply = <&pm8550vs_2_l3>; vdda-pll-supply = <&pm8550ve_l3>; - orientation-switch; status = "okay"; }; @@ -770,10 +760,6 @@ &usb_dp_qmpphy_out { remote-endpoint = <&pmic_glink_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/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index bc5aeb05ffc3..05f7d7341f72 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3168,6 +3168,7 @@ usb_dp_qmpphy: phy@88e8000 { #clock-cells = <1>; #phy-cells = <1>; + orientation-switch; status = "disabled"; @@ -3186,6 +3187,7 @@ port@1 { reg = <1>; usb_dp_qmpphy_usb_ss_in: endpoint { + remote-endpoint = <&usb_1_dwc3_ss>; }; }; @@ -3264,6 +3266,7 @@ usb_1_dwc3: usb@a600000 { snps,has-lpm-erratum; tx-fifo-resize; dma-coherent; + usb-role-switch; ports { #address-cells = <1>; @@ -3280,6 +3283,7 @@ port@1 { reg = <1>; usb_1_dwc3_ss: endpoint { + remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; }; }; }; base-commit: 6ba6c795dc73c22ce2c86006f17c4aa802db2a60 -- 2.25.1