From 5683af653acbcbb3fb3ecdb801e5e77895fbb998 Mon Sep 17 00:00:00 2001 From: snlavaise Date: Tue, 8 Sep 2026 14:16:34 -0300 Subject: [PATCH] linux-postmarketos-qcom-sm8550: use rtwo-specific regulator ranges The reference-design rail voltages that both sm8550-mtp and the rtwo downstream share are unchanged, but three rails carry board-specific ranges in the Motorola DT / device DTB dump: L11B (panel VDD): 1.20-1.50 V -> 1.23-1.28 V L1E (USB HS phy): fixed 0.88 V -> 0.88-0.912 V L1G (UFS VCCQ): fixed 1.20 V -> 1.144-1.256 V Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01QF5HebjUsRaxbW4cBX6HJP --- .../linux-postmarketos-qcom-sm8550/APKBUILD | 2 +- .../sm8550-motorola-rtwo.dts | 22 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/device/testing/linux-postmarketos-qcom-sm8550/APKBUILD b/device/testing/linux-postmarketos-qcom-sm8550/APKBUILD index 5fa0b0cf6..f1127bc80 100644 --- a/device/testing/linux-postmarketos-qcom-sm8550/APKBUILD +++ b/device/testing/linux-postmarketos-qcom-sm8550/APKBUILD @@ -105,5 +105,5 @@ package() { # 'pmbootstrap checksum linux-postmarketos-qcom-sm8550' (it downloads ~250 MB). sha512sums=" 19f6d0ee8481e34b0b8c27f07f3023182cda9e2a3d67e40989b1f300b7e82d7ea606fb112599dd9399e0d5f973d43b289d8932a4b578b6ffe4168af05e19f795 linux-postmarketos-qcom-sm8550-22591bbc21da5cc0c6e37503b77bd2d852fe241c.tar.gz -ae0883f072ee106a8e5512240968312ea044d05151945924cd2f0db42a22d149fa0511511a2a3e2bba3d77b0c01e046ce3d5b9d01d6bdd148dd1c0edac85423a sm8550-motorola-rtwo.dts +11210b15854d92754b7bc801c1e807497b3336585498770d62d5aec6f81bc5b0b0ad6f775421e3af34edaece04f2b81e9bbc01381b78d1030d97598902d6fb11 sm8550-motorola-rtwo.dts " diff --git a/device/testing/linux-postmarketos-qcom-sm8550/sm8550-motorola-rtwo.dts b/device/testing/linux-postmarketos-qcom-sm8550/sm8550-motorola-rtwo.dts index f09f2d1cd..93dfb1cf8 100644 --- a/device/testing/linux-postmarketos-qcom-sm8550/sm8550-motorola-rtwo.dts +++ b/device/testing/linux-postmarketos-qcom-sm8550/sm8550-motorola-rtwo.dts @@ -117,9 +117,11 @@ &apps_rsc { /* - * PM8550-family RPMh regulators. The rail *definitions* are the SM8550 - * reference-design values (from sm8550-mtp.dts); the consumer wiring - * (touch, SD, panel, UFS) is taken from the Motorola downstream DT. + * PM8550-family RPMh regulators. Rail voltage ranges are the SM8550 + * reference-design values, which the rtwo downstream DT shares; the + * few board-specific ranges (L11B panel, L1E, L1G) and the consumer + * wiring (touch, SD, panel, UFS) come from the Motorola downstream DT + * and the DTB dumped from the device. */ regulators-0 { compatible = "qcom,pm8550-rpmh-regulators"; @@ -190,7 +192,7 @@ vreg_l8b_1p8: ldo8 { regulator-name = "vreg_l8b_1p8"; regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <2960000>; + regulator-max-microvolt = <3008000>; regulator-initial-mode = ; }; @@ -208,10 +210,11 @@ regulator-initial-mode = ; }; + /* panel VDD (Novatek NT37705) - board-specific range from downstream */ vreg_l11b_1p2: ldo11 { regulator-name = "vreg_l11b_1p2"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1504000>; + regulator-min-microvolt = <1230000>; + regulator-max-microvolt = <1280000>; regulator-initial-mode = ; }; @@ -313,7 +316,7 @@ vreg_l1e_0p88: ldo1 { regulator-name = "vreg_l1e_0p88"; regulator-min-microvolt = <880000>; - regulator-max-microvolt = <880000>; + regulator-max-microvolt = <912000>; regulator-initial-mode = ; }; @@ -426,10 +429,11 @@ regulator-initial-mode = ; }; + /* UFS VCCQ - board-specific range from downstream */ vreg_l1g_1p2: ldo1 { regulator-name = "vreg_l1g_1p2"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; + regulator-min-microvolt = <1144000>; + regulator-max-microvolt = <1256000>; regulator-initial-mode = ; };