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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: BSD-3-Clause
  2 /*
  3  * Copyright (c) 2021, Linaro Limited
  4  */
  5 
  6 #include <dt-bindings/input/input.h>
  7 #include <dt-bindings/interrupt-controller/irq.h>
  8 #include <dt-bindings/spmi/spmi.h>
  9 
 10 / {
 11         thermal-zones {
 12                 pmm8155au-2-thermal {
 13                         polling-delay-passive = <100>;
 14 
 15                         thermal-sensors = <&pmm8155au_2_temp>;
 16 
 17                         trips {
 18                                 trip0 {
 19                                         temperature = <95000>;
 20                                         hysteresis = <0>;
 21                                         type = "passive";
 22                                 };
 23 
 24                                 trip1 {
 25                                         temperature = <115000>;
 26                                         hysteresis = <0>;
 27                                         type = "hot";
 28                                 };
 29 
 30                                 trip2 {
 31                                         temperature = <145000>;
 32                                         hysteresis = <0>;
 33                                         type = "critical";
 34                                 };
 35                         };
 36                 };
 37         };
 38 };
 39 
 40 &spmi_bus {
 41         pmic@4 {
 42                 compatible = "qcom,pmm8155au", "qcom,spmi-pmic";
 43                 reg = <0x4 SPMI_USID>;
 44                 #address-cells = <1>;
 45                 #size-cells = <0>;
 46 
 47                 pon@800 {
 48                         compatible = "qcom,pm8916-pon";
 49                         reg = <0x0800>;
 50 
 51                         status = "disabled";
 52                 };
 53 
 54                 pmm8155au_2_temp: temp-alarm@2400 {
 55                         compatible = "qcom,spmi-temp-alarm";
 56                         reg = <0x2400>;
 57                         interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
 58                         io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>;
 59                         io-channel-names = "thermal";
 60                         #thermal-sensor-cells = <0>;
 61                 };
 62 
 63                 pmm8155au_2_adc: adc@3100 {
 64                         compatible = "qcom,spmi-adc5";
 65                         reg = <0x3100>;
 66                         #address-cells = <1>;
 67                         #size-cells = <0>;
 68                         #io-channel-cells = <1>;
 69                         interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
 70 
 71                         channel@0 {
 72                                 reg = <ADC5_REF_GND>;
 73                                 qcom,pre-scaling = <1 1>;
 74                                 label = "ref_gnd";
 75                         };
 76 
 77                         channel@1 {
 78                                 reg = <ADC5_1P25VREF>;
 79                                 qcom,pre-scaling = <1 1>;
 80                                 label = "vref_1p25";
 81                         };
 82 
 83                         channel@6 {
 84                                 reg = <ADC5_DIE_TEMP>;
 85                                 qcom,pre-scaling = <1 1>;
 86                                 label = "die_temp";
 87                         };
 88                 };
 89 
 90                 pmm8155au_2_gpios: gpio@c000 {
 91                         compatible = "qcom,pmm8155au-gpio", "qcom,spmi-gpio";
 92                         reg = <0xc000>;
 93                         gpio-controller;
 94                         #gpio-cells = <2>;
 95                         gpio-ranges = <&pmm8155au_2_gpios 0 0 10>;
 96                         interrupt-controller;
 97                         #interrupt-cells = <2>;
 98                 };
 99         };
100 
101         pmic@5 {
102                 compatible = "qcom,pmm8155au", "qcom,spmi-pmic";
103                 reg = <0x5 SPMI_USID>;
104                 #address-cells = <1>;
105                 #size-cells = <0>;
106         };
107 };

~ [ 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