1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (c) 2018, Linaro Limited 4 */ 5 6 #include <dt-bindings/spmi/spmi.h> 7 #include <dt-bindings/input/linux-event-codes. 8 #include <dt-bindings/iio/qcom,spmi-vadc.h> 9 #include <dt-bindings/thermal/thermal.h> 10 11 / { 12 thermal-zones { 13 pms405-thermal { 14 polling-delay-passive 15 16 thermal-sensors = <&pm 17 18 trips { 19 pms405_alert0: 20 temper 21 hyster 22 type = 23 }; 24 pms405_crit: p 25 temper 26 hyster 27 type = 28 }; 29 }; 30 }; 31 }; 32 }; 33 34 &spmi_bus { 35 pms405_0: pms405@0 { 36 compatible = "qcom,pms405", "q 37 reg = <0x0 SPMI_USID>; 38 #address-cells = <1>; 39 #size-cells = <0>; 40 41 pms405_gpios: gpio@c000 { 42 compatible = "qcom,pms 43 reg = <0xc000>; 44 gpio-controller; 45 gpio-ranges = <&pms405 46 #gpio-cells = <2>; 47 interrupt-controller; 48 #interrupt-cells = <2> 49 }; 50 51 pon@800 { 52 compatible = "qcom,pms 53 reg = <0x0800>; 54 mode-bootloader = <0x2 55 mode-recovery = <0x1>; 56 57 pwrkey { 58 compatible = " 59 interrupts = < 60 debounce = <15 61 bias-pull-up; 62 linux,code = < 63 }; 64 }; 65 66 pms405_temp: temp-alarm@2400 { 67 compatible = "qcom,spm 68 reg = <0x2400>; 69 interrupts = <0 0x24 0 70 io-channels = <&pms405 71 io-channel-names = "th 72 #thermal-sensor-cells 73 }; 74 75 pms405_adc: adc@3100 { 76 compatible = "qcom,pms 77 reg = <0x3100>; 78 interrupts = <0x0 0x31 79 #address-cells = <1>; 80 #size-cells = <0>; 81 #io-channel-cells = <1 82 83 channel@0 { 84 reg = <ADC5_RE 85 qcom,pre-scali 86 label = "ref_g 87 }; 88 89 channel@1 { 90 reg = <ADC5_1P 91 qcom,pre-scali 92 label = "vref_ 93 }; 94 95 channel@131 { 96 reg = <ADC5_VP 97 qcom,pre-scali 98 label = "vph_p 99 }; 100 101 channel@6 { 102 reg = <ADC5_DI 103 qcom,pre-scali 104 label = "die_t 105 }; 106 107 channel@77 { 108 reg = <ADC5_AM 109 qcom,ratiometr 110 qcom,hw-settle 111 qcom,pre-scali 112 label = "pa_th 113 }; 114 115 channel@79 { 116 reg = <ADC5_AM 117 qcom,ratiometr 118 qcom,hw-settle 119 qcom,pre-scali 120 label = "pa_th 121 }; 122 123 channel@76 { 124 reg = <ADC5_XO 125 qcom,ratiometr 126 qcom,hw-settle 127 qcom,pre-scali 128 label = "xo_th 129 }; 130 }; 131 132 rtc@6000 { 133 compatible = "qcom,pm8 134 reg = <0x6000>, <0x610 135 reg-names = "rtc", "al 136 interrupts = <0x0 0x61 137 }; 138 }; 139 140 pms405_1: pms405@1 { 141 compatible = "qcom,pms405", "q 142 reg = <0x1 SPMI_USID>; 143 144 pms405_spmi_regulators: regula 145 compatible = "qcom,pms 146 }; 147 }; 148 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.