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