xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pmr735a.dtsi (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
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
92eb4d8dcSEmmanuel Vadot&spmi_bus {
102eb4d8dcSEmmanuel Vadot	pmr735a: pmic@4 {
112eb4d8dcSEmmanuel Vadot		compatible = "qcom,pmr735a", "qcom,spmi-pmic";
122eb4d8dcSEmmanuel Vadot		reg = <0x4 SPMI_USID>;
132eb4d8dcSEmmanuel Vadot		#address-cells = <1>;
142eb4d8dcSEmmanuel Vadot		#size-cells = <0>;
152eb4d8dcSEmmanuel Vadot
165956d97fSEmmanuel Vadot		pmr735a_temp_alarm: temp-alarm@a00 {
175956d97fSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
185956d97fSEmmanuel Vadot			reg = <0xa00>;
195956d97fSEmmanuel Vadot			interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
205956d97fSEmmanuel Vadot			#thermal-sensor-cells = <0>;
215956d97fSEmmanuel Vadot		};
225956d97fSEmmanuel Vadot
232eb4d8dcSEmmanuel Vadot		pmr735a_gpios: gpio@8800 {
245956d97fSEmmanuel Vadot			compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio";
252eb4d8dcSEmmanuel Vadot			reg = <0x8800>;
262eb4d8dcSEmmanuel Vadot			gpio-controller;
275956d97fSEmmanuel Vadot			gpio-ranges = <&pmr735a_gpios 0 0 4>;
282eb4d8dcSEmmanuel Vadot			#gpio-cells = <2>;
292eb4d8dcSEmmanuel Vadot			interrupt-controller;
302eb4d8dcSEmmanuel Vadot			#interrupt-cells = <2>;
312eb4d8dcSEmmanuel Vadot		};
322eb4d8dcSEmmanuel Vadot	};
332eb4d8dcSEmmanuel Vadot};
345956d97fSEmmanuel Vadot
35*d5b0e70fSEmmanuel Vadot/ {
36*d5b0e70fSEmmanuel Vadot	thermal-zones {
375956d97fSEmmanuel Vadot		pmr735a_thermal: pmr735a-thermal {
385956d97fSEmmanuel Vadot			polling-delay-passive = <100>;
395956d97fSEmmanuel Vadot			polling-delay = <0>;
405956d97fSEmmanuel Vadot			thermal-sensors = <&pmr735a_temp_alarm>;
415956d97fSEmmanuel Vadot
425956d97fSEmmanuel Vadot			trips {
435956d97fSEmmanuel Vadot				pmr735a_trip0: trip0 {
445956d97fSEmmanuel Vadot					temperature = <95000>;
455956d97fSEmmanuel Vadot					hysteresis = <0>;
465956d97fSEmmanuel Vadot					type = "passive";
475956d97fSEmmanuel Vadot				};
485956d97fSEmmanuel Vadot
495956d97fSEmmanuel Vadot				pmr735a_crit: pmr735a-crit {
505956d97fSEmmanuel Vadot					temperature = <115000>;
515956d97fSEmmanuel Vadot					hysteresis = <0>;
525956d97fSEmmanuel Vadot					type = "critical";
535956d97fSEmmanuel Vadot				};
545956d97fSEmmanuel Vadot			};
555956d97fSEmmanuel Vadot		};
565956d97fSEmmanuel Vadot	};
57*d5b0e70fSEmmanuel Vadot};
58