xref: /linux/arch/arm64/boot/dts/qcom/pm6350.dtsi (revision 69bfec7548f4c1595bac0e3ddfc0458a5af31f4c)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, Luca Weiss <luca@z3ntu.xyz>
4 */
5
6#include <dt-bindings/input/input.h>
7#include <dt-bindings/spmi/spmi.h>
8
9/ {
10	thermal-zones {
11		pm6350-thermal {
12			polling-delay-passive = <100>;
13			polling-delay = <0>;
14
15			thermal-sensors = <&pm6350_temp>;
16
17			trips {
18				trip0 {
19					temperature = <95000>;
20					hysteresis = <0>;
21					type = "passive";
22				};
23
24				trip1 {
25					temperature = <115000>;
26					hysteresis = <0>;
27					type = "hot";
28				};
29
30				trip2 {
31					temperature = <125000>;
32					hysteresis = <0>;
33					type = "critical";
34				};
35			};
36		};
37	};
38};
39
40&spmi_bus {
41	pmic@0 {
42		compatible = "qcom,pm6350", "qcom,spmi-pmic";
43		reg = <0x0 SPMI_USID>;
44		#address-cells = <1>;
45		#size-cells = <0>;
46
47		pm6350_pon: pon@800 {
48			compatible = "qcom,pm8998-pon";
49			reg = <0x800>;
50			mode-bootloader = <0x2>;
51			mode-recovery = <0x1>;
52
53			pm6350_pwrkey: pwrkey {
54				compatible = "qcom,pm8941-pwrkey";
55				interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
56				debounce = <15625>;
57				bias-pull-up;
58				linux,code = <KEY_POWER>;
59			};
60
61			pm6350_resin: resin {
62				compatible = "qcom,pm8941-resin";
63				interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
64				debounce = <15625>;
65				bias-pull-up;
66				status = "disabled";
67			};
68		};
69
70		pm6350_temp: temp-alarm@2400 {
71			compatible = "qcom,spmi-temp-alarm";
72			reg = <0x2400>;
73			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
74			#thermal-sensor-cells = <0>;
75		};
76
77		pm6350_gpios: gpio@c000 {
78			compatible = "qcom,pm6350-gpio", "qcom,spmi-gpio";
79			reg = <0xc000>;
80			gpio-controller;
81			gpio-ranges = <&pm6350_gpios 0 0 9>;
82			#gpio-cells = <2>;
83			interrupt-controller;
84			#interrupt-cells = <2>;
85		};
86	};
87
88	pmic@1 {
89		compatible = "qcom,pm6350", "qcom,spmi-pmic";
90		reg = <0x1 SPMI_USID>;
91		#address-cells = <1>;
92		#size-cells = <0>;
93	};
94};
95