xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm8350b.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
12eb4d8dcSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
22eb4d8dcSEmmanuel Vadot/*
32eb4d8dcSEmmanuel Vadot * Copyright (c) 2021, Linaro Limited
42eb4d8dcSEmmanuel Vadot */
52eb4d8dcSEmmanuel Vadot
62eb4d8dcSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
72eb4d8dcSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
82eb4d8dcSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadot/ {
10d5b0e70fSEmmanuel Vadot	thermal-zones {
11*aa1a8ff2SEmmanuel Vadot		pm8350b_thermal: pm8350b-thermal {
12d5b0e70fSEmmanuel Vadot			polling-delay-passive = <100>;
13d5b0e70fSEmmanuel Vadot			polling-delay = <0>;
14d5b0e70fSEmmanuel Vadot			thermal-sensors = <&pm8350b_temp_alarm>;
15d5b0e70fSEmmanuel Vadot
16d5b0e70fSEmmanuel Vadot			trips {
17d5b0e70fSEmmanuel Vadot				pm8350b_trip0: trip0 {
18d5b0e70fSEmmanuel Vadot					temperature = <95000>;
19d5b0e70fSEmmanuel Vadot					hysteresis = <0>;
20d5b0e70fSEmmanuel Vadot					type = "passive";
21d5b0e70fSEmmanuel Vadot				};
22d5b0e70fSEmmanuel Vadot
23d5b0e70fSEmmanuel Vadot				pm8350b_crit: pm8350c-crit {
24d5b0e70fSEmmanuel Vadot					temperature = <115000>;
25d5b0e70fSEmmanuel Vadot					hysteresis = <0>;
26d5b0e70fSEmmanuel Vadot					type = "critical";
27d5b0e70fSEmmanuel Vadot				};
28d5b0e70fSEmmanuel Vadot			};
29d5b0e70fSEmmanuel Vadot		};
30d5b0e70fSEmmanuel Vadot	};
31d5b0e70fSEmmanuel Vadot};
32d5b0e70fSEmmanuel Vadot
332eb4d8dcSEmmanuel Vadot&spmi_bus {
342eb4d8dcSEmmanuel Vadot	pm8350b: pmic@3 {
352eb4d8dcSEmmanuel Vadot		compatible = "qcom,pm8350b", "qcom,spmi-pmic";
362eb4d8dcSEmmanuel Vadot		reg = <0x3 SPMI_USID>;
372eb4d8dcSEmmanuel Vadot		#address-cells = <1>;
382eb4d8dcSEmmanuel Vadot		#size-cells = <0>;
392eb4d8dcSEmmanuel Vadot
40d5b0e70fSEmmanuel Vadot		pm8350b_temp_alarm: temp-alarm@a00 {
41d5b0e70fSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
42d5b0e70fSEmmanuel Vadot			reg = <0xa00>;
43d5b0e70fSEmmanuel Vadot			interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
44d5b0e70fSEmmanuel Vadot			#thermal-sensor-cells = <0>;
45d5b0e70fSEmmanuel Vadot		};
46d5b0e70fSEmmanuel Vadot
472eb4d8dcSEmmanuel Vadot		pm8350b_gpios: gpio@8800 {
48b97ee269SEmmanuel Vadot			compatible = "qcom,pm8350b-gpio", "qcom,spmi-gpio";
492eb4d8dcSEmmanuel Vadot			reg = <0x8800>;
502eb4d8dcSEmmanuel Vadot			gpio-controller;
51b97ee269SEmmanuel Vadot			gpio-ranges = <&pm8350b_gpios 0 0 8>;
522eb4d8dcSEmmanuel Vadot			#gpio-cells = <2>;
532eb4d8dcSEmmanuel Vadot			interrupt-controller;
542eb4d8dcSEmmanuel Vadot			#interrupt-cells = <2>;
552eb4d8dcSEmmanuel Vadot		};
562eb4d8dcSEmmanuel Vadot	};
572eb4d8dcSEmmanuel Vadot};
58