1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2017-2019, The Linux Foundati 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2019, Linaro Limited 4 * Copyright (c) 2019, Linaro Limited 5 */ 5 */ 6 6 7 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 9 #include <dt-bindings/spmi/spmi.h> 10 #include <dt-bindings/iio/qcom,spmi-vadc.h> 10 #include <dt-bindings/iio/qcom,spmi-vadc.h> 11 11 12 / { 12 / { 13 thermal-zones { 13 thermal-zones { 14 pm8150-thermal { 14 pm8150-thermal { 15 polling-delay-passive 15 polling-delay-passive = <100>; 16 16 17 thermal-sensors = <&pm 17 thermal-sensors = <&pm8150_temp>; 18 18 19 trips { 19 trips { 20 trip0 { 20 trip0 { 21 temper 21 temperature = <95000>; 22 hyster 22 hysteresis = <0>; 23 type = 23 type = "passive"; 24 }; 24 }; 25 25 26 trip1 { 26 trip1 { 27 temper 27 temperature = <115000>; 28 hyster 28 hysteresis = <0>; 29 type = 29 type = "hot"; 30 }; 30 }; 31 31 32 trip2 { 32 trip2 { 33 temper 33 temperature = <145000>; 34 hyster 34 hysteresis = <0>; 35 type = 35 type = "critical"; 36 }; 36 }; 37 }; 37 }; 38 }; 38 }; 39 }; 39 }; 40 }; 40 }; 41 41 42 &spmi_bus { 42 &spmi_bus { 43 pm8150_0: pmic@0 { 43 pm8150_0: pmic@0 { 44 compatible = "qcom,pm8150", "q 44 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 45 reg = <0x0 SPMI_USID>; 45 reg = <0x0 SPMI_USID>; 46 #address-cells = <1>; 46 #address-cells = <1>; 47 #size-cells = <0>; 47 #size-cells = <0>; 48 48 49 pon: pon@800 { 49 pon: pon@800 { 50 compatible = "qcom,pm8 50 compatible = "qcom,pm8998-pon"; 51 reg = <0x0800>; 51 reg = <0x0800>; 52 mode-bootloader = <0x2 52 mode-bootloader = <0x2>; 53 mode-recovery = <0x1>; 53 mode-recovery = <0x1>; 54 54 55 pon_pwrkey: pwrkey { 55 pon_pwrkey: pwrkey { 56 compatible = " 56 compatible = "qcom,pm8941-pwrkey"; 57 interrupts = < 57 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; 58 debounce = <15 58 debounce = <15625>; 59 bias-pull-up; 59 bias-pull-up; 60 linux,code = < 60 linux,code = <KEY_POWER>; 61 61 62 status = "disa 62 status = "disabled"; 63 }; 63 }; 64 64 65 pon_resin: resin { 65 pon_resin: resin { 66 compatible = " 66 compatible = "qcom,pm8941-resin"; 67 interrupts = < 67 interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>; 68 debounce = <15 68 debounce = <15625>; 69 bias-pull-up; 69 bias-pull-up; 70 70 71 status = "disa 71 status = "disabled"; 72 }; 72 }; 73 }; 73 }; 74 74 75 pm8150_temp: temp-alarm@2400 { 75 pm8150_temp: temp-alarm@2400 { 76 compatible = "qcom,spm 76 compatible = "qcom,spmi-temp-alarm"; 77 reg = <0x2400>; 77 reg = <0x2400>; 78 interrupts = <0x0 0x24 78 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 79 io-channels = <&pm8150 79 io-channels = <&pm8150_adc ADC5_DIE_TEMP>; 80 io-channel-names = "th 80 io-channel-names = "thermal"; 81 #thermal-sensor-cells 81 #thermal-sensor-cells = <0>; 82 }; 82 }; 83 83 84 pm8150_adc: adc@3100 { 84 pm8150_adc: adc@3100 { 85 compatible = "qcom,spm 85 compatible = "qcom,spmi-adc5"; 86 reg = <0x3100>; 86 reg = <0x3100>; 87 #address-cells = <1>; 87 #address-cells = <1>; 88 #size-cells = <0>; 88 #size-cells = <0>; 89 #io-channel-cells = <1 89 #io-channel-cells = <1>; 90 interrupts = <0x0 0x31 90 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 91 91 92 channel@0 { 92 channel@0 { 93 reg = <ADC5_RE 93 reg = <ADC5_REF_GND>; 94 qcom,pre-scali 94 qcom,pre-scaling = <1 1>; 95 label = "ref_g 95 label = "ref_gnd"; 96 }; 96 }; 97 97 98 channel@1 { 98 channel@1 { 99 reg = <ADC5_1P 99 reg = <ADC5_1P25VREF>; 100 qcom,pre-scali 100 qcom,pre-scaling = <1 1>; 101 label = "vref_ 101 label = "vref_1p25"; 102 }; 102 }; 103 103 104 channel@6 { 104 channel@6 { 105 reg = <ADC5_DI 105 reg = <ADC5_DIE_TEMP>; 106 qcom,pre-scali 106 qcom,pre-scaling = <1 1>; 107 label = "die_t 107 label = "die_temp"; 108 }; 108 }; 109 }; 109 }; 110 110 111 pm8150_adc_tm: adc-tm@3500 { 111 pm8150_adc_tm: adc-tm@3500 { 112 compatible = "qcom,spm 112 compatible = "qcom,spmi-adc-tm5"; 113 reg = <0x3500>; 113 reg = <0x3500>; 114 interrupts = <0x0 0x35 114 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 115 #thermal-sensor-cells 115 #thermal-sensor-cells = <1>; 116 #address-cells = <1>; 116 #address-cells = <1>; 117 #size-cells = <0>; 117 #size-cells = <0>; 118 status = "disabled"; 118 status = "disabled"; 119 }; 119 }; 120 120 121 rtc@6000 { 121 rtc@6000 { 122 compatible = "qcom,pm8 122 compatible = "qcom,pm8941-rtc"; 123 reg = <0x6000>, <0x610 123 reg = <0x6000>, <0x6100>; 124 reg-names = "rtc", "al 124 reg-names = "rtc", "alarm"; 125 interrupts = <0x0 0x61 125 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; 126 }; 126 }; 127 127 128 pm8150_gpios: gpio@c000 { 128 pm8150_gpios: gpio@c000 { 129 compatible = "qcom,pm8 129 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 130 reg = <0xc000>; 130 reg = <0xc000>; 131 gpio-controller; 131 gpio-controller; 132 gpio-ranges = <&pm8150 132 gpio-ranges = <&pm8150_gpios 0 0 10>; 133 #gpio-cells = <2>; 133 #gpio-cells = <2>; 134 interrupt-controller; 134 interrupt-controller; 135 #interrupt-cells = <2> 135 #interrupt-cells = <2>; 136 }; 136 }; 137 }; 137 }; 138 138 139 pmic@1 { 139 pmic@1 { 140 compatible = "qcom,pm8150", "q 140 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 141 reg = <0x1 SPMI_USID>; 141 reg = <0x1 SPMI_USID>; 142 #address-cells = <1>; 142 #address-cells = <1>; 143 #size-cells = <0>; 143 #size-cells = <0>; 144 }; 144 }; 145 }; 145 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.