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

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/qcom/pm6150l.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: BSD-3-Clause
  2 /*
  3  * Copyright (c) 2019, The Linux Foundation. All rights reserved.
  4  */
  5 
  6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
  7 #include <dt-bindings/interrupt-controller/irq.h>
  8 #include <dt-bindings/spmi/spmi.h>
  9 
 10 / {
 11         thermal-zones {
 12                 pm6150l-thermal {
 13                         thermal-sensors = <&pm6150l_temp>;
 14 
 15                         trips {
 16                                 trip0 {
 17                                         temperature = <95000>;
 18                                         hysteresis = <0>;
 19                                         type = "passive";
 20                                 };
 21 
 22                                 trip1 {
 23                                         temperature = <115000>;
 24                                         hysteresis = <0>;
 25                                         type = "hot";
 26                                 };
 27 
 28                                 trip2 {
 29                                         temperature = <125000>;
 30                                         hysteresis = <0>;
 31                                         type = "critical";
 32                                 };
 33                         };
 34                 };
 35         };
 36 };
 37 
 38 &spmi_bus {
 39         pm6150l_lsid4: pmic@4 {
 40                 compatible = "qcom,pm6150l", "qcom,spmi-pmic";
 41                 reg = <0x4 SPMI_USID>;
 42                 #address-cells = <1>;
 43                 #size-cells = <0>;
 44 
 45                 pm6150l_temp: temp-alarm@2400 {
 46                         compatible = "qcom,spmi-temp-alarm";
 47                         reg = <0x2400>;
 48                         interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
 49                         #thermal-sensor-cells = <0>;
 50                 };
 51 
 52                 pm6150l_adc: adc@3100 {
 53                         compatible = "qcom,spmi-adc5";
 54                         reg = <0x3100>;
 55                         interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
 56                         #address-cells = <1>;
 57                         #size-cells = <0>;
 58                         #io-channel-cells = <1>;
 59 
 60                         channel@0 {
 61                                 reg = <ADC5_REF_GND>;
 62                                 qcom,pre-scaling = <1 1>;
 63                                 label = "ref_gnd";
 64                         };
 65 
 66                         channel@1 {
 67                                 reg = <ADC5_1P25VREF>;
 68                                 qcom,pre-scaling = <1 1>;
 69                                 label = "vref_1p25";
 70                         };
 71 
 72                         channel@6 {
 73                                 reg = <ADC5_DIE_TEMP>;
 74                                 qcom,pre-scaling = <1 1>;
 75                                 label = "die_temp";
 76                         };
 77 
 78                         channel@83 {
 79                                 reg = <ADC5_VPH_PWR>;
 80                                 qcom,pre-scaling = <1 3>;
 81                                 label = "vph_pwr";
 82                         };
 83                 };
 84 
 85                 pm6150l_adc_tm: adc-tm@3500 {
 86                         compatible = "qcom,spmi-adc-tm5";
 87                         reg = <0x3500>;
 88                         interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
 89                         #thermal-sensor-cells = <1>;
 90                         #address-cells = <1>;
 91                         #size-cells = <0>;
 92                         status = "disabled";
 93                 };
 94 
 95                 pm6150l_gpios: gpio@c000 {
 96                         compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio";
 97                         reg = <0xc000>;
 98                         gpio-controller;
 99                         gpio-ranges = <&pm6150l_gpios 0 0 12>;
100                         #gpio-cells = <2>;
101                         interrupt-controller;
102                         #interrupt-cells = <2>;
103                 };
104         };
105 
106         pm6150l_lsid5: pmic@5 {
107                 compatible = "qcom,pm6150l", "qcom,spmi-pmic";
108                 reg = <0x5 SPMI_USID>;
109                 #address-cells = <1>;
110                 #size-cells = <0>;
111 
112                 pm6150l_flash: led-controller@d300 {
113                         compatible = "qcom,pm6150l-flash-led", "qcom,spmi-flash-led";
114                         reg = <0xd300>;
115                         status = "disabled";
116                 };
117 
118                 pm6150l_lpg: pwm {
119                         compatible = "qcom,pm6150l-lpg", "qcom,pm8150l-lpg";
120 
121                         #address-cells = <1>;
122                         #size-cells = <0>;
123                         #pwm-cells = <2>;
124 
125                         status = "disabled";
126                 };
127 
128                 pm6150l_wled: leds@d800 {
129                         compatible = "qcom,pm6150l-wled";
130                         reg = <0xd800>, <0xd900>;
131                         interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
132                                      <0x5 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
133                         interrupt-names = "ovp", "short";
134                         label = "backlight";
135 
136                         status = "disabled";
137                 };
138         };
139 };

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