[PATCH v2 6/6] arm64: dts: allwinner: pinephone: Add power supplies to stk3311

Aren Moynihan aren at peacevolution.org
Tue Apr 23 15:33:09 PDT 2024


From: Ondrej Jirman <megi at xff.cz>

This makes the driver disable the supply during sleep.

Signed-off-by: Ondrej Jirman <megi at xff.cz>
Signed-off-by: Aren Moynihan <aren at peacevolution.org>
---

Notes:
    Changes in v2:
     - add leda-supply

 arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index b5a232209f2b..51ab1db95f81 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -250,6 +250,8 @@ light-sensor at 48 {
 		reg = <0x48>;
 		interrupt-parent = <&pio>;
 		interrupts = <1 0 IRQ_TYPE_EDGE_FALLING>; /* PB0 */
+		vdd-supply = <&reg_ldo_io0>;
+		leda-supply = <&reg_dldo1>;
 	};
 
 	/* Accelerometer/gyroscope */
-- 
2.44.0




More information about the linux-arm-kernel mailing list