Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <dt-bindings/interrupt-controller/irq.h>
0003 #include <dt-bindings/spmi/spmi.h>
0004 
0005 &spmi_bus {
0006 
0007         pm8841_0: pm8841@4 {
0008                 compatible = "qcom,pm8841", "qcom,spmi-pmic";
0009                 reg = <0x4 SPMI_USID>;
0010                 #address-cells = <1>;
0011                 #size-cells = <0>;
0012 
0013                 pm8841_mpps: mpps@a000 {
0014                         compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
0015                         reg = <0xa000>;
0016                         gpio-controller;
0017                         #gpio-cells = <2>;
0018                         gpio-ranges = <&pm8841_mpps 0 0 4>;
0019                         interrupt-controller;
0020                         #interrupt-cells = <2>;
0021                 };
0022 
0023                 temp-alarm@2400 {
0024                         compatible = "qcom,spmi-temp-alarm";
0025                         reg = <0x2400>;
0026                         interrupts = <4 0x24 0 IRQ_TYPE_EDGE_RISING>;
0027                         #thermal-sensor-cells = <0>;
0028                 };
0029         };
0030 
0031         pm8841_1: pm8841@5 {
0032                 compatible = "qcom,pm8841", "qcom,spmi-pmic";
0033                 reg = <0x5 SPMI_USID>;
0034                 #address-cells = <1>;
0035                 #size-cells = <0>;
0036         };
0037 };