From patchwork Wed Jul 31 03:24:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13748018 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 8DB9218052; Wed, 31 Jul 2024 03:20:18 +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=1722396018; cv=none; b=fXoChIZLVjirejvk4Eyunz0mOW3lD0Z7PgZT7ywsdqCLoTanv0S1nTDNGElNJbMIMwf1FEdFe0q7fHMMxlCv4omdvFgDyZwWYyeAJbobCKJn5RB90UDxyYlr+JT3UdBxFoWUdOcj2OsgU9q5cNqR4C6MULyNbOvqr2PObkK6mXo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396018; c=relaxed/simple; bh=Ckz+7gO/R99Q5/0AYfleHsZDa6v4GaHEVO7xQa/zuo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bY1sHTPM/EdNPLZhPFrHJ5uXipvnDR+1d28Hb5Y16/XsHKH+d6Daq3mhDZHNmAZCi41XP6KEK2EL7qbNfdkKm6OjF3L6xCmO/np47+rYO+l44Djk0IUGcfQ3wgGOtP5IO1fMiS7vWvaCeYicpF1SXRHzYWXvvPq9CcofbH0ZT4c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C52lssOa; 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="C52lssOa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39A2DC4AF12; Wed, 31 Jul 2024 03:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396018; bh=Ckz+7gO/R99Q5/0AYfleHsZDa6v4GaHEVO7xQa/zuo8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=C52lssOa7BXOMbjanc/yquwBARC1kzcy4kTBnO0HXdy3sloicnadz16F86UKKyZIk mOH4lcn/v/Nw2dHJyoG+c4YjG2jU4n5CCjUN8WF4bLMij1pwdr63UjAHuo222FT2ws Fhh3B5fY/tksNfaqu8IFib6HTNMchA3Nc5ukV9DcYuInQrb0QnSm4XEwo0RvWdG7DK pZh0k1fl+zjYayWzjkcpsfnYb8e/Ob2TZgfRj97U3tZB1s12U9gykb3M845ZPNlljy tnxZfLP90H21okcoF4bCoEcjriYzpg1DlSUSHGd2KQxQOaCA2/IeL5leiVFrcKm/u4 /xRqnBB9srp1w== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:38 -0700 Subject: [PATCH v2 1/7] dt-bindings: clock: qcom: 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-1-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 , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=923; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=5GIKdsD9j2k4HggTSRAKKOW/XngCTtSO/ui2YkCAQUk=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6HhTueIhblIfNLfS8VxWLnLeXMKHIGi4Jtb R95JBkXfRSJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcUt5A/8DToKvnRG7NF3nQXVXgTIRhgNWPtD3pVZqKfCoB/ DEYrilVjAxadcstlaw7awqVlbE163z8jbb/d/OsP49AnXeQZCPdYoGWzqdjI1RoB7yTRfiEGgR/ AbLmdS6Fz3bbKCNCulqX24jEs9Mb3vlksnGRVaH5FwvOaq2sEhjsFaAEskUXZEDexEaeOpRTPnb N/Pk1KDv7tJjMYY7v2inU6qT4La7vIzMTTzRuqQ6UX780fRBsQRqoI4iDDd2pEmWbQkKW7R3ydt +wx+g+9zoum7pEgBYcQvOOl5bTEGwlO+/3KIp8BXktZJeEGz7ICRJ+Xpwa8vQ9oTGEvS0enrJIR /+4wLj7e9vGBli3Ixv38VjqB7DaAkqrOtRe9Hd424KGh8oMwLSMA8f4m7TVOl+cWG2Oo0KY2FHt vOmXrRyYYDdR0fVG6AUey0UmGuHT3SAkquWoiY1HRyvSwtleDeaQ5y7qShq9/RwqFXcBswzaTIR AIOVBW7vwCWhKmIjGPrr8bEW9a/yOpE/ON2lvMRNG1Xgd1X2tXP4AK67SoA7So+us39O+vIY7ic EgCAN2wpF+auy/UhP5G8+slibJ5ZMFh6zGmJzuC3P0XgMj3GzJ4qaiG5rJKon+HWsZyM+8Guqlg WAjVF8PBsDpsokSq9t4Gif8lDqrcrdkKv5JqdJjW9R24= X-Developer-Key: i=quic_bjorande@quicinc.com; a=openpgp; fpr=05DE03CC5F35EA4F0966D5250B1F393F0D99ADC5 From: Bjorn Andersson The USB multiport controller needs a few missing resets, describe them in the binding. Acked-by: Krzysztof Kozlowski Signed-off-by: Bjorn Andersson --- include/dt-bindings/clock/qcom,gcc-sc8180x.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sc8180x.h b/include/dt-bindings/clock/qcom,gcc-sc8180x.h index 90c6e021a035..487b12c19db5 100644 --- a/include/dt-bindings/clock/qcom,gcc-sc8180x.h +++ b/include/dt-bindings/clock/qcom,gcc-sc8180x.h @@ -294,6 +294,10 @@ #define GCC_VIDEO_AXI0_CLK_BCR 42 #define GCC_VIDEO_AXI1_CLK_BCR 43 #define GCC_USB3_DP_PHY_SEC_BCR 44 +#define GCC_USB3_UNIPHY_MP0_BCR 45 +#define GCC_USB3_UNIPHY_MP1_BCR 46 +#define GCC_USB3UNIPHY_PHY_MP0_BCR 47 +#define GCC_USB3UNIPHY_PHY_MP1_BCR 48 /* GCC GDSCRs */ #define EMAC_GDSC 0 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: 13748019 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 Reviewed-by: Dmitry Baryshkov --- 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:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13748020 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 712EB20330; Wed, 31 Jul 2024 03:20:20 +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=1722396020; cv=none; b=Vk4rm/IDgZEmyhx3WyZvANRlnr3FRsxWlnZgLPEOn+SXicbR1Y8dfIwIMvPo9GFexpV6nV5jr9PC1TBYxwIbcgvsRgqhW8rKbt5e2vZcKyHFiUwwpJOmIz1vPChDUGbZ7IzzA7LJWvEGRFD1Zk9CCRzn5Uay5FQ05ZcbSR3BRy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396020; c=relaxed/simple; bh=zlc9Outv8J/SmdPWoBnJw7jsI0nNkrEoTz8rmRSu3Xk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iLDi1sruFvBkaM2tTmGwLNHp1d9e5G92MuDLlFVuTckeyM0ltcIysrY2CuHIC8sbPktMAa52aZZVE0cn39Sn2+CaZcukSz1aa6hb8M4UTbk1w60MUMmIsLOGeTDpKbBkBQVJVNoRA3qOoL9ifw8ezijS3YwbuYgebzOiQ9W/dlg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NFJcGa/M; 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="NFJcGa/M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D003C4AF0E; Wed, 31 Jul 2024 03:20:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396020; bh=zlc9Outv8J/SmdPWoBnJw7jsI0nNkrEoTz8rmRSu3Xk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NFJcGa/M4Z4hHxcY1Mmpebld2bV9aHZbBB4LDj963KqHRJe/iSRj3WQSRHch2RsT2 QvaIzf51hKsGPV0oqdActYEOhsd8sOnjEXvu7JZHoh5GZ7nUny9cd881HKagPpRBBv bwb9J0snaF96nj1xcijkDWRPQmMpqOEh8CPDP+5ENh08kLkNHPWJoAEvtKB6s+Rzpb FzqkUYJPG4P3FLC/Sx5fwpKDZ520A3bd2MM5JSfGlef7snXGCkYw6IDdt+08AY3LJz Eck/vk5eAXFNinkW0mh2nG5M2f71f2s7i7YbhhFu8ujfbA7nnMtjXhwQxB/5NImPIt jNQk20LICGY5Q== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:40 -0700 Subject: [PATCH v2 3/7] 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: <20240730-sc8180x-usb-mp-v2-3-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=1695; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=WoUciSTAgGTiHp5c2RldbTWydny4BWXv+STWKvCT8rE=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6HRiqCiT1CS6ofmg4YahxAxdduhhhrUcQRa cTZiumAcLCJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcVdhRAAoIiLu/57d2YZjdV3rbMjM/GZO/6ejnZ26Ujxb2t LPXKKjVNdtpCiZezXt2928joG6qktKFNeCVTLp7wDtimqaWHSXuskBfNfxlFKPUx1S9k7hn6LVE GYvbmSoQ6iSE8Px4Cxq40DZZ8a4GOCZ5rUoPaR07CcDd805x+W59ZEmnOnhrmzlxo8uSP1wGcRe P8lJ1j00qH5oEKKyncorxClFJU8re7p2GFLrzObOBmD3Bfz0gllEiWC0m/EA8HcJ86HD/7F94zl 86BzZxPYsqcFVvK39fNIyyczWiZRGmhwrEjDPKBgufQ7RKdHvkmfEvTEAW1DValWkH7JtiAK3bg WjuTbwvR52FS/BArch4irctFscNsB8j1zpjHD4uUgxNn/xcdQLvxtN6ypiJ2BCpemEIE6gHCfWT 27TnF8Da+Mr3gg9sZDsQWko9ebtLoUgtihnzBQmkCMeCCJ1bCeWY2g0auhrxyOjSGMzndH/L5WH sP8BqExUS/z1kP7lq8QMeU8YCkvkOarIZdA7k4cWlrjET4L6yUJaklrMMa7bbc6tuYwdnQubKEj f+rsY8WvvRr/GF77TcA6j4FDmlpuvKbCQvi82dM4qbyJO+BIiTUripGfEFNyzjgxL5Z1mXln1I4 yMSX29sW5psBSFBg4kaDah9YsMIh1vp6LMZ/BmgPWjLU= 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. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- 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 1c6f12fafe1d..b6f8d1558c0d 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi @@ -139,11 +139,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>; @@ -198,11 +198,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 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: 13748021 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:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13748022 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 9002938384; Wed, 31 Jul 2024 03:20: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=1722396022; cv=none; b=NOMOM/UpwGWWv/Izmcktn3WguoZfeOQ9CwkWOlnv+M7WMZWiCIvuNvFsV7dWwt5slN+uHqLmgrUxIUPrMO0skBLOzvyg0sAHoWYgRt3UD5sFBOxNkF9vTQhYJKgtjbRWED2R18xPpUjYK6ruNpPhAKtmT6CD92WP2zyUQSCUT6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396022; c=relaxed/simple; bh=l4kFtoXdJr9ur3nAP4W4KhaI/C9Gx9Cp4LlaQ8DBOIk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nH816B6Z2G9eNoZQi3jOEePXu78ihESc5lCpdr23hbDG9FJUgmxBsVLY8zH0+sGg9ifTlJ5ZfLdF/y4bJ3uMcgzfkhVFuSwXVQRaiHHpUUC5M3JL1OuYgwtQaMk+JexVEuVUirIfnEk2FGm091Z0dx/SF7TDV4sDpWA/9675YSY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HDtIXjGa; 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="HDtIXjGa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9764DC4AF13; Wed, 31 Jul 2024 03:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396022; bh=l4kFtoXdJr9ur3nAP4W4KhaI/C9Gx9Cp4LlaQ8DBOIk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HDtIXjGauZrBNtoh2eDI6uBlikrSAXiKlK+onm/u1p13w9vK9VX3vVXLmWDhJ8mIe tCOkIKKS1p19BEOE1Bgv1DxGf8SMG8JohZC46+epMikg+f84r4iPsR2n0rsn2tDzd8 d9Y8swyCDEEDetoWSYnpe6Av/9iUVpGcbQGU3fECVprhEjqlx2JWvvpZzwyoD8e+2V ZSWSSThfZvdBfmUL7Keq62ERCJRHgcrn8mqhxTJXQRuVUd6KnvWE08WA+YL330Vvyo V2vrKlAvhi1nHANF90acZjfFDoIg2GmxhH6my81LxlqnZXfp9raGD+6OipnywXIfVw R9TCnViY+uijQ== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:42 -0700 Subject: [PATCH v2 5/7] 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: <20240730-sc8180x-usb-mp-v2-5-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=5562; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=buN4fCsUGDHAd4BIC1FvVObS9IpS1N7IGsh07AQrffo=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6HI7Sef6aegKTSMZsG480MiNTqSWdA2JIxX 83sko0mFnCJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcXvug//U3I2yx0cTAfeBoyeMqntc5boXjbV2kF85rWkuoi vbQb9cEy8S36DLzu8bjkfFbDfUK9oRJGK7/n8sPAVXwUcl3Of9LpwHIGb5nneL2S1x5kpkeZqjA iY2AsPV1WTSwAlqDeqTwE2a9Rk3+wlxKZiJoY6LXrMNuI3/4l8gzq+gQpMXMb3xzn+zTjdXqfpX H5OlJJ8TAT06dxhbdKsUngt0ZeTfTX2h/D8tNrqe3wNoNCTALjXUzsRJcnzWMI3TSvOCivqCGH0 tytUfQfakEZqxbbk6Q8U98mQ3FzbASoFqFK23v1IV88oA/2Y5jcroY1cvMr6DkoQ/VoeTnxKdqH 4kdQCWpbwDsMpOrnMNO/kucUOqheytJj8I7Az6Jig8Sj3N8iahUNBWfzpNg8wFAevbq70/WTYDU OwiDTrOw6LPMtrv20ZWXEJ6tVIMa7DXjHkiTrp8AKnS1pZW4ZKZ6q763J+orln2cOReMyPtPLi4 tCrqX0IhtTTkhzblpFK3SmwwuS+lbs21iFDF0W2pDvyMorXUdAAMHd5bL6ZsovDwPPM1qAc+9wd ntZ1NBRvqig8gsYLdO9aFWD8Bedf8n3P8eWkcoNsJtidjSUwj5oOXhRGp4ZB6FRi+9VR2dTgqB7 2XWmXayX7vdNLKw54lj+xyjbO7KEtgHUiVI4r7ZZ/PNI= 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. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 152 ++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 23ef8dc239f7..0e9429684dd9 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2507,6 +2507,34 @@ usb_sec_hsphy: phy@88e3000 { status = "disabled"; }; + usb_mp_hsphy0: 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_mp_hsphy1: 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@88e8000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; reg = <0 0x088e8000 0 0x3000>; @@ -2555,6 +2583,60 @@ port@2 { }; }; + usb_mp_qmpphy0: 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_mp_qmpphy1: 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_1_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 0x088ed000 0 0x3000>; @@ -2622,6 +2704,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_mp_hsphy0>, + <&usb_mp_qmpphy0>, + <&usb_mp_hsphy1>, + <&usb_mp_qmpphy1>; + 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 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: 13748023 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>; From patchwork Wed Jul 31 03:24:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 13748024 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 C4E5A3FB9F; Wed, 31 Jul 2024 03:20:24 +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=1722396024; cv=none; b=IoXLYXZ4pBB+oPBnYA2w9t3bKApfWeILnMSipryhCxT1EKr5OxV7SlLrYti5dO+EgyxxvW2kl5HvT7bWpbHxGCOB1MCprt+9orkrbRzMGPZOzypriW8p7rJBtDjLfjfoun6kle+QKx9AbZu5WG/quB9WnO35NZ3wfOQDL2NJOR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722396024; c=relaxed/simple; bh=8AVA6DduvcCJqMNU1iE+LembWD4Pr6ogfnghClfwP/M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=me5BMANIEWOWAUZFNRkT7oWHBSxek1HPhn/NePO789dxKHxKinKtBe4ll8acCS5gHRXvKpuSotyVTdJSRWsWMWrYte+7o1I2L5dxwYj0rGy+BrAuVuLZ1NtXk7F/AS3nXhtdctztt+PKr3xsoSohA74uMtNE6l5qhovw6duzc30= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XpOe5B8F; 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="XpOe5B8F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD3AFC4AF0F; Wed, 31 Jul 2024 03:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722396024; bh=8AVA6DduvcCJqMNU1iE+LembWD4Pr6ogfnghClfwP/M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XpOe5B8FKGmVLFP1ftEjOCQzThZ4aBDXC+FvSZq7uef3kPf7gnVnV5e+2EvqwNNlZ gu5JiytBV/J7mbcED8dEd8htb5Xj2LfhElldczLFWao88uuXRyqyX3yAY6gLvdNxXP 2hND+V3tQaaDk8b4mFAIcl9xa0HK4LpUx+mAwmV7aFmeCau1sFEct+BHV1OWqcg1BZ QpNPAF6OgWfiLMkPK7Zv62pI06zq0dZ3QZlyllpujg8eJ1NjiGBfDeky07wbjuyEpI tdGRWqTH7+Nmz3d9TGYY/tTUr+2bdNOJwEFBHZMAW5huYpRDnwLtzJRu6fahmWm+f2 UFqvsL9WF9hEQ== From: Bjorn Andersson Date: Tue, 30 Jul 2024 20:24:44 -0700 Subject: [PATCH v2 7/7] 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: <20240730-sc8180x-usb-mp-v2-7-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=1455; i=quic_bjorande@quicinc.com; h=from:subject:message-id; bh=m9uoF6Qua65QfQVZTBm40gaW8k9GuaykuaC3tvQLyiY=; b=owEBgwJ8/ZANAwAIAQsfOT8Nma3FAcsmYgBmqa6H0HwvZV9M/fEjWVV7kRXbxdLjTGJa1o9Sg qyLUzKW2DmJAkkEAAEIADMWIQQF3gPMXzXqTwlm1SULHzk/DZmtxQUCZqmuhxUcYW5kZXJzc29u QGtlcm5lbC5vcmcACgkQCx85Pw2ZrcVEeBAAmwsDsuUaqU36eOQSvxpYKBcve8GEj98lcYHjT0e zjZgFT7Ijgpz1gmtAQihcMu1ep7NRl3Ur5/jLbVQEXchSFEt9h+Sp8YuSVnwdeHrS8J82PB54Sn hm25m4e1/1SjApYcWu/MqrWBb7ZzunsvHk3YSmR6Hqx85Gj8thKRMqWXpb7WyG139+Xg96WW1QM VGUPvxtNxHexWPsd6+cdrA2chIts0bYVRLZmxKxpobsrWt21hZSm3fW5IpQLNa4DCRSbuh0S6iF hXxqQ6i2A4VXEWNdQ8UYskTG/7nz5V4ppjeMDy0wT+j+PSZMx98+14IX0/szeh++sN1ZgqExGew bnStR5C5i77Wuyz2DvXAInqR4yMAA6FXwoZJ0XkkcJlEPPVEA/HdpvNtk3eqvHTFwLW0zcuaFGm Nf7XD2MFKh8CFbiJ8unJDguvlVJ8diKL0Xs8uYLufFI02Cx0L8zBcT4H90W41vWPQHH3YGEDzVI JuCbeiHpa7pzO+MRRD6+9NCFUlGJe8ryP6e508la62LoIn3RyvSM1SXSZkvKMQqU1Dlaq6guJAt 9kTjLr8PawN23hBulb4T1LgRPabSadhLCwMvfspHlhngpS09tvA3xxTbzWt0NQGSqBhcvKT3QrG AD3qK1v0MiLVE2ne9rl8vjrXRgQcADYqllNY+gLwlses= 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. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- .../arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 34 ++++++++++++++++++++++ 1 file changed, 34 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 5b226577f9d8..575a1a5ae20f 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,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>;