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

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/qcom/pmi8950.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: GPL-2.0
  2 // Copyright (c) 2019, AngeloGioacchino Del Regno <kholk11@gmail.com>
  3 
  4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
  5 #include <dt-bindings/interrupt-controller/irq.h>
  6 #include <dt-bindings/spmi/spmi.h>
  7 
  8 &spmi_bus {
  9         pmic@2 {
 10                 compatible = "qcom,pmi8950", "qcom,spmi-pmic";
 11                 reg = <0x2 SPMI_USID>;
 12                 #address-cells = <1>;
 13                 #size-cells = <0>;
 14 
 15                 pmi8950_vadc: adc@3100 {
 16                         compatible = "qcom,spmi-vadc";
 17                         reg = <0x3100>;
 18                         interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
 19                         #address-cells = <1>;
 20                         #size-cells = <0>;
 21                         #io-channel-cells = <1>;
 22 
 23                         channel@0 {
 24                                 reg = <VADC_USBIN>;
 25                                 qcom,pre-scaling = <1 4>;
 26                                 label = "usbin";
 27                         };
 28 
 29                         channel@1 {
 30                                 reg = <VADC_DCIN>;
 31                                 qcom,pre-scaling = <1 4>;
 32                                 label = "dcin";
 33                         };
 34 
 35                         channel@2 {
 36                                 reg = <VADC_VCHG_SNS>;
 37                                 qcom,pre-scaling = <1 1>;
 38                                 label = "vchg_sns";
 39                         };
 40 
 41                         channel@9 {
 42                                 reg = <VADC_REF_625MV>;
 43                                 qcom,pre-scaling = <1 1>;
 44                                 label = "ref_625mv";
 45                         };
 46 
 47                         channel@a {
 48                                 reg = <VADC_REF_1250MV>;
 49                                 qcom,pre-scaling = <1 1>;
 50                                 label = "ref_1250mv";
 51                         };
 52 
 53                         channel@d {
 54                                 reg = <VADC_SPARE2>;
 55                                 qcom,pre-scaling = <1 1>;
 56                                 label = "chg_temp";
 57                         };
 58                 };
 59 
 60                 pmi8950_mpps: mpps@a000 {
 61                         compatible = "qcom,pmi8950-mpp", "qcom,spmi-mpp";
 62                         reg = <0xa000>;
 63                         gpio-controller;
 64                         gpio-ranges = <&pmi8950_mpps 0 0 4>;
 65                         #gpio-cells = <2>;
 66                         interrupt-controller;
 67                         #interrupt-cells = <2>;
 68                 };
 69 
 70                 pmi8950_gpios: gpio@c000 {
 71                         compatible = "qcom,pmi8950-gpio", "qcom,spmi-gpio";
 72                         reg = <0xc000>;
 73                         gpio-controller;
 74                         gpio-ranges = <&pmi8950_gpios 0 0 2>;
 75                         #gpio-cells = <2>;
 76                         interrupt-controller;
 77                         #interrupt-cells = <2>;
 78                 };
 79         };
 80 
 81         pmic@3 {
 82                 compatible = "qcom,pmi8950", "qcom,spmi-pmic";
 83                 reg = <0x3 SPMI_USID>;
 84                 #address-cells = <1>;
 85                 #size-cells = <0>;
 86 
 87                 pmi8950_pwm: pwm@b000 {
 88                         compatible = "qcom,pmi8950-pwm";
 89                         reg = <0xb000 0x100>;
 90                         #pwm-cells = <2>;
 91 
 92                         status = "disabled";
 93                 };
 94 
 95                 pmi8950_wled: leds@d800 {
 96                         compatible = "qcom,pmi8950-wled";
 97                         reg = <0xd800>, <0xd900>;
 98                         interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
 99                                      <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
100                         interrupt-names = "ovp", "short";
101                         label = "backlight";
102 
103                         status = "disabled";
104                 };
105         };
106 };

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