* [PATCH v3 0/5] Add USB support to Exynos7885
@ 2026-11-25 14:54 David Virag
2026-11-25 14:54 ` [PATCH v3 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support David Virag
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: David Virag @ 2026-11-25 14:54 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Greg Kroah-Hartman, Peter Griffin, Marek Szyprowski,
Sylwester Nawrocki
Cc: linux-kernel, linux-samsung-soc, David Virag, Neil Armstrong,
Manivannan Sadhasivam, Alim Akhtar, Krzysztof Kozlowski,
linux-phy, devicetree, linux-usb, linux-arm-kernel, Umer Uddin
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.
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.
Changes in v3:
- In exynos-dwc3 dt-bindings, use an enum with the exynos990 entry to keep
the exynos850-compatible entries together and keep code clean.
- Add Tested-by and Acked-by tags to phy driver support patch.
- Move maximum-speed property to device dts.
- Move status = "okay"; to the bottom of the usbdrd node to statisfy
dt-check-style checks.
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 | 4 ++-
.../boot/dts/exynos/exynos7885-jackpotlte.dts | 28 +++++++++++++++++
arch/arm64/boot/dts/exynos/exynos7885.dtsi | 31 +++++++++++++++++++
drivers/phy/samsung/phy-exynos5-usbdrd.c | 26 ++++++++++++++++
include/linux/soc/samsung/exynos-regs-pmu.h | 3 ++
6 files changed, 93 insertions(+), 1 deletion(-)
base-commit: 5d7b9f865597a74b323d512619c42f3e07ae043a
--
2.56.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support
2026-11-25 14:54 [PATCH v3 0/5] Add USB support to Exynos7885 David Virag
@ 2026-11-25 14:54 ` David Virag
2026-11-25 14:54 ` [PATCH v3 2/5] dt-bindings: usb: samsung,exynos-dwc3: " David Virag
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: David Virag @ 2026-11-25 14:54 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Marek Szyprowski, Sylwester Nawrocki
Cc: linux-kernel, linux-samsung-soc, 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
Changes in v3:
- None
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 related [flat|nested] 5+ messages in thread
* [PATCH v3 2/5] dt-bindings: usb: samsung,exynos-dwc3: Add Exynos7885 support
2026-11-25 14:54 [PATCH v3 0/5] Add USB support to Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support David Virag
@ 2026-11-25 14:54 ` David Virag
2026-11-25 14:54 ` [PATCH v3 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
3 siblings, 0 replies; 5+ messages in thread
From: David Virag @ 2026-11-25 14:54 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Peter Griffin
Cc: linux-kernel, linux-samsung-soc, David Virag, Alim Akhtar,
Krzysztof Kozlowski, linux-usb, devicetree, linux-arm-kernel
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
Changes in v3:
- Use an enum with the exynos990 entry to keep the exynos850-compatible
entries together and keep code clean.
.../devicetree/bindings/usb/samsung,exynos-dwc3.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
index 8af0143c3e47..25536859e5dd 100644
--- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
@@ -25,7 +25,9 @@ properties:
- const: samsung,exynos8890-dwusb3
- const: samsung,exynos7-dwusb3
- items:
- - const: samsung,exynos990-dwusb3
+ - enum:
+ - samsung,exynos7885-dwusb3
+ - samsung,exynos990-dwusb3
- const: samsung,exynos850-dwusb3
'#address-cells':
--
2.56.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 4/5] arm64: dts: exynos: Enable USB in Exynos7885
2026-11-25 14:54 [PATCH v3 0/5] Add USB support to Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support David Virag
2026-11-25 14:54 ` [PATCH v3 2/5] dt-bindings: usb: samsung,exynos-dwc3: " David Virag
@ 2026-11-25 14:54 ` David Virag
2026-11-25 14:54 ` [PATCH v3 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
3 siblings, 0 replies; 5+ messages in thread
From: David Virag @ 2026-11-25 14:54 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin
Cc: linux-kernel, linux-samsung-soc, David Virag, Alim Akhtar,
devicetree, linux-arm-kernel
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 disable it in device DTS.
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.
Changes in v3:
- Move maximum-speed property to device dts.
arch/arm64/boot/dts/exynos/exynos7885.dtsi | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/exynos7885.dtsi b/arch/arm64/boot/dts/exynos/exynos7885.dtsi
index 6b994b487107..33899f5fc5e5 100644
--- a/arch/arm64/boot/dts/exynos/exynos7885.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos7885.dtsi
@@ -480,6 +480,37 @@ 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";
+ };
+ };
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support
2026-11-25 14:54 [PATCH v3 0/5] Add USB support to Exynos7885 David Virag
` (2 preceding siblings ...)
2026-11-25 14:54 ` [PATCH v3 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
@ 2026-11-25 14:54 ` David Virag
3 siblings, 0 replies; 5+ messages in thread
From: David Virag @ 2026-11-25 14:54 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin
Cc: linux-kernel, linux-samsung-soc, David Virag, Alim Akhtar,
devicetree, linux-arm-kernel
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
Changes in v3:
- Move status = "okay"; to the bottom of the usbdrd node to statisfy
dt-check-style checks.
- Move maximum-speed property to device dts.
.../boot/dts/exynos/exynos7885-jackpotlte.dts | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts b/arch/arm64/boot/dts/exynos/exynos7885-jackpotlte.dts
index 4b1961ca365b..f93996e7321c 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,25 @@ key_power: key-power-pins {
&serial_2 {
status = "okay";
};
+
+&usbdrd {
+ vdd10-supply = <®_dummy>;
+ vdd33-supply = <®_dummy>;
+
+ status = "okay";
+};
+
+&usbdrd_dwc3 {
+ /*
+ * SoC in theory supports SS but no known device (including this one)
+ * has it wired up.
+ */
+ maximum-speed = "high-speed";
+
+ /* Force to peripheral until we have Type-C working */
+ dr_mode = "peripheral";
+};
+
+&usbdrd_phy {
+ status = "okay";
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-25 14:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 14:54 [PATCH v3 0/5] Add USB support to Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 1/5] dt-bindings: phy: samsung,usb3-drd-phy: Add Exynos7885 support David Virag
2026-11-25 14:54 ` [PATCH v3 2/5] dt-bindings: usb: samsung,exynos-dwc3: " David Virag
2026-11-25 14:54 ` [PATCH v3 4/5] arm64: dts: exynos: Enable USB in Exynos7885 David Virag
2026-11-25 14:54 ` [PATCH v3 5/5] arm64: dts: exynos: exynos7885-jackpotlte: Enable USB support David Virag
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox