xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/pm8550.dtsi (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
12e9686d1SNeil Armstrong// SPDX-License-Identifier: BSD-3-Clause
22e9686d1SNeil Armstrong/*
32e9686d1SNeil Armstrong * Copyright (c) 2022, Linaro Limited
42e9686d1SNeil Armstrong */
52e9686d1SNeil Armstrong
62e9686d1SNeil Armstrong#include <dt-bindings/interrupt-controller/irq.h>
72e9686d1SNeil Armstrong#include <dt-bindings/spmi/spmi.h>
82e9686d1SNeil Armstrong
92e9686d1SNeil Armstrong/ {
102e9686d1SNeil Armstrong	thermal-zones {
112e9686d1SNeil Armstrong		pm8550-thermal {
122e9686d1SNeil Armstrong			polling-delay-passive = <100>;
132e9686d1SNeil Armstrong
142e9686d1SNeil Armstrong			thermal-sensors = <&pm8550_temp_alarm>;
152e9686d1SNeil Armstrong
162e9686d1SNeil Armstrong			trips {
172e9686d1SNeil Armstrong				trip0 {
182e9686d1SNeil Armstrong					temperature = <95000>;
192e9686d1SNeil Armstrong					hysteresis = <0>;
202e9686d1SNeil Armstrong					type = "passive";
212e9686d1SNeil Armstrong				};
222e9686d1SNeil Armstrong
232e9686d1SNeil Armstrong				trip1 {
242e9686d1SNeil Armstrong					temperature = <115000>;
252e9686d1SNeil Armstrong					hysteresis = <0>;
262e9686d1SNeil Armstrong					type = "hot";
272e9686d1SNeil Armstrong				};
282e9686d1SNeil Armstrong			};
292e9686d1SNeil Armstrong		};
302e9686d1SNeil Armstrong	};
312e9686d1SNeil Armstrong};
322e9686d1SNeil Armstrong
332e9686d1SNeil Armstrong
342e9686d1SNeil Armstrong&spmi_bus {
352e9686d1SNeil Armstrong	pm8550: pmic@1 {
362e9686d1SNeil Armstrong		compatible = "qcom,pm8550", "qcom,spmi-pmic";
372e9686d1SNeil Armstrong		reg = <0x1 SPMI_USID>;
382e9686d1SNeil Armstrong		#address-cells = <1>;
392e9686d1SNeil Armstrong		#size-cells = <0>;
402e9686d1SNeil Armstrong
412e9686d1SNeil Armstrong		pm8550_temp_alarm: temp-alarm@a00 {
422e9686d1SNeil Armstrong			compatible = "qcom,spmi-temp-alarm";
432e9686d1SNeil Armstrong			reg = <0xa00>;
442e9686d1SNeil Armstrong			interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
452e9686d1SNeil Armstrong			#thermal-sensor-cells = <0>;
462e9686d1SNeil Armstrong		};
472e9686d1SNeil Armstrong
482e9686d1SNeil Armstrong		pm8550_gpios: gpio@8800 {
492e9686d1SNeil Armstrong			compatible = "qcom,pm8550-gpio", "qcom,spmi-gpio";
502e9686d1SNeil Armstrong			reg = <0x8800>;
512e9686d1SNeil Armstrong			gpio-controller;
522e9686d1SNeil Armstrong			gpio-ranges = <&pm8550_gpios 0 0 12>;
532e9686d1SNeil Armstrong			#gpio-cells = <2>;
542e9686d1SNeil Armstrong			interrupt-controller;
552e9686d1SNeil Armstrong			#interrupt-cells = <2>;
562e9686d1SNeil Armstrong		};
57cf51d2beSKrzysztof Kozlowski
58cf51d2beSKrzysztof Kozlowski		pm8550_flash: led-controller@ee00 {
59cf51d2beSKrzysztof Kozlowski			compatible = "qcom,pm8550-flash-led", "qcom,spmi-flash-led";
60cf51d2beSKrzysztof Kozlowski			reg = <0xee00>;
61cf51d2beSKrzysztof Kozlowski			status = "disabled";
62cf51d2beSKrzysztof Kozlowski		};
63*8889d13cSNeil Armstrong
64*8889d13cSNeil Armstrong		pm8550_pwm: pwm {
65*8889d13cSNeil Armstrong			compatible = "qcom,pm8550-pwm", "qcom,pm8350c-pwm";
66*8889d13cSNeil Armstrong			#pwm-cells = <2>;
67*8889d13cSNeil Armstrong
68*8889d13cSNeil Armstrong			status = "disabled";
69*8889d13cSNeil Armstrong		};
702e9686d1SNeil Armstrong	};
712e9686d1SNeil Armstrong};
72