Skip to contentSkip to conversation

(no cover subject)

PATCH Superseded Vishal Balasubramanian 2 participants 4 messages Nov 11

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover (no cover subject)

This series adds initial support for the Samsung Galaxy Tab S7 FE LTE (SM-T735), a tablet based on the Qualcomm SM7225 SoC.

Supported in this initial version:
- Display via simple-framebuffer
- Volume keys and power button
- UFS and microSD
- USB
- Wi-Fi and Bluetooth (WCN3991)
- ADSP, CDSP and modem, including mobile data

---
Vishal Balasubramanian (2):
dt-bindings: arm: qcom: Add Samsung Galaxy Tab S7 FE LTE
arm64: dts: qcom: sm7225: Add Samsung Galaxy Tab S7 FE LTE

 Documentation/devicetree/bindings/arm/qcom.yaml    |   1 +
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/sm7225-samsung-gts7xllite.dts    | 575 +++++++++++++++++++++
 3 files changed, 577 insertions(+)

---
base-commit: 630059a5a632377b9b7b487baccde92b7ae1dd47
change-id: 20261111-master-74b35c90f44c

Best regards,

Signature · 1 line
Vishal Balasubramanian <[email protected]>
#1 lore raw

PATCH 1/2 dt-bindings: arm: qcom: Add Samsung Galaxy Tab S7 FE LTE

Document the compatible for the Samsung Galaxy Tab S7 FE LTE (SM-T735, codename gts7xllite), a tablet based on the Qualcomm SM7225 SoC.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 121ca557ce1effdc95e9e97210bd9a63673f8ba4..abc3c0f53cc14b02d06b68aba3bfd8425ea4fb07 100644
@@ -1118,6 +1118,7 @@ properties:
       - items:
           - enum:
               - fairphone,fp4
+              - samsung,gts7xllite
           - const: qcom,sm7225
 
       - items:
Signature · 1 line
2.47.3
#2 lore raw

PATCH 2/2 arm64: dts: qcom: sm7225: Add Samsung Galaxy Tab S7 FE LTE

In reply to Vishal Balasubramanian

Adds initial support for the Samsung Galaxy Tab S7 FE LTE (SM-T735), a tablet based on the Qualcomm Snapdragon 750G (SM7225) SoC.

The following is supported:
- Framebuffer
- Volume Up, Down and Power Buttons
- UFS Storage and SD Card
- USB
- Modem, ADSP and CDSP
- Wi-Fi and Bluetooth
- Cellular Data and SMS

The reserved-memory layout deviates from sm6350.dtsi. The ADSP firmware shipped on this device requires a 64 MiB carveout, so the ADSP, camera, NPU, video and CDSP regions are redeclared at the addresses used by the vendor firmware. The bootloader also reserves additional memory (removed_region enlarged to 0x5e00000, plus the fastuh region); without these reservations the device hangs under memory pressure.

qcom,msm-id and qcom,board-id are required for the Samsung bootloader to boot the kernel.

---
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/sm7225-samsung-gts7xllite.dts    | 575 +++++++++++++++++++++
 2 files changed, 576 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 88230c4e00ea91ea2132f8d5ff2b971b5f682559..4c6fdaa14347b2d4cd569096bf4467d9ff5c2dc2 100644
@@ -397,6 +397,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm6375-sony-xperia-murray-pdx225.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7125-xiaomi-curtana.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7125-xiaomi-joyeuse.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7225-fairphone-fp4.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm7225-samsung-gts7xllite.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai-csot.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai-tianma.dtb
arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +575 -0

575 lines not on this page · raw message

Signature · 1 line
2.47.3
#3 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sm7225: Add Samsung Galaxy Tab S7 FE LTE

Thank you for your contribution! Sashiko AI review found 5 potential issues to consider: - [High] arm64: dts: qcom: missing PMK8350_SID causes SPMI SID 0 collision - [Medium] arm64: dts: qcom…

Thank you for your contribution! Sashiko AI review found 5 potential issues to consider:
- [High] arm64: dts: qcom: missing PMK8350_SID causes SPMI SID 0 collision
- [Medium] arm64: dts: qcom: swapped vdda-phy and vdda-pll supplies on usb_1_qmpphy
- [Medium] arm64: dts: qcom: broken chosen stdout-path and missing display AXI clock
- [Low] arm64: dts: qcom: missing sdc2 card-detect pinctrl and duplicate ipa props
- [Low] arm64: dts: qcom: undeleted cont_splash_memory and knox_reserved mismatch
--

commit 40269d8494daca48cf8a14a66c04f07d121893ba
Author: Vishal Balasubramanian <[email protected]>

arm64: dts: qcom: sm7225: Add Samsung Galaxy Tab S7 FE LTE

This commit adds the initial device tree for the Samsung Galaxy Tab S7 FE LTE (SM-T735) tablet based on the Qualcomm SM7225 SoC.

Quoted 6 lines
arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +0 -0
new file mode 100644
index 0000000000000..f3e3529277414
@@ -0,0 +1,575 @@

[ ... ]

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts line 17

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +4 -0
+#include "sm7225.dtsi"
+#include "pm6150l.dtsi"
+#include "pm6350.dtsi"
+#include "pmk8350.dtsi"

[Severity: High]
Does including pmk8350.dtsi without defining PMK8350_SID to 6 cause pmk8350 to collide with pm6350 on SPMI USID 0?

pmk8350.dtsi defaults PMK8350_SID to 0, so pmk8350: pmic@PMK8350_SID expands to pmic@0 and merges into the PM6350 node from pm6350.dtsi. That overwrites pmic@0's compatible string with "qcom,pmk8350", places all PMK8350 sub-devices (such as pmk8350_rtc, pmk8350_vadc, and the reboot-reason nvmem cell in pmk8350_sdam_2) on USID 0 instead of USID 6, and leaves pmk8350_pon enabled alongside pm6350_pon at 0x800. Should this define PMK8350_SID to 6 before including pmk8350.dtsi and disable or delete &pmk8350_pon, as done in sm7225-fairphone-fp4.dts?

[ ... ]

Quoted 11 lines
arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +11 -0
+	aliases {
+		serial0 = &uart9;
+		serial1 = &uart1;
+	};
+
+	chosen {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		stdout-path = "framebuffer0";

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts line 55

Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +10 -0
+
+		framebuffer0: framebuffer {
+			compatible = "simple-framebuffer";
+			memory-region = <&framebuffer_mem>;
+			width = <1600>;
+			height = <2560>;
+			stride = <(1600 * 4)>;
+			format = "a8r8g8b8";
+		};
+	};

[Severity: Medium]
Can early_init_dt_scan_chosen_stdout() resolve stdout-path = "framebuffer0", and will clk_disable_unused() gate the display AXI clock?

Because "framebuffer0" does not start with '/', of_find_node_opts_by_path() looks it up as a property in /aliases, which only defines serial0 and serial1, leaving of_stdout NULL; using stdout-path = &framebuffer0; (or "/chosen/framebuffer") resolves to the node path. Also, because &mdss is disabled and gcc_disp_axi_clk is not marked CLK_IS_CRITICAL in gcc-sm6350.c, omitting clocks = <&gcc GCC_DISP_AXI_CLK> from the simple-framebuffer node leaves the display AXI clock unclaimed when unused clocks are disabled. Finally, #address-cells, #size-cells, and ranges in /chosen are unused since the framebuffer node uses memory-region rather than reg.

[ ... ]

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts line 103

Quoted 9 lines
arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +9 -0
+		framebuffer_mem: memory@a0000000 {
+			reg = <0 0xa0000000 0 (2560 * 1600 * 4)>;
+			no-map;
+		};
+
+		knox_reserved: memory@b0200000 {
+			reg = <0x0 0xb0200000 0x0 0x200000>;
+			no-map;
+		};

[Severity: Low]
Should cont_splash_memory be deleted with /delete-node/ before redeclaring memory@a0000000 as framebuffer_mem, as done for the other replaced reserved-memory nodes at the top of the file? Also, the commit message describes the extra bootloader reservation as the fastuh region, whereas this node is labeled knox_reserved.

[ ... ]

Quoted 7 lines

+&ipa {

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +6 -0
+	qcom,gsi-loader = "self";
+	memory-region = <&pil_ipa_fw_mem>;
+	firmware-name = "qcom/sm7225/Samsung/gts7xllite/lagoon_ipa_fws.mbn";
+
+	status = "okay";
+};

[ ... ]

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts line 472

Quoted 8 lines

+&sdhc_2 {

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +7 -0
+	vmmc-supply = <&vreg_l9e>;
+	vqmmc-supply = <&vreg_l6e>;
+
+	cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>;
+
+	status = "okay";
+};

[Severity: Low]
Does sdhc_2 need pin configuration for the gpio94 card-detect line in &sdc2_on_state and &sdc2_off_state?

sm6350.dtsi only configures clk, cmd, and data in sdc2_on_state and sdc2_off_state, leaving gpio94 without pull-up and sleep bias settings (see sd-cd-pins in sm7225-fairphone-fp4.dts). Also, qcom,gsi-loader and memory-region in &ipa duplicate the properties already set in sm6350.dtsi.

[ ... ]

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts line 565

Quoted 6 lines

+&usb_1_qmpphy {

arch/arm64/boot/dts/qcom/sm7225-samsung-gts7xllite.dts new file +5 -0
+	vdda-phy-supply = <&vreg_l22a>;
+	vdda-pll-supply = <&vreg_l16a>;
+
+	status = "okay";
+};

[Severity: Medium]
Are vdda-phy-supply and vdda-pll-supply swapped on usb_1_qmpphy?

vreg_l16a is the ~0.88V rail and vreg_l22a is the ~1.2V rail (used for vdda-pll-supply on ufs_mem_phy above). On SM6350/SM7225 QMP PHYs (such as sm7225-fairphone-fp4.dts and sm6350-sony-xperia-lena-pdx213.dts), vdda-phy-supply is <&vreg_l16a> and vdda-pll-supply is <&vreg_l22a>; swapping them applies the PHY core load vote to the 1.2V rail and the PLL load vote to the 0.88V rail.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2