1*b557471bSBhupesh Sharma// SPDX-License-Identifier: BSD-3-Clause 2*b557471bSBhupesh Sharma/* 3*b557471bSBhupesh Sharma * Copyright (c) 2021, Linaro Limited 4*b557471bSBhupesh Sharma */ 5*b557471bSBhupesh Sharma 6*b557471bSBhupesh Sharma#include <dt-bindings/input/input.h> 7*b557471bSBhupesh Sharma#include <dt-bindings/interrupt-controller/irq.h> 8*b557471bSBhupesh Sharma#include <dt-bindings/spmi/spmi.h> 9*b557471bSBhupesh Sharma 10*b557471bSBhupesh Sharma/ { 11*b557471bSBhupesh Sharma thermal-zones { 12*b557471bSBhupesh Sharma pmm8155au-2-thermal { 13*b557471bSBhupesh Sharma polling-delay-passive = <100>; 14*b557471bSBhupesh Sharma polling-delay = <0>; 15*b557471bSBhupesh Sharma 16*b557471bSBhupesh Sharma thermal-sensors = <&pmm8155au_2_temp>; 17*b557471bSBhupesh Sharma 18*b557471bSBhupesh Sharma trips { 19*b557471bSBhupesh Sharma trip0 { 20*b557471bSBhupesh Sharma temperature = <95000>; 21*b557471bSBhupesh Sharma hysteresis = <0>; 22*b557471bSBhupesh Sharma type = "passive"; 23*b557471bSBhupesh Sharma }; 24*b557471bSBhupesh Sharma 25*b557471bSBhupesh Sharma trip1 { 26*b557471bSBhupesh Sharma temperature = <115000>; 27*b557471bSBhupesh Sharma hysteresis = <0>; 28*b557471bSBhupesh Sharma type = "hot"; 29*b557471bSBhupesh Sharma }; 30*b557471bSBhupesh Sharma 31*b557471bSBhupesh Sharma trip2 { 32*b557471bSBhupesh Sharma temperature = <145000>; 33*b557471bSBhupesh Sharma hysteresis = <0>; 34*b557471bSBhupesh Sharma type = "critical"; 35*b557471bSBhupesh Sharma }; 36*b557471bSBhupesh Sharma }; 37*b557471bSBhupesh Sharma }; 38*b557471bSBhupesh Sharma }; 39*b557471bSBhupesh Sharma}; 40*b557471bSBhupesh Sharma 41*b557471bSBhupesh Sharma&spmi_bus { 42*b557471bSBhupesh Sharma pmic@4 { 43*b557471bSBhupesh Sharma compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; 44*b557471bSBhupesh Sharma reg = <0x4 SPMI_USID>; 45*b557471bSBhupesh Sharma #address-cells = <1>; 46*b557471bSBhupesh Sharma #size-cells = <0>; 47*b557471bSBhupesh Sharma 48*b557471bSBhupesh Sharma power-on@800 { 49*b557471bSBhupesh Sharma compatible = "qcom,pm8916-pon"; 50*b557471bSBhupesh Sharma reg = <0x0800>; 51*b557471bSBhupesh Sharma 52*b557471bSBhupesh Sharma status = "disabled"; 53*b557471bSBhupesh Sharma }; 54*b557471bSBhupesh Sharma 55*b557471bSBhupesh Sharma pmm8155au_2_temp: temp-alarm@2400 { 56*b557471bSBhupesh Sharma compatible = "qcom,spmi-temp-alarm"; 57*b557471bSBhupesh Sharma reg = <0x2400>; 58*b557471bSBhupesh Sharma interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 59*b557471bSBhupesh Sharma io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>; 60*b557471bSBhupesh Sharma io-channel-names = "thermal"; 61*b557471bSBhupesh Sharma #thermal-sensor-cells = <0>; 62*b557471bSBhupesh Sharma }; 63*b557471bSBhupesh Sharma 64*b557471bSBhupesh Sharma pmm8155au_2_adc: adc@3100 { 65*b557471bSBhupesh Sharma compatible = "qcom,spmi-adc5"; 66*b557471bSBhupesh Sharma reg = <0x3100>; 67*b557471bSBhupesh Sharma #address-cells = <1>; 68*b557471bSBhupesh Sharma #size-cells = <0>; 69*b557471bSBhupesh Sharma #io-channel-cells = <1>; 70*b557471bSBhupesh Sharma interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 71*b557471bSBhupesh Sharma 72*b557471bSBhupesh Sharma ref-gnd@0 { 73*b557471bSBhupesh Sharma reg = <ADC5_REF_GND>; 74*b557471bSBhupesh Sharma qcom,pre-scaling = <1 1>; 75*b557471bSBhupesh Sharma label = "ref_gnd"; 76*b557471bSBhupesh Sharma }; 77*b557471bSBhupesh Sharma 78*b557471bSBhupesh Sharma vref-1p25@1 { 79*b557471bSBhupesh Sharma reg = <ADC5_1P25VREF>; 80*b557471bSBhupesh Sharma qcom,pre-scaling = <1 1>; 81*b557471bSBhupesh Sharma label = "vref_1p25"; 82*b557471bSBhupesh Sharma }; 83*b557471bSBhupesh Sharma 84*b557471bSBhupesh Sharma die-temp@6 { 85*b557471bSBhupesh Sharma reg = <ADC5_DIE_TEMP>; 86*b557471bSBhupesh Sharma qcom,pre-scaling = <1 1>; 87*b557471bSBhupesh Sharma label = "die_temp"; 88*b557471bSBhupesh Sharma }; 89*b557471bSBhupesh Sharma }; 90*b557471bSBhupesh Sharma 91*b557471bSBhupesh Sharma pmm8155au_2_gpios: gpio@c000 { 92*b557471bSBhupesh Sharma compatible = "qcom,pmm8155au-gpio"; 93*b557471bSBhupesh Sharma reg = <0xc000>; 94*b557471bSBhupesh Sharma gpio-controller; 95*b557471bSBhupesh Sharma #gpio-cells = <2>; 96*b557471bSBhupesh Sharma gpio-ranges = <&pmm8155au_2_gpios 0 0 10>; 97*b557471bSBhupesh Sharma interrupt-controller; 98*b557471bSBhupesh Sharma #interrupt-cells = <2>; 99*b557471bSBhupesh Sharma }; 100*b557471bSBhupesh Sharma }; 101*b557471bSBhupesh Sharma 102*b557471bSBhupesh Sharma pmic@5 { 103*b557471bSBhupesh Sharma compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; 104*b557471bSBhupesh Sharma reg = <0x5 SPMI_USID>; 105*b557471bSBhupesh Sharma #address-cells = <1>; 106*b557471bSBhupesh Sharma #size-cells = <0>; 107*b557471bSBhupesh Sharma }; 108*b557471bSBhupesh Sharma}; 109