1 // SPDX-License-Identifier: BSD-3-Clause 2 /* Copyright (c) 2022, The Linux Foundation. A 3 4 #include <dt-bindings/iio/qcom,spmi-vadc.h> 5 #include <dt-bindings/interrupt-controller/irq 6 #include <dt-bindings/input/linux-event-codes. 7 #include <dt-bindings/spmi/spmi.h> 8 9 / { 10 thermal-zones { 11 pm8953-thermal { 12 thermal-sensors = <&pm 13 14 trips { 15 trip0 { 16 temper 17 hyster 18 type = 19 }; 20 21 trip1 { 22 temper 23 hyster 24 type = 25 }; 26 27 trip2 { 28 temper 29 hyster 30 type = 31 }; 32 }; 33 }; 34 }; 35 }; 36 37 &spmi_bus { 38 pmic@0 { 39 compatible = "qcom,pm8953", "q 40 reg = <0 SPMI_USID>; 41 #address-cells = <1>; 42 #size-cells = <0>; 43 44 pm8953_pon: pon@800 { 45 compatible = "qcom,pm8 46 reg = <0x800>; 47 mode-bootloader = <0x2 48 mode-recovery = <0x1>; 49 50 pwrkey { 51 compatible = " 52 interrupts = < 53 debounce = <15 54 bias-pull-up; 55 linux,code = < 56 }; 57 58 pm8953_resin: resin { 59 compatible = " 60 interrupts = < 61 debounce = <15 62 bias-pull-up; 63 status = "disa 64 }; 65 }; 66 67 pm8953_temp: temp-alarm@2400 { 68 compatible = "qcom,spm 69 reg = <0x2400>; 70 interrupts = <0x0 0x24 71 io-channels = <&pm8953 72 io-channel-names = "th 73 #thermal-sensor-cells 74 }; 75 76 pm8953_vadc: adc@3100 { 77 compatible = "qcom,spm 78 reg = <0x3100>; 79 interrupts = <0x00 0x3 80 #address-cells = <1>; 81 #size-cells = <0>; 82 #io-channel-cells = <1 83 84 channel@8 { 85 reg = <VADC_DI 86 }; 87 channel@9 { 88 reg = <VADC_RE 89 }; 90 channel@a { 91 reg = <VADC_RE 92 }; 93 channel@c { 94 reg = <VADC_SP 95 }; 96 channel@e { 97 reg = <VADC_GN 98 }; 99 channel@f { 100 reg = <VADC_VD 101 }; 102 }; 103 104 rtc@6000 { 105 compatible = "qcom,pm8 106 reg = <0x6000>, <0x610 107 reg-names = "rtc", "al 108 interrupts = <0x0 0x61 109 }; 110 111 pm8953_gpios: gpio@c000 { 112 compatible = "qcom,pm8 113 reg = <0xc000>; 114 gpio-controller; 115 gpio-ranges = <&pm8953 116 #gpio-cells = <2>; 117 interrupt-controller; 118 #interrupt-cells = <2> 119 }; 120 }; 121 122 pmic@1 { 123 compatible = "qcom,pm8953", "q 124 reg = <1 SPMI_USID>; 125 #address-cells = <1>; 126 #size-cells = <0>; 127 }; 128 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.