* [PATCH v3 0/2] Add USB support for Exynos7885 and enable USB and FG on gta3xllte
@ 2026-11-25 16:12 Umer Uddin via B4 Relay
2026-11-25 16:12 ` [PATCH v3 1/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support Umer Uddin via B4 Relay
2026-11-25 16:12 ` [PATCH v3 2/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable FuelGauge support Umer Uddin via B4 Relay
0 siblings, 2 replies; 4+ messages in thread
From: Umer Uddin via B4 Relay @ 2026-11-25 16:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin,
Alim Akhtar
Cc: Umer Uddin, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, Henri Ommer, David Virag
Hi guys, this patch series enables USB and FG on gta3xllte. All is tested.
DT changes were tested with make dtbs_check W=1, and the dt styling check
scripts with --mode strict flags, both of which returned no warnings.
Please note this patch now depends on David Virag's changes for USB[1].
Best regards,
Umer
[1] https://lore.kernel.org/linux-samsung-soc/20261125145458.2594179-1-virag.david003@gmail.com/T/#t
Signed-off-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
---
Changes in v2:
- Drop patches that are being picked up updated and corrected by David
- Link to v1: https://patch.msgid.link/20261119-gta3xllte-usb-battery-v1-0-0cf5f763522e@mentallysanemainliners.org
Changes in v3:
- Change dependency link
- Move define maximum-speed on board
- Link to v2: https://lore.kernel.org/linux-samsung-soc/20261124-gta3xllte-usb-battery-v2-0-80bdcb1753bb@mentallysanemainliners.org/T/#t
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Peter Griffin <peter.griffin@linaro.org>
To: Alim Akhtar <alim.akhtar@samsung.com>
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Henri Ommer <henri@ommer.net>
Cc: David Virag <virag.david003@gmail.com>
---
Umer Uddin (2):
arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support
arm64: dts: exynos: exynos7885-gta3xllte: Enable FuelGauge support
.../arm64/boot/dts/exynos/exynos7885-gta3xllte.dts | 56 ++++++++++++++++++++++
1 file changed, 56 insertions(+)
---
base-commit: 7ed7d0761cca220e521c66f87b48def6c5a8edf7
change-id: 20261125-gta3xllte-usb-battery-a87417f69267
Best regards,
--
Umer Uddin <umer.uddin@mentallysanemainliners.org>
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v3 1/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support
2026-11-25 16:12 [PATCH v3 0/2] Add USB support for Exynos7885 and enable USB and FG on gta3xllte Umer Uddin via B4 Relay
@ 2026-11-25 16:12 ` Umer Uddin via B4 Relay
2026-11-25 16:20 ` sashiko-bot
2026-11-25 16:12 ` [PATCH v3 2/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable FuelGauge support Umer Uddin via B4 Relay
1 sibling, 1 reply; 4+ messages in thread
From: Umer Uddin via B4 Relay @ 2026-11-25 16:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin,
Alim Akhtar
Cc: Umer Uddin, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, Henri Ommer, David Virag
From: Umer Uddin <umer.uddin@mentallysanemainliners.org>
The Samsung Galaxy Tab A 10.1 (2019) has a USB-C port capable of USB 2.0
speeds, used both as host and device, and is used for charging the
tablet.
The port is controlled by an S2MU005 IC. Until support for it is
added, only USB device functionality is available, so enable the USB
controller and PHY in peripheral mode.
Signed-off-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
---
.../arm64/boot/dts/exynos/exynos7885-gta3xllte.dts | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts b/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
index 03476f8b1200..c71101ed0ba9 100644
--- a/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
+++ b/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
@@ -68,6 +68,12 @@ memory@80000000 {
<0x0 0xc0000000 0x40000000>;
};
+ /* TODO: Remove this once PMIC is implemented */
+ reg_dummy: regulator-0 {
+ compatible = "regulator-fixed";
+ regulator-name = "dummy_reg";
+ };
+
reserved-memory {
ranges;
#address-cells = <2>;
@@ -127,3 +133,25 @@ key_volup: key-volup-pins {
samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
};
};
+
+&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] 4+ messages in thread* Re: [PATCH v3 1/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support
2026-11-25 16:12 ` [PATCH v3 1/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support Umer Uddin via B4 Relay
@ 2026-11-25 16:20 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-25 16:20 UTC (permalink / raw)
To: Umer Uddin; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: exynos: undefined usbdrd labels break gta3xllte DTB
build
--
commit 39a9bd70a58ddfe9f07196470f1a374df5409b94
Author: Umer Uddin <umer.uddin@mentallysanemainliners.org>
arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support
This commit adds a dummy fixed regulator and enables the USB DRD controller,
DWC3 node, and PHY in peripheral mode on the Samsung Galaxy Tab A 10.1 (2019).
> diff --git a/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts b/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
> index 03476f8b1200b..c71101ed0ba98 100644
> --- a/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
> +++ b/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
[ ... ]
> @@ -127,3 +133,25 @@ key_volup: key-volup-pins {
> samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
> };
> };
> +
> +&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";
> +};
[Severity: High]
Are the usbdrd, usbdrd_dwc3, and usbdrd_phy labels defined in
exynos7885.dtsi? Neither exynos7885.dtsi nor the files it includes
defines these labels, so building exynos7885-gta3xllte.dtb with
CONFIG_ARCH_EXYNOS enabled fails in dtc with label-not-found errors.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-gta3xllte-usb-battery-v3-0-2ef962bf5423@mentallysanemainliners.org?part=1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 2/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable FuelGauge support
2026-11-25 16:12 [PATCH v3 0/2] Add USB support for Exynos7885 and enable USB and FG on gta3xllte Umer Uddin via B4 Relay
2026-11-25 16:12 ` [PATCH v3 1/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support Umer Uddin via B4 Relay
@ 2026-11-25 16:12 ` Umer Uddin via B4 Relay
1 sibling, 0 replies; 4+ messages in thread
From: Umer Uddin via B4 Relay @ 2026-11-25 16:12 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Peter Griffin,
Alim Akhtar
Cc: Umer Uddin, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, Henri Ommer, David Virag
From: Umer Uddin <umer.uddin@mentallysanemainliners.org>
The Samsung Galaxy Tab A 10.1 (2019) has a S2MU005 Multi Function Device
(MFD). It contains PMIC, FG and EXTCON. This commit enables the FG, to be
used with a simple battery device to allow for battery percentages to be
reported.
Signed-off-by: Umer Uddin <umer.uddin@mentallysanemainliners.org>
---
.../arm64/boot/dts/exynos/exynos7885-gta3xllte.dts | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts b/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
index c71101ed0ba9..466ae0874880 100644
--- a/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
+++ b/arch/arm64/boot/dts/exynos/exynos7885-gta3xllte.dts
@@ -22,6 +22,13 @@ aliases {
serial2 = &serial_2;
};
+ battery: battery {
+ compatible = "simple-battery";
+ charge-full-design-microamp-hours = <6000000>;
+ voltage-min-design-microvolt = <3300000>;
+ voltage-max-design-microvolt = <4350000>;
+ };
+
chosen {
ranges;
#address-cells = <2>;
@@ -86,6 +93,20 @@ cont_splash_mem: framebuffer@ec000000 {
};
};
+&i2c_0 {
+ status = "okay";
+
+ fuel-gauge@3b {
+ compatible = "samsung,s2mu005-fuel-gauge";
+ reg = <0x3b>;
+ interrupt-parent = <&gpa2>;
+ interrupts = <4 IRQ_TYPE_EDGE_BOTH>;
+ pinctrl-0 = <&fuel_irq>;
+ pinctrl-names = "default";
+ monitored-battery = <&battery>;
+ };
+};
+
&mmc_0 {
bus-width = <8>;
cap-mmc-highspeed;
@@ -112,6 +133,13 @@ &oscclk {
};
&pinctrl_alive {
+ fuel_irq: fuel-irq-pins {
+ samsung,pins = "gpa2-4";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
+ };
+
key_power: key-power-pins {
samsung,pins = "gpa1-7";
samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
--
2.56.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-25 16:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 16:12 [PATCH v3 0/2] Add USB support for Exynos7885 and enable USB and FG on gta3xllte Umer Uddin via B4 Relay
2026-11-25 16:12 ` [PATCH v3 1/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable USB support Umer Uddin via B4 Relay
2026-11-25 16:20 ` sashiko-bot
2026-11-25 16:12 ` [PATCH v3 2/2] arm64: dts: exynos: exynos7885-gta3xllte: Enable FuelGauge support Umer Uddin via B4 Relay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox