Patch "arm64: dts: qcom: apq8016-sbc: Fix 1.8V power rail on LS expansion" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    arm64: dts: qcom: apq8016-sbc: Fix 1.8V power rail on LS expansion

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-dts-qcom-apq8016-sbc-fix-1.8v-power-rail-on-ls.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 36ef326a3c5dc6fb17c92f9c331eae6e1158c207
Author: Stephan Gerhold <stephan@xxxxxxxxxxx>
Date:   Wed May 17 20:48:41 2023 +0200

    arm64: dts: qcom: apq8016-sbc: Fix 1.8V power rail on LS expansion
    
    [ Upstream commit 5500f823db38db073d30557af159b77fb1f2bf26 ]
    
    The 96Boards specification expects a 1.8V power rail on the low-speed
    expansion connector that is able to provide at least 0.18W / 100 mA.
    According to the DB410c hardware user manual this is done by connecting
    both L15 and L16 in parallel with up to 55mA each (for 110 mA total) [1].
    
    Unfortunately the current regulator setup in the DB410c device tree
    does not implement the specification correctly and only provides 5 mA:
    
      - Only L15 is marked always-on, so L16 is never enabled.
      - Without specifying a load the regulator is put into LPM where
        it can only provide 5 mA.
    
    Fix this by:
    
      - Adding proper voltage constraints for L16.
      - Making L16 always-on.
      - Adding regulator-system-load for both L15 and L16. 100 mA should be
        available in total, so specify 50 mA for each. (The regulator
        hardware can only be in normal (55 mA) or low-power mode (5 mA) so
        this will actually result in the expected 110 mA total...)
    
    [1]: https://www.96boards.org/documentation/consumer/dragonboard/dragonboard410c/hardware-docs/hardware-user-manual.md.html#power-supplies
    
    Cc: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
    Fixes: 828dd5d66f0f ("arm64: dts: apq8016-sbc: make 1.8v available on LS expansion")
    Signed-off-by: Stephan Gerhold <stephan@xxxxxxxxxxx>
    Signed-off-by: Bjorn Andersson <andersson@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230510-msm8916-regulators-v1-2-54d4960a05fc@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts
index 528138af24f09..c6e8bf18defc6 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts
@@ -519,19 +519,27 @@ l14 {
 		regulator-max-microvolt = <3300000>;
 	};
 
-	/**
-	 * 1.8v required on LS expansion
-	 * for mezzanine boards
+	/*
+	 * The 96Boards specification expects a 1.8V power rail on the low-speed
+	 * expansion connector that is able to provide at least 0.18W / 100 mA.
+	 * L15/L16 are connected in parallel to provide 55 mA each. A minimum load
+	 * must be specified to ensure the regulators are not put in LPM where they
+	 * would only provide 5 mA.
 	 */
 	l15 {
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
+		regulator-system-load = <50000>;
+		regulator-allow-set-load;
 		regulator-always-on;
 	};
 
 	l16 {
 		regulator-min-microvolt = <1800000>;
-		regulator-max-microvolt = <3300000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-system-load = <50000>;
+		regulator-allow-set-load;
+		regulator-always-on;
 	};
 
 	l17 {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux