Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 #include <dt-bindings/interrupt-controller/irq.h>
0003 #include <dt-bindings/spmi/spmi.h>
0004 #include <dt-bindings/iio/qcom,spmi-vadc.h>
0005 
0006 &spmi_bus {
0007         pm8226_0: pm8226@0 {
0008                 compatible = "qcom,pm8226", "qcom,spmi-pmic";
0009                 reg = <0x0 SPMI_USID>;
0010                 #address-cells = <1>;
0011                 #size-cells = <0>;
0012 
0013                 pwrkey@800 {
0014                         compatible = "qcom,pm8941-pwrkey";
0015                         reg = <0x800>;
0016                         interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
0017                         debounce = <15625>;
0018                         bias-pull-up;
0019                 };
0020 
0021                 smbb: charger@1000 {
0022                         compatible = "qcom,pm8226-charger";
0023                         reg = <0x1000>;
0024                         interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
0025                                      <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
0026                                      <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
0027                                      <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
0028                                      <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
0029                                      <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
0030                                      <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
0031                                      <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
0032                         interrupt-names = "chg-done",
0033                                           "chg-fast",
0034                                           "chg-trkl",
0035                                           "bat-temp-ok",
0036                                           "bat-present",
0037                                           "chg-gone",
0038                                           "usb-valid",
0039                                           "dc-valid";
0040 
0041                         chg_otg: otg-vbus { };
0042                 };
0043 
0044                 rtc@6000 {
0045                         compatible = "qcom,pm8941-rtc";
0046                         reg = <0x6000>, <0x6100>;
0047                         reg-names = "rtc", "alarm";
0048                         interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
0049                 };
0050 
0051                 pm8226_vadc: adc@3100 {
0052                         compatible = "qcom,spmi-vadc";
0053                         reg = <0x3100>;
0054                         interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
0055                         #address-cells = <1>;
0056                         #size-cells = <0>;
0057                         #io-channel-cells = <1>;
0058 
0059                         adc-chan@7 {
0060                                 reg = <VADC_VSYS>;
0061                                 qcom,pre-scaling = <1 3>;
0062                                 label = "vph_pwr";
0063                         };
0064                         adc-chan@8 {
0065                                 reg = <VADC_DIE_TEMP>;
0066                                 label = "die_temp";
0067                         };
0068                         adc-chan@9 {
0069                                 reg = <VADC_REF_625MV>;
0070                                 label = "ref_625mv";
0071                         };
0072                         adc-chan@a {
0073                                 reg = <VADC_REF_1250MV>;
0074                                 label = "ref_1250mv";
0075                         };
0076                         adc-chan@e {
0077                                 reg = <VADC_GND_REF>;
0078                         };
0079                         adc-chan@f {
0080                                 reg = <VADC_VDD_VADC>;
0081                         };
0082                 };
0083 
0084                 pm8226_mpps: mpps@a000 {
0085                         compatible = "qcom,pm8226-mpp", "qcom,spmi-mpp";
0086                         reg = <0xa000>;
0087                         gpio-controller;
0088                         #gpio-cells = <2>;
0089                         gpio-ranges = <&pm8226_mpps 0 0 8>;
0090                         interrupt-controller;
0091                         #interrupt-cells = <2>;
0092                 };
0093         };
0094 
0095         pm8226_1: pm8226@1 {
0096                 compatible = "qcom,pm8226", "qcom,spmi-pmic";
0097                 reg = <0x1 SPMI_USID>;
0098                 #address-cells = <1>;
0099                 #size-cells = <0>;
0100 
0101                 pm8226_spmi_regulators: pm8226-regulators {
0102                         compatible = "qcom,pm8226-regulators";
0103                 };
0104 
0105                 pm8226_vib: vibrator@c000 {
0106                         compatible = "qcom,pm8916-vib";
0107                         reg = <0xc000>;
0108                         status = "disabled";
0109                 };
0110         };
0111 };