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