Linux Audio

Check our new training course

Loading...
v6.2
 1// SPDX-License-Identifier: GPL-2.0
 2#include <dt-bindings/interrupt-controller/irq.h>
 3#include <dt-bindings/spmi/spmi.h>
 4
 5&spmi_bus {
 6
 7	pm8841_0: pm8841@4 {
 8		compatible = "qcom,pm8841", "qcom,spmi-pmic";
 9		reg = <0x4 SPMI_USID>;
10		#address-cells = <1>;
11		#size-cells = <0>;
12
13		pm8841_mpps: mpps@a000 {
14			compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
15			reg = <0xa000>;
16			gpio-controller;
17			#gpio-cells = <2>;
18			gpio-ranges = <&pm8841_mpps 0 0 4>;
19			interrupt-controller;
20			#interrupt-cells = <2>;
 
21		};
22
23		temp-alarm@2400 {
24			compatible = "qcom,spmi-temp-alarm";
25			reg = <0x2400>;
26			interrupts = <4 0x24 0 IRQ_TYPE_EDGE_RISING>;
27			#thermal-sensor-cells = <0>;
28		};
29	};
30
31	pm8841_1: pm8841@5 {
32		compatible = "qcom,pm8841", "qcom,spmi-pmic";
33		reg = <0x5 SPMI_USID>;
34		#address-cells = <1>;
35		#size-cells = <0>;
36	};
37};
v5.4
 1// SPDX-License-Identifier: GPL-2.0
 2#include <dt-bindings/interrupt-controller/irq.h>
 3#include <dt-bindings/spmi/spmi.h>
 4
 5&spmi_bus {
 6
 7	pm8841_0: pm8841@4 {
 8		compatible = "qcom,pm8841", "qcom,spmi-pmic";
 9		reg = <0x4 SPMI_USID>;
10		#address-cells = <1>;
11		#size-cells = <0>;
12
13		pm8841_mpps: mpps@a000 {
14			compatible = "qcom,pm8841-mpp", "qcom,spmi-mpp";
15			reg = <0xa000>;
16			gpio-controller;
17			#gpio-cells = <2>;
18			interrupts = <4 0xa0 0 IRQ_TYPE_NONE>,
19				     <4 0xa1 0 IRQ_TYPE_NONE>,
20				     <4 0xa2 0 IRQ_TYPE_NONE>,
21				     <4 0xa3 0 IRQ_TYPE_NONE>;
22		};
23
24		temp-alarm@2400 {
25			compatible = "qcom,spmi-temp-alarm";
26			reg = <0x2400>;
27			interrupts = <4 0x24 0 IRQ_TYPE_EDGE_RISING>;
 
28		};
29	};
30
31	pm8841_1: pm8841@5 {
32		compatible = "qcom,pm8841", "qcom,spmi-pmic";
33		reg = <0x5 SPMI_USID>;
34		#address-cells = <1>;
35		#size-cells = <0>;
36	};
37};