Skip to content

Commit b122723

Browse files
anderssonAndy Gross
authored andcommitted
arm64: dts: qcom: msm8998: Add pmi8998 file
Add new dtsi file for the PMI8998, with its gpios and include all three PMICs in the MSM8998 MTP dts. Signed-off-by: Bjorn Andersson <[email protected]> Signed-off-by: Andy Gross <[email protected]>
1 parent 4449b6f commit b122723

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
/* Copyright (c) 2016, The Linux Foundation. All rights reserved. */
33

44
#include "msm8998.dtsi"
5+
#include "pm8998.dtsi"
6+
#include "pmi8998.dtsi"
7+
#include "pm8005.dtsi"
58

69
/ {
710
aliases {

arch/arm64/boot/dts/qcom/pmi8998.dtsi

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
pmi8998_lsid0: pmic@2 {
7+
compatible = "qcom,pmi8998", "qcom,spmi-pmic";
8+
reg = <0x2 SPMI_USID>;
9+
#address-cells = <1>;
10+
#size-cells = <0>;
11+
12+
pmi8998_gpio: gpios@c000 {
13+
compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio";
14+
reg = <0xc000>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
18+
<0 0xc1 0 IRQ_TYPE_NONE>,
19+
<0 0xc2 0 IRQ_TYPE_NONE>,
20+
<0 0xc3 0 IRQ_TYPE_NONE>,
21+
<0 0xc4 0 IRQ_TYPE_NONE>,
22+
<0 0xc5 0 IRQ_TYPE_NONE>,
23+
<0 0xc6 0 IRQ_TYPE_NONE>,
24+
<0 0xc7 0 IRQ_TYPE_NONE>,
25+
<0 0xc8 0 IRQ_TYPE_NONE>,
26+
<0 0xc9 0 IRQ_TYPE_NONE>,
27+
<0 0xca 0 IRQ_TYPE_NONE>,
28+
<0 0xcb 0 IRQ_TYPE_NONE>,
29+
<0 0xcc 0 IRQ_TYPE_NONE>,
30+
<0 0xcd 0 IRQ_TYPE_NONE>;
31+
};
32+
};
33+
34+
pmi8998_lsid1: pmic@3 {
35+
compatible = "qcom,pmi8998", "qcom,spmi-pmic";
36+
reg = <0x3 SPMI_USID>;
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
};
40+
};

0 commit comments

Comments
 (0)