~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/qcom/pm8998.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 /* Copyright 2018 Google LLC. */
  3 
  4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
  5 #include <dt-bindings/input/linux-event-codes.h>
  6 #include <dt-bindings/interrupt-controller/irq.h>
  7 #include <dt-bindings/spmi/spmi.h>
  8 #include <dt-bindings/thermal/thermal.h>
  9 
 10 / {
 11         thermal-zones {
 12                 pm8998-thermal {
 13                         polling-delay-passive = <250>;
 14 
 15                         thermal-sensors = <&pm8998_temp>;
 16 
 17                         trips {
 18                                 pm8998_alert0: pm8998-alert0 {
 19                                         temperature = <105000>;
 20                                         hysteresis = <2000>;
 21                                         type = "passive";
 22                                 };
 23                                 pm8998_crit: pm8998-crit {
 24                                         temperature = <125000>;
 25                                         hysteresis = <2000>;
 26                                         type = "critical";
 27                                 };
 28                         };
 29                 };
 30         };
 31 };
 32 
 33 &spmi_bus {
 34         pm8998_lsid0: pmic@0 {
 35                 compatible = "qcom,pm8998", "qcom,spmi-pmic";
 36                 reg = <0x0 SPMI_USID>;
 37                 #address-cells = <1>;
 38                 #size-cells = <0>;
 39 
 40                 pm8998_pon: pon@800 {
 41                         compatible = "qcom,pm8998-pon";
 42 
 43                         reg = <0x800>;
 44                         mode-bootloader = <0x2>;
 45                         mode-recovery = <0x1>;
 46 
 47                         pm8998_pwrkey: pwrkey {
 48                                 compatible = "qcom,pm8941-pwrkey";
 49                                 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
 50                                 debounce = <15625>;
 51                                 bias-pull-up;
 52                                 linux,code = <KEY_POWER>;
 53                         };
 54 
 55                         pm8998_resin: resin {
 56                                 compatible = "qcom,pm8941-resin";
 57                                 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
 58                                 debounce = <15625>;
 59                                 bias-pull-up;
 60                                 status = "disabled";
 61                         };
 62                 };
 63 
 64                 pm8998_temp: temp-alarm@2400 {
 65                         compatible = "qcom,spmi-temp-alarm";
 66                         reg = <0x2400>;
 67                         interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
 68                         io-channels = <&pm8998_adc ADC5_DIE_TEMP>;
 69                         io-channel-names = "thermal";
 70                         #thermal-sensor-cells = <0>;
 71                 };
 72 
 73                 pm8998_coincell: charger@2800 {
 74                         compatible = "qcom,pm8998-coincell", "qcom,pm8941-coincell";
 75                         reg = <0x2800>;
 76 
 77                         status = "disabled";
 78                 };
 79 
 80                 pm8998_adc: adc@3100 {
 81                         compatible = "qcom,spmi-adc-rev2";
 82                         reg = <0x3100>;
 83                         interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
 84                         #address-cells = <1>;
 85                         #size-cells = <0>;
 86                         #io-channel-cells = <1>;
 87 
 88                         channel@6 {
 89                                 reg = <ADC5_DIE_TEMP>;
 90                                 label = "die_temp";
 91                         };
 92                 };
 93 
 94                 pm8998_adc_tm: adc-tm@3400 {
 95                         compatible = "qcom,spmi-adc-tm-hc";
 96                         reg = <0x3400>;
 97                         interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
 98                         #thermal-sensor-cells = <1>;
 99                         #address-cells = <1>;
100                         #size-cells = <0>;
101                         status = "disabled";
102                 };
103 
104                 rtc@6000 {
105                         compatible = "qcom,pm8941-rtc";
106                         reg = <0x6000>, <0x6100>;
107                         reg-names = "rtc", "alarm";
108                         interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
109                 };
110 
111                 pm8998_gpios: gpio@c000 {
112                         compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
113                         reg = <0xc000>;
114                         gpio-controller;
115                         gpio-ranges = <&pm8998_gpios 0 0 26>;
116                         #gpio-cells = <2>;
117                         interrupt-controller;
118                         #interrupt-cells = <2>;
119                 };
120 
121         };
122 
123         pm8998_lsid1: pmic@1 {
124                 compatible = "qcom,pm8998", "qcom,spmi-pmic";
125                 reg = <0x1 SPMI_USID>;
126                 #address-cells = <1>;
127                 #size-cells = <0>;
128         };
129 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php