1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2019, The Linux Foundation. All rights reserved. 4 */ 5 6 #include <dt-bindings/iio/qcom,spmi-vadc.h> 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/spmi/spmi.h> 9 10 / { 11 thermal-zones { 12 pm6150l-thermal { 13 thermal-sensors = <&pm6150l_temp>; 14 15 trips { 16 trip0 { 17 temperature = <95000>; 18 hysteresis = <0>; 19 type = "passive"; 20 }; 21 22 trip1 { 23 temperature = <115000>; 24 hysteresis = <0>; 25 type = "hot"; 26 }; 27 28 trip2 { 29 temperature = <125000>; 30 hysteresis = <0>; 31 type = "critical"; 32 }; 33 }; 34 }; 35 }; 36 }; 37 38 &spmi_bus { 39 pm6150l_lsid4: pmic@4 { 40 compatible = "qcom,pm6150l", "qcom,spmi-pmic"; 41 reg = <0x4 SPMI_USID>; 42 #address-cells = <1>; 43 #size-cells = <0>; 44 45 pm6150l_temp: temp-alarm@2400 { 46 compatible = "qcom,spmi-temp-alarm"; 47 reg = <0x2400>; 48 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 49 #thermal-sensor-cells = <0>; 50 }; 51 52 pm6150l_adc: adc@3100 { 53 compatible = "qcom,spmi-adc5"; 54 reg = <0x3100>; 55 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 56 #address-cells = <1>; 57 #size-cells = <0>; 58 #io-channel-cells = <1>; 59 60 channel@0 { 61 reg = <ADC5_REF_GND>; 62 qcom,pre-scaling = <1 1>; 63 label = "ref_gnd"; 64 }; 65 66 channel@1 { 67 reg = <ADC5_1P25VREF>; 68 qcom,pre-scaling = <1 1>; 69 label = "vref_1p25"; 70 }; 71 72 channel@6 { 73 reg = <ADC5_DIE_TEMP>; 74 qcom,pre-scaling = <1 1>; 75 label = "die_temp"; 76 }; 77 78 channel@83 { 79 reg = <ADC5_VPH_PWR>; 80 qcom,pre-scaling = <1 3>; 81 label = "vph_pwr"; 82 }; 83 }; 84 85 pm6150l_adc_tm: adc-tm@3500 { 86 compatible = "qcom,spmi-adc-tm5"; 87 reg = <0x3500>; 88 interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 89 #thermal-sensor-cells = <1>; 90 #address-cells = <1>; 91 #size-cells = <0>; 92 status = "disabled"; 93 }; 94 95 pm6150l_gpios: gpio@c000 { 96 compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio"; 97 reg = <0xc000>; 98 gpio-controller; 99 gpio-ranges = <&pm6150l_gpios 0 0 12>; 100 #gpio-cells = <2>; 101 interrupt-controller; 102 #interrupt-cells = <2>; 103 }; 104 }; 105 106 pm6150l_lsid5: pmic@5 { 107 compatible = "qcom,pm6150l", "qcom,spmi-pmic"; 108 reg = <0x5 SPMI_USID>; 109 #address-cells = <1>; 110 #size-cells = <0>; 111 112 pm6150l_flash: led-controller@d300 { 113 compatible = "qcom,pm6150l-flash-led", "qcom,spmi-flash-led"; 114 reg = <0xd300>; 115 status = "disabled"; 116 }; 117 118 pm6150l_lpg: pwm { 119 compatible = "qcom,pm6150l-lpg", "qcom,pm8150l-lpg"; 120 121 #address-cells = <1>; 122 #size-cells = <0>; 123 #pwm-cells = <2>; 124 125 status = "disabled"; 126 }; 127 128 pm6150l_wled: leds@d800 { 129 compatible = "qcom,pm6150l-wled"; 130 reg = <0xd800>, <0xd900>; 131 interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, 132 <0x5 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; 133 interrupt-names = "ovp", "short"; 134 label = "backlight"; 135 136 status = "disabled"; 137 }; 138 }; 139 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.