Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed801a8c authored by David Collins's avatar David Collins
Browse files

ARM: dts: msm: add TOF supply regulator for KONA



Add a fixed-regulator device to manage the buck-boost regulator
which powers the camera TOF sensor on KONA boards.

Change-Id: I38f7a4e6b1c7b29fbe01180a675151a074f3f118
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 73660dbe
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>

#include "pm8150.dtsi"
@@ -50,3 +51,15 @@
	vbus-supply = <&smb5_vbus>;
	vconn-supply = <&smb5_vconn>;
};

&soc {
	vreg_tof: regulator-dbb1 {
		compatible = "regulator-fixed";
		regulator-name = "vdd_tof";
		regulator-min-microvolt = <3600000>;
		regulator-max-microvolt = <3600000>;
		gpio = <&pm8009_gpios 1 GPIO_ACTIVE_HIGH>;
		startup-delay-us = <1000>;
		enable-active-high;
	};
};