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

Commit 73660dbe authored by David Collins's avatar David Collins
Browse files

ARM: dts: msm: add PM8009 PMIC devices for KONA



Add top level SPMI slave devices for PM8009 PMIC.  Also add some
of the peripheral devices within the SPMI slave devices.

Change-Id: I2dde134495575d2e84ce86d7562e2518be9e1f2c
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 630c85e8
Loading
Loading
Loading
Loading
+3 −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/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>;
+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>;
	};
};