From patchwork Wed Jul 31 03:24:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 815744 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 33F1818E29; Wed, 31 Jul 2024 03:20: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=1722396019; cv=none; b=NxFG2gZntuaQmoOD/LU1nwtbS5iZPigOltglsc4ILMgtOmX3k8ZlAljMBVx3bG34dDOFSKNpp1abWd1FH14tdSDt6TLXV6W4C0cqLgmTHu7EyCgzaudKOospK8JdCpIEy5BM6LyyeK/0d3hcsqyd4zfMgg0nnqFTCeegL5rumog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396019; c=relaxed/simple; bh=qtshCqBV6iqWMIoHAHzizEr08ZbYwq4TZ32SUgKiV1c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IUluvxRyL1Qj7+hY5Xbp10VqxdWi+gyS9Mi1ajsTvqrvT/8hv3BOXDeWWt/IUNVGJknQWZQm6L6Ew36EM/F0gmC1iYjwk8/+1gsyLoy5br2IrjEZDUvMakIlILpp5KNY2SsQn5vRJb0CsiOkrf8aJ2rIRuS9l6gopeLqx+C+NxA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lmIWrs8V; 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="lmIWrs8V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43D1FC4AF50; Wed, 31 Jul 2024 03:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396019; bh=qtshCqBV6iqWMIoHAHzizEr08ZbYwq4TZ32SUgKiV1c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=lmIWrs8VrzGO2uwZ1WOGKIMa5laMI8DDxkGHMP/p9x6CestqFvRqKUVqbegYD19zd 3jQZ4pDLopuO4dzVAQWR9HwwoLiKMZuAO8I1plAn//czT5jmcCa3JyVCi8EeBKnmHl CGRRrCa/cBjdymLYTs0EdiCCZUhEQEBOMP2a0hfc+d/m+WMLhTzm4R7jy7DTMJDlGz lDZw/QMNAUklOpD6d1lOOSgiM8RsIWESSk+U480Crpp1HtJMB0p4++O8lqtfHGaLb9 QsectNxKb0BkaY40J8G+Luz+YkM6IXRQh0pdGA/RJIJkkZmxVrZJQOoLcMUrgLdOEm 4ozZ4NuRKmhkA== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:39 -0700 Subject: [PATCH v2 2/7] 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: <20240730-sc8180x-usb-mp-v2-2-a7dc4265b553@quicinc.com> References: <20240730-sc8180x-usb-mp-v2-0-a7dc4265b553@quicinc.com> In-Reply-To: <20240730-sc8180x-usb-mp-v2-0-a7dc4265b553@quicinc.com> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=993; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=R0uqQiTUzPwBNoqywsCEdClfAGVIswyFvt1nKvbTKWY=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6HXhKPORtMxL7arWGuz5Nc1+kfuav0xmCkS jHsKSdhxJ2JAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcWcNhAAhB7QTbKieA6EEiL/OfvfWqjceh3DmBxUPG7jSK8 SlgXVOCj+NlBllKAbyrsaU7utkVx3oC/C1J23gKhP9ajH8/LMMX+bRhGiyHRSTwEvYtYmlPQ3QU NFQVIgaPJPgzmPHZCxlxwTfTGsfmS1bxixVib5JCVcMhm2Ib5jOIXvgRR69Z2zsXeYmCaLnWhHY zMvRypXD0ZIiX897ntD/0aT9rKx8hhNCwLLx+WFX6cVQcIrh15A+HzALiEqASCevNvSMfvWmTuo AOpWjZ+NHNIUTudWMPEfFPW2ZTOKXUeqh8Ye6C904yW4tImmA+N5BPnx7L7XpIwswn7vfI6DnM3 sHiyKmSryV4GUuznW+GVTABwP9wSb3+Mxyk8ULXLH8rJ8GkZutsrUmK69J4jufscYKPoNRZuONp pwon6Ag/z5KR61bOXDjqsAOAgEX/GbPxSrKVPRAkh//IeXJVN0xnWyXufUYn4TH1bsCN2tKDRma 3dkotR8qJZjQzlO5hMN+d5KJ6STFx0Jg3icf2w9VM9H4Sv4Xrv5HeLv1/z0duqTa2HNQgueBxSs UbdfUOYfJ/VTwAgP0NvXXqI082h9cRRhxzCf47Uv+6LiCXmgQyoHE6fsinWJblt3vTEPMdbmX8Q 516y0CXIIV+vRVh2JvWfPowZqLYMdEP3R8+mMVJolMIU= 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. Reviewed-by: Konrad Dybcio 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 ad135bfa4c76..113f9513b2df 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 Wed Jul 31 03:24:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 815743 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 8313B2941C; Wed, 31 Jul 2024 03:20:21 +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=1722396021; cv=none; b=t8I+DTy2teskNEP3bjbCnDhQMjSnCjEgaeNT0WZTsRuRuN7s8k+nE/MIgFoJOw3neufk2OAdWZEO9LK+xS9daAyrMvk3u6prg+TRm/4+qENwbi9iPU4CMo9McGLMhFou1q9ANiR9eW4GtOr7vB1dnWnEAneV2+pI+oW8BgkD79M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396021; c=relaxed/simple; bh=vpJrewGNY4xVpLM1vrZibScLHwld8Jyhp1cdNs6Q5BY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qjjGIOaZ9f0y6PRVcaPKXqAUklQtswK+mbq9TnoXUTESI3QpIU1FCt3eSggkTh3f2xKXtokRnLM0FvkX365N+8bnLYowZaVRMPzw/+SXsH7NYLV9rGpm2TemQp7PtUDk6mcobB15BP0ZVEE0jgatx5E+be6XXlwosotXsLBBNc8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SIm3GHBI; 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="SIm3GHBI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B832C4AF0A; Wed, 31 Jul 2024 03:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396021; bh=vpJrewGNY4xVpLM1vrZibScLHwld8Jyhp1cdNs6Q5BY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SIm3GHBIjVDEvrR9WoiHvJH2F8lVW/P2hwOc+If8QsURnsWEGdqhbls+ukUMgVgpt 0UOyqzZZ/XTF+ZU7kKEMWPNYhedSaVYMG6+OK6pdppE5z6mm/T24unO3HXNn8RyIhF kyX8N3VOr0N7pysCvuNvdMtvaQeufdGZGZRGXWyTue3qYIiebvAG+GtTixXRoHoGcF yHyT0L0glrZswaUYmz/SymzwgD6waOJl9zm1S0dz/uOmCAuffdHhl7L5Nygby3H9F7 5ulY/8u1tsYx2y56B/K6r3c/yZ7wsKbyGq4uW1kwYBggB3itnu2c3YsSf8bg/xWL+c lMxZH3dry/V8g== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:41 -0700 Subject: [PATCH v2 4/7] arm64: dts: qcom: sc8180x: Align USB nodes with binding Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-sc8180x-usb-mp-v2-4-a7dc4265b553@quicinc.com> References: <20240730-sc8180x-usb-mp-v2-0-a7dc4265b553@quicinc.com> In-Reply-To: <20240730-sc8180x-usb-mp-v2-0-a7dc4265b553@quicinc.com> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2371; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=XPwQdA5nL7O/yrREuJldPg4SfUnfP4lidjcu3KK9HHQ=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6HgwEqF5T/V3Ucqavekmzkgm4MsC1nGEo2s YBdOXy7alSJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcWtoBAAgqgOjnEoIHl3qWcLwc9cT4hTibGCoVh8dkiyv6o DLse/9bILbsLEYQsPECI+opxRgQ5FmJDkts5Zdv99gmPA63NTqdPiVHnouEqNk6lEBrS1w3CMFX mpuF546QO0QGW7uE64+dxEcf1PTHYiSdcOu2gqSbJdBEMiW/myY3soDOKnplIWJofviQIdvUaJl Y08Esu18MmAA1G9YNclsy6pNdsTHWvZypGuCU988UfdwYp8Dy/OGKGzZdQEL6Ohtk4l65KzZUUn 02SQX7HUaxmtT8W91AL1DdWsjPoooMcyUnOW7GHHrANLTssTa/cyObvxG92N2fSu5uN/AyXwT7f RkyRRwBaAiX6YQAAw3/BcMBXoMmTaAUex14VKPaufUbicO9LTG+XsvwRHLAzx5WqQn7+zN+fHSG VBdSIDQGcTA4VX0RMBGUTWLW7uFrEBRyjOa7feYcgqMxyCWAzwlrOXXjMFTEjEKRXrtAmmSbaPe tIXW+YSasx0yG4LvtO3WFep66aWXqXIWlsSTSA+bY6/UE5lanQZdyKmC1boj5UbQoqkg9MhjUqG VIRx0AYpGzKW64cy9KA/NxWGoSCrFWBfiEAmcOMOGkQ63G0ko9NmJVp3B9+tobvmxLKcIqCXy5f 7Oxrtm5mFTB1dbSSa00RE1gVZNYonk5iTbVw+uLjLg/U= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson Add the pwr_event interrupt and rearrange the order of the other interrupts to match the binding. Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 6e707d993aeb..23ef8dc239f7 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2625,14 +2625,16 @@ gem_noc: interconnect@9680000 { usb_prim: usb@a6f8800 { compatible = "qcom,sc8180x-dwc3", "qcom,dwc3"; reg = <0 0x0a6f8800 0 0x400>; - interrupts-extended = <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, - <&pdc 6 IRQ_TYPE_LEVEL_HIGH>, + interrupts-extended = <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 9 IRQ_TYPE_EDGE_BOTH>, <&pdc 8 IRQ_TYPE_EDGE_BOTH>, - <&pdc 9 IRQ_TYPE_EDGE_BOTH>; - interrupt-names = "hs_phy_irq", - "ss_phy_irq", + <&pdc 6 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "pwr_event", + "hs_phy_irq", + "dp_hs_phy_irq", "dm_hs_phy_irq", - "dp_hs_phy_irq"; + "ss_phy_irq"; clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, <&gcc GCC_USB30_PRIM_MASTER_CLK>, @@ -2714,12 +2716,17 @@ usb_sec: usb@a8f8800 { "xo"; resets = <&gcc GCC_USB30_SEC_BCR>; power-domains = <&gcc USB30_SEC_GDSC>; - interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, - <&pdc 40 IRQ_TYPE_LEVEL_HIGH>, + + interrupts-extended = <&intc GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 11 IRQ_TYPE_EDGE_BOTH>, <&pdc 10 IRQ_TYPE_EDGE_BOTH>, - <&pdc 11 IRQ_TYPE_EDGE_BOTH>; - interrupt-names = "hs_phy_irq", "ss_phy_irq", - "dm_hs_phy_irq", "dp_hs_phy_irq"; + <&pdc 40 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "pwr_event", + "hs_phy_irq", + "dp_hs_phy_irq", + "dm_hs_phy_irq", + "ss_phy_irq"; assigned-clocks = <&gcc GCC_USB30_SEC_MOCK_UTMI_CLK>, <&gcc GCC_USB30_SEC_MASTER_CLK>; From patchwork Wed Jul 31 03:24:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 815742 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 B0B0C3B298; Wed, 31 Jul 2024 03:20:23 +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=1722396023; cv=none; b=vFuNkrKtk4qjWTyz9QEXloQX3LT+OWF8gHN1NJtj8H3UTA5dOeCzjBnUpNEr20K3H/piO4TqMJzVNHWn3/Os6Aqrl+/p5qtD2HL33S4hterwyP6vx6XjntorkvoDnzrJWGFrPUrR1ijGXVgmJDwmj/LTgd8RRi9n9MmC4DlKP1I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396023; c=relaxed/simple; bh=I0wyuOwrt9M1SpVhC1LGk6U1zCqdQCcLFp+tcMzC/Rg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vr6RP9UC1F8GcV/BsKPwxxBus62Xj0ESKIFzHpyTwnqmSh5J1x5+SciIXQtsOkcyd+O3NdSA5kaaFU8DteAYcMHABxR1CKEH+jG6WZiHdgk7LFoTB8a1fz+J1nCd5cRe5BECnf4vU+20wOpkbMz8M+25bmP5j+0zsr3SREgN+TU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hIouC9pr; 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="hIouC9pr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A28CDC4AF1D; Wed, 31 Jul 2024 03:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396023; bh=I0wyuOwrt9M1SpVhC1LGk6U1zCqdQCcLFp+tcMzC/Rg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hIouC9prQiqccyNQccrxrEsKY6xIg3k0MeRyxsMtEDjdV0O/Av/lleTi4knlq6YlA 10BAHdAU2eaCTj28yFpCrLU3f6RbrITroeR9uVcAJdIUFTZ6WNEWotp9OzK1wBB9zB 106sPD0YxSvK425uBbH749Petv231s+mS3K2njt3pbeGXNq1e+cvzoGiiBSC0f0B73 0Sn9Q3rIHdE4WVyCau5CZzHb0ZOnM5Inj6smpm2txoaESfP6rRuqug6R/17BBrC4uZ L/+Yl9G2cOBFneqCdwD87zd2p7bK3msR3DCn30jt04Uqa6vSKkp20BfvXtqBRRpYpb oFm0q3maXvw4A== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:43 -0700 Subject: [PATCH v2 6/7] arm64: dts: qcom: sc8180x-primus: Enable the two MP USB ports Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-sc8180x-usb-mp-v2-6-a7dc4265b553@quicinc.com> References: <20240730-sc8180x-usb-mp-v2-0-a7dc4265b553@quicinc.com> In-Reply-To: <20240730-sc8180x-usb-mp-v2-0-a7dc4265b553@quicinc.com> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Dmitry Baryshkov X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2342; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=09uVIY4CrgQX6VNnE8xRxi0OjqG+wS9cNG1HQ6SpemM=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6HMen+8weizC460badRUChrA7gUP3dYyaa4 s1ExCTVDCSJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcUwxhAAnBAeM6kUIKig68A4lVxHyo1P/yX14WiLI0yO0iV Sa0a/Py0XfL6hNqxHbqkoxMieRod+n5xdSTPEwkSp8vcKFC5VtgftVXrHLsKFcDrvSTvezkHr7r jM20S+OQuWUGFUVmRkXTvzqmSt8VeLu6p2x1zUHyRpbbdt4xHOjEqlddjnK/haOwWtrrK6lciO/ OtvMi2BqSn5XveRsA1JebGoObliekPQ6tsIrrvBphuq/pu8mYXxVM4EKf0toxFcwXtH7hKBUnMH wtf/JIw12xLSvqxzy3JX+mnFdKAP+sYKmnXiIwhTZsvLoJ1NVeRKw/QljnMdXQmMPEudkTSsrPc TPiIJabam34s+mRdfPejSxl5C49MHypGKUZ355bzr/WIbZl7Rdt0sN574FoDiyC4ztfEHHYLQtE qL5HDxeKb8cPXDdtGobHx10pJYVhN0CSfurwin1hYdeTPk13j+OL1Dg2UAboLCrpaQcsnaPPQsp SdbpT3ECm/X0yBzudeY/mXGyXo9YYszo+O628uS3p/Z6dybYT264Qf0cGxL7moJ4QgtGAnD9GoH WFpOt43TiRA74bGJBoXjaj1X6Ss1rAH7ND/JMYt7BHg8U3E+8kw1UWL2VigaOO8UqHQLpdg00q8 8xAeHOvzO8s7p/h+NMOjn3VBQ14Gp8MibQxoqyOfmKeA= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The SC8180X Primus comes with an AUX card with two USB ports, fed by the two multiport ports. Enable the involved nodes and define two always-on regulators to enable VBUS for these ports. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc8180x-primus.dts | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-primus.dts b/arch/arm64/boot/dts/qcom/sc8180x-primus.dts index 65d923497a05..9447c1e4577b 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-primus.dts +++ b/arch/arm64/boot/dts/qcom/sc8180x-primus.dts @@ -223,6 +223,32 @@ vreg_s4a_1p8: pm8150-s4 { vin-supply = <&vph_pwr>; }; + vreg_usb2_host_en: regulator-usb2-host-en { + compatible = "regulator-fixed"; + regulator-name = "usb2_host_en"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&pmc8180_1_gpios 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + + regulator-always-on; + }; + + vreg_usb3_host_en: regulator-usb3-host-en { + compatible = "regulator-fixed"; + regulator-name = "usb3_host_en"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&pmc8180_2_gpios 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + + regulator-always-on; + }; + usbprim-sbu-mux { compatible = "pericom,pi3usb102", "gpio-sbu-mux"; @@ -623,6 +649,40 @@ &ufs_mem_phy { status = "okay"; }; +&usb_mp { + status = "okay"; +}; + +&usb_mp_hsphy0 { + vdda-pll-supply = <&vreg_l5e_0p88>; + vdda18-supply = <&vreg_l12a_1p8>; + vdda33-supply = <&vreg_l16e_3p0>; + + status = "okay"; +}; + +&usb_mp_hsphy1 { + vdda-pll-supply = <&vreg_l5e_0p88>; + vdda18-supply = <&vreg_l12a_1p8>; + vdda33-supply = <&vreg_l16e_3p0>; + + status = "okay"; +}; + +&usb_mp_qmpphy0 { + vdda-phy-supply = <&vreg_l3c_1p2>; + vdda-pll-supply = <&vreg_l5e_0p88>; + + status = "okay"; +}; + +&usb_mp_qmpphy1 { + 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>;