1*cb7aa33aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 2*cb7aa33aSEmmanuel Vadot/* 3*cb7aa33aSEmmanuel Vadot * Copyright (c) 2022, Linaro Limited 4*cb7aa33aSEmmanuel Vadot */ 5*cb7aa33aSEmmanuel Vadot 6*cb7aa33aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 7*cb7aa33aSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 8*cb7aa33aSEmmanuel Vadot 9*cb7aa33aSEmmanuel Vadot/ { 10*cb7aa33aSEmmanuel Vadot thermal-zones { 11*cb7aa33aSEmmanuel Vadot pm8550vs-c-thermal { 12*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 13*cb7aa33aSEmmanuel Vadot 14*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pm8550vs_c_temp_alarm>; 15*cb7aa33aSEmmanuel Vadot 16*cb7aa33aSEmmanuel Vadot trips { 17*cb7aa33aSEmmanuel Vadot trip0 { 18*cb7aa33aSEmmanuel Vadot temperature = <95000>; 19*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 20*cb7aa33aSEmmanuel Vadot type = "passive"; 21*cb7aa33aSEmmanuel Vadot }; 22*cb7aa33aSEmmanuel Vadot 23*cb7aa33aSEmmanuel Vadot trip1 { 24*cb7aa33aSEmmanuel Vadot temperature = <115000>; 25*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 26*cb7aa33aSEmmanuel Vadot type = "hot"; 27*cb7aa33aSEmmanuel Vadot }; 28*cb7aa33aSEmmanuel Vadot }; 29*cb7aa33aSEmmanuel Vadot }; 30*cb7aa33aSEmmanuel Vadot 31*cb7aa33aSEmmanuel Vadot pm8550vs-d-thermal { 32*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 33*cb7aa33aSEmmanuel Vadot 34*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pm8550vs_d_temp_alarm>; 35*cb7aa33aSEmmanuel Vadot 36*cb7aa33aSEmmanuel Vadot trips { 37*cb7aa33aSEmmanuel Vadot trip0 { 38*cb7aa33aSEmmanuel Vadot temperature = <95000>; 39*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 40*cb7aa33aSEmmanuel Vadot type = "passive"; 41*cb7aa33aSEmmanuel Vadot }; 42*cb7aa33aSEmmanuel Vadot 43*cb7aa33aSEmmanuel Vadot trip1 { 44*cb7aa33aSEmmanuel Vadot temperature = <115000>; 45*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 46*cb7aa33aSEmmanuel Vadot type = "hot"; 47*cb7aa33aSEmmanuel Vadot }; 48*cb7aa33aSEmmanuel Vadot }; 49*cb7aa33aSEmmanuel Vadot }; 50*cb7aa33aSEmmanuel Vadot 51*cb7aa33aSEmmanuel Vadot pm8550vs-e-thermal { 52*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 53*cb7aa33aSEmmanuel Vadot 54*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pm8550vs_e_temp_alarm>; 55*cb7aa33aSEmmanuel Vadot 56*cb7aa33aSEmmanuel Vadot trips { 57*cb7aa33aSEmmanuel Vadot trip0 { 58*cb7aa33aSEmmanuel Vadot temperature = <95000>; 59*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 60*cb7aa33aSEmmanuel Vadot type = "passive"; 61*cb7aa33aSEmmanuel Vadot }; 62*cb7aa33aSEmmanuel Vadot 63*cb7aa33aSEmmanuel Vadot trip1 { 64*cb7aa33aSEmmanuel Vadot temperature = <115000>; 65*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 66*cb7aa33aSEmmanuel Vadot type = "hot"; 67*cb7aa33aSEmmanuel Vadot }; 68*cb7aa33aSEmmanuel Vadot }; 69*cb7aa33aSEmmanuel Vadot }; 70*cb7aa33aSEmmanuel Vadot 71*cb7aa33aSEmmanuel Vadot pm8550vs-g-thermal { 72*cb7aa33aSEmmanuel Vadot polling-delay-passive = <100>; 73*cb7aa33aSEmmanuel Vadot 74*cb7aa33aSEmmanuel Vadot thermal-sensors = <&pm8550vs_g_temp_alarm>; 75*cb7aa33aSEmmanuel Vadot 76*cb7aa33aSEmmanuel Vadot trips { 77*cb7aa33aSEmmanuel Vadot trip0 { 78*cb7aa33aSEmmanuel Vadot temperature = <95000>; 79*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 80*cb7aa33aSEmmanuel Vadot type = "passive"; 81*cb7aa33aSEmmanuel Vadot }; 82*cb7aa33aSEmmanuel Vadot 83*cb7aa33aSEmmanuel Vadot trip1 { 84*cb7aa33aSEmmanuel Vadot temperature = <115000>; 85*cb7aa33aSEmmanuel Vadot hysteresis = <0>; 86*cb7aa33aSEmmanuel Vadot type = "hot"; 87*cb7aa33aSEmmanuel Vadot }; 88*cb7aa33aSEmmanuel Vadot }; 89*cb7aa33aSEmmanuel Vadot }; 90*cb7aa33aSEmmanuel Vadot }; 91*cb7aa33aSEmmanuel Vadot}; 92*cb7aa33aSEmmanuel Vadot 93*cb7aa33aSEmmanuel Vadot 94*cb7aa33aSEmmanuel Vadot&spmi_bus { 95*cb7aa33aSEmmanuel Vadot pm8550vs_c: pmic@2 { 96*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550", "qcom,spmi-pmic"; 97*cb7aa33aSEmmanuel Vadot reg = <0x2 SPMI_USID>; 98*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 99*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 100*cb7aa33aSEmmanuel Vadot 101*cb7aa33aSEmmanuel Vadot pm8550vs_c_temp_alarm: temp-alarm@a00 { 102*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 103*cb7aa33aSEmmanuel Vadot reg = <0xa00>; 104*cb7aa33aSEmmanuel Vadot interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 105*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 106*cb7aa33aSEmmanuel Vadot }; 107*cb7aa33aSEmmanuel Vadot 108*cb7aa33aSEmmanuel Vadot pm8550vs_c_gpios: gpio@8800 { 109*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; 110*cb7aa33aSEmmanuel Vadot reg = <0x8800>; 111*cb7aa33aSEmmanuel Vadot gpio-controller; 112*cb7aa33aSEmmanuel Vadot gpio-ranges = <&pm8550vs_c_gpios 0 0 6>; 113*cb7aa33aSEmmanuel Vadot #gpio-cells = <2>; 114*cb7aa33aSEmmanuel Vadot interrupt-controller; 115*cb7aa33aSEmmanuel Vadot #interrupt-cells = <2>; 116*cb7aa33aSEmmanuel Vadot }; 117*cb7aa33aSEmmanuel Vadot }; 118*cb7aa33aSEmmanuel Vadot 119*cb7aa33aSEmmanuel Vadot pm8550vs_d: pmic@3 { 120*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550", "qcom,spmi-pmic"; 121*cb7aa33aSEmmanuel Vadot reg = <0x3 SPMI_USID>; 122*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 123*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 124*cb7aa33aSEmmanuel Vadot 125*cb7aa33aSEmmanuel Vadot pm8550vs_d_temp_alarm: temp-alarm@a00 { 126*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 127*cb7aa33aSEmmanuel Vadot reg = <0xa00>; 128*cb7aa33aSEmmanuel Vadot interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 129*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 130*cb7aa33aSEmmanuel Vadot }; 131*cb7aa33aSEmmanuel Vadot 132*cb7aa33aSEmmanuel Vadot pm8550vs_d_gpios: gpio@8800 { 133*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; 134*cb7aa33aSEmmanuel Vadot reg = <0x8800>; 135*cb7aa33aSEmmanuel Vadot gpio-controller; 136*cb7aa33aSEmmanuel Vadot gpio-ranges = <&pm8550vs_d_gpios 0 0 6>; 137*cb7aa33aSEmmanuel Vadot #gpio-cells = <2>; 138*cb7aa33aSEmmanuel Vadot interrupt-controller; 139*cb7aa33aSEmmanuel Vadot #interrupt-cells = <2>; 140*cb7aa33aSEmmanuel Vadot }; 141*cb7aa33aSEmmanuel Vadot }; 142*cb7aa33aSEmmanuel Vadot 143*cb7aa33aSEmmanuel Vadot pm8550vs_e: pmic@4 { 144*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550", "qcom,spmi-pmic"; 145*cb7aa33aSEmmanuel Vadot reg = <0x4 SPMI_USID>; 146*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 147*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 148*cb7aa33aSEmmanuel Vadot 149*cb7aa33aSEmmanuel Vadot pm8550vs_e_temp_alarm: temp-alarm@a00 { 150*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 151*cb7aa33aSEmmanuel Vadot reg = <0xa00>; 152*cb7aa33aSEmmanuel Vadot interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 153*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 154*cb7aa33aSEmmanuel Vadot }; 155*cb7aa33aSEmmanuel Vadot 156*cb7aa33aSEmmanuel Vadot pm8550vs_e_gpios: gpio@8800 { 157*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; 158*cb7aa33aSEmmanuel Vadot reg = <0x8800>; 159*cb7aa33aSEmmanuel Vadot gpio-controller; 160*cb7aa33aSEmmanuel Vadot gpio-ranges = <&pm8550vs_e_gpios 0 0 6>; 161*cb7aa33aSEmmanuel Vadot #gpio-cells = <2>; 162*cb7aa33aSEmmanuel Vadot interrupt-controller; 163*cb7aa33aSEmmanuel Vadot #interrupt-cells = <2>; 164*cb7aa33aSEmmanuel Vadot }; 165*cb7aa33aSEmmanuel Vadot }; 166*cb7aa33aSEmmanuel Vadot 167*cb7aa33aSEmmanuel Vadot pm8550vs_g: pmic@6 { 168*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550", "qcom,spmi-pmic"; 169*cb7aa33aSEmmanuel Vadot reg = <0x6 SPMI_USID>; 170*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 171*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 172*cb7aa33aSEmmanuel Vadot 173*cb7aa33aSEmmanuel Vadot pm8550vs_g_temp_alarm: temp-alarm@a00 { 174*cb7aa33aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 175*cb7aa33aSEmmanuel Vadot reg = <0xa00>; 176*cb7aa33aSEmmanuel Vadot interrupts = <0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 177*cb7aa33aSEmmanuel Vadot #thermal-sensor-cells = <0>; 178*cb7aa33aSEmmanuel Vadot }; 179*cb7aa33aSEmmanuel Vadot 180*cb7aa33aSEmmanuel Vadot pm8550vs_g_gpios: gpio@8800 { 181*cb7aa33aSEmmanuel Vadot compatible = "qcom,pm8550vs-gpio", "qcom,spmi-gpio"; 182*cb7aa33aSEmmanuel Vadot reg = <0x8800>; 183*cb7aa33aSEmmanuel Vadot gpio-controller; 184*cb7aa33aSEmmanuel Vadot gpio-ranges = <&pm8550vs_g_gpios 0 0 6>; 185*cb7aa33aSEmmanuel Vadot #gpio-cells = <2>; 186*cb7aa33aSEmmanuel Vadot interrupt-controller; 187*cb7aa33aSEmmanuel Vadot #interrupt-cells = <2>; 188*cb7aa33aSEmmanuel Vadot }; 189*cb7aa33aSEmmanuel Vadot }; 190*cb7aa33aSEmmanuel Vadot}; 191