xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm8350c.dtsi (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
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	pm8350c: pmic@2 {
112eb4d8dcSEmmanuel Vadot		compatible = "qcom,pm8350c", "qcom,spmi-pmic";
122eb4d8dcSEmmanuel Vadot		reg = <0x2 SPMI_USID>;
132eb4d8dcSEmmanuel Vadot		#address-cells = <1>;
142eb4d8dcSEmmanuel Vadot		#size-cells = <0>;
152eb4d8dcSEmmanuel Vadot
165956d97fSEmmanuel Vadot		pm8350c_temp_alarm: temp-alarm@a00 {
175956d97fSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
185956d97fSEmmanuel Vadot			reg = <0xa00>;
195956d97fSEmmanuel Vadot			interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
205956d97fSEmmanuel Vadot			#thermal-sensor-cells = <0>;
215956d97fSEmmanuel Vadot		};
225956d97fSEmmanuel Vadot
232eb4d8dcSEmmanuel Vadot		pm8350c_gpios: gpio@8800 {
245956d97fSEmmanuel Vadot			compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio";
252eb4d8dcSEmmanuel Vadot			reg = <0x8800>;
262eb4d8dcSEmmanuel Vadot			gpio-controller;
275956d97fSEmmanuel Vadot			gpio-ranges = <&pm8350c_gpios 0 0 9>;
282eb4d8dcSEmmanuel Vadot			#gpio-cells = <2>;
292eb4d8dcSEmmanuel Vadot			interrupt-controller;
302eb4d8dcSEmmanuel Vadot			#interrupt-cells = <2>;
312eb4d8dcSEmmanuel Vadot		};
32d5b0e70fSEmmanuel Vadot
3384943d6fSEmmanuel Vadot		pm8350c_flash: led-controller@ee00 {
3484943d6fSEmmanuel Vadot			compatible = "qcom,pm8350c-flash-led", "qcom,spmi-flash-led";
3584943d6fSEmmanuel Vadot			reg = <0xee00>;
3684943d6fSEmmanuel Vadot			status = "disabled";
3784943d6fSEmmanuel Vadot		};
3884943d6fSEmmanuel Vadot
397ef62cebSEmmanuel Vadot		pm8350c_pwm: pwm {
40d5b0e70fSEmmanuel Vadot			compatible = "qcom,pm8350c-pwm";
41d5b0e70fSEmmanuel Vadot			#pwm-cells = <2>;
42d5b0e70fSEmmanuel Vadot			status = "disabled";
43d5b0e70fSEmmanuel Vadot		};
442eb4d8dcSEmmanuel Vadot	};
452eb4d8dcSEmmanuel Vadot};
465956d97fSEmmanuel Vadot
47d5b0e70fSEmmanuel Vadot/ {
48d5b0e70fSEmmanuel Vadot	thermal-zones {
495956d97fSEmmanuel Vadot		pm8350c_thermal: pm8350c-thermal {
505956d97fSEmmanuel Vadot			polling-delay-passive = <100>;
51*0e8011faSEmmanuel Vadot
525956d97fSEmmanuel Vadot			thermal-sensors = <&pm8350c_temp_alarm>;
535956d97fSEmmanuel Vadot
545956d97fSEmmanuel Vadot			trips {
555956d97fSEmmanuel Vadot				pm8350c_trip0: trip0 {
565956d97fSEmmanuel Vadot					temperature = <95000>;
575956d97fSEmmanuel Vadot					hysteresis = <0>;
585956d97fSEmmanuel Vadot					type = "passive";
595956d97fSEmmanuel Vadot				};
605956d97fSEmmanuel Vadot
615956d97fSEmmanuel Vadot				pm8350c_crit: pm8350c-crit {
625956d97fSEmmanuel Vadot					temperature = <115000>;
635956d97fSEmmanuel Vadot					hysteresis = <0>;
645956d97fSEmmanuel Vadot					type = "critical";
655956d97fSEmmanuel Vadot				};
665956d97fSEmmanuel Vadot			};
675956d97fSEmmanuel Vadot		};
685956d97fSEmmanuel Vadot	};
69d5b0e70fSEmmanuel Vadot};
70