* [PATCH v2 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support
2026-11-23 9:22 [PATCH v2 0/5] Add USB support to Exynos7885 David Virag
@ 2026-11-23 9:22 ` David Virag
2026-11-23 9:22 ` [PATCH v2 2/5] dt-bindings: usb: samsung,exynos-dwc3: " David Virag
` (4 subsequent siblings)
5 siblings, 0 replies; 12+ messages in thread
From: David Virag @ 2026-11-23 9:22 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Marek Szyprowski, Sylwester Nawrocki
Cc: linux-kernel, David Virag, Krzysztof Kozlowski, Neil Armstrong,
Manivannan Sadhasivam, Krzysztof Kozlowski, linux-phy,
devicetree
Document Exynos7885 compatible.
Exynos7885 USB PHY has two clocks (ref and phy) like Exynos850, which
are already described in bindings.
Signed-off-by: David Virag <virag.david003@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Changes in v2:
- Add Reviewed-by: tag
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 a1b3d9e6a094..f644a4aa1e95 100644
--- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml
@@ -32,6 +32,7 @@ properties:
- samsung,exynos5433-usbdrd-phy
- samsung,exynos7-usbdrd-phy
- samsung,exynos7870-usbdrd-phy
+ - samsung,exynos7885-usbdrd-phy
- samsung,exynos850-usbdrd-phy
- samsung,exynos990-usbdrd-phy
- samsung,exynosautov920-usb31drd-combo-ssphy
@@ -234,6 +235,7 @@ allOf:
- samsung,exynos5250-usbdrd-phy
- samsung,exynos5420-usbdrd-phy
- samsung,exynos7870-usbdrd-phy
+ - samsung,exynos7885-usbdrd-phy
- samsung,exynos850-usbdrd-phy
- samsung,exynos990-usbdrd-phy
- samsung,exynosautov920-usb31drd-combo-ssphy
--
2.56.1
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH v2 2/5] dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support
2026-11-23 9:22 [PATCH v2 0/5] Add USB support to Exynos7885 David Virag
2026-11-23 9:22 ` [PATCH v2 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support David Virag
@ 2026-11-23 9:22 ` David Virag
2026-11-25 11:14 ` Krzysztof Kozlowski
2026-11-23 9:22 ` [PATCH v2 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY David Virag
` (3 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: David Virag @ 2026-11-23 9:22 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin
Cc: linux-kernel, David Virag, Alim Akhtar, Krzysztof Kozlowski,
linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc
Exynos7885 SoC has a DWC3 compatible USB controller, so it can reuse the
existing Exynos glue layer. It is also compatible with the Exynos850
variant. Document Exynos7885 compatible.
Signed-off-by: David Virag <virag.david003@gmail.com>
---
Changes in v2:
- Use samsung,exynos850-dwusb3 fallback compatible
Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
index 8af0143c3e47..f62e3ed82257 100644
--- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
@@ -24,6 +24,9 @@ properties:
- items:
- const: samsung,exynos8890-dwusb3
- const: samsung,exynos7-dwusb3
+ - items:
+ - const: samsung,exynos7885-dwusb3
+ - const: samsung,exynos850-dwusb3
- items:
- const: samsung,exynos990-dwusb3
- const: samsung,exynos850-dwusb3
--
2.56.1
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH v2 2/5] dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support
2026-11-23 9:22 ` [PATCH v2 2/5] dt-bindings: usb: samsung,exynos-dwc3: " David Virag
@ 2026-11-25 11:14 ` Krzysztof Kozlowski
2026-11-25 13:07 ` David Virag
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-25 11:14 UTC (permalink / raw)
To: David Virag
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin, linux-kernel, Alim Akhtar,
Krzysztof Kozlowski, linux-usb, devicetree, linux-arm-kernel,
linux-samsung-soc
> Exynos7885 SoC has a DWC3 compatible USB controller, so it can reuse the
> existing Exynos glue layer. It is also compatible with the Exynos850
> variant. Document Exynos7885 compatible.
>
> Signed-off-by: David Virag <virag.david003@gmail.com>
Just FYI, tested-by tag does not apply here.
> ---
> Changes in v2:
> - Use samsung,exynos850-dwusb3 fallback compatible
>
> Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
> index 8af0143c3e47..f62e3ed82257 100644
> --- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
> @@ -24,6 +24,9 @@ properties:
> - items:
> - const: samsung,exynos8890-dwusb3
> - const: samsung,exynos7-dwusb3
> + - items:
> + - const: samsung,exynos7885-dwusb3
Why isn't this enum with the other entry?
> + - const: samsung,exynos850-dwusb3
> - items:
> - const: samsung,exynos990-dwusb3
> - const: samsung,exynos850-dwusb3
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/5] dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support
2026-11-25 11:14 ` Krzysztof Kozlowski
@ 2026-11-25 13:07 ` David Virag
0 siblings, 0 replies; 12+ messages in thread
From: David Virag @ 2026-11-25 13:07 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin, linux-kernel, Alim Akhtar,
linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc
On Wed, 2026-11-25 at 12:14 +0100, Krzysztof Kozlowski wrote:
[...]
>
> > diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-
> > dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-
> > dwc3.yaml
> > index 8af0143c3e47..f62e3ed82257 100644
> > --- a/Documentation/devicetree/bindings/usb/samsung,exynos-
> > dwc3.yaml
> > +++ b/Documentation/devicetree/bindings/usb/samsung,exynos-
> > dwc3.yaml
> > @@ -24,6 +24,9 @@ properties:
> > - items:
> > - const: samsung,exynos8890-dwusb3
> > - const: samsung,exynos7-dwusb3
> > + - items:
> > + - const: samsung,exynos7885-dwusb3
>
> Why isn't this enum with the other entry?
I failed to realize that that could be done while rebasing the patches
onto the current tree (as 990 compatible wasn't there before).
Fixing it in v3.
>
> > + - const: samsung,exynos850-dwusb3
> > - items:
> > - const: samsung,exynos990-dwusb3
> > - const: samsung,exynos850-dwusb3
>
>
> Best regards,
> Krzysztof
Best regards,
David
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY
2026-11-23 9:22 [PATCH v2 0/5] Add USB support to Exynos7885 David Virag
2026-11-23 9:22 ` [PATCH v2 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support David Virag
2026-11-23 9:22 ` [PATCH v2 2/5] dt-bindings: usb: samsung,exynos-dwc3: " David Virag
@ 2026-11-23 9:22 ` David Virag
2026-11-25 11:14 ` Krzysztof Kozlowski
2026-11-23 9:22 ` [PATCH v2 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
` (2 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: David Virag @ 2026-11-23 9:22 UTC (permalink / raw)
To: Vinod Koul, Krzysztof Kozlowski, Peter Griffin
Cc: linux-kernel, David Virag, Umer Uddin, Neil Armstrong,
Manivannan Sadhasivam, Alim Akhtar, linux-phy, linux-arm-kernel,
linux-samsung-soc
The Exynos7885 SoC has an Exynos USB PHY that theoretically supports
USB3 SuperSpeed, but all known devices using it only have USB2 and the
vendor driver has USB3 function stubbed out, so we'll only support USB2.
Apart from this mysterius USB3 capability, it's the closest to Exynos850
out of those supported. Unlike other SoCs though, this one doesn't set
the reference clock by default, so we have to set it manually.
For this, create a set_ref_clk_rate property in drvdata that can be set
to a predefined value to set the clockrate to.
Co-developed-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
Signed-off-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
Signed-off-by: David Virag <virag.david003@gmail.com>
---
Changes in v2:
- Use unsigned long for set_ref_clk_rate
- (from Umer Uddin:) Error-check clk_set_rate, and fail if returns an
error.
- Add Umer Uddin's Co-developed-by: tag for his improvement.
drivers/phy/samsung/phy-exynos5-usbdrd.c | 26 +++++++++++++++++++++
include/linux/soc/samsung/exynos-regs-pmu.h | 3 +++
2 files changed, 29 insertions(+)
diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c
index 087d552eb511..77bba791212d 100644
--- a/drivers/phy/samsung/phy-exynos5-usbdrd.c
+++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c
@@ -483,6 +483,7 @@ struct exynos5_usbdrd_phy_drvdata {
int n_clks;
const char * const *core_clk_names;
int n_core_clks;
+ unsigned long set_ref_clk_rate;
const char * const *regulator_names;
int n_regulators;
u32 pmu_offset_usbdrd0_phy;
@@ -1847,6 +1848,15 @@ static int exynos5_usbdrd_phy_clk_handle(struct exynos5_usbdrd_phy *phy_drd)
return dev_err_probe(phy_drd->dev, -ENODEV,
"failed to find phy reference clock\n");
+ /* Some SoCs (e.g. Exynos7885) leave the reference clock unset */
+ if (phy_drd->drv_data->set_ref_clk_rate) {
+ ret = clk_set_rate(ref_clk,
+ phy_drd->drv_data->set_ref_clk_rate);
+ if (ret)
+ return dev_err_probe(phy_drd->dev, ret,
+ "failed to set ref clock rate\n");
+ }
+
ref_rate = clk_get_rate(ref_clk);
ret = exynos5_rate_to_clk(ref_rate, &phy_drd->extrefclk);
if (ret)
@@ -2095,6 +2105,19 @@ static const struct exynos5_usbdrd_phy_drvdata exynos7870_usbdrd_phy = {
.n_regulators = ARRAY_SIZE(exynos5_regulator_names),
};
+static const struct exynos5_usbdrd_phy_drvdata exynos7885_usbdrd_phy = {
+ .phy_cfg = phy_cfg_exynos850,
+ .phy_ops = &exynos850_usbdrd_phy_ops,
+ .pmu_offset_usbdrd0_phy = EXYNOS7885_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),
+ .set_ref_clk_rate = 50 * MHZ,
+};
+
static const struct exynos5_usbdrd_phy_drvdata exynos850_usbdrd_phy = {
.phy_cfg = phy_cfg_exynos850,
.phy_ops = &exynos850_usbdrd_phy_ops,
@@ -2929,6 +2952,9 @@ static const struct of_device_id exynos5_usbdrd_phy_of_match[] = {
}, {
.compatible = "samsung,exynos7870-usbdrd-phy",
.data = &exynos7870_usbdrd_phy
+ }, {
+ .compatible = "samsung,exynos7885-usbdrd-phy",
+ .data = &exynos7885_usbdrd_phy
}, {
.compatible = "samsung,exynos850-usbdrd-phy",
.data = &exynos850_usbdrd_phy
diff --git a/include/linux/soc/samsung/exynos-regs-pmu.h b/include/linux/soc/samsung/exynos-regs-pmu.h
index db8a7ca81080..73d9c509dae6 100644
--- a/include/linux/soc/samsung/exynos-regs-pmu.h
+++ b/include/linux/soc/samsung/exynos-regs-pmu.h
@@ -665,6 +665,9 @@
/* For Exynos990 */
#define EXYNOS990_PHY_CTRL_USB20 (0x72C)
+/* For Exynos7885 */
+#define EXYNOS7885_PHY_CTRL_USB20 (0x674)
+
/* For Exynos7870 */
#define EXYNOS7870_MIPI_PHY_CONTROL0 (0x070c)
#define EXYNOS7870_MIPI_PHY_CONTROL1 (0x0714)
--
2.56.1
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH v2 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY
2026-11-23 9:22 ` [PATCH v2 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY David Virag
@ 2026-11-25 11:14 ` Krzysztof Kozlowski
0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-25 11:14 UTC (permalink / raw)
To: David Virag
Cc: Vinod Koul, Krzysztof Kozlowski, Peter Griffin, linux-kernel,
Umer Uddin, Neil Armstrong, Manivannan Sadhasivam, Alim Akhtar,
linux-phy, linux-arm-kernel, linux-samsung-soc
> The Exynos7885 SoC has an Exynos USB PHY that theoretically supports
> USB3 SuperSpeed, but all known devices using it only have USB2 and the
> vendor driver has USB3 function stubbed out, so we'll only support USB2.
>
> Apart from this mysterius USB3 capability, it's the closest to Exynos850
> out of those supported. Unlike other SoCs though, this one doesn't set
> the reference clock by default, so we have to set it manually.
> For this, create a set_ref_clk_rate property in drvdata that can be set
> to a predefined value to set the clockrate to.
>
> Co-developed-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
> Signed-off-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
> Signed-off-by: David Virag <virag.david003@gmail.com>
> ---
> Changes in v2:
> - Use unsigned long for set_ref_clk_rate
> - (from Umer Uddin:) Error-check clk_set_rate, and fail if returns an
> error.
> - Add Umer Uddin's Co-developed-by: tag for his improvement.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 4/5] arm64: dts: exynos: Enable USB in Exynos7885
2026-11-23 9:22 [PATCH v2 0/5] Add USB support to Exynos7885 David Virag
` (2 preceding siblings ...)
2026-11-23 9:22 ` [PATCH v2 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY David Virag
@ 2026-11-23 9:22 ` David Virag
2026-11-25 11:14 ` Krzysztof Kozlowski
2026-11-23 9:22 ` [PATCH v2 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
2026-11-25 0:06 ` [PATCH v2 0/5] Add USB support to Exynos7885 Umer Uddin
5 siblings, 1 reply; 12+ messages in thread
From: David Virag @ 2026-11-23 9:22 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin
Cc: linux-kernel, David Virag, Alim Akhtar, devicetree,
linux-arm-kernel, linux-samsung-soc
Add USB controller and USB PHY controller nodes to Exynos7885 SoC DTSI
The SoC theoretically supports USB3 SuperSpeed, but is not implemented
in any known device. The vendor kernel also stubs out USB3 functions, so
we do not support it.
It is though, perfectly capable of USB 2.0 high-speed mode, both as host
and device.
Signed-off-by: David Virag <virag.david003@gmail.com>
---
Changes in v2:
- Keep dt nodes ordered by unit address.
arch/arm64/boot/dts/exynos/exynos7885.dtsi | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/exynos7885.dtsi b/arch/arm64/boot/dts/exynos/exynos7885.dtsi
index 6b994b487107..8dd8d666b9bf 100644
--- a/arch/arm64/boot/dts/exynos/exynos7885.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos7885.dtsi
@@ -480,6 +480,42 @@ i2c_7: i2c@11cd0000 {
status = "disabled";
};
+
+ usbdrd_phy: phy@135d0000 {
+ compatible = "samsung,exynos7885-usbdrd-phy";
+ reg = <0x135d0000 0x100>;
+ clocks = <&cmu_fsys CLK_FSYS_USB30DRD_ACLK_20PHYCTRL>,
+ <&cmu_fsys CLK_FSYS_USB20PHY_CLKCORE>;
+ clock-names = "phy", "ref";
+ samsung,pmu-syscon = <&pmu_system_controller>;
+ #phy-cells = <1>;
+ status = "disabled";
+ };
+
+ usbdrd: usb@13600000 {
+ compatible = "samsung,exynos7885-dwusb3",
+ "samsung,exynos850-dwusb3";
+ ranges = <0x0 0x13600000 0x10000>;
+ clocks = <&cmu_fsys CLK_FSYS_USB30DRD_BUS_CLK_EARLY>,
+ <&cmu_fsys CLK_FSYS_USB30DRD_REF_CLK>;
+ clock-names = "bus_early", "ref";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ status = "disabled";
+
+ usbdrd_dwc3: usb@0 {
+ compatible = "snps,dwc3";
+ reg = <0x0 0x10000>;
+ interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
+ phys = <&usbdrd_phy 0>;
+ phy-names = "usb2-phy";
+ /*
+ * SoC in theory supports SS but no device has it.
+ * Actual capabilities unknown.
+ */
+ maximum-speed = "high-speed";
+ };
+ };
};
};
--
2.56.1
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH v2 4/5] arm64: dts: exynos: Enable USB in Exynos7885
2026-11-23 9:22 ` [PATCH v2 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
@ 2026-11-25 11:14 ` Krzysztof Kozlowski
0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-25 11:14 UTC (permalink / raw)
To: David Virag
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin,
linux-kernel, Alim Akhtar, devicetree, linux-arm-kernel,
linux-samsung-soc, Krzysztof Kozlowski
> + usbdrd_dwc3: usb@0 {
> + compatible = "snps,dwc3";
> + reg = <0x0 0x10000>;
> + interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
> + phys = <&usbdrd_phy 0>;
> + phy-names = "usb2-phy";
> + /*
> + * SoC in theory supports SS but no device has it.
> + * Actual capabilities unknown.
> + */
> + maximum-speed = "high-speed";
Each device should narrow this, not the SoC.
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support
2026-11-23 9:22 [PATCH v2 0/5] Add USB support to Exynos7885 David Virag
` (3 preceding siblings ...)
2026-11-23 9:22 ` [PATCH v2 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
@ 2026-11-23 9:22 ` David Virag
2026-11-25 11:14 ` Krzysztof Kozlowski
2026-11-25 0:06 ` [PATCH v2 0/5] Add USB support to Exynos7885 Umer Uddin
5 siblings, 1 reply; 12+ messages in thread
From: David Virag @ 2026-11-23 9:22 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin
Cc: linux-kernel, David Virag, Alim Akhtar, devicetree,
linux-arm-kernel, linux-samsung-soc
The Samsung Galaxy A8 (2018) has an USB-C port capable of USB 2.0
speeds, used both as host and device, and is used for charging the
phone.
The physical port is directly connected to an S2MU004 IC, but until we
have support for it, we can still use the USB device funtionality.
Signed-off-by: David Virag <virag.david003@gmail.com>
---
Changes in v2:
- None
.../boot/dts/exynos/exynos7885-jackpotlte.dts | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
index 4b1961ca365b..5550b21e4113 100644
--- a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
+++ b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
@@ -59,6 +59,12 @@ power-key {
wakeup-source;
};
};
+
+ /* TODO: Remove this once PMIC is implemented */
+ reg_dummy: regulator-0 {
+ compatible = "regulator-fixed";
+ regulator-name = "dummy_reg";
+ };
};
&mmc_0 {
@@ -112,3 +118,17 @@ key_power: key-power-pins {
&serial_2 {
status = "okay";
};
+
+&usbdrd {
+ status = "okay";
+ vdd10-supply = <®_dummy>;
+ vdd33-supply = <®_dummy>;
+};
+
+&usbdrd_dwc3 {
+ dr_mode = "peripheral"; /* Force to peripheral until we have Type-C working */
+};
+
+&usbdrd_phy {
+ status = "okay";
+};
--
2.56.1
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH v2 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support
2026-11-23 9:22 ` [PATCH v2 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
@ 2026-11-25 11:14 ` Krzysztof Kozlowski
0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-25 11:14 UTC (permalink / raw)
To: David Virag
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin,
linux-kernel, Alim Akhtar, devicetree, linux-arm-kernel,
linux-samsung-soc, Krzysztof Kozlowski
> The Samsung Galaxy A8 (2018) has an USB-C port capable of USB 2.0
> speeds, used both as host and device, and is used for charging the
> phone.
>
> The physical port is directly connected to an S2MU004 IC, but until we
> have support for it, we can still use the USB device funtionality.
>
> Signed-off-by: David Virag <virag.david003@gmail.com>
> ---
> Changes in v2:
> - None
>
> .../boot/dts/exynos/exynos7885-jackpotlte.dts | 20 +++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
> index 4b1961ca365b..5550b21e4113 100644
> --- a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
> +++ b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
> @@ -59,6 +59,12 @@ power-key {
> wakeup-source;
> };
> };
> +
> + /* TODO: Remove this once PMIC is implemented */
> + reg_dummy: regulator-0 {
> + compatible = "regulator-fixed";
> + regulator-name = "dummy_reg";
> + };
> };
>
> &mmc_0 {
> @@ -112,3 +118,17 @@ key_power: key-power-pins {
> &serial_2 {
> status = "okay";
> };
> +
> +&usbdrd {
> + status = "okay";
dt-check-style, this goes to the end.
> + vdd10-supply = <®_dummy>;
> + vdd33-supply = <®_dummy>;
> +};
Best regards,
Krzysztof
--
Krzysztof Kozlowski <krzk@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 0/5] Add USB support to Exynos7885
2026-11-23 9:22 [PATCH v2 0/5] Add USB support to Exynos7885 David Virag
` (4 preceding siblings ...)
2026-11-23 9:22 ` [PATCH v2 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
@ 2026-11-25 0:06 ` Umer Uddin
5 siblings, 0 replies; 12+ messages in thread
From: Umer Uddin @ 2026-11-25 0:06 UTC (permalink / raw)
To: David Virag, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Greg Kroah-Hartman, Peter Griffin,
Marek Szyprowski, Sylwester Nawrocki
Cc: linux-kernel, Neil Armstrong, Manivannan Sadhasivam, Alim Akhtar,
Krzysztof Kozlowski, linux-phy, devicetree, linux-usb,
linux-arm-kernel, linux-samsung-soc
On 23/11/2026 09:22, David Virag wrote:
> This set of patches adds support for USB on the Exynos7885 SoC.
>
> The Exynos7885 has a DWC3 compatible USB controller and an Exynos USB
> PHY that theoretically supports USB3 SuperSpeed, but is not implemented
> in any known device. The vendor kernel also stubs out USB3 functions, so
> we do not support it.
>
> This is a v2 of a previous set [1], which was split into a clk patchset
> I did submit back in 2024 and eventually it got applied, and this set,
> which I never ended up submitting until now.
>
> This version fixes some things noted by Krzysztof Kozlowski, and also
> contains a change made by Umer Uddin, as he recently tried to resubmit
> my old patches from github [2], fixing some things up, but missing the
> previous remarks.
>
> [1] https://lore.kernel.org/linux-samsung-soc/20240804215458.404085-1-virag.david003@gmail.com/
> [2] https://lore.kernel.org/linux-samsung-soc/20261119-gta3xllte-usb-battery-v1-0-0cf5f763522e@mentallysanemainliners.org/
>
> Changes in v2:
> - Clk changes not included as they are already applied
> - Add Reviewed-by: tags where appropriate
> - Use samsung,exynos850-dwusb3 fallback compatible for dwusb3
> - Use unsigned long for set_ref_clk_rate
> - (from Umer Uddin:) Error-check clk_set_rate, and fail if returns an
> error.
> - Keep dt nodes ordered by unit address.
>
> David Virag (5):
> dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support
> dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support
> phy: exynos5-usbdrd: support Exynos7885 USB PHY
> arm64: dts: exynos: Enable USB in Exynos7885
> arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support
>
> .../bindings/phy/samsung,usb3-drd-phy.yaml | 2 ++
> .../bindings/usb/samsung,exynos-dwc3.yaml | 3 ++
> .../boot/dts/exynos/exynos7885-jackpotlte.dts | 20 +++++++++++
> arch/arm64/boot/dts/exynos/exynos7885.dtsi | 36 +++++++++++++++++++
> drivers/phy/samsung/phy-exynos5-usbdrd.c | 26 ++++++++++++++
> include/linux/soc/samsung/exynos-regs-pmu.h | 3 ++
> 6 files changed, 90 insertions(+)
>
>
> base-commit: 5d7b9f865597a74b323d512619c42f3e07ae043a
Thank you for submitting the fixed work. All works on gta3xllte.
Tested-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
Best regards,
Umer
^ permalink raw reply [flat|nested] 12+ messages in thread