0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
0004 * Copyright (c) 2019, Linaro Limited
0005 */
0006
0007 #include <dt-bindings/iio/qcom,spmi-vadc.h>
0008 #include <dt-bindings/interrupt-controller/irq.h>
0009 #include <dt-bindings/spmi/spmi.h>
0010
0011 / {
0012 thermal-zones {
0013 pm8150l-thermal {
0014 polling-delay-passive = <100>;
0015 polling-delay = <0>;
0016
0017 thermal-sensors = <&pm8150l_temp>;
0018
0019 trips {
0020 trip0 {
0021 temperature = <95000>;
0022 hysteresis = <0>;
0023 type = "passive";
0024 };
0025
0026 trip1 {
0027 temperature = <115000>;
0028 hysteresis = <0>;
0029 type = "hot";
0030 };
0031
0032 trip2 {
0033 temperature = <145000>;
0034 hysteresis = <0>;
0035 type = "critical";
0036 };
0037 };
0038 };
0039 };
0040 };
0041
0042 &spmi_bus {
0043 pmic@4 {
0044 compatible = "qcom,pm8150l", "qcom,spmi-pmic";
0045 reg = <0x4 SPMI_USID>;
0046 #address-cells = <1>;
0047 #size-cells = <0>;
0048
0049 power-on@800 {
0050 compatible = "qcom,pm8916-pon";
0051 reg = <0x0800>;
0052
0053 status = "disabled";
0054 };
0055
0056 pm8150l_temp: temp-alarm@2400 {
0057 compatible = "qcom,spmi-temp-alarm";
0058 reg = <0x2400>;
0059 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
0060 io-channels = <&pm8150l_adc ADC5_DIE_TEMP>;
0061 io-channel-names = "thermal";
0062 #thermal-sensor-cells = <0>;
0063 };
0064
0065 pm8150l_adc: adc@3100 {
0066 compatible = "qcom,spmi-adc5";
0067 reg = <0x3100>;
0068 #address-cells = <1>;
0069 #size-cells = <0>;
0070 #io-channel-cells = <1>;
0071 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
0072
0073 ref-gnd@0 {
0074 reg = <ADC5_REF_GND>;
0075 qcom,pre-scaling = <1 1>;
0076 label = "ref_gnd";
0077 };
0078
0079 vref-1p25@1 {
0080 reg = <ADC5_1P25VREF>;
0081 qcom,pre-scaling = <1 1>;
0082 label = "vref_1p25";
0083 };
0084
0085 die-temp@6 {
0086 reg = <ADC5_DIE_TEMP>;
0087 qcom,pre-scaling = <1 1>;
0088 label = "die_temp";
0089 };
0090 };
0091
0092 pm8150l_adc_tm: adc-tm@3500 {
0093 compatible = "qcom,spmi-adc-tm5";
0094 reg = <0x3500>;
0095 interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
0096 #thermal-sensor-cells = <1>;
0097 #address-cells = <1>;
0098 #size-cells = <0>;
0099 status = "disabled";
0100 };
0101
0102 pm8150l_gpios: gpio@c000 {
0103 compatible = "qcom,pm8150l-gpio", "qcom,spmi-gpio";
0104 reg = <0xc000>;
0105 gpio-controller;
0106 gpio-ranges = <&pm8150l_gpios 0 0 12>;
0107 #gpio-cells = <2>;
0108 interrupt-controller;
0109 #interrupt-cells = <2>;
0110 };
0111 };
0112
0113 pmic@5 {
0114 compatible = "qcom,pm8150l", "qcom,spmi-pmic";
0115 reg = <0x5 SPMI_USID>;
0116 #address-cells = <1>;
0117 #size-cells = <0>;
0118
0119 pm8150l_lpg: lpg {
0120 compatible = "qcom,pm8150l-lpg";
0121
0122 #address-cells = <1>;
0123 #size-cells = <0>;
0124 #pwm-cells = <2>;
0125
0126 status = "disabled";
0127 };
0128
0129 };
0130 };