The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/arm64/qcom/pm8998.dtsi

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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                         polling-delay = <1000>;
   15 
   16                         thermal-sensors = <&pm8998_temp>;
   17 
   18                         trips {
   19                                 pm8998_alert0: pm8998-alert0 {
   20                                         temperature = <105000>;
   21                                         hysteresis = <2000>;
   22                                         type = "passive";
   23                                 };
   24                                 pm8998_crit: pm8998-crit {
   25                                         temperature = <125000>;
   26                                         hysteresis = <2000>;
   27                                         type = "critical";
   28                                 };
   29                         };
   30                 };
   31         };
   32 };
   33 
   34 &spmi_bus {
   35         pm8998_lsid0: pmic@0 {
   36                 compatible = "qcom,pm8998", "qcom,spmi-pmic";
   37                 reg = <0x0 SPMI_USID>;
   38                 #address-cells = <1>;
   39                 #size-cells = <0>;
   40 
   41                 pm8998_pon: pon@800 {
   42                         compatible = "qcom,pm8998-pon";
   43 
   44                         reg = <0x800>;
   45                         mode-bootloader = <0x2>;
   46                         mode-recovery = <0x1>;
   47 
   48                         pm8998_pwrkey: pwrkey {
   49                                 compatible = "qcom,pm8941-pwrkey";
   50                                 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
   51                                 debounce = <15625>;
   52                                 bias-pull-up;
   53                                 linux,code = <KEY_POWER>;
   54                         };
   55                 };
   56 
   57                 pm8998_temp: temp-alarm@2400 {
   58                         compatible = "qcom,spmi-temp-alarm";
   59                         reg = <0x2400>;
   60                         interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
   61                         io-channels = <&pm8998_adc ADC5_DIE_TEMP>;
   62                         io-channel-names = "thermal";
   63                         #thermal-sensor-cells = <0>;
   64                 };
   65 
   66                 pm8998_coincell: coincell@2800 {
   67                         compatible = "qcom,pm8941-coincell";
   68                         reg = <0x2800>;
   69 
   70                         status = "disabled";
   71                 };
   72 
   73                 pm8998_adc: adc@3100 {
   74                         compatible = "qcom,spmi-adc-rev2";
   75                         reg = <0x3100>;
   76                         interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
   77                         #address-cells = <1>;
   78                         #size-cells = <0>;
   79                         #io-channel-cells = <1>;
   80 
   81                         adc-chan@6 {
   82                                 reg = <ADC5_DIE_TEMP>;
   83                                 label = "die_temp";
   84                         };
   85                 };
   86 
   87                 pm8998_adc_tm: adc-tm@3400 {
   88                         compatible = "qcom,spmi-adc-tm-hc";
   89                         reg = <0x3400>;
   90                         interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
   91                         #thermal-sensor-cells = <1>;
   92                         #address-cells = <1>;
   93                         #size-cells = <0>;
   94                         status = "disabled";
   95                 };
   96 
   97                 rtc@6000 {
   98                         compatible = "qcom,pm8941-rtc";
   99                         reg = <0x6000>, <0x6100>;
  100                         reg-names = "rtc", "alarm";
  101                         interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
  102                 };
  103 
  104                 pm8998_gpio: gpios@c000 {
  105                         compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
  106                         reg = <0xc000>;
  107                         gpio-controller;
  108                         gpio-ranges = <&pm8998_gpio 0 0 26>;
  109                         #gpio-cells = <2>;
  110                         interrupt-controller;
  111                         #interrupt-cells = <2>;
  112                 };
  113 
  114         };
  115 
  116         pm8998_lsid1: pmic@1 {
  117                 compatible = "qcom,pm8998", "qcom,spmi-pmic";
  118                 reg = <0x1 SPMI_USID>;
  119                 #address-cells = <1>;
  120                 #size-cells = <0>;
  121         };
  122 };

Cache object: 9f507db2e225ca5c938fecf503fe5c42


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.