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

TOMOYO Linux Cross Reference
Linux/arch/arm/boot/dts/qcom/pm8058.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: GPL-2.0
  2 
  3 &ssbi {
  4         pm8058: pmic {
  5                 compatible = "qcom,pm8058";
  6                 #interrupt-cells = <2>;
  7                 interrupt-controller;
  8                 #address-cells = <1>;
  9                 #size-cells = <0>;
 10 
 11                 pwrkey@1c {
 12                         compatible = "qcom,pm8058-pwrkey";
 13                         reg = <0x1c>;
 14                         interrupts-extended = <&pm8058 50 IRQ_TYPE_EDGE_RISING>,
 15                                               <&pm8058 51 IRQ_TYPE_EDGE_RISING>;
 16                         debounce = <15625>;
 17                         pull-up;
 18                 };
 19 
 20                 pm8058_led48: led@48 {
 21                         compatible = "qcom,pm8058-keypad-led";
 22                         reg = <0x48>;
 23                         status = "disabled";
 24                 };
 25 
 26                 vibrator@4a {
 27                         compatible = "qcom,pm8058-vib";
 28                         reg = <0x4a>;
 29                 };
 30 
 31                 pm8058_mpps: mpps@50 {
 32                         compatible = "qcom,pm8058-mpp",
 33                                      "qcom,ssbi-mpp";
 34                         reg = <0x50>;
 35                         gpio-controller;
 36                         #gpio-cells = <2>;
 37                         gpio-ranges = <&pm8058_mpps 0 0 12>;
 38                         interrupt-controller;
 39                         #interrupt-cells = <2>;
 40                 };
 41 
 42                 pm8058_led131: led@131 {
 43                         compatible = "qcom,pm8058-led";
 44                         reg = <0x131>;
 45                         status = "disabled";
 46                 };
 47 
 48                 pm8058_led132: led@132 {
 49                         compatible = "qcom,pm8058-led";
 50                         reg = <0x132>;
 51                         status = "disabled";
 52                 };
 53 
 54                 pm8058_led133: led@133 {
 55                         compatible = "qcom,pm8058-led";
 56                         reg = <0x133>;
 57                         status = "disabled";
 58                 };
 59 
 60                 pm8058_keypad: keypad@148 {
 61                         compatible = "qcom,pm8058-keypad";
 62                         reg = <0x148>;
 63                         interrupts-extended = <&pm8058 74 IRQ_TYPE_EDGE_RISING>,
 64                                               <&pm8058 75 IRQ_TYPE_EDGE_RISING>;
 65                         debounce = <15>;
 66                         scan-delay = <32>;
 67                         row-hold = <91500>;
 68                 };
 69 
 70                 pm8058_gpio: gpio@150 {
 71                         compatible = "qcom,pm8058-gpio",
 72                                      "qcom,ssbi-gpio";
 73                         reg = <0x150>;
 74                         interrupt-controller;
 75                         #interrupt-cells = <2>;
 76                         gpio-controller;
 77                         gpio-ranges = <&pm8058_gpio 0 0 44>;
 78                         #gpio-cells = <2>;
 79                 };
 80 
 81                 pm8058_xoadc: xoadc@197 {
 82                         compatible = "qcom,pm8058-adc";
 83                         reg = <0x197>;
 84                         interrupts-extended = <&pm8058 76 IRQ_TYPE_EDGE_RISING>;
 85                         #address-cells = <2>;
 86                         #size-cells = <0>;
 87                         #io-channel-cells = <2>;
 88 
 89                         vcoin: adc-channel@0 {
 90                                 reg = <0x00 0x00>;
 91                         };
 92 
 93                         vbat: adc-channel@1 {
 94                                 reg = <0x00 0x01>;
 95                         };
 96 
 97                         dcin: adc-channel@2 {
 98                                 reg = <0x00 0x02>;
 99                         };
100 
101                         ichg: adc-channel@3 {
102                                 reg = <0x00 0x03>;
103                         };
104 
105                         vph_pwr: adc-channel@4 {
106                                 reg = <0x00 0x04>;
107                         };
108 
109                         usb_vbus: adc-channel@a {
110                                 reg = <0x00 0x0a>;
111                         };
112 
113                         die_temp: adc-channel@b {
114                                 reg = <0x00 0x0b>;
115                         };
116 
117                         ref_625mv: adc-channel@c {
118                                 reg = <0x00 0x0c>;
119                         };
120 
121                         ref_1250mv: adc-channel@d {
122                                 reg = <0x00 0x0d>;
123                         };
124 
125                         ref_325mv: adc-channel@e {
126                                 reg = <0x00 0x0e>;
127                         };
128 
129                         ref_muxoff: adc-channel@f {
130                                 reg = <0x00 0x0f>;
131                         };
132                 };
133 
134                 rtc@1e8 {
135                         compatible = "qcom,pm8058-rtc";
136                         reg = <0x1e8>;
137                         interrupts-extended = <&pm8058 39 IRQ_TYPE_EDGE_RISING>;
138                         allow-set-time;
139                 };
140         };
141 };
142 
143 / {
144         /*
145          * These channels from the ADC are simply hardware monitors.
146          * That is why the ADC is referred to as "HKADC" - HouseKeeping
147          * ADC.
148          */
149         iio-hwmon {
150                 compatible = "iio-hwmon";
151                 io-channels = <&pm8058_xoadc 0x00 0x01>, /* Battery */
152                               <&pm8058_xoadc 0x00 0x02>, /* DC in (charger) */
153                               <&pm8058_xoadc 0x00 0x04>, /* VPH the main system voltage */
154                               <&pm8058_xoadc 0x00 0x0b>, /* Die temperature */
155                               <&pm8058_xoadc 0x00 0x0c>, /* Reference voltage 1.25V */
156                               <&pm8058_xoadc 0x00 0x0d>, /* Reference voltage 0.625V */
157                               <&pm8058_xoadc 0x00 0x0e>; /* Reference voltage 0.325V */
158         };
159 };

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