* [PATCH v3 0/2] USB PHY support for Exynos990 SoCs
@ 2025-05-15 14:43 Igor Belwon
2025-05-15 14:43 ` [PATCH v3 1/2] dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible Igor Belwon
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Igor Belwon @ 2025-05-15 14:43 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Marek Szyprowski,
Sylwester Nawrocki, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-phy, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Igor Belwon,
Krzysztof Kozlowski
Hi all!
This patchset adds support for the USB 2.0 PHY of the Exynos990 SoC.
This SoC has a combo PHY that supports highspeed, superspeed USB and
DisplayPort, however due to my inability to test the superspeed part of
the combo phy (device always enumerated as high-speed, even on the
vendor kernels/bootloaders) only the highspeed part is brought up.
These changes have been tested and confirmed working (with the USB_ETH
gadget and telnet/ssh in a ramdisk) on a device from the hubble family
(x1s) and also a device from the canvas family (c1s).
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
---
Changes in v3:
- rebase patch to apply cleanly again
Changes in v2:
- rebase patch to apply cleanly after Exynos7870 merge
- collect Reviewed-by tags by Krzysztof Kozlowski (thanks!)
---
Igor Belwon (2):
dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible
phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy
.../bindings/phy/samsung,usb3-drd-phy.yaml | 2 ++
drivers/phy/samsung/phy-exynos5-usbdrd.c | 32 ++++++++++++++++++++++
include/linux/soc/samsung/exynos-regs-pmu.h | 3 ++
3 files changed, 37 insertions(+)
---
base-commit: 484803582c77061b470ac64a634f25f89715be3f
change-id: 20250515-usb-resends-may-15-ccda86528773
Best regards,
--
Igor Belwon <igor.belwon@mentallysanemainliners.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/2] dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible
2025-05-15 14:43 [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Igor Belwon
@ 2025-05-15 14:43 ` Igor Belwon
2025-05-15 14:43 ` [PATCH v3 2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy Igor Belwon
2025-06-15 16:52 ` [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Vinod Koul
2 siblings, 0 replies; 5+ messages in thread
From: Igor Belwon @ 2025-05-15 14:43 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Marek Szyprowski,
Sylwester Nawrocki, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-phy, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Igor Belwon,
Krzysztof Kozlowski
Add a compatible for the exynos990-usbdrd-phy. The PHY is compatible with
the older exynos5420 design (two clocks) when running in highspeed mode.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
---
Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml
index cc60d2f6f70e32ea745d523c8a74022e4fb747d2..e906403208c02951ff2bf5ed8420d53ad70eb29c 100644
--- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml
@@ -33,6 +33,7 @@ properties:
- samsung,exynos7-usbdrd-phy
- samsung,exynos7870-usbdrd-phy
- samsung,exynos850-usbdrd-phy
+ - samsung,exynos990-usbdrd-phy
clocks:
minItems: 1
@@ -217,6 +218,7 @@ allOf:
- samsung,exynos5420-usbdrd-phy
- samsung,exynos7870-usbdrd-phy
- samsung,exynos850-usbdrd-phy
+ - samsung,exynos990-usbdrd-phy
then:
properties:
clocks:
--
2.47.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy
2025-05-15 14:43 [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Igor Belwon
2025-05-15 14:43 ` [PATCH v3 1/2] dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible Igor Belwon
@ 2025-05-15 14:43 ` Igor Belwon
2025-05-19 12:58 ` neil.armstrong
2025-06-15 16:52 ` [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Vinod Koul
2 siblings, 1 reply; 5+ messages in thread
From: Igor Belwon @ 2025-05-15 14:43 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Marek Szyprowski,
Sylwester Nawrocki, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-phy, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Igor Belwon,
Krzysztof Kozlowski
The Exynos990 usbdrd PHY is a combo PHY which supports USB SS, HS and
DisplayPort outputs. This commit adds support only for UTMI+ (USB HS).
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
---
drivers/phy/samsung/phy-exynos5-usbdrd.c | 32 +++++++++++++++++++++++++++++
include/linux/soc/samsung/exynos-regs-pmu.h | 3 +++
2 files changed, 35 insertions(+)
diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c
index 917a76d584f0856f1e445630e2cf97b3c3e46b13..dd660ebe80458a13413ca9735339b4e1095af8ea 100644
--- a/drivers/phy/samsung/phy-exynos5-usbdrd.c
+++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c
@@ -2025,6 +2025,35 @@ static const struct exynos5_usbdrd_phy_drvdata exynos850_usbdrd_phy = {
.n_regulators = ARRAY_SIZE(exynos5_regulator_names),
};
+static const struct exynos5_usbdrd_phy_tuning exynos990_tunes_utmi_postinit[] = {
+ PHY_TUNING_ENTRY_PHY(EXYNOS850_DRD_HSPPARACON,
+ (HSPPARACON_TXVREF |
+ HSPPARACON_TXPREEMPAMP | HSPPARACON_SQRX |
+ HSPPARACON_COMPDIS),
+ (FIELD_PREP_CONST(HSPPARACON_TXVREF, 7) |
+ FIELD_PREP_CONST(HSPPARACON_TXPREEMPAMP, 3) |
+ FIELD_PREP_CONST(HSPPARACON_SQRX, 5) |
+ FIELD_PREP_CONST(HSPPARACON_COMPDIS, 7))),
+ PHY_TUNING_ENTRY_LAST
+};
+
+static const struct exynos5_usbdrd_phy_tuning *exynos990_tunes[PTS_MAX] = {
+ [PTS_UTMI_POSTINIT] = exynos990_tunes_utmi_postinit,
+};
+
+static const struct exynos5_usbdrd_phy_drvdata exynos990_usbdrd_phy = {
+ .phy_cfg = phy_cfg_exynos850,
+ .phy_ops = &exynos850_usbdrd_phy_ops,
+ .phy_tunes = exynos990_tunes,
+ .pmu_offset_usbdrd0_phy = EXYNOS990_PHY_CTRL_USB20,
+ .clk_names = exynos5_clk_names,
+ .n_clks = ARRAY_SIZE(exynos5_clk_names),
+ .core_clk_names = exynos5_core_clk_names,
+ .n_core_clks = ARRAY_SIZE(exynos5_core_clk_names),
+ .regulator_names = exynos5_regulator_names,
+ .n_regulators = ARRAY_SIZE(exynos5_regulator_names),
+};
+
static const struct exynos5_usbdrd_phy_config phy_cfg_gs101[] = {
{
.id = EXYNOS5_DRDPHY_UTMI,
@@ -2228,6 +2257,9 @@ static const struct of_device_id exynos5_usbdrd_phy_of_match[] = {
}, {
.compatible = "samsung,exynos850-usbdrd-phy",
.data = &exynos850_usbdrd_phy
+ }, {
+ .compatible = "samsung,exynos990-usbdrd-phy",
+ .data = &exynos990_usbdrd_phy
},
{ },
};
diff --git a/include/linux/soc/samsung/exynos-regs-pmu.h b/include/linux/soc/samsung/exynos-regs-pmu.h
index 1a2c0e0838f99821151661878f022f2129a0c19b..7754697e581077ec0fd60b63649728896ca145c9 100644
--- a/include/linux/soc/samsung/exynos-regs-pmu.h
+++ b/include/linux/soc/samsung/exynos-regs-pmu.h
@@ -662,6 +662,9 @@
#define EXYNOS5433_PAD_RETENTION_UFS_OPTION (0x3268)
#define EXYNOS5433_PAD_RETENTION_FSYSGENIO_OPTION (0x32A8)
+/* For Exynos990 */
+#define EXYNOS990_PHY_CTRL_USB20 (0x72C)
+
/* For Tensor GS101 */
/* PMU ALIVE */
#define GS101_SYSIP_DAT0 (0x810)
--
2.47.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy
2025-05-15 14:43 ` [PATCH v3 2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy Igor Belwon
@ 2025-05-19 12:58 ` neil.armstrong
0 siblings, 0 replies; 5+ messages in thread
From: neil.armstrong @ 2025-05-19 12:58 UTC (permalink / raw)
To: Igor Belwon, Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Marek Szyprowski,
Sylwester Nawrocki, Alim Akhtar
Cc: Krzysztof Kozlowski, linux-phy, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
On 15/05/2025 16:43, Igor Belwon wrote:
> The Exynos990 usbdrd PHY is a combo PHY which supports USB SS, HS and
> DisplayPort outputs. This commit adds support only for UTMI+ (USB HS).
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
> ---
> drivers/phy/samsung/phy-exynos5-usbdrd.c | 32 +++++++++++++++++++++++++++++
> include/linux/soc/samsung/exynos-regs-pmu.h | 3 +++
> 2 files changed, 35 insertions(+)
>
> diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c
> index 917a76d584f0856f1e445630e2cf97b3c3e46b13..dd660ebe80458a13413ca9735339b4e1095af8ea 100644
> --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c
> +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c
> @@ -2025,6 +2025,35 @@ static const struct exynos5_usbdrd_phy_drvdata exynos850_usbdrd_phy = {
> .n_regulators = ARRAY_SIZE(exynos5_regulator_names),
> };
>
> +static const struct exynos5_usbdrd_phy_tuning exynos990_tunes_utmi_postinit[] = {
> + PHY_TUNING_ENTRY_PHY(EXYNOS850_DRD_HSPPARACON,
> + (HSPPARACON_TXVREF |
> + HSPPARACON_TXPREEMPAMP | HSPPARACON_SQRX |
> + HSPPARACON_COMPDIS),
> + (FIELD_PREP_CONST(HSPPARACON_TXVREF, 7) |
> + FIELD_PREP_CONST(HSPPARACON_TXPREEMPAMP, 3) |
> + FIELD_PREP_CONST(HSPPARACON_SQRX, 5) |
> + FIELD_PREP_CONST(HSPPARACON_COMPDIS, 7))),
> + PHY_TUNING_ENTRY_LAST
> +};
> +
> +static const struct exynos5_usbdrd_phy_tuning *exynos990_tunes[PTS_MAX] = {
> + [PTS_UTMI_POSTINIT] = exynos990_tunes_utmi_postinit,
> +};
> +
> +static const struct exynos5_usbdrd_phy_drvdata exynos990_usbdrd_phy = {
> + .phy_cfg = phy_cfg_exynos850,
> + .phy_ops = &exynos850_usbdrd_phy_ops,
> + .phy_tunes = exynos990_tunes,
> + .pmu_offset_usbdrd0_phy = EXYNOS990_PHY_CTRL_USB20,
> + .clk_names = exynos5_clk_names,
> + .n_clks = ARRAY_SIZE(exynos5_clk_names),
> + .core_clk_names = exynos5_core_clk_names,
> + .n_core_clks = ARRAY_SIZE(exynos5_core_clk_names),
> + .regulator_names = exynos5_regulator_names,
> + .n_regulators = ARRAY_SIZE(exynos5_regulator_names),
> +};
> +
> static const struct exynos5_usbdrd_phy_config phy_cfg_gs101[] = {
> {
> .id = EXYNOS5_DRDPHY_UTMI,
> @@ -2228,6 +2257,9 @@ static const struct of_device_id exynos5_usbdrd_phy_of_match[] = {
> }, {
> .compatible = "samsung,exynos850-usbdrd-phy",
> .data = &exynos850_usbdrd_phy
> + }, {
> + .compatible = "samsung,exynos990-usbdrd-phy",
> + .data = &exynos990_usbdrd_phy
> },
> { },
> };
> diff --git a/include/linux/soc/samsung/exynos-regs-pmu.h b/include/linux/soc/samsung/exynos-regs-pmu.h
> index 1a2c0e0838f99821151661878f022f2129a0c19b..7754697e581077ec0fd60b63649728896ca145c9 100644
> --- a/include/linux/soc/samsung/exynos-regs-pmu.h
> +++ b/include/linux/soc/samsung/exynos-regs-pmu.h
> @@ -662,6 +662,9 @@
> #define EXYNOS5433_PAD_RETENTION_UFS_OPTION (0x3268)
> #define EXYNOS5433_PAD_RETENTION_FSYSGENIO_OPTION (0x32A8)
>
> +/* For Exynos990 */
> +#define EXYNOS990_PHY_CTRL_USB20 (0x72C)
> +
> /* For Tensor GS101 */
> /* PMU ALIVE */
> #define GS101_SYSIP_DAT0 (0x810)
>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 0/2] USB PHY support for Exynos990 SoCs
2025-05-15 14:43 [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Igor Belwon
2025-05-15 14:43 ` [PATCH v3 1/2] dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible Igor Belwon
2025-05-15 14:43 ` [PATCH v3 2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy Igor Belwon
@ 2025-06-15 16:52 ` Vinod Koul
2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2025-06-15 16:52 UTC (permalink / raw)
To: Kishon Vijay Abraham I, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Marek Szyprowski, Sylwester Nawrocki, Alim Akhtar,
Igor Belwon
Cc: Krzysztof Kozlowski, linux-phy, devicetree, linux-kernel,
linux-arm-kernel, linux-samsung-soc, Krzysztof Kozlowski
On Thu, 15 May 2025 16:43:00 +0200, Igor Belwon wrote:
> This patchset adds support for the USB 2.0 PHY of the Exynos990 SoC.
> This SoC has a combo PHY that supports highspeed, superspeed USB and
> DisplayPort, however due to my inability to test the superspeed part of
> the combo phy (device always enumerated as high-speed, even on the
> vendor kernels/bootloaders) only the highspeed part is brought up.
>
> These changes have been tested and confirmed working (with the USB_ETH
> gadget and telnet/ssh in a ramdisk) on a device from the hubble family
> (x1s) and also a device from the canvas family (c1s).
>
> [...]
Applied, thanks!
[1/2] dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible
commit: 9f77d234c1f41e78a99f124bf6fee59dc2e3d46f
[2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy
commit: 385a766bed48c5bcf620061f24e864dafeca671a
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-15 16:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-15 14:43 [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Igor Belwon
2025-05-15 14:43 ` [PATCH v3 1/2] dt-bindings: phy: samsung,usb3-drd-phy: Add exynos990 compatible Igor Belwon
2025-05-15 14:43 ` [PATCH v3 2/2] phy: exynos5-usbdrd: Add support for the Exynos990 usbdrd phy Igor Belwon
2025-05-19 12:58 ` neil.armstrong
2025-06-15 16:52 ` [PATCH v3 0/2] USB PHY support for Exynos990 SoCs Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).