15956d97fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 25956d97fSEmmanuel Vadot/* 35956d97fSEmmanuel Vadot * Copyright (c) 2021, Linaro Limited 45956d97fSEmmanuel Vadot */ 55956d97fSEmmanuel Vadot 65956d97fSEmmanuel Vadot#include <dt-bindings/input/input.h> 75956d97fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 85956d97fSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 95956d97fSEmmanuel Vadot 105956d97fSEmmanuel Vadot/ { 115956d97fSEmmanuel Vadot thermal-zones { 125956d97fSEmmanuel Vadot pmm8155au-2-thermal { 135956d97fSEmmanuel Vadot polling-delay-passive = <100>; 145956d97fSEmmanuel Vadot 155956d97fSEmmanuel Vadot thermal-sensors = <&pmm8155au_2_temp>; 165956d97fSEmmanuel Vadot 175956d97fSEmmanuel Vadot trips { 185956d97fSEmmanuel Vadot trip0 { 195956d97fSEmmanuel Vadot temperature = <95000>; 205956d97fSEmmanuel Vadot hysteresis = <0>; 215956d97fSEmmanuel Vadot type = "passive"; 225956d97fSEmmanuel Vadot }; 235956d97fSEmmanuel Vadot 245956d97fSEmmanuel Vadot trip1 { 255956d97fSEmmanuel Vadot temperature = <115000>; 265956d97fSEmmanuel Vadot hysteresis = <0>; 275956d97fSEmmanuel Vadot type = "hot"; 285956d97fSEmmanuel Vadot }; 295956d97fSEmmanuel Vadot 305956d97fSEmmanuel Vadot trip2 { 315956d97fSEmmanuel Vadot temperature = <145000>; 325956d97fSEmmanuel Vadot hysteresis = <0>; 335956d97fSEmmanuel Vadot type = "critical"; 345956d97fSEmmanuel Vadot }; 355956d97fSEmmanuel Vadot }; 365956d97fSEmmanuel Vadot }; 375956d97fSEmmanuel Vadot }; 385956d97fSEmmanuel Vadot}; 395956d97fSEmmanuel Vadot 405956d97fSEmmanuel Vadot&spmi_bus { 415956d97fSEmmanuel Vadot pmic@4 { 425956d97fSEmmanuel Vadot compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; 435956d97fSEmmanuel Vadot reg = <0x4 SPMI_USID>; 445956d97fSEmmanuel Vadot #address-cells = <1>; 455956d97fSEmmanuel Vadot #size-cells = <0>; 465956d97fSEmmanuel Vadot 477ef62cebSEmmanuel Vadot pon@800 { 485956d97fSEmmanuel Vadot compatible = "qcom,pm8916-pon"; 495956d97fSEmmanuel Vadot reg = <0x0800>; 505956d97fSEmmanuel Vadot 515956d97fSEmmanuel Vadot status = "disabled"; 525956d97fSEmmanuel Vadot }; 535956d97fSEmmanuel Vadot 545956d97fSEmmanuel Vadot pmm8155au_2_temp: temp-alarm@2400 { 555956d97fSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 565956d97fSEmmanuel Vadot reg = <0x2400>; 575956d97fSEmmanuel Vadot interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 585956d97fSEmmanuel Vadot io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>; 595956d97fSEmmanuel Vadot io-channel-names = "thermal"; 605956d97fSEmmanuel Vadot #thermal-sensor-cells = <0>; 615956d97fSEmmanuel Vadot }; 625956d97fSEmmanuel Vadot 635956d97fSEmmanuel Vadot pmm8155au_2_adc: adc@3100 { 645956d97fSEmmanuel Vadot compatible = "qcom,spmi-adc5"; 655956d97fSEmmanuel Vadot reg = <0x3100>; 665956d97fSEmmanuel Vadot #address-cells = <1>; 675956d97fSEmmanuel Vadot #size-cells = <0>; 685956d97fSEmmanuel Vadot #io-channel-cells = <1>; 695956d97fSEmmanuel Vadot interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 705956d97fSEmmanuel Vadot 71*aa1a8ff2SEmmanuel Vadot channel@0 { 725956d97fSEmmanuel Vadot reg = <ADC5_REF_GND>; 735956d97fSEmmanuel Vadot qcom,pre-scaling = <1 1>; 745956d97fSEmmanuel Vadot label = "ref_gnd"; 755956d97fSEmmanuel Vadot }; 765956d97fSEmmanuel Vadot 77*aa1a8ff2SEmmanuel Vadot channel@1 { 785956d97fSEmmanuel Vadot reg = <ADC5_1P25VREF>; 795956d97fSEmmanuel Vadot qcom,pre-scaling = <1 1>; 805956d97fSEmmanuel Vadot label = "vref_1p25"; 815956d97fSEmmanuel Vadot }; 825956d97fSEmmanuel Vadot 83*aa1a8ff2SEmmanuel Vadot channel@6 { 845956d97fSEmmanuel Vadot reg = <ADC5_DIE_TEMP>; 855956d97fSEmmanuel Vadot qcom,pre-scaling = <1 1>; 865956d97fSEmmanuel Vadot label = "die_temp"; 875956d97fSEmmanuel Vadot }; 885956d97fSEmmanuel Vadot }; 895956d97fSEmmanuel Vadot 905956d97fSEmmanuel Vadot pmm8155au_2_gpios: gpio@c000 { 91b97ee269SEmmanuel Vadot compatible = "qcom,pmm8155au-gpio", "qcom,spmi-gpio"; 925956d97fSEmmanuel Vadot reg = <0xc000>; 935956d97fSEmmanuel Vadot gpio-controller; 945956d97fSEmmanuel Vadot #gpio-cells = <2>; 955956d97fSEmmanuel Vadot gpio-ranges = <&pmm8155au_2_gpios 0 0 10>; 965956d97fSEmmanuel Vadot interrupt-controller; 975956d97fSEmmanuel Vadot #interrupt-cells = <2>; 985956d97fSEmmanuel Vadot }; 995956d97fSEmmanuel Vadot }; 1005956d97fSEmmanuel Vadot 1015956d97fSEmmanuel Vadot pmic@5 { 1025956d97fSEmmanuel Vadot compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; 1035956d97fSEmmanuel Vadot reg = <0x5 SPMI_USID>; 1045956d97fSEmmanuel Vadot #address-cells = <1>; 1055956d97fSEmmanuel Vadot #size-cells = <0>; 1065956d97fSEmmanuel Vadot }; 1075956d97fSEmmanuel Vadot}; 108