xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm7325.dtsi (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
15956d97fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
28bab661aSEmmanuel Vadot/*
38bab661aSEmmanuel Vadot * Copyright (c) 2021, The Linux Foundation. All rights reserved.
48bab661aSEmmanuel Vadot */
55956d97fSEmmanuel Vadot
65956d97fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
75956d97fSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadot&spmi_bus {
105956d97fSEmmanuel Vadot	pm7325: pmic@1 {
115956d97fSEmmanuel Vadot		compatible = "qcom,pm7325", "qcom,spmi-pmic";
125956d97fSEmmanuel Vadot		reg = <0x1 SPMI_USID>;
135956d97fSEmmanuel Vadot		#address-cells = <1>;
145956d97fSEmmanuel Vadot		#size-cells = <0>;
155956d97fSEmmanuel Vadot
165956d97fSEmmanuel Vadot		pm7325_temp_alarm: temp-alarm@a00 {
175956d97fSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
185956d97fSEmmanuel Vadot			reg = <0xa00>;
195956d97fSEmmanuel Vadot			interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
205956d97fSEmmanuel Vadot			#thermal-sensor-cells = <0>;
215956d97fSEmmanuel Vadot		};
225956d97fSEmmanuel Vadot
238bab661aSEmmanuel Vadot		pm7325_gpios: gpio@8800 {
245956d97fSEmmanuel Vadot			compatible = "qcom,pm7325-gpio", "qcom,spmi-gpio";
255956d97fSEmmanuel Vadot			reg = <0x8800>;
265956d97fSEmmanuel Vadot			gpio-controller;
275956d97fSEmmanuel Vadot			gpio-ranges = <&pm7325_gpios 0 0 10>;
285956d97fSEmmanuel Vadot			#gpio-cells = <2>;
295956d97fSEmmanuel Vadot			interrupt-controller;
305956d97fSEmmanuel Vadot			#interrupt-cells = <2>;
315956d97fSEmmanuel Vadot		};
325956d97fSEmmanuel Vadot	};
335956d97fSEmmanuel Vadot};
345956d97fSEmmanuel Vadot
355956d97fSEmmanuel Vadot&thermal_zones {
365956d97fSEmmanuel Vadot	pm7325_thermal: pm7325-thermal {
375956d97fSEmmanuel Vadot		polling-delay-passive = <100>;
38*0e8011faSEmmanuel Vadot
395956d97fSEmmanuel Vadot		thermal-sensors = <&pm7325_temp_alarm>;
405956d97fSEmmanuel Vadot
415956d97fSEmmanuel Vadot		trips {
425956d97fSEmmanuel Vadot			pm7325_trip0: trip0 {
435956d97fSEmmanuel Vadot				temperature = <95000>;
445956d97fSEmmanuel Vadot				hysteresis = <0>;
455956d97fSEmmanuel Vadot				type = "passive";
465956d97fSEmmanuel Vadot			};
475956d97fSEmmanuel Vadot
485956d97fSEmmanuel Vadot			pm7325_crit: pm7325-crit {
495956d97fSEmmanuel Vadot				temperature = <115000>;
505956d97fSEmmanuel Vadot				hysteresis = <0>;
515956d97fSEmmanuel Vadot				type = "critical";
525956d97fSEmmanuel Vadot			};
535956d97fSEmmanuel Vadot		};
545956d97fSEmmanuel Vadot	};
555956d97fSEmmanuel Vadot};
56