Skip to content

Commit 634a3de

Browse files
Bartosz Golaszewskiandersson
authored andcommitted
arm64: dts: qcom: sa8775p: add support for the on-board PMICs
Add a new .dtsi file for sa8775p PMICs and add the four PMICs interfaced to the SoC via SPMI. Enable the PMICs for sa8775p-ride. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230327125316.210812-8-brgl@bgdev.pl
1 parent fdd55b3 commit 634a3de

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2023, Linaro Limited
4+
*/
5+
6+
#include <dt-bindings/input/input.h>
7+
#include <dt-bindings/spmi/spmi.h>
8+
9+
&spmi_bus {
10+
pmm8654au_0: pmic@0 {
11+
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
12+
reg = <0x0 SPMI_USID>;
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
};
16+
17+
pmm8654au_1: pmic@2 {
18+
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
19+
reg = <0x2 SPMI_USID>;
20+
#address-cells = <1>;
21+
#size-cells = <0>;
22+
};
23+
24+
pmm8654au_2: pmic@4 {
25+
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
26+
reg = <0x4 SPMI_USID>;
27+
#address-cells = <1>;
28+
#size-cells = <0>;
29+
};
30+
31+
pmm8654au_3: pmic@6 {
32+
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
33+
reg = <0x6 SPMI_USID>;
34+
#address-cells = <1>;
35+
#size-cells = <0>;
36+
};
37+
};

arch/arm64/boot/dts/qcom/sa8775p-ride.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "sa8775p.dtsi"
9+
#include "sa8775p-pmics.dtsi"
910

1011
/ {
1112
model = "Qualcomm SA8775P Ride";

0 commit comments

Comments
 (0)