Add support for Microsoft Surface Pro 12in
v4 cover Add support for Microsoft Surface Pro 12in
Changes in v4:
Device tree:
- Fixed some formatting nits in the device tree
- Clarified NFC only available on business sku.
Changes in v3:
Rebase:
- Rebased on next-20260528
- Removed ice device tree changes
Device tree:
- Fixed C++ style comment in &i2c9 to use /* */ style
- Flattened mdss_dp3 port into &mdss_dp3_out directly
- Whitespace and formatting nits
Changes in v2:
Ice device tree:
- Updated to use 0x0 formatting
Panel:
- Add edid to commit message
Device tree:
- Fixed formatting and ordering nits
- Removed extra dmic audio declarations
- Added suspected devices on i2c busses
- Fixed incorrect usb regulator
- Describe panel pin regulator
- Added defaults for volume button GPIOs
Already applied:
- dt-bindings: arm: qcom: Add Microsoft Surface Pro 12in (landed in linux-next)
- firmware: qcom: scm: Allow QSEECOM on Surface Pro 12in (applied by Bjorn Andersson, commit 667d05a09db3)
- platform/surface: SAM: Add support for Surface Pro 12in (applied to review-ilpo-next by Ilpo Järvinen)
- drm/panel-edp: Add panel for Surface Pro 12in (pushed to drm-misc-next by Doug Anderson, commit 02f48ffdf96c)
- hid: Pen battery quirk for Surface Pro 12in
(pushed to hid for-7.2/core by [email protected])
Pending in this series:
- arm64: dts: qcom: Add Microsoft Surface Pro 12in (reviewed by Dmitry Baryshkov in v2/v3, minor style fixes applied)
Will be done in future patches:
- Camera support (pending purwa cams patchset)
- IRIS jpeg decoder support (pending purwa iris patchset)
- Accelerometer support via ADSP (probably userspace)
(Audioreach/ucm2 changes for audio)
https://github.com/linux-msm/audioreach-topology/pull/32
https://github.com/alsa-project/alsa-ucm-conf/blob/9577cd31121546b288759097901025376141177b/ucm2/Qualcomm/x1e80100/Surface12in-HiFi.conf
Link to v1:
https://lore.kernel.org/all/[email protected]/
Link to v2:
https://lore.kernel.org/all/[email protected]/
Link to v3:
https://lore.kernel.org/all/[email protected]/
Harrison Vanderbyl (1):
arm64: dts: qcom: Add Microsoft Surface Pro 12in
arch/arm64/boot/dts/qcom/Makefile | 2 + .../dts/qcom/x1p42100-microsoft-sp12in.dts | 1194 +++++++++++++++++ 2 files changed, 1196 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts
base-commit: e7e28506af98ce4e1059e5ec59334b335c00a246
prerequisite-patch-id: 30b1f6eda08f0e6798cfc9dfd29ea0951e9d8dee
Signature · 1 line
2.53.0
PATCH v4 1/1 arm64: dts: qcom: Add Microsoft Surface Pro 12in
Initial device tree for Microsoft Surface Pro 12in
Currently supported:
- UFS
- Touchscreen
- Pen
- USB 3.2 x2 (DP Alt Mode)
- Audio
- Wifi
- Bluetooth
- CDSP
- ADSP
- GPU
Not currently supported:
- Accelerometer
- Front, Back and IR cameras
- IRIS video decoder
Tested on Surface_Pro_12in_1st_Ed_with_Snapdragon_2110
--- arch/arm64/boot/dts/qcom/Makefile | 2 + .../dts/qcom/x1p42100-microsoft-sp12in.dts | 1194 +++++++++++++++++ 2 files changed, 1196 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts
arch/arm64/boot/dts/qcom/Makefile +2 -0
@@ -457,3 +457,5 @@ x1p42100-lenovo-thinkbook-16-el2-dtbs := x1p42100-lenovo-thinkbook-16.dtb x1-el2 dtb-$(CONFIG_ARCH_QCOM) += x1p42100-lenovo-thinkbook-16.dtb x1p42100-lenovo-thinkbook-16-el2.dtb x1p64100-microsoft-denali-el2-dtbs := x1p64100-microsoft-denali.dtb x1-el2.dtbo dtb-$(CONFIG_ARCH_QCOM) += x1p64100-microsoft-denali.dtb x1p64100-microsoft-denali-el2.dtb +x1p42100-microsoft-sp12in-el2-dtbs := x1p42100-microsoft-sp12in.dtb x1-el2.dtbo +dtb-$(CONFIG_ARCH_QCOM) += x1p42100-microsoft-sp12in.dtb x1p42100-microsoft-sp12in-el2.dtb
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +1194 -0
1,194 lines not on this page · raw message
Signature · 1 line
2.53.0
[email protected]
AI reviewRe: [PATCH v4 1/1] arm64: dts: qcom: Add Microsoft Surface Pro 12in
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] Numerous LDO regulators are missing their required parent supply properties (vdd-lX-supply) in the…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Numerous LDO regulators are missing their required parent supply properties (vdd-lX-supply) in the PMIC regulator nodes, breaking the Linux regulator supply chain. --
commit 6be7c2c68f42bc5f87da842354ed30a95efb06f4
Author: Harrison Vanderbyl <[email protected]>
arm64: dts: qcom: Add Microsoft Surface Pro 12in
Initial device tree for Microsoft Surface Pro 12in
Quoted 5 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts line 567
Quoted 7 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +7
-0+ regulators-2 { + compatible = "qcom,pmc8380-rpmh-regulators"; + qcom,pmic-id = "d"; + + vdd-l3-supply = <&vreg_s4c_1p8>; + vdd-s1-supply = <&vph_pwr>; +
[Severity: High]
Does this node miss vdd-l1-supply and vdd-l2-supply?
It defines vreg_l1d_0p8 and vreg_l2d_0p9 below, but without their parent supply properties, the Linux regulator framework cannot enable the parent when these child LDOs are enabled.
If the parent SMPS is turned off, could it cause power loss to the devices relying on these regulators?
Quoted 13 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +13
-0+ vreg_l1d_0p8: ldo1 { + regulator-name = "vreg_l1d_0p8"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <920000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l2d_0p9: ldo2 { + regulator-name = "vreg_l2d_0p9"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <920000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + };
[ ... ]
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts line 622
Quoted 9 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +9
-0+ regulators-6 { + compatible = "qcom,pm8550ve-rpmh-regulators"; + qcom,pmic-id = "i"; + + vdd-l1-supply = <&vreg_s4c_1p8>; + vdd-l2-supply = <&vreg_s5j_1p2>; + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; +
[Severity: High]
Does this also miss vdd-l3-supply for vreg_l3i_0p8 defined below?
This LDO is used by UFS and PCIe PHYs. If the parent isn't enabled, this could result in system crashes or peripheral failures.
Quoted 2 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +2
-0+ vreg_s1i_0p9: smps1 { + regulator-name = "vreg_s1i_0p9";
[ ... ]
Quoted 8 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +8
-0+ vreg_l3i_0p8: ldo3 { + regulator-name = "vreg_l3i_0p8"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-allow-set-load; + regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM + RPMH_REGULATOR_MODE_HPM>;
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts line 671
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +10
-0+ }; + }; + + regulators-7 { + compatible = "qcom,pm8550ve-rpmh-regulators"; + qcom,pmic-id = "j"; + + vdd-l2-supply = <&vreg_s5j_1p2>; + vdd-s5-supply = <&vph_pwr>; +
[Severity: High]
Similarly, do we need vdd-l1-supply and vdd-l3-supply here?
This node defines vreg_l1j_0p8 and vreg_l3j_0p8 (used by UFS vdd-hba-supply and USB PHYs) below.
Since the pmc8380_6 node was deleted at the top of the file, did these supplies need to be re-routed instead of just being omitted?
Quoted 2 lines
arch/arm64/boot/dts/qcom/x1p42100-microsoft-sp12in.dts new file +2
-0+ vreg_s5j_1p2: smps5 { + regulator-name = "vreg_s5j_1p2";
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH v4 1/1] arm64: dts: qcom: Add Microsoft Surface Pro 12in
In reply to Harrison VanderbylQuoted 19 lines · Harrison Vanderbyl
Initial device tree for Microsoft Surface Pro 12in
Currently supported:
- UFS
- Touchscreen
- Pen
- USB 3.2 x2 (DP Alt Mode)
- Audio
- Wifi
- Bluetooth
- CDSP
- ADSP
- GPUNot currently supported:
- Accelerometer
- Front, Back and IR cameras
- IRIS video decoder
Quoted 4 lines
Tested on
Surface_Pro_12in_1st_Ed_with_Snapdragon_2110Signed-off-by Harrison Vanderbyl <[email protected]>---
Konrad
Re: (subset) [PATCH v4 0/1] Add support for Microsoft Surface Pro 12in
In reply to Harrison VanderbylQuoted 11 lines · Harrison Vanderbyl
Changes in v4:
Device tree:
- Fixed some formatting nits in the device tree
- Clarified NFC only available on business sku.Changes in v3:
Rebase:
- Rebased on next-20260528
- Removed ice device tree changes[...]
Applied, thanks!
[1/1] arm64: dts: qcom: Add Microsoft Surface Pro 12in
commit: 447f8053b1849b22bbf6f71a2cbb1a81fb931d48
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>