0001 // SPDX-License-Identifier: BSD-3-Clause
0002
0003 /*
0004 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
0005 * Copyright (c) 2020, Linaro Limited
0006 */
0007
0008 #include <dt-bindings/iio/qcom,spmi-vadc.h>
0009 #include <dt-bindings/interrupt-controller/irq.h>
0010 #include <dt-bindings/spmi/spmi.h>
0011
0012 &spmi_bus {
0013 pmic@8 {
0014 compatible = "qcom,pmx55", "qcom,spmi-pmic";
0015 reg = <0x8 SPMI_USID>;
0016 #address-cells = <1>;
0017 #size-cells = <0>;
0018
0019 power-on@800 {
0020 compatible = "qcom,pm8916-pon";
0021 reg = <0x0800>;
0022
0023 status = "disabled";
0024 };
0025
0026 pmx55_temp: temp-alarm@2400 {
0027 compatible = "qcom,spmi-temp-alarm";
0028 reg = <0x2400>;
0029 interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
0030 io-channels = <&pmx55_adc ADC5_DIE_TEMP>;
0031 io-channel-names = "thermal";
0032 #thermal-sensor-cells = <0>;
0033 };
0034
0035 pmx55_adc: adc@3100 {
0036 compatible = "qcom,spmi-adc5";
0037 reg = <0x3100>;
0038 #address-cells = <1>;
0039 #size-cells = <0>;
0040 #io-channel-cells = <1>;
0041 interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
0042
0043 ref-gnd@0 {
0044 reg = <ADC5_REF_GND>;
0045 qcom,pre-scaling = <1 1>;
0046 label = "ref_gnd";
0047 };
0048
0049 vref-1p25@1 {
0050 reg = <ADC5_1P25VREF>;
0051 qcom,pre-scaling = <1 1>;
0052 label = "vref_1p25";
0053 };
0054
0055 die-temp@6 {
0056 reg = <ADC5_DIE_TEMP>;
0057 qcom,pre-scaling = <1 1>;
0058 label = "die_temp";
0059 };
0060
0061 chg-temp@9 {
0062 reg = <ADC5_CHG_TEMP>;
0063 qcom,pre-scaling = <1 1>;
0064 label = "chg_temp";
0065 };
0066 };
0067
0068 pmx55_gpios: gpio@c000 {
0069 compatible = "qcom,pmx55-gpio", "qcom,spmi-gpio";
0070 reg = <0xc000>;
0071 gpio-controller;
0072 gpio-ranges = <&pmx55_gpios 0 0 11>;
0073 #gpio-cells = <2>;
0074 interrupt-controller;
0075 #interrupt-cells = <2>;
0076 };
0077 };
0078
0079 pmic@9 {
0080 compatible = "qcom,pmx55", "qcom,spmi-pmic";
0081 reg = <0x9 SPMI_USID>;
0082 #address-cells = <1>;
0083 #size-cells = <0>;
0084 };
0085 };