summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/qcom/pm8009.dtsi
blob: 0c2c424be0eacdcce0ebd7d967950780521f987c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: BSD-3-Clause
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2020, Linaro Limited
 */

#include <dt-bindings/spmi/spmi.h>

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

		pm8009_pon: pon@800 {
			compatible = "qcom,pm8916-pon";
			reg = <0x0800>;
		};

		pm8009_gpios: gpio@c000 {
			compatible = "qcom,pm8005-gpio", "qcom,spmi-gpio";
			reg = <0xc000>;
			gpio-controller;
			gpio-ranges = <&pm8009_gpios 0 0 4>;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
		};
	};

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