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

Commit fb1de31a authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 2cb6196c ed801a8c
Loading
Loading
Loading
Loading
+16 −1
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"
#include "pm8150b.dtsi"
#include "pm8150l.dtsi"
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include "pm8009.dtsi"

&spmi_bus {
	#address-cells = <2>;
@@ -48,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;
	};
};
+49 −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/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>

&spmi_bus {
	#address-cells = <2>;
	#size-cells = <0>;
	interrupt-controller;
	#interrupt-cells = <4>;

	qcom,pm8009@a {
		compatible ="qcom,spmi-pmic";
		reg = <0xa SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;

		qcom,revid@100 {
			compatible = "qcom,qpnp-revid";
			reg = <0x100 0x100>;
		};

		qcom,power-on@800 {
			compatible = "qcom,qpnp-power-on";
			reg = <0x800 0x100>;
		};

		pm8009_gpios: pinctrl@c000 {
			compatible = "qcom,spmi-gpio";
			reg = <0xc000 0x400>;
			interrupts = <0x0 0xc0 0 IRQ_TYPE_NONE>,
				     <0x0 0xc1 0 IRQ_TYPE_NONE>,
				     <0x0 0xc2 0 IRQ_TYPE_NONE>,
				     <0x0 0xc3 0 IRQ_TYPE_NONE>;
			interrupt-names = "pm8009_gpio1", "pm8009_gpio2",
					  "pm8009_gpio3", "pm8009_gpio4";
			gpio-controller;
			#gpio-cells = <2>;
		};
	};

	qcom,pm8009@b {
		compatible = "qcom,spmi-pmic";
		reg = <0xb SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;
	};
};