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