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

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/dts/qcom/pma8084.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: GPL-2.0
  2 #include <dt-bindings/iio/qcom,spmi-vadc.h>
  3 #include <dt-bindings/interrupt-controller/irq.h>
  4 #include <dt-bindings/spmi/spmi.h>
  5 
  6 &spmi_bus {
  7 
  8         pma8084_0: pma8084@0 {
  9                 compatible = "qcom,pma8084", "qcom,spmi-pmic";
 10                 reg = <0x0 SPMI_USID>;
 11                 #address-cells = <1>;
 12                 #size-cells = <0>;
 13 
 14                 rtc@6000 {
 15                         compatible = "qcom,pm8941-rtc";
 16                         reg = <0x6000>,
 17                               <0x6100>;
 18                         reg-names = "rtc", "alarm";
 19                         interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
 20                 };
 21 
 22                 pwrkey@800 {
 23                         compatible = "qcom,pm8941-pwrkey";
 24                         reg = <0x800>;
 25                         interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
 26                         debounce = <15625>;
 27                         bias-pull-up;
 28                 };
 29 
 30                 pma8084_gpios: gpio@c000 {
 31                         compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio";
 32                         reg = <0xc000>;
 33                         gpio-controller;
 34                         gpio-ranges = <&pma8084_gpios 0 0 22>;
 35                         #gpio-cells = <2>;
 36                         interrupt-controller;
 37                         #interrupt-cells = <2>;
 38                 };
 39 
 40                 pma8084_mpps: mpps@a000 {
 41                         compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp";
 42                         reg = <0xa000>;
 43                         gpio-controller;
 44                         #gpio-cells = <2>;
 45                         gpio-ranges = <&pma8084_mpps 0 0 8>;
 46                         interrupt-controller;
 47                         #interrupt-cells = <2>;
 48                 };
 49 
 50                 pma8084_temp: temp-alarm@2400 {
 51                         compatible = "qcom,spmi-temp-alarm";
 52                         reg = <0x2400>;
 53                         interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
 54                         #thermal-sensor-cells = <0>;
 55                         io-channels = <&pma8084_vadc VADC_DIE_TEMP>;
 56                         io-channel-names = "thermal";
 57                 };
 58 
 59                 pma8084_vadc: adc@3100 {
 60                         compatible = "qcom,spmi-vadc";
 61                         reg = <0x3100>;
 62                         interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
 63                         #address-cells = <1>;
 64                         #size-cells = <0>;
 65                         #io-channel-cells = <1>;
 66 
 67                         channel@8 {
 68                                 reg = <VADC_DIE_TEMP>;
 69                         };
 70 
 71                         channel@9 {
 72                                 reg = <VADC_REF_625MV>;
 73                         };
 74 
 75                         channel@a {
 76                                 reg = <VADC_REF_1250MV>;
 77                         };
 78 
 79                         channel@c {
 80                                 reg = <VADC_SPARE1>;
 81                         };
 82 
 83                         channel@e {
 84                                 reg = <VADC_GND_REF>;
 85                         };
 86 
 87                         channel@f {
 88                                 reg = <VADC_VDD_VADC>;
 89                         };
 90                 };
 91         };
 92 
 93         pma8084_1: pma8084@1 {
 94                 compatible = "qcom,pma8084", "qcom,spmi-pmic";
 95                 reg = <0x1 SPMI_USID>;
 96                 #address-cells = <1>;
 97                 #size-cells = <0>;
 98         };
 99 };

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