xref: /linux/arch/arm64/boot/dts/qcom/pmh0101.dtsi (revision e65f4718a577fcc84d40431f022985898b6dbf2e)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4 */
5
6#include <dt-bindings/interrupt-controller/irq.h>
7#include <dt-bindings/spmi/spmi.h>
8
9/ {
10	thermal-zones {
11		pmh0101-thermal {
12			polling-delay-passive = <100>;
13			thermal-sensors = <&pmh0101_temp_alarm>;
14
15			trips {
16				trip0 {
17					temperature = <95000>;
18					hysteresis = <0>;
19					type = "passive";
20				};
21
22				trip1 {
23					temperature = <115000>;
24					hysteresis = <0>;
25					type = "critical";
26				};
27			};
28		};
29	};
30};
31
32&spmi_bus0 {
33	pmic@1 {
34		compatible = "qcom,pmh0101", "qcom,spmi-pmic";
35		reg = <0x1 SPMI_USID>;
36		#address-cells = <1>;
37		#size-cells = <0>;
38
39		pmh0101_temp_alarm: temp-alarm@a00 {
40			compatible = "qcom,spmi-temp-alarm";
41			reg = <0xa00>;
42			interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
43			#thermal-sensor-cells = <0>;
44		};
45
46		pmh0101_gpios: gpio@8800 {
47			compatible = "qcom,pmh0101-gpio", "qcom,spmi-gpio";
48			reg = <0x8800>;
49			gpio-controller;
50			gpio-ranges = <&pmh0101_gpios 0 0 18>;
51			#gpio-cells = <2>;
52			interrupt-controller;
53			#interrupt-cells = <2>;
54		};
55
56		pmh0101_flash: led-controller@ee00 {
57			compatible = "qcom,pmh0101-flash-led", "qcom,spmi-flash-led";
58			reg = <0xee00>;
59			status = "disabled";
60		};
61
62		pmh0101_pwm: pwm {
63			compatible = "qcom,pmh0101-pwm", "qcom,pm8350c-pwm";
64			#pwm-cells = <2>;
65			status = "disabled";
66		};
67	};
68};
69