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

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

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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, Luca Weiss <luca@z3ntu.xyz>
  4  */
  5 
  6 #include <dt-bindings/input/input.h>
  7 #include <dt-bindings/spmi/spmi.h>
  8 
  9 / {
 10         thermal-zones {
 11                 pm6350-thermal {
 12                         polling-delay-passive = <100>;
 13 
 14                         thermal-sensors = <&pm6350_temp>;
 15 
 16                         trips {
 17                                 trip0 {
 18                                         temperature = <95000>;
 19                                         hysteresis = <0>;
 20                                         type = "passive";
 21                                 };
 22 
 23                                 trip1 {
 24                                         temperature = <115000>;
 25                                         hysteresis = <0>;
 26                                         type = "hot";
 27                                 };
 28 
 29                                 trip2 {
 30                                         temperature = <125000>;
 31                                         hysteresis = <0>;
 32                                         type = "critical";
 33                                 };
 34                         };
 35                 };
 36         };
 37 };
 38 
 39 &spmi_bus {
 40         pmic@0 {
 41                 compatible = "qcom,pm6350", "qcom,spmi-pmic";
 42                 reg = <0x0 SPMI_USID>;
 43                 #address-cells = <1>;
 44                 #size-cells = <0>;
 45 
 46                 pm6350_pon: pon@800 {
 47                         compatible = "qcom,pm8998-pon";
 48                         reg = <0x800>;
 49                         mode-bootloader = <0x2>;
 50                         mode-recovery = <0x1>;
 51 
 52                         pm6350_pwrkey: pwrkey {
 53                                 compatible = "qcom,pm8941-pwrkey";
 54                                 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
 55                                 debounce = <15625>;
 56                                 bias-pull-up;
 57                                 linux,code = <KEY_POWER>;
 58                         };
 59 
 60                         pm6350_resin: resin {
 61                                 compatible = "qcom,pm8941-resin";
 62                                 interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
 63                                 debounce = <15625>;
 64                                 bias-pull-up;
 65                                 status = "disabled";
 66                         };
 67                 };
 68 
 69                 pm6350_temp: temp-alarm@2400 {
 70                         compatible = "qcom,spmi-temp-alarm";
 71                         reg = <0x2400>;
 72                         interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
 73                         #thermal-sensor-cells = <0>;
 74                 };
 75 
 76                 pm6350_gpios: gpio@c000 {
 77                         compatible = "qcom,pm6350-gpio", "qcom,spmi-gpio";
 78                         reg = <0xc000>;
 79                         gpio-controller;
 80                         gpio-ranges = <&pm6350_gpios 0 0 9>;
 81                         #gpio-cells = <2>;
 82                         interrupt-controller;
 83                         #interrupt-cells = <2>;
 84                 };
 85         };
 86 
 87         pmic@1 {
 88                 compatible = "qcom,pm6350", "qcom,spmi-pmic";
 89                 reg = <0x1 SPMI_USID>;
 90                 #address-cells = <1>;
 91                 #size-cells = <0>;
 92         };
 93 };

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