Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1675880lqz; Mon, 1 Apr 2024 13:34:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgiqAhIv9qkxje5YyL0o8ejP+73+j44WvAiiuTMGyLZlN3HCt/F7PPLUrw/l+yThzUEmVM0Qv8yUPoRrhuTDBHcgzNCqFDz8VFDkGJHQ== X-Google-Smtp-Source: AGHT+IHD2y8QyJ9UZFHhUt8x0dh0X50YspMZeOJHRa4J6Gu/rhI7tQptoNGZbwTGu1hrV2dM3RTy X-Received: by 2002:a17:907:a4a:b0:a46:4bd4:df86 with SMTP id be10-20020a1709070a4a00b00a464bd4df86mr14292989ejc.3.1712003699793; Mon, 01 Apr 2024 13:34:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712003699; cv=pass; d=google.com; s=arc-20160816; b=Kf3gr1ANztR+dWsOaN/Va5i3a6ACxzsqbfYcr1wmA4CfrK5sQXKyO3R6FIqKnM2Qnk JLCbq7DWyDQLR0nZH2ot5179nKo+LC8GkIMgWU4AZ5ifyOeU+BTNadxSXKY2M9x8B/K/ c5KqL9m9+CM0k6YiTCqrNs4VoFOynd6947hbPIeCJQbkRWR+N3NGItnp2xIyrKj7rFoD tmCWEREvVz8OekddxUSZJHFvqKr7obQ1kR70aWA6mjREugZk6yGU9R9Z20O7wl2gcamH faYU+R89SsQ6GUdKGkzT1E/yiUY8cCFGa1hd7Yi7f001W8no9laQ6Oxw8mObHH6B/eej 2KVQ== 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=f1vLUCvnUI7qq6Efpul0tmKxM3WduOPLKLF1etO7Qlw=; fh=SX3WZvxWUUS0IooEkmcI5aA5O+VqFWTUn3MVwTclncs=; b=dNA+KZZaWmv7iHu87Bfnrn6ARX7o5SDPiOiDhHOl5cBRDy51nXULw3TH9UFHYRZYIK j/g8nDBQpCAPLLEVcoa4RsEO9evIIfmM5uVPKWi9knQbS2ucpLpCsk+r50Ev/KjUqjNB 1TgDuez6lWRr7oxPMdEU7B5CZ07RYC86VusPuFBvr3CX6xwlz2xlDF0x/CyiKgL5FO9p vradS2Ws9Xyr9vOyJTaX3L2kmtxlB/hO26lMTTWYZZXix+/EZoYld4TS1hc9MSs0kkBn IpJEk99ixCPV0jXVzz6L9+SaJknYGDMMUbBl2uGRIL0zIBLWneBmh+mGn9WmPgflj8GH X9YQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iAz2fuVy; 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-127038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nc12-20020a1709071c0c00b00a4e566e010bsi2338663ejc.569.2024.04.01.13.34.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 13:34:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iAz2fuVy; 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-127038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127038-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5EC8A1F23230 for ; Mon, 1 Apr 2024 20:34:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0D035730E; Mon, 1 Apr 2024 20:33:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iAz2fuVy" 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 065C654BD3 for ; Mon, 1 Apr 2024 20:33:47 +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=1712003630; cv=none; b=E+3bbGoDqZZPgJ3eUXENpEt8FrHAtEG9Zoo0EHpjl9CumPpcAdXjpS93Qff7B0W2dm0Cs3s6nnzrHmBEnUQ5/a+chokw+oA3N8SSOsibYNGf/zCfOGs8/P5Wr7o6Sf8IyTS63zByIbKyFeILd4bJbwxNk1/gMC+BpA8Kt6OneSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712003630; c=relaxed/simple; bh=exKr9kS07I/FGyAADFSiELaPPmJbK9F+6r42IVjBzJM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N5TdaoDKbtqw/YpHRvyy1wkUosZp4PWYyH3Rhr/pqrNI7ZUXX1nYlJJQvkAqa8HyWlXeda/gTgYfboMyWb68XoN/Rqf52N1XwJ7cfKNs1s3fp6utt2fnKc1Cs2RrcylIINvO53UZaGCJ7SsD/n8x7oeRvIgsB01S94B0folPrHI= 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=iAz2fuVy; 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 Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-516a01c8490so1570497e87.1 for ; Mon, 01 Apr 2024 13:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712003626; x=1712608426; 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=f1vLUCvnUI7qq6Efpul0tmKxM3WduOPLKLF1etO7Qlw=; b=iAz2fuVyhnETPFPwScEW8AUmPU69JEba2CBKCmLHY9UwyQZLN1x0ZmIbBol+p6l6nu 7E9C/v3F8/mbygKZU6X/bO0T/KhejbKTZj41NIKxu1qps9sbiAfsAmUZBOQgLFKWdC4S 14t+321faqidMRpYRYmTW6cFKLPDtztxL/hE2nSYuHsPpnaa+d9HGKU4W9XjaT3XM2fl 0quUjLoExRLt9bi+JqykF9Y/tL5ovMGSpXysHv+O032GZ9RVzBPBTq3hdeW3RY9ZdcR9 2mYSdKrmMK3RjPy/j6AqTJPdnj13fFIcS8E3Kc/ZQEJ2vimoxmTUcbSavx/9FKr7VhSX QWGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712003626; x=1712608426; 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=f1vLUCvnUI7qq6Efpul0tmKxM3WduOPLKLF1etO7Qlw=; b=ckxaHIc3DQbbIwgbR9/qB9JZFQgxLcWovbh1UB2acWNHHYPwXI6wCz5dZGjr9WxEhA CSAEUD2Zgk9LnqF4vHfp12xzilvqGS7vjDvhkoqciZP2cGNHSI+NpV9onYQ2DH3w8stm IYThU5dc/oasFM27jWNVxDRGCbRwuIhD0Ks/GKXbYtknfXoz0kzx/pe0IvWWyjJUPc0t 6RiIV6Q65w0bxxzu1M/+yCKGZBuVLcaRnKTdIwwxxbdRAT6Eky5ZpUdEuBfQvIYpGvVE C1ZS1Cs2V4pgb0Nto4pgMNZsv+wCaYSAp01n0mx6xYdOADZrIyrc1Vn13OBZCLwYmnCT KoBQ== X-Forwarded-Encrypted: i=1; AJvYcCUSCcw5aiOPM9JJ3yc4rvaN/ljpXy7c/EZhnoYRzl1lfJkiXd3H77jN/h58u+7TA3o0QrfQSC0FQgi1c2grD9vtD1Q8v/c2vttWDktQ X-Gm-Message-State: AOJu0YzSXeuBLKr/6PlvzHqYTVhrKNiA7Ws9Oxzu4UVghLfNGLr/IQxF vyoh1t3vQl8c0i2+V6oFAPnSt96AD0apjR8IRSwbDhKfcyp45jnVp9ETD4fLMQy8scAiUP2iiuU X X-Received: by 2002:ac2:5a4b:0:b0:513:d234:e8c1 with SMTP id r11-20020ac25a4b000000b00513d234e8c1mr3617199lfn.28.1712003626292; Mon, 01 Apr 2024 13:33:46 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id j11-20020ac2550b000000b00515a6e4bdbdsm1478342lfk.250.2024.04.01.13.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 13:33:45 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 01 Apr 2024 23:33:44 +0300 Subject: [PATCH v3 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: <20240401-typec-fix-sm8250-v3-5-604dce3ad103@linaro.org> References: <20240401-typec-fix-sm8250-v3-0-604dce3ad103@linaro.org> In-Reply-To: <20240401-typec-fix-sm8250-v3-0-604dce3ad103@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 , Dmitry Baryshkov 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=exKr9kS07I/FGyAADFSiELaPPmJbK9F+6r42IVjBzJM=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmCxolGphI1WB/H9GWNAwgAM3bv54ypIjuwrZIx rff9GqX3k+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZgsaJQAKCRCLPIo+Aiko 1cL3B/wPtxVt7HYwPZRw4WrMKmaMf3/Tsdd6SznPNXvlPECCoZ675CbVLJZwEAMBFDWmAz0BjLt H07NJofa3dwNqQV8HxOaQGncLJ6aKdJqEdjMgqWOb6tXOieM2PKwr+ekp2wR2IA/FaMte13L5gg EMp5ztmi8KGBtCNNfvu/k/DvB/EP9iTvkNBkRHOJrEW3yRiWfMP9p69irxdk3M2U01WigG6+J5o Vva/iYYxuSTnQljPGSFfGD5qNcFsteKYBELGQKJQ6qEt0ty3VlTCHMQckOG8Ai1wZQPXBkbUJ5G 0D2UGIXU8nMS3NIPfse2x8ARFfpDczPXJlnVwT679dQ8uLVl 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 a086dbe0d910..bae89761dae1 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 @@ -2472,28 +2473,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"; @@ -2507,59 +2505,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"; @@ -2573,37 +2550,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 { @@ -2672,7 +2630,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 { @@ -2729,7 +2687,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 { @@ -3046,9 +3004,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>; @@ -3122,9 +3081,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>; @@ -3271,12 +3231,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