1*69ed3df4SEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 2*69ed3df4SEmmanuel Vadot/* 3*69ed3df4SEmmanuel Vadot * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. 4*69ed3df4SEmmanuel Vadot */ 5*69ed3df4SEmmanuel Vadot 6*69ed3df4SEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 7*69ed3df4SEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 8*69ed3df4SEmmanuel Vadot 9*69ed3df4SEmmanuel Vadot/ { 10*69ed3df4SEmmanuel Vadot thermal-zones { 11*69ed3df4SEmmanuel Vadot pmh0101-thermal { 12*69ed3df4SEmmanuel Vadot polling-delay-passive = <100>; 13*69ed3df4SEmmanuel Vadot thermal-sensors = <&pmh0101_temp_alarm>; 14*69ed3df4SEmmanuel Vadot 15*69ed3df4SEmmanuel Vadot trips { 16*69ed3df4SEmmanuel Vadot trip0 { 17*69ed3df4SEmmanuel Vadot temperature = <95000>; 18*69ed3df4SEmmanuel Vadot hysteresis = <0>; 19*69ed3df4SEmmanuel Vadot type = "passive"; 20*69ed3df4SEmmanuel Vadot }; 21*69ed3df4SEmmanuel Vadot 22*69ed3df4SEmmanuel Vadot trip1 { 23*69ed3df4SEmmanuel Vadot temperature = <115000>; 24*69ed3df4SEmmanuel Vadot hysteresis = <0>; 25*69ed3df4SEmmanuel Vadot type = "critical"; 26*69ed3df4SEmmanuel Vadot }; 27*69ed3df4SEmmanuel Vadot }; 28*69ed3df4SEmmanuel Vadot }; 29*69ed3df4SEmmanuel Vadot }; 30*69ed3df4SEmmanuel Vadot}; 31*69ed3df4SEmmanuel Vadot 32*69ed3df4SEmmanuel Vadot&spmi_bus0 { 33*69ed3df4SEmmanuel Vadot pmic@1 { 34*69ed3df4SEmmanuel Vadot compatible = "qcom,pmh0101", "qcom,spmi-pmic"; 35*69ed3df4SEmmanuel Vadot reg = <0x1 SPMI_USID>; 36*69ed3df4SEmmanuel Vadot #address-cells = <1>; 37*69ed3df4SEmmanuel Vadot #size-cells = <0>; 38*69ed3df4SEmmanuel Vadot 39*69ed3df4SEmmanuel Vadot pmh0101_temp_alarm: temp-alarm@a00 { 40*69ed3df4SEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 41*69ed3df4SEmmanuel Vadot reg = <0xa00>; 42*69ed3df4SEmmanuel Vadot interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 43*69ed3df4SEmmanuel Vadot #thermal-sensor-cells = <0>; 44*69ed3df4SEmmanuel Vadot }; 45*69ed3df4SEmmanuel Vadot 46*69ed3df4SEmmanuel Vadot pmh0101_gpios: gpio@8800 { 47*69ed3df4SEmmanuel Vadot compatible = "qcom,pmh0101-gpio", "qcom,spmi-gpio"; 48*69ed3df4SEmmanuel Vadot reg = <0x8800>; 49*69ed3df4SEmmanuel Vadot gpio-controller; 50*69ed3df4SEmmanuel Vadot gpio-ranges = <&pmh0101_gpios 0 0 18>; 51*69ed3df4SEmmanuel Vadot #gpio-cells = <2>; 52*69ed3df4SEmmanuel Vadot interrupt-controller; 53*69ed3df4SEmmanuel Vadot #interrupt-cells = <2>; 54*69ed3df4SEmmanuel Vadot }; 55*69ed3df4SEmmanuel Vadot 56*69ed3df4SEmmanuel Vadot pmh0101_flash: led-controller@ee00 { 57*69ed3df4SEmmanuel Vadot compatible = "qcom,pmh0101-flash-led", "qcom,spmi-flash-led"; 58*69ed3df4SEmmanuel Vadot reg = <0xee00>; 59*69ed3df4SEmmanuel Vadot status = "disabled"; 60*69ed3df4SEmmanuel Vadot }; 61*69ed3df4SEmmanuel Vadot 62*69ed3df4SEmmanuel Vadot pmh0101_pwm: pwm { 63*69ed3df4SEmmanuel Vadot compatible = "qcom,pmh0101-pwm", "qcom,pm8350c-pwm"; 64*69ed3df4SEmmanuel Vadot #pwm-cells = <2>; 65*69ed3df4SEmmanuel Vadot status = "disabled"; 66*69ed3df4SEmmanuel Vadot }; 67*69ed3df4SEmmanuel Vadot }; 68*69ed3df4SEmmanuel Vadot}; 69