VCNL4000 includes support for regulators. Add regulators listed in the downstream device tree so they can be powered in during initialization. VLED supply is missing downstream, so it will be powered on by a dummy.
Signed-off-by: Erikas Bitovtas <[email protected]> --- arm64: dts: qcom: msm8939-asus-z00t: add regulators for ambient light and proximity sensor. This patch series describes regulators needed for the ambient light and proximity sensor. In the patch series which added the ambient light and proximity sensor for this device, regulators were missing, as they were not yet supported by the sensor's device tree binding. Missing regulators for the ambient light and proximity sensor resulted in it not powering on when a regulator supplied only the ambient light and proximity sensor. In Asus ZenFone 2 Laser case, the regulators were shared with the panel and magnetometer, so it was not affected by this bug. However, for the sake of completeness of the binding, we add the neccessary regulators anyway. The mainline binding for the sensor also includes vled-supply, however, in downstream, it is missing, and we have no datasheet for the device, so for now, we'll have it being supplied by a dummy. --- arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts b/arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts index 1a340fa92755..90e966242720 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-asus-z00t.dts @@ -154,6 +154,9 @@ light-sensor@60 { interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>; proximity-near-level = <30>; + vdd-supply = <&pm8916_l8>; + vio-supply = <&pm8916_l6>; + pinctrl-0 = <&light_int_default>; pinctrl-names = "default"; }; --- base-commit: 3b058d1aeeeff27a7289529c4944291613b364e9 change-id: 20260325-z00t-cm36686-regulators-8f138d47090c Best regards, -- Erikas Bitovtas <[email protected]>

