1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* !! 2 // Copyright (c) 2019, The Linux Foundation. All rights reserved. 3 * Copyright (c) 2019, The Linux Foundation. A << 4 */ << 5 3 6 #include <dt-bindings/iio/qcom,spmi-vadc.h> 4 #include <dt-bindings/iio/qcom,spmi-vadc.h> 7 #include <dt-bindings/input/linux-event-codes. 5 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/interrupt-controller/irq 6 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 7 #include <dt-bindings/spmi/spmi.h> 10 #include <dt-bindings/thermal/thermal.h> 8 #include <dt-bindings/thermal/thermal.h> 11 9 12 / { 10 / { 13 thermal-zones { 11 thermal-zones { 14 pm6150_thermal: pm6150-thermal 12 pm6150_thermal: pm6150-thermal { 15 polling-delay-passive 13 polling-delay-passive = <100>; 16 !! 14 polling-delay = <0>; 17 thermal-sensors = <&pm 15 thermal-sensors = <&pm6150_temp>; 18 16 19 trips { 17 trips { 20 pm6150_trip0: 18 pm6150_trip0: trip0 { 21 temper 19 temperature = <95000>; 22 hyster 20 hysteresis = <0>; 23 type = 21 type = "passive"; 24 }; 22 }; 25 23 26 pm6150_crit: c 24 pm6150_crit: crit { 27 temper 25 temperature = <115000>; 28 hyster 26 hysteresis = <0>; 29 type = 27 type = "critical"; 30 }; 28 }; 31 }; 29 }; 32 }; 30 }; 33 }; 31 }; 34 }; 32 }; 35 33 36 &spmi_bus { 34 &spmi_bus { 37 pm6150_lsid0: pmic@0 { 35 pm6150_lsid0: pmic@0 { 38 compatible = "qcom,pm6150", "q 36 compatible = "qcom,pm6150", "qcom,spmi-pmic"; 39 reg = <0x0 SPMI_USID>; 37 reg = <0x0 SPMI_USID>; 40 #address-cells = <1>; 38 #address-cells = <1>; 41 #size-cells = <0>; 39 #size-cells = <0>; 42 40 43 pm6150_pon: pon@800 { 41 pm6150_pon: pon@800 { 44 compatible = "qcom,pm8 42 compatible = "qcom,pm8998-pon"; 45 reg = <0x800>; 43 reg = <0x800>; 46 mode-bootloader = <0x2 44 mode-bootloader = <0x2>; 47 mode-recovery = <0x1>; 45 mode-recovery = <0x1>; 48 46 49 pm6150_pwrkey: pwrkey 47 pm6150_pwrkey: pwrkey { 50 compatible = " 48 compatible = "qcom,pm8941-pwrkey"; 51 interrupts = < 49 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 52 debounce = <15 50 debounce = <15625>; 53 bias-pull-up; 51 bias-pull-up; 54 linux,code = < 52 linux,code = <KEY_POWER>; 55 }; 53 }; 56 << 57 pm6150_resin: resin { << 58 compatible = " << 59 interrupts = < << 60 debounce = <15 << 61 bias-pull-up; << 62 status = "disa << 63 }; << 64 }; << 65 << 66 pm6150_vbus: usb-vbus-regulato << 67 compatible = "qcom,pm6 << 68 "qcom,pm8 << 69 reg = <0x1100>; << 70 status = "disabled"; << 71 }; << 72 << 73 pm6150_typec: typec@1500 { << 74 compatible = "qcom,pm6 << 75 "qcom,pm8 << 76 reg = <0x1500>, <0x170 << 77 interrupts = <0x0 0x15 << 78 <0x0 0x15 << 79 <0x0 0x15 << 80 <0x0 0x15 << 81 <0x0 0x15 << 82 <0x0 0x15 << 83 <0x0 0x15 << 84 <0x0 0x15 << 85 <0x0 0x17 << 86 <0x0 0x17 << 87 <0x0 0x17 << 88 <0x0 0x17 << 89 <0x0 0x17 << 90 <0x0 0x17 << 91 <0x0 0x17 << 92 <0x0 0x17 << 93 interrupt-names = "or- << 94 "vpd << 95 "cc- << 96 "vco << 97 "vbu << 98 "att << 99 "leg << 100 "try << 101 "sig << 102 "sig << 103 "msg << 104 "msg << 105 "msg << 106 "msg << 107 "msg << 108 "fr- << 109 status = "disabled"; << 110 }; 54 }; 111 55 112 pm6150_temp: temp-alarm@2400 { 56 pm6150_temp: temp-alarm@2400 { 113 compatible = "qcom,spm 57 compatible = "qcom,spmi-temp-alarm"; 114 reg = <0x2400>; 58 reg = <0x2400>; 115 interrupts = <0x0 0x24 59 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; 116 io-channels = <&pm6150 60 io-channels = <&pm6150_adc ADC5_DIE_TEMP>; 117 io-channel-names = "th 61 io-channel-names = "thermal"; 118 #thermal-sensor-cells 62 #thermal-sensor-cells = <0>; 119 }; 63 }; 120 64 121 pm6150_adc: adc@3100 { 65 pm6150_adc: adc@3100 { 122 compatible = "qcom,spm 66 compatible = "qcom,spmi-adc5"; 123 reg = <0x3100>; 67 reg = <0x3100>; 124 interrupts = <0x0 0x31 68 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 125 #address-cells = <1>; 69 #address-cells = <1>; 126 #size-cells = <0>; 70 #size-cells = <0>; 127 #io-channel-cells = <1 71 #io-channel-cells = <1>; 128 72 129 channel@6 { !! 73 adc-chan@6 { 130 reg = <ADC5_DI 74 reg = <ADC5_DIE_TEMP>; 131 label = "die_t 75 label = "die_temp"; 132 }; 76 }; 133 }; 77 }; 134 78 135 pm6150_adc_tm: adc-tm@3500 { 79 pm6150_adc_tm: adc-tm@3500 { 136 compatible = "qcom,spm 80 compatible = "qcom,spmi-adc-tm5"; 137 reg = <0x3500>; 81 reg = <0x3500>; 138 interrupts = <0x0 0x35 82 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 139 #thermal-sensor-cells 83 #thermal-sensor-cells = <1>; 140 #address-cells = <1>; 84 #address-cells = <1>; 141 #size-cells = <0>; 85 #size-cells = <0>; 142 status = "disabled"; 86 status = "disabled"; 143 }; 87 }; 144 88 145 pm6150_rtc: rtc@6000 { !! 89 pm6150_gpio: gpios@c000 { 146 compatible = "qcom,pm8 << 147 reg = <0x6000>, <0x610 << 148 reg-names = "rtc", "al << 149 interrupts = <0x0 0x61 << 150 status = "disabled"; << 151 }; << 152 << 153 pm6150_gpios: gpio@c000 { << 154 compatible = "qcom,pm6 90 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; 155 reg = <0xc000>; 91 reg = <0xc000>; 156 gpio-controller; 92 gpio-controller; 157 gpio-ranges = <&pm6150 !! 93 gpio-ranges = <&pm6150_gpio 0 0 10>; 158 #gpio-cells = <2>; 94 #gpio-cells = <2>; 159 interrupt-controller; 95 interrupt-controller; 160 #interrupt-cells = <2> 96 #interrupt-cells = <2>; 161 }; 97 }; 162 }; 98 }; 163 99 164 pm6150_lsid1: pmic@1 { 100 pm6150_lsid1: pmic@1 { 165 compatible = "qcom,pm6150", "q 101 compatible = "qcom,pm6150", "qcom,spmi-pmic"; 166 reg = <0x1 SPMI_USID>; 102 reg = <0x1 SPMI_USID>; 167 #address-cells = <1>; 103 #address-cells = <1>; 168 #size-cells = <0>; 104 #size-cells = <0>; 169 << 170 pm6150_vib: vibrator@5300 { << 171 compatible = "qcom,pm6 << 172 reg = <0x5300>; << 173 status = "disabled"; << 174 }; << 175 }; 105 }; 176 }; 106 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.