0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <dt-bindings/iio/qcom,spmi-vadc.h>
0003 #include <dt-bindings/input/linux-event-codes.h>
0004 #include <dt-bindings/interrupt-controller/irq.h>
0005 #include <dt-bindings/spmi/spmi.h>
0006
0007 / {
0008 thermal-zones {
0009 pm8994-thermal {
0010 polling-delay-passive = <250>;
0011 polling-delay = <1000>;
0012
0013 thermal-sensors = <&pm8994_temp>;
0014
0015 trips {
0016 pm8994_alert0: pm8994-alert0 {
0017 temperature = <95000>;
0018 hysteresis = <2000>;
0019 type = "passive";
0020 };
0021 pm8994_crit: pm8994-crit {
0022 temperature = <125000>;
0023 hysteresis = <2000>;
0024 type = "critical";
0025 };
0026 };
0027 };
0028 };
0029 };
0030
0031 &spmi_bus {
0032
0033 pmic@0 {
0034 compatible = "qcom,pm8994", "qcom,spmi-pmic";
0035 reg = <0x0 SPMI_USID>;
0036 #address-cells = <1>;
0037 #size-cells = <0>;
0038
0039 rtc@6000 {
0040 compatible = "qcom,pm8941-rtc";
0041 reg = <0x6000>, <0x6100>;
0042 reg-names = "rtc", "alarm";
0043 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
0044 };
0045
0046 pm8994_pon: pon@800 {
0047 compatible = "qcom,pm8916-pon";
0048 reg = <0x800>;
0049 mode-bootloader = <0x2>;
0050 mode-recovery = <0x1>;
0051
0052 pwrkey {
0053 compatible = "qcom,pm8941-pwrkey";
0054 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
0055 debounce = <15625>;
0056 bias-pull-up;
0057 linux,code = <KEY_POWER>;
0058 };
0059
0060 pm8994_resin: resin {
0061 compatible = "qcom,pm8941-resin";
0062 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
0063 debounce = <15625>;
0064 bias-pull-up;
0065 status = "disabled";
0066 };
0067 };
0068
0069 pm8994_temp: temp-alarm@2400 {
0070 compatible = "qcom,spmi-temp-alarm";
0071 reg = <0x2400>;
0072 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
0073 io-channels = <&pm8994_vadc VADC_DIE_TEMP>;
0074 io-channel-names = "thermal";
0075 #thermal-sensor-cells = <0>;
0076 };
0077
0078 pm8994_vadc: adc@3100 {
0079 compatible = "qcom,spmi-vadc";
0080 reg = <0x3100>;
0081 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
0082 #address-cells = <1>;
0083 #size-cells = <0>;
0084 #io-channel-cells = <1>;
0085
0086 adc-chan@7 {
0087 reg = <VADC_VSYS>;
0088 qcom,pre-scaling = <1 3>;
0089 label = "vph_pwr";
0090 };
0091 adc-chan@8 {
0092 reg = <VADC_DIE_TEMP>;
0093 label = "die_temp";
0094 };
0095 adc-chan@9 {
0096 reg = <VADC_REF_625MV>;
0097 label = "ref_625mv";
0098 };
0099 adc-chan@a {
0100 reg = <VADC_REF_1250MV>;
0101 label = "ref_1250mv";
0102 };
0103 adc-chan@e {
0104 reg = <VADC_GND_REF>;
0105 };
0106 adc-chan@f {
0107 reg = <VADC_VDD_VADC>;
0108 };
0109 };
0110
0111 pm8994_gpios: gpios@c000 {
0112 compatible = "qcom,pm8994-gpio", "qcom,spmi-gpio";
0113 reg = <0xc000>;
0114 gpio-controller;
0115 gpio-ranges = <&pm8994_gpios 0 0 22>;
0116 #gpio-cells = <2>;
0117 interrupt-controller;
0118 #interrupt-cells = <2>;
0119 };
0120
0121 pm8994_mpps: mpps@a000 {
0122 compatible = "qcom,pm8994-mpp", "qcom,spmi-mpp";
0123 reg = <0xa000>;
0124 gpio-controller;
0125 #gpio-cells = <2>;
0126 gpio-ranges = <&pm8994_mpps 0 0 8>;
0127 interrupt-controller;
0128 #interrupt-cells = <2>;
0129 };
0130 };
0131
0132 pmic@1 {
0133 compatible = "qcom,pm8994", "qcom,spmi-pmic";
0134 reg = <0x1 SPMI_USID>;
0135 #address-cells = <1>;
0136 #size-cells = <0>;
0137
0138 pm8994_lpg: lpg {
0139 compatible = "qcom,pm8994-lpg";
0140
0141 #address-cells = <1>;
0142 #size-cells = <0>;
0143 #pwm-cells = <2>;
0144
0145 status = "disabled";
0146 };
0147
0148 pm8994_spmi_regulators: regulators {
0149 compatible = "qcom,pm8994-regulators";
0150 };
0151 };
0152 };