Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1256849lqo; Sat, 11 May 2024 15:06:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9zulGbjLf5C34hbfo9OHMXLCUu3/hiJJLuYvMgL8RPFIRVF8SRfqfxeGyNTmLjCqbjy1F9axL3UEboXUlwAO99vn0jwVPHmxOkNQOZg== X-Google-Smtp-Source: AGHT+IFzzreatU4rGlonKf/sUnzO9WQkvl1VdZ1pONKpkUylNSWOkr8+vnDosT30jjZ4jTIbT/ZK X-Received: by 2002:a17:902:d683:b0:1e2:6198:9e53 with SMTP id d9443c01a7336-1ef433d6fb2mr61565365ad.0.1715465171231; Sat, 11 May 2024 15:06:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715465171; cv=pass; d=google.com; s=arc-20160816; b=Tu7BQtJRT4igyDOVcM3ZM/bCl37bGsT5s5JlkFekD61LfHc+xuCWYPB7lDZVddZPrB eRfr2H6wCLf0Qw4GINSVq8nOt+ut5AQadJeB12GxS9TNMypm+ngGRQNZCJtWnd3bCghP COQiI5pj2bSPQkvQsozm2zvS0JsjlOzxLGJHFN4RextM3bxX9Y8u92XlKjHEvKtTODVB Yuz8sFu3tGvSzGAXX+T6XsBCBDa4fN4hMA9BN+ckV6rL/H0RYenuvJr5MM9w8Du54aQt wq9zAoBxqL3zccSGHU97ejiseyvDKodKNdat3kzPZHvVdmsY1kYaH/vvailVhjMip2lY VZkw== 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=q9qo3xIojnnkSqyd6PmjGL/rK5eEsRYHclhwjeAFQxA=; fh=bwQnZZUQIG8BzqcLZ09BmLGSHdF7wGl4jDcjGs6vVPM=; b=Y+P3bNI8yjztTEuRyFQYZ+kO8ai0sqQSzE650pnef62a+LL9Tcp0WFinWCb0jj9loE XGhNf5Bm9qxhHRkoETlZsG8yDOpT0AHRUbSrJY1SB9BGvs0xtCK+933qkyhGYS/Gj4WQ 3eCBqWpd6dNaHng8Iztz3vSKCqb9Gm2spmGeOytVm21SW6+Wxm4gqxTds/ycbfrAVEQ3 LTr67cBVphT80f5cAcbDv1B3Htkw5nrRz8maUWuQIT8E8SpM1KxPEo4awp1TM/p9046n lrwnKqCw3m8FzAg0q62H8JEdELjUnU5nva6al3n6rbcGvy77bi5MteHvssTZjlYWyXpx sB7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ndLg/Gek"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-176751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c037388si40782395ad.370.2024.05.11.15.06.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 15:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176751-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=@linaro.org header.s=google header.b="ndLg/Gek"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-176751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 6D4BEB213FC for ; Sat, 11 May 2024 22:05:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E7F557CA4; Sat, 11 May 2024 22:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ndLg/Gek" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 E558446BA6 for ; Sat, 11 May 2024 22:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715465057; cv=none; b=TF6yU82Ndr9tj+Kl8QpC1p60toMYxYlmjXpC6Ls/jXQ00qtY7BVrni8yng/XHpEq90WdrloDAg/g3OyrgffrxeakpoOo5u8/L3TAlxeFPqMlYZkc8Rhoz3x4I6u1/bPJRDrO+qRioEHhUBRJNquDy9L9T1xwzihaWMAz8Wmzrm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715465057; c=relaxed/simple; bh=hVvfvlT0rTVoTQnAQO6OY0YYd59DO6aFyNFsg5mz/Js=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oEN6BYWilh0ta0+yX0XZSAf8BGnrKdKwmrMupKug7tUr3hZWAJPRBqdKw1db2Bsw70sQ+1F5ajVQvrAIHXWrqaCW5JBV43HIlyMj3Re6y2fgQ47NC7xWRMrPBWeiOqjh6pbANm08x2VO59WgLV5BWvWlmzrOPxrd2hTilFE7sks= 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=ndLg/Gek; arc=none smtp.client-ip=209.85.167.53 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 Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-51f4d2676d1so3217991e87.3 for ; Sat, 11 May 2024 15:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715465053; x=1716069853; 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=q9qo3xIojnnkSqyd6PmjGL/rK5eEsRYHclhwjeAFQxA=; b=ndLg/GekCjijqV/p1CXjCtyth9xRxujnno/JaJwKSXCgbndCxrXxu5yzDBB3Xu9iVX L8CNgiB6cMhFaBoE+8O1Ry7hvQY21N5rAHzjmDsHrGGoMhmGPil6ctcV+NcM0OOCAj5W eSZOIjYcUZOKWdEPBHtYXXgykIc/LH+aNam4ldkDMnt6FHKo5FO+QtR2x/SV5I7Sn3Uz 1ul2oKICr5D7KAYe/j0WWFVgwwqT/3mUB9k65EisvEgf3HNyqwmXMhC/qTeFkFohkYG5 CGgW1cQzNbQG5KmD45cXhwtgcsT4WpCAvOlsjvHb8jXD85FW/Ks2C8OhCqhMGwH4YwDp 5ybg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715465053; x=1716069853; 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=q9qo3xIojnnkSqyd6PmjGL/rK5eEsRYHclhwjeAFQxA=; b=TQIl/6pDu/LuNo2Zm5qpwsotbXoZH3SAbQ6TKTA8b5/GUklYucgQt+aN41L0sLIDo7 Ge1mQuE+37cFrec/InhtAlN3EOBco+7Ur7buCZm7mieGLadKkUR0+JCNZFGbxvocW9vc l8zk6qGwqY+8zk493UuW1m/7kr9m5O3H4dp9dnT1+eo6Ete4eQOVGMTBSSB50MndnMlm zCRhg/q8RlmNdmP5WxGm12b7xVV1UdPYvcTYrba2SnwrQbztJPiNyDRaq7ufx6NwgLoD lsAboF8++22BUmQLWcFsNMYe1HSsZQiSKrSrj0yaatEzN3aLNnabZjrydZF0LPiQ/2So HbZA== X-Forwarded-Encrypted: i=1; AJvYcCVajoYYwmpEDi44QZWhGdyndnJ4kERuCDSS2mPPFUMuD1x47nKUA3HEJHzzFo8YrPtQdv9Y7MglN8ukpLKmynHXEfGRixOeRioEXrZJ X-Gm-Message-State: AOJu0YwzaFb1Lk4lllGJ3B7zxKQfhU7NcZfMpfzQS5pAWZxnOrZ+3nje K8WaNTNaLtR0YDRBoyFuj9kpqKgYun+msJ+QMvcdwTOejrA43EwIMhOqgDNw57U= X-Received: by 2002:ac2:4651:0:b0:520:ed4e:2200 with SMTP id 2adb3069b0e04-522100749e7mr3164276e87.54.1715465053164; Sat, 11 May 2024 15:04:13 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d878fsm1123875e87.206.2024.05.11.15.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 15:04:12 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 12 May 2024 01:04:11 +0300 Subject: [PATCH v4 5/9] arm64: dts: qcom: sc8180x: switch USB+DP QMP PHYs to new bindings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240512-typec-fix-sm8250-v4-5-ad153c747a97@linaro.org> References: <20240512-typec-fix-sm8250-v4-0-ad153c747a97@linaro.org> In-Reply-To: <20240512-typec-fix-sm8250-v4-0-ad153c747a97@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7378; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=hVvfvlT0rTVoTQnAQO6OY0YYd59DO6aFyNFsg5mz/Js=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmP+tYNmwzw3jfHOdsMUIbalRCLS7pJ5F99GTaV v9KW7Uum7CJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZj/rWAAKCRCLPIo+Aiko 1SN/B/4nObihuFgyMeA5OlhDW9VVXj1c0dyViz+Hll1bnheQURwcWj/MSCHBmrokPSwRgR96vMS SLzYAu0TZs1dvkw9ZjiNDqrXVEbQ25A2RnPf4kcRaxOYowGqxvM2R9narvuki8R6pllda6t6yuS 76Dhgf7yW5o+uNqRrO4lQrt6UoOVzV7W4mcp0jPJwPMQENgD1NwUORUzN6Av8pgntwbi2TVqAMF wrc+iS0nLq+ZU+fdQoseYnsmGn4y8q79AmeEAfS5MQXvVJlnhuhKOUAkxH11822yGGg0UD/LtpE 0QRhvCxJdC1WQSQG5J/l4w0ft67fwwoUOxsaT/smvBEjqsiF X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A To follow other Qualcomm platforms, update QMP USB+DP PHYs to use newer bindings rather than old bindings which had PHYs as subdevices. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 122 ++++++++++++---------------------- 1 file changed, 41 insertions(+), 81 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index b92b6fb73057..897c0f51a612 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -2511,28 +2512,25 @@ usb_sec_hsphy: phy@88e3000 { status = "disabled"; }; - usb_prim_qmpphy: phy@88e9000 { + usb_prim_qmpphy: phy@88e8000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; - reg = <0 0x088e9000 0 0x18c>, - <0 0x088e8000 0 0x38>, - <0 0x088ea000 0 0x40>; - reg-names = "reg-base", "dp_com"; + reg = <0 0x088e8000 0 0x3000>; + clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>, - <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_USB3_PRIM_CLKREF_CLK>, - <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>; + <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; clock-names = "aux", - "ref_clk_src", "ref", - "com_aux"; + "com_aux", + "usb3_pipe"; + resets = <&gcc GCC_USB3_DP_PHY_PRIM_SP0_BCR>, <&gcc GCC_USB3_PHY_PRIM_SP0_BCR>; reset-names = "phy", "common"; #clock-cells = <1>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + #phy-cells = <1>; status = "disabled"; @@ -2546,59 +2544,38 @@ port@0 { usb_prim_qmpphy_out: endpoint {}; }; + port@1 { + reg = <1>; + + usb_prim_qmpphy_usb_ss_in: endpoint {}; + }; + port@2 { reg = <2>; usb_prim_qmpphy_dp_in: endpoint {}; }; }; - - usb_prim_ssphy: usb3-phy@88e9200 { - reg = <0 0x088e9200 0 0x200>, - <0 0x088e9400 0 0x200>, - <0 0x088e9c00 0 0x218>, - <0 0x088e9600 0 0x200>, - <0 0x088e9800 0 0x200>, - <0 0x088e9a00 0 0x100>; - #phy-cells = <0>; - clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; - clock-names = "pipe0"; - clock-output-names = "usb3_prim_phy_pipe_clk_src"; - }; - - usb_prim_dpphy: dp-phy@88ea200 { - reg = <0 0x088ea200 0 0x200>, - <0 0x088ea400 0 0x200>, - <0 0x088eaa00 0 0x200>, - <0 0x088ea600 0 0x200>, - <0 0x088ea800 0 0x200>; - #clock-cells = <1>; - #phy-cells = <0>; - }; }; usb_sec_qmpphy: phy@88ee000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; - reg = <0 0x088ee000 0 0x18c>, - <0 0x088ed000 0 0x10>, - <0 0x088ef000 0 0x40>; - reg-names = "reg-base", "dp_com"; + reg = <0 0x088ed000 0 0x3000>; + clocks = <&gcc GCC_USB3_SEC_PHY_AUX_CLK>, - <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_USB3_SEC_CLKREF_CLK>, - <&gcc GCC_USB3_SEC_PHY_COM_AUX_CLK>; + <&gcc GCC_USB3_SEC_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>; clock-names = "aux", - "ref_clk_src", "ref", - "com_aux"; + "com_aux", + "usb3_pipe"; resets = <&gcc GCC_USB3_DP_PHY_SEC_BCR>, <&gcc GCC_USB3_PHY_SEC_BCR>; reset-names = "phy", "common"; #clock-cells = <1>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + #phy-cells = <1>; status = "disabled"; @@ -2612,37 +2589,18 @@ port@0 { usb_sec_qmpphy_out: endpoint {}; }; + port@1 { + reg = <1>; + + usb_sec_qmpphy_usb_ss_in: endpoint {}; + }; + port@2 { reg = <2>; usb_sec_qmpphy_dp_in: endpoint {}; }; }; - - usb_sec_ssphy: usb3-phy@88e9200 { - reg = <0 0x088ee200 0 0x200>, - <0 0x088ee400 0 0x200>, - <0 0x088eec00 0 0x218>, - <0 0x088ee600 0 0x200>, - <0 0x088ee800 0 0x200>, - <0 0x088eea00 0 0x100>; - #phy-cells = <0>; - clocks = <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>; - clock-names = "pipe0"; - clock-output-names = "usb3_sec_phy_pipe_clk_src"; - }; - - usb_sec_dpphy: dp-phy@88ef200 { - reg = <0 0x088ef200 0 0x200>, - <0 0x088ef400 0 0x200>, - <0 0x088efa00 0 0x200>, - <0 0x088ef600 0 0x200>, - <0 0x088ef800 0 0x200>; - #clock-cells = <1>; - #phy-cells = <0>; - clock-output-names = "qmp_dptx1_phy_pll_link_clk", - "qmp_dptx1_phy_pll_vco_div_clk"; - }; }; system-cache-controller@9200000 { @@ -2711,7 +2669,7 @@ usb_prim_dwc3: usb@a600000 { iommus = <&apps_smmu 0x140 0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; - phys = <&usb_prim_hsphy>, <&usb_prim_ssphy>; + phys = <&usb_prim_hsphy>, <&usb_prim_qmpphy QMP_USB43DP_USB3_PHY>; phy-names = "usb2-phy", "usb3-phy"; port { @@ -2768,7 +2726,7 @@ usb_sec_dwc3: usb@a800000 { iommus = <&apps_smmu 0x160 0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; - phys = <&usb_sec_hsphy>, <&usb_sec_ssphy>; + phys = <&usb_sec_hsphy>, <&usb_sec_qmpphy QMP_USB43DP_USB3_PHY>; phy-names = "usb2-phy", "usb3-phy"; port { @@ -3086,9 +3044,10 @@ mdss_dp0: displayport-controller@ae90000 { assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK_CLK_SRC>, <&dispcc DISP_CC_MDSS_DP_PIXEL_CLK_SRC>; - assigned-clock-parents = <&usb_prim_dpphy 0>, <&usb_prim_dpphy 1>; + assigned-clock-parents = <&usb_prim_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_prim_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; - phys = <&usb_prim_dpphy>; + phys = <&usb_prim_qmpphy QMP_USB43DP_DP_PHY>; phy-names = "dp"; #sound-dai-cells = <0>; @@ -3163,9 +3122,10 @@ mdss_dp1: displayport-controller@ae98000 { assigned-clocks = <&dispcc DISP_CC_MDSS_DP_LINK1_CLK_SRC>, <&dispcc DISP_CC_MDSS_DP_PIXEL2_CLK_SRC>; - assigned-clock-parents = <&usb_sec_dpphy 0>, <&usb_sec_dpphy 1>; + assigned-clock-parents = <&usb_sec_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_sec_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; - phys = <&usb_sec_dpphy>; + phys = <&usb_sec_qmpphy QMP_USB43DP_DP_PHY>; phy-names = "dp"; #sound-dai-cells = <0>; @@ -3312,12 +3272,12 @@ dispcc: clock-controller@af00000 { <&mdss_dsi0_phy 1>, <&mdss_dsi1_phy 0>, <&mdss_dsi1_phy 1>, - <&usb_prim_dpphy 0>, - <&usb_prim_dpphy 1>, + <&usb_prim_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_prim_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>, <&edp_phy 0>, <&edp_phy 1>, - <&usb_sec_dpphy 0>, - <&usb_sec_dpphy 1>; + <&usb_sec_qmpphy QMP_USB43DP_DP_LINK_CLK>, + <&usb_sec_qmpphy QMP_USB43DP_DP_VCO_DIV_CLK>; clock-names = "bi_tcxo", "dsi0_phy_pll_out_byteclk", "dsi0_phy_pll_out_dsiclk", -- 2.39.2