xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pm6150.dtsi (revision 7ee3eae8)
1a727ec12SKiran Gunda// SPDX-License-Identifier: BSD-3-Clause
2a727ec12SKiran Gunda// Copyright (c) 2019, The Linux Foundation. All rights reserved.
3a727ec12SKiran Gunda
4a727ec12SKiran Gunda#include <dt-bindings/iio/qcom,spmi-vadc.h>
5a727ec12SKiran Gunda#include <dt-bindings/input/linux-event-codes.h>
6a727ec12SKiran Gunda#include <dt-bindings/interrupt-controller/irq.h>
7a727ec12SKiran Gunda#include <dt-bindings/spmi/spmi.h>
8a727ec12SKiran Gunda#include <dt-bindings/thermal/thermal.h>
9a727ec12SKiran Gunda
10a727ec12SKiran Gunda&spmi_bus {
11a727ec12SKiran Gunda	pm6150_lsid0: pmic@0 {
12a727ec12SKiran Gunda		compatible = "qcom,pm6150", "qcom,spmi-pmic";
13a727ec12SKiran Gunda		reg = <0x0 SPMI_USID>;
14a727ec12SKiran Gunda		#address-cells = <1>;
15a727ec12SKiran Gunda		#size-cells = <0>;
16a727ec12SKiran Gunda
17a727ec12SKiran Gunda		pm6150_pon: pon@800 {
18a727ec12SKiran Gunda			compatible = "qcom,pm8998-pon";
19a727ec12SKiran Gunda			reg = <0x800>;
20a727ec12SKiran Gunda			mode-bootloader = <0x2>;
21a727ec12SKiran Gunda			mode-recovery = <0x1>;
22a727ec12SKiran Gunda
23f855a922SStephen Boyd			pm6150_pwrkey: pwrkey {
24a727ec12SKiran Gunda				compatible = "qcom,pm8941-pwrkey";
25a727ec12SKiran Gunda				interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
26a727ec12SKiran Gunda				debounce = <15625>;
27a727ec12SKiran Gunda				bias-pull-up;
28a727ec12SKiran Gunda				linux,code = <KEY_POWER>;
29a727ec12SKiran Gunda			};
30a727ec12SKiran Gunda		};
31a727ec12SKiran Gunda
32a727ec12SKiran Gunda		pm6150_temp: temp-alarm@2400 {
33a727ec12SKiran Gunda			compatible = "qcom,spmi-temp-alarm";
34a727ec12SKiran Gunda			reg = <0x2400>;
35a727ec12SKiran Gunda			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
36a727ec12SKiran Gunda			io-channels = <&pm6150_adc ADC5_DIE_TEMP>;
37a727ec12SKiran Gunda			io-channel-names = "thermal";
38a727ec12SKiran Gunda			#thermal-sensor-cells = <0>;
39a727ec12SKiran Gunda		};
40a727ec12SKiran Gunda
41a727ec12SKiran Gunda		pm6150_adc: adc@3100 {
42a727ec12SKiran Gunda			compatible = "qcom,spmi-adc5";
43a727ec12SKiran Gunda			reg = <0x3100>;
44a727ec12SKiran Gunda			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
45a727ec12SKiran Gunda			#address-cells = <1>;
46a727ec12SKiran Gunda			#size-cells = <0>;
47a727ec12SKiran Gunda			#io-channel-cells = <1>;
48a727ec12SKiran Gunda
493f155dbeSDouglas Anderson			adc-chan@6 {
50a727ec12SKiran Gunda				reg = <ADC5_DIE_TEMP>;
51a727ec12SKiran Gunda				label = "die_temp";
52a727ec12SKiran Gunda			};
53a727ec12SKiran Gunda		};
54a727ec12SKiran Gunda
55*7ee3eae8SJishnu Prakash		pm6150_adc_tm: adc-tm@3500 {
56*7ee3eae8SJishnu Prakash			compatible = "qcom,spmi-adc-tm5";
57*7ee3eae8SJishnu Prakash			reg = <0x3500>;
58*7ee3eae8SJishnu Prakash			interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
59*7ee3eae8SJishnu Prakash			#thermal-sensor-cells = <1>;
60*7ee3eae8SJishnu Prakash			#address-cells = <1>;
61*7ee3eae8SJishnu Prakash			#size-cells = <0>;
62*7ee3eae8SJishnu Prakash			status = "disabled";
63*7ee3eae8SJishnu Prakash		};
64*7ee3eae8SJishnu Prakash
65a727ec12SKiran Gunda		pm6150_gpio: gpios@c000 {
66a727ec12SKiran Gunda			compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
67a727ec12SKiran Gunda			reg = <0xc000>;
68a727ec12SKiran Gunda			gpio-controller;
69a727ec12SKiran Gunda			gpio-ranges = <&pm6150_gpio 0 0 10>;
70a727ec12SKiran Gunda			#gpio-cells = <2>;
71a727ec12SKiran Gunda			interrupt-controller;
72a727ec12SKiran Gunda			#interrupt-cells = <2>;
73a727ec12SKiran Gunda		};
74a727ec12SKiran Gunda	};
75a727ec12SKiran Gunda
76a727ec12SKiran Gunda	pm6150_lsid1: pmic@1 {
77a727ec12SKiran Gunda		compatible = "qcom,pm6150", "qcom,spmi-pmic";
78a727ec12SKiran Gunda		reg = <0x1 SPMI_USID>;
79a727ec12SKiran Gunda		#address-cells = <1>;
80a727ec12SKiran Gunda		#size-cells = <0>;
81a727ec12SKiran Gunda	};
82a727ec12SKiran Gunda};
83