From patchwork Sat May 25 18:03:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 798978 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EF32F128815; Sat, 25 May 2024 17:59:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659952; cv=none; b=kcOL805uSs+0QgMCil0TYPiffGFjLQR6nEckT11KPbfjXZyTRuOHMWrSpy7zxDen6ubPwSQlItBtcVHOMMrV2PhiT8H774t03SiqgFc88WfObTdEXVkmdjBM2j8TqJwCw7Ex9xRBg4AcskJIwpk2vwzgJDVWlAOv8zIXCv/JTus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659952; c=relaxed/simple; bh=KRrS6daAl9jmj0dMdUa1UyfQe0Kr3SCOM0K6I0FXIXY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pbv8KhtQh1qczAx0J6nWCSe3UlBdu9vZir80WaFF5GwlKBpJ4QJUc3468Q5aR5my1xBuost1urFKIA9Wgm8EkgmJLeLaz+H84slP2OcYEmYN6QvA1BAGPtuf0nduoiPH2zdCkmWDtQPBqHre4dZvTxOn/1yb/YnfmzQWmaGQN5c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g4a+3J5Q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g4a+3J5Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B38BC4AF13; Sat, 25 May 2024 17:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716659951; bh=KRrS6daAl9jmj0dMdUa1UyfQe0Kr3SCOM0K6I0FXIXY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=g4a+3J5QNQ0fyGISj1JpaVI1p2BzUSZL5dsgzNfGpb1msTSQRNmenw8SJoWh/69F2 o6Pt6tETJzs8v3X7szQ4QDmSNkb79PlBHlnHDP4fFAJj1y5rOcw0dc+ooNz9ZmIyru 11oq7m5KI50M4rcyUFImH1wuRTaSPPp/CkOs9w1WCnWz92djmxfRrowF017aMo/Qgr fAhPK8miajIGdv2p3iunUffoNao5HHk5bl4HZM4WULUTyzGbirvJG6xisXA5Sei3E7 Nx/BaHVj6VrVnnSxH3ZiI0/MxVqWZdU8SFpHgw1ygAQ8D8m980XcErwhWTs4mHBYf5 txrg9V6/2lHzQ== From: Bjorn Andersson Date: Sat, 25 May 2024 11:03:55 -0700 Subject: [PATCH 02/10] phy: qcom-qmp-usb: Add sc8180x USB UNIPHY Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240525-sc8180x-usb-mp-v1-2-60a904392438@quicinc.com> References: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> In-Reply-To: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Wesley Cheng , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=863; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=AKIFUem0XLI2sN1r7OXd/5hs5LThK4k7U6q6yjGq0rg=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmUigMqcNCPpRKu4OxbJsqr7QjBbMS81AaV0s7T HZkMiwtIwCJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZlIoDBUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcUb4w//cR4kym9ancbDsT4rv5sAt1uYW8Y1rfQoF+GO9AJ 3QwRimqp2hQOiEa3RaXa4SwLKorFEIJHYrILO/zwxDvPlgQa51o2x1s7j5MQna1VVopvEUuvA3d Ml0KoJaJfJD5dZj9rQJHvU4lxkA5z3vdGh2UBFAxw8A1cdID0ul6K5NXTin2XaJZUseKRhCfE2R YeDXF8SF3epJSrjkiPakVs5ngtsHLEq5d3O3Mirb8N5EhOEmETCfMC8nL8YR9WFAaqgIjiNW5Nz 5xnHv+p7/CtcXuGQ9xN3YlI4h9s+PGRMKunsOb6bFeB6SpW2aaXFippNW81yXyaqa6OEHgdS7H9 m+6/sC/Zxh2OJnCvjccybsEfrcKCgi3H8O/WFndV7AJUsALlzGJBGCWusrn4D6Hg5TTqZD/7wlC Ny6mIrXOiJyR/asyl9J60r7Z+30psRDNwpYkzlx8wK8xqLzyi17t1/+RzazXo0X3XyZ/dy/LaL7 WtS2cL64s2SU4IheoxirCiznmHzSx0/nbbb/OKQ33IEw8Ubhb8z6GdtwyO5KXbJgsIxiLLWpOQ2 F26M/McOr7mxNJoUgHuw4Dj8HEYbtfKcv4swT2fO+qOX2vlg+kVg7KQ9g+zpTqo7uPt/QuASek8 Z2z5E0PTPFn7w43QLTp4qCBZwoepgBme2232RSJkZBLA= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The SC8180X platform has two UNIPHY blocks, add support for these in the QMP driver. Signed-off-by: Bjorn Andersson --- drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c index c174463c58a3..9b0eb87b1680 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c @@ -2252,6 +2252,9 @@ static const struct of_device_id qmp_usb_of_match_table[] = { }, { .compatible = "qcom,sa8775p-qmp-usb3-uni-phy", .data = &sa8775p_usb3_uniphy_cfg, + }, { + .compatible = "qcom,sc8180x-qmp-usb3-uni-phy", + .data = &sm8150_usb3_uniphy_cfg, }, { .compatible = "qcom,sc8280xp-qmp-usb3-uni-phy", .data = &sc8280xp_usb3_uniphy_cfg, From patchwork Sat May 25 18:03:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 798977 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6550A12A17D; Sat, 25 May 2024 17:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659954; cv=none; b=nOk7l9yTUZz72OGgF3q0Nui/4EGr+IOzYiiF88ycfimRdTXdQq6RTv7mDrRmXwFjsYDpX6KbOgZKrvucvdVp4XVmnFxKpjfcuaV4OtLcA0F4vPafgz3AKz4FpEX2aVd5X7HAD5bBZwoL05Baji7VotHZKVNN4tFLMa5lr71rr8c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659954; c=relaxed/simple; bh=Q2ceOV02t0UpAKlBT7IZDlFZ4VK5kxjOlehGgDK729I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Npuh5sj5Cv55DOMkhyOwLkZ/4U1OhwlU7NW0h7ldIqfabMgbJBQ39yxQUXMl8EQQIHeBoRq9WspXRkZVTw7YDGJMUTWtes1kcqvklmyXN/qN7jzGreTb3a8hDKjR1/A71CQr34DVlXO986ThMGqQGvrRFBqsZd30PFobYJVcCkI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IFamleQC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IFamleQC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21370C32782; Sat, 25 May 2024 17:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716659954; bh=Q2ceOV02t0UpAKlBT7IZDlFZ4VK5kxjOlehGgDK729I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IFamleQCqmp4hyGizraruuelpC4DJCrYrItyOCkcLvJntK1R56HyMM4DQDmcwqX0R MmaFhQyHZJgcNiD5z2cDx69DM7nOVYtH3vpHGsqTfBD9yAv15nrCaTXrxVhS0AdNRI HUzwTVncXZQUsT+HUtnk8gExkQx4muPO4cmYo98JKz6QOC1ScNqnflq3N4dwPIKEp/ Sz7/4jngiErm1QwRko1llqbHWR22/FvrR5r/ZeVUL4JfqKR8xvQWHkS49jhnGvCKky y138ESwFXKWrG7XFHD8zlMmnO2pvaCOMbinmSbBoayLL6Yf+5NUzBtU3FLVUg0dgPU l9VzZRJIVwd4g== From: Bjorn Andersson Date: Sat, 25 May 2024 11:03:57 -0700 Subject: [PATCH 04/10] clk: qcom: gcc-sc8180x: Add missing USB MP resets Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240525-sc8180x-usb-mp-v1-4-60a904392438@quicinc.com> References: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> In-Reply-To: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Wesley Cheng , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=938; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=iUm27Y39fR9WTb3MyN1jhNQc6XLpkUGGL3f13Lft8RM=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmUigMcLXih/lldJjCgFL8NnxiZ8IM0Tbfl9WVQ fy+uETiTgeJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZlIoDBUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcWsIg//fclC9y+rIhNKjYnJBEFmB1IWTkQ+5fXehS0dHCT CxUILyOOXF8ypStrb5gyUvFowWCzB1zAUaOyVFDpIBWTIVYUL1OFUxEH4Y/VpqD2tjjrNj659cT SWTA/W0m/DcLC4gyujCMzz5YyLkV4V95Q/l+AnxzR9Q6cizGzT87+kQmppIHpap1xdUwDwFER/J D0wvqaAAxTlrq7UCizBkDI4/H/9tUj8lreyDnclg5QN8txzltYHyDnDMSiMrTT1njMcmkEGv6MQ VvtedNa6sstvrDdIQ660nfg3/7SjyqLWv6TUSGpYsG7YM2NwLniPKRpcaqvyV5Yz+lvKE8ju7lx BKsYvq9Ly+za4F812S73ZYhmXZvvap6IvBK8to18Zh45VcwOv7487heXPJnTz1aRpxTBwBnaowg PhnWm/Ds520AQ0kDvq+XKqAra4JpCG++4Z+yHVWF1hh85jC5jPXk/RlLnlNL+rcGLq7RQILlL6T tPFNTfEG+B8T0G05XXILuGbsDtd6pns+SEtJ9Ube10+126ECR7waYHv8/xWbjaZiLedmka+aY+x OnXrsPbpHU10z4xukO+5YvYzkII0esDTOagXjfAvziPdrNSzaBFEg4igsGvu4TL2YXNM64jcJhQ lRt0E1b3ft+xY+czul9WwOUwjj1FlQ73mJjA9RkW5ox4= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The USB multiport controller needs a few additional resets, add these to the driver. Signed-off-by: Bjorn Andersson --- drivers/clk/qcom/gcc-sc8180x.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/qcom/gcc-sc8180x.c b/drivers/clk/qcom/gcc-sc8180x.c index 5261bfc92b3d..f77578e98ca7 100644 --- a/drivers/clk/qcom/gcc-sc8180x.c +++ b/drivers/clk/qcom/gcc-sc8180x.c @@ -4546,6 +4546,10 @@ static const struct qcom_reset_map gcc_sc8180x_resets[] = { [GCC_USB3_PHY_SEC_BCR] = { 0x50018 }, [GCC_USB3PHY_PHY_SEC_BCR] = { 0x5001c }, [GCC_USB3_DP_PHY_SEC_BCR] = { 0x50020 }, + [GCC_USB3_UNIPHY_MP0_BCR] = { 0x50024 }, + [GCC_USB3_UNIPHY_MP1_BCR] = { 0x50028 }, + [GCC_USB3UNIPHY_PHY_MP0_BCR] = { 0x5002c }, + [GCC_USB3UNIPHY_PHY_MP1_BCR] = { 0x50030 }, [GCC_SDCC2_BCR] = { 0x14000 }, [GCC_SDCC4_BCR] = { 0x16000 }, [GCC_TSIF_BCR] = { 0x36000 }, From patchwork Sat May 25 18:03:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 798976 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 30D3112BF14; Sat, 25 May 2024 17:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659957; cv=none; b=cgludtrOA7HWyG5FMChsgrU0s4TwcMLJqZ72lzKz1DYFTDdyvAqSsK4G109B0oxKf21ccVc6XbdkuA55t7tDi9rmSJzftno28QkA7uoMx3wYoiMgaOmtkIUpZN6Jr0440ZGB+AvF6qXwyvkAAVKibe6GaE1uxUXpa9PO1mnT5ZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659957; c=relaxed/simple; bh=o4kiKhxOwZs1Pl6joEEPNnwVtYuLg7fy0zk+ZBo5jEg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pr1le4qRsPwbWdf7L1KLltbKxF0ZbbepNepp0pAm+wPpREH6sElQNmTgx/WuR7C8J2g0TTwBNp4Zo9DnDEskqJjOskXTPBamBfA1Voj35TtB4wPlId9ly9FVrpfA0ilSSf5uyCAk3/1mgXatZHFBI22UfWLtmqLO8EMJ8JIoSR4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NKxe4zYF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NKxe4zYF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBB09C4AF0F; Sat, 25 May 2024 17:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716659957; bh=o4kiKhxOwZs1Pl6joEEPNnwVtYuLg7fy0zk+ZBo5jEg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NKxe4zYFCCM18q8ezxq5LJm8ltvq9pVyC+UFQ54t0Gy0AYKXPaYt2sgYq9SMk+BOG fgC/iwzOYTjunK9p7YGl1xoMnXOkm3glEfie8UIHXjCnbv9iEcuRjr/MMHlzLuTMhs yYgyci4SDd/jyU1TAGuyn8N8vB2tWBmmvN0pyqDq8zLR6Zmuwdkdm2+3abEMqj4jkA 1HeBsrRF5/BCxz70eCT/jBH057BzaQySLbebrl9Yd1QjERLm8io9XoUh8SYzIP/njv 8nYbWflp74GnXk77AvOi5pyqWG7ghAwF/cU2VJRZRW+4FKUEa3F6Ofidsa9VDY5Ftd qV+a/U+mhRLLw== From: Bjorn Andersson Date: Sat, 25 May 2024 11:03:59 -0700 Subject: [PATCH 06/10] arm64: dts: qcom: sc8180x-pmics: Add second PMC8180 GPIO Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240525-sc8180x-usb-mp-v1-6-60a904392438@quicinc.com> References: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> In-Reply-To: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Wesley Cheng , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1634; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=Fz7ILqf97xUvsYbsDXAR0+z9Xlwkl6S2Ykmd3P7Brak=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmUigMTRCju33i/vPFcthH2BUPrpcbaeiyCTtom b7DoTuGRkKJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZlIoDBUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcX0PRAA1Ad557RN9sy4ojGO8VytMOeFuvBiPoYLB6mqF+/ j24eHnPnr7vewgEWItHxNaxwF3ToG1WaTQb5B8KiXX6bus2T0H3XG/ypjVBG1hfNciXtGx5bomR e8YY4wc2zjBudbNwD1KgsXVVpVO4em7BpkGGtRlYYht8bgIUFM6AHbpShovwqcbVjQJz+qLFtVa DM6QyWmDqoPf0SV9EI08bx3AehOUAPwOJt48yl/IBPdnYM4DQ24P2G/fMxyDsgCz93TYzccV3VB 4NVTRgPjz1cCRGYJMnQgEn/svDOTJrO1I8BYvedv8PL/2lmx3Y0UPPav3iAtHh125KYnq2pKWar oZ7KEWjn8qO56VURK6m6Y0avvzBqA4R7dx/nGGywQSLJ9AaHFXjwkKByNQjO4LHbBQKD16r0R7Y IlUHiP7H5PIhOpetEV1uq7NUm7z0jOPjSBfYV5Pr6wviO027GixTZhJPCWcP8/Da886tSmMfg5H +U1k0wyUCO+7QXi+ZLvNXOLOYdS/Ni6qgfEn12yOWXNcnXiJf74gs72JOZL0ZEf3CtKydmizQMi 618YU3mOS1PdSQPJdIDVvk+MekE8A3KIih4hpSXO7YnVNa88Vzx1OSF4yjT5MpE48JhukZHcytl 1QK9WdYaYNBBaMraanRHO0/jkPPWr1VMgtEnuvGkG/Gk= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The SC8180X comes with two PMC8180 PMICs, with the GPIO block being used to control VBUS supply of the second USB multiport port. Rename the GPIO controller in the first PMC8180 to match the schematics and define this second controller. Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi index ddc84282f142..95656b5ed481 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi @@ -141,11 +141,11 @@ rtc@6000 { interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; }; - pmc8180_gpios: gpio@c000 { + pmc8180_1_gpios: gpio@c000 { compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; - gpio-ranges = <&pmc8180_gpios 0 0 10>; + gpio-ranges = <&pmc8180_1_gpios 0 0 10>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -200,11 +200,21 @@ pmic@6 { #size-cells = <0>; }; - pmic@8 { + pmc8180_2: pmic@8 { compatible = "qcom,pm8150", "qcom,spmi-pmic"; reg = <0x8 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pmc8180_2_gpios: gpio@c000 { + compatible = "qcom,pmc8180-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + gpio-ranges = <&pmc8180_2_gpios 0 0 10>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmic@a { From patchwork Sat May 25 18:04:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 798975 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DA8F812EBC4; Sat, 25 May 2024 17:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659960; cv=none; b=hapnOFyQYdRuAa1oCsxUBrMVG/31MzRWdRjHfSF2hnYdGKNRMAmypmjzRqd6uLEkRepcKMj2odQQYAcf+E0Izu42WGe5kPC9HxLDsmeu9TvPEd0kFOVqsgcBbbBjli2dBbrR+nqywL328DtDGYJklkKrUX2pBtmT5O0ebezLnpg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659960; c=relaxed/simple; bh=fT5H+9k0dKw7ylUnpXt7G6BQhfF1fStNR237iT1CHY8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UnwMRj53i9ZAec80zJ8PPxkrf1mKUm8wXxMq08Yrdu5iv4YBFF5fIwuuxx1LSOyyHLu0KTesmhfuB8jR2RXu8v/EdjIHUlLa3vST9uO4L8rUlJ+shI21P0AQxOJaVhG7A+8ni4V1Grsx2UrRr9gRWCgekQgBxDf0Gr6IX2cjPoI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o02yb0UK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o02yb0UK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99111C2BD11; Sat, 25 May 2024 17:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716659959; bh=fT5H+9k0dKw7ylUnpXt7G6BQhfF1fStNR237iT1CHY8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=o02yb0UKPRXZxFxcEHmh8tMsjOm6BiAvD/893mJ893f/ZwQEyIIau/DS+CM1pEfTd nC56c9jwM9H32u2z93g5C6AeMQ7WX8SQJ85s1PBkaG+eZwHo1jaiOjKr5Xs7Uxg2LX xGM3XdwPn09hPoa8b3tpiLELe/tnrZOp4/hogknJrs2zU7bbInV4x1lWm3Z+opstA1 W6ZIFS3TnEZwRe/ej6iaLFWAFtGcieHQTqHLH47jAMn3S3XAM2OiNpT9jjqTIbapRd Jy0Z6jRcu/vlLWObrEq5nL/cBpOJ/HlBnHfm4PsOspalGeaGVSdJhWo63oF5ybJ2/U Ac4FSx7aQVJqQ== From: Bjorn Andersson Date: Sat, 25 May 2024 11:04:01 -0700 Subject: [PATCH 08/10] arm64: dts: qcom: sc8180x: Add USB MP controller and phys Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240525-sc8180x-usb-mp-v1-8-60a904392438@quicinc.com> References: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> In-Reply-To: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Wesley Cheng , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=5451; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=9MKZGUklgYXdQmJb0Ci7E4C65gPkhylXhTIui5TVewU=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmUigMg+OuqInwHR3RI2Cbb/opRwyNFctoxU0Lg lxkKpgSqVKJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZlIoDBUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcWfsBAAriYmGV1MSfQ406DVeil3lKzAMNUvyEzswoSUrjA H1OvR34xU/YVI6XR2dhoK/2fQLLu+eAPCrJkYP2fl+sZQ9NlA0wKhIW7mmn2+/eFooE9w9y6Yo1 wUg58YMdagu6B0Vwlv81uAn6ZMq3rrPfPArGwSE1IuOxlMsZU22kL2W92tJpNTqeDH+ji2usSr9 CS9KhDso0t8c4yHtoD/IRlJ9LqsTu0vbivKqRg/dFsqybAVCPF3fjL+QJRU/q39NfxwCti+r1uL 0CYjXXbL59FaSTyRgmlJ4ZemOESoiomy6jlkokZDjDaB8Mwilu98jimWeoq3dUXK4br4p8m6GMG ayC+4lCgtPX7NNLGhNJ+ysR/0RrT1bBdqJ2HSToXG+M89fjZqdBujar8L0EQZEULGRmbfUFFd7J pH0s0JyU8HeybUnm7gdF6Dx+eUzM1vsgvYg9FTzGRXjHuqF0dFA1cdsWjYL11AJi31p1x24DBdK ZRZWB9WEmJdF0GkYNXKy8lx6qE5889QmDNQ7eQgwjgSL1Jj+r1KAEIBvmnXbi0OR31c+FgRm5TM +aGKjbPKSGdy3Hf8NpQ9nVUbwZiN2/QYOZaURLPHnH/OnQ+7UQaUxC82q5ZSo3vEaw2hhMS5ZMG SL9um5RxXSPNJ9G4lVRUakJ134C80m7MDk7Q3MWbUzTU= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The SC8180X platform comes with a multiport DWC3 controller with two ports, each connected to a pair of HighSpeed and QMP SuperSpeed PHYs. Describe these blocks. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 146 ++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 9ef3fa40e1d8..0950dc7adb20 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2511,6 +2511,34 @@ usb_sec_hsphy: phy@88e3000 { status = "disabled"; }; + usb_mp0_hsphy: phy@88e4000 { + compatible = "qcom,sc8180x-usb-hs-phy", + "qcom,usb-snps-hs-7nm-phy"; + reg = <0 0x088e4000 0 0x400>; + #phy-cells = <0>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "ref"; + + resets = <&gcc GCC_QUSB2PHY_MP0_BCR>; + + status = "disabled"; + }; + + usb_mp1_hsphy: phy@88e5000 { + compatible = "qcom,sc8180x-usb-hs-phy", + "qcom,usb-snps-hs-7nm-phy"; + reg = <0 0x088e5000 0 0x400>; + #phy-cells = <0>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "ref"; + + resets = <&gcc GCC_QUSB2PHY_MP1_BCR>; + + status = "disabled"; + }; + usb_prim_qmpphy: phy@88e9000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; reg = <0 0x088e9000 0 0x18c>, @@ -2577,6 +2605,54 @@ usb_prim_dpphy: dp-phy@88ea200 { }; }; + usb_mp0_qmpphy: phy@88eb000 { + compatible = "qcom,sc8180x-qmp-usb3-uni-phy"; + reg = <0 0x088eb000 0 0x1000>; + + clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>, + <&gcc GCC_USB3_PRIM_CLKREF_CLK>, + <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>; + clock-names = "aux", "ref", "com_aux", "pipe"; + + resets = <&gcc GCC_USB3_UNIPHY_MP0_BCR>, + <&gcc GCC_USB3UNIPHY_PHY_MP0_BCR>; + reset-names = "phy", "phy_phy"; + + power-domains = <&gcc USB30_MP_GDSC>; + + #clock-cells = <0>; + clock-output-names = "usb2_phy0_pipe_clk"; + + #phy-cells = <0>; + + status = "disabled"; + }; + + usb_mp1_qmpphy: phy@88ec000 { + compatible = "qcom,sc8180x-qmp-usb3-uni-phy"; + reg = <0 0x088ec000 0 0x1000>; + + clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>, + <&gcc GCC_USB3_PRIM_CLKREF_CLK>, + <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>; + clock-names = "aux", "ref", "com_aux", "pipe"; + + resets = <&gcc GCC_USB3_UNIPHY_MP1_BCR>, + <&gcc GCC_USB3UNIPHY_PHY_MP1_BCR>; + reset-names = "phy", "phy_phy"; + + power-domains = <&gcc USB30_MP_GDSC>; + + #clock-cells = <0>; + clock-output-names = "usb2_phy1_pipe_clk"; + + #phy-cells = <0>; + + status = "disabled"; + }; + usb_sec_qmpphy: phy@88ee000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; reg = <0 0x088ee000 0 0x18c>, @@ -2662,6 +2738,76 @@ gem_noc: interconnect@9680000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + usb_mp: usb@a4f8800 { + compatible = "qcom,sc8180x-dwc3-mp", "qcom,dwc3"; + reg = <0 0x0a4f8800 0 0x400>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dma-ranges; + + clocks = <&gcc GCC_CFG_NOC_USB3_MP_AXI_CLK>, + <&gcc GCC_USB30_MP_MASTER_CLK>, + <&gcc GCC_AGGRE_USB3_MP_AXI_CLK>, + <&gcc GCC_USB30_MP_SLEEP_CLK>, + <&gcc GCC_USB30_MP_MOCK_UTMI_CLK>, + <&gcc GCC_USB3_SEC_CLKREF_CLK>; + clock-names = "cfg_noc", + "core", + "iface", + "sleep", + "mock_utmi", + "xo"; + + interconnects = <&aggre1_noc MASTER_USB3_2 0 &mc_virt SLAVE_EBI_CH0 0>, + <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_USB3_2 0>; + interconnect-names = "usb-ddr", "apps-usb"; + + assigned-clocks = <&gcc GCC_USB30_MP_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_MP_MASTER_CLK>; + assigned-clock-rates = <19200000>, <200000000>; + + interrupts-extended = <&intc GIC_SPI 656 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 655 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 658 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 657 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 59 IRQ_TYPE_EDGE_BOTH>, + <&pdc 46 IRQ_TYPE_EDGE_BOTH>, + <&pdc 71 IRQ_TYPE_EDGE_BOTH>, + <&pdc 68 IRQ_TYPE_EDGE_BOTH>, + <&pdc 7 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 30 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "pwr_event_1", "pwr_event_2", + "hs_phy_1", "hs_phy_2", + "dp_hs_phy_1", "dm_hs_phy_1", + "dp_hs_phy_2", "dm_hs_phy_2", + "ss_phy_1", "ss_phy_2"; + + power-domains = <&gcc USB30_MP_GDSC>; + + resets = <&gcc GCC_USB30_MP_BCR>; + + status = "disabled"; + + usb_mp_dwc3: usb@a400000 { + compatible = "snps,dwc3"; + reg = <0 0x0a400000 0 0xcd00>; + interrupts = ; + iommus = <&apps_smmu 0x60 0>; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + phys = <&usb_mp0_hsphy>, + <&usb_mp0_qmpphy>, + <&usb_mp1_hsphy>, + <&usb_mp1_qmpphy>; + phy-names = "usb2-0", + "usb3-0", + "usb2-1", + "usb3-1"; + dr_mode = "host"; + }; + }; + usb_prim: usb@a6f8800 { compatible = "qcom,sc8180x-dwc3", "qcom,dwc3"; reg = <0 0x0a6f8800 0 0x400>; From patchwork Sat May 25 18:04:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 798974 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 96F951304A7; Sat, 25 May 2024 17:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659962; cv=none; b=VTi38brOf68ButwteMRc1YdP1gVdSFFSeorTsDRLXRLZiqf/WN/9ZOf8A7IrsRx3MxOpLOcmSNJ2TtSbOy/n0AvzLgqZg9y1iyP7kqfpFktC6kCNNXxEIOJfaOG/ehn39asGc7bCH6HqbUpoRXS/1ISdE1o5fMF3UcNxA7IWln0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716659962; c=relaxed/simple; bh=x/A3qlHKSNksLYkJyamEvoUm6j0d2K1gDvbHogrpo0Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uqy4GZOokWJR/GscXnZC8xCds2xxDDGN9+veAM97b6kh4cq5y8zNLST6QeKX4HAvPtz+elhD3BoAyHx6X7qdjNIEX6FLuvPEKQLL3WV9GKloCUBP6lVCuw5++dLvUrC8rUeHmRR0P4Lvy62yhWSO9Ta0q3gJV9wbQmuy95MSsoA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dA5YG2ld; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dA5YG2ld" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52574C4AF11; Sat, 25 May 2024 17:59:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716659962; bh=x/A3qlHKSNksLYkJyamEvoUm6j0d2K1gDvbHogrpo0Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dA5YG2ldKuY07n1rg7kv83bweOx1o7532gHn4E3h6ldpV3PWfYE+K8D759V/hWkEm d5e9XCx8iUJkHOImcjZlNwzWhJusY58NtiPHf2F8l8QAvK+nV51o1ebigd7M+9tK+8 5+21YARO5/JG53BJpigfvP4h/Q9QsPLn44dazPdqT6pgXabQK8GhZ/BWaQwQAXzXq5 TTS2bet5Kej6E0i5e8rqOMTNtQ4GvCow8uqkok2BxGR367w3U0XSO9w8/lgnI8LZUB /KksqpX3OE1oFRLjT9gBbt3nqMLw94sS0NZSrGq5Ekf3hHdFHuL0CKWwG7hJT1vuPp vUwTjFrvhYZ2w== From: Bjorn Andersson Date: Sat, 25 May 2024 11:04:03 -0700 Subject: [PATCH 10/10] arm64: dts: qcom: sc8180x-lenovo-flex-5g: Enable USB multiport controller Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240525-sc8180x-usb-mp-v1-10-60a904392438@quicinc.com> References: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> In-Reply-To: <20240525-sc8180x-usb-mp-v1-0-60a904392438@quicinc.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Wesley Cheng , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1388; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=ApeqdvS88ACvmrMfc7ygIjzXVr8WNirPX8Y+Q+iz2qg=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmUigNf7OPmC9AZV+nbwo2ZWqTekEW/mFXM//YE 76bMWBweBSJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZlIoDRUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcXvxRAAiLS+lEqoMRKXifzpZgBqbQKahAwyZOa/z+B0HjV ATMhQP6UbO02H3tHJ6x+6nhC1uq2w6bTtoaOHCJvbdfJq+Bko3nsyk2M/TbDFeVPeFD0UXNaPpE NO6LtiLjcPXgXVEEaFqUfzrHv76P2dYXrvBZumeiNcK0oLjNaNQn9nqe+w9c5P6RCB928L3iA5A 73IaKXehwKa2kVBsPz4u3bfKcPB5HLecCIMMITIAjAdgcAp/+qGFHP4lh0hBYjxrggcGerQ2/SK IixzUjoP3AB/G2IlRXd8h5jS2tghqvsZ9PaHIbaqh4bMHgWuXxKRhlSpstZuSXR+L8o085tQw1D r3/X3gwY1J6Xbmb0rjR8aL5qAAQhQcDVCr7msLiIxSKrrqGR+73J5iPmzFtji1vSMedeJGfFIcU N1tZc9KjpClkZz50177Qcwjx/2Vt8TgbicEQuZSvQ1sKmw1QuYomO/gYrMjGnMxRplVRehvA0va 3eCt3e4JW7JfJSP+HXamS6i0dMX9Sgmj25gqE01lGE12axNnCUwr4PArGUxzmpzCFbLEUk04va1 B6wXVmxUYKYN1oRA0bllHyaKki/ud+DoHQp9moS94dh2dUc3BX+keKtSuSDpGWAEvIu5ir+4sDr LhLiBCDzpogQcB0KF/l4JA0NbNlSK56hzPOvbZiG38HQ= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The Lenovo Flex 5G has a camera attached to the multiport USB controller, enable the controller and the four phys to enable this. Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov --- .../arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts index 6af99116c715..daa3065bcfe5 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts @@ -557,6 +557,38 @@ &ufs_mem_phy { status = "okay"; }; +&usb_mp { + status = "okay"; +}; + +&usb_mp0_hsphy { + status = "okay"; + vdda-pll-supply = <&vreg_l5e_0p88>; + vdda18-supply = <&vreg_l12a_1p8>; + vdda33-supply = <&vreg_l16e_3p0>; +}; + +&usb_mp0_qmpphy { + vdda-phy-supply = <&vreg_l3c_1p2>; + vdda-pll-supply = <&vreg_l5e_0p88>; + + status = "okay"; +}; + +&usb_mp1_hsphy { + status = "okay"; + vdda-pll-supply = <&vreg_l5e_0p88>; + vdda18-supply = <&vreg_l12a_1p8>; + vdda33-supply = <&vreg_l16e_3p0>; +}; + +&usb_mp1_qmpphy { + vdda-phy-supply = <&vreg_l3c_1p2>; + vdda-pll-supply = <&vreg_l5e_0p88>; + + status = "okay"; +}; + &usb_prim_hsphy { vdda-pll-supply = <&vreg_l5e_0p88>; vdda18-supply = <&vreg_l12a_1p8>;