Skip to content

Commit a7787e1

Browse files
Tingguo Chengshashim-quic
authored andcommitted
FORMGIT: arm64: dts: qcom: qcs8300-ride: Enable PMIC peripherals
Enable PMIC and PMIC peripherals for qcs8300-ride board. The qcs8 300-ride uses 2 pmics(pmm8620au:0,pmm8650au:1) on the board, which are variants of pmm8654au used on sa8775p/qcs9100 -ride(4x pmics). Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20250108-adds-spmi-pmic-peripherals-for-qcs8300-v3-2-ee94642279ff@quicinc.com Signed-off-by: Tingguo Cheng <quic_tingguoc@quicinc.com>
1 parent 0558950 commit a7787e1

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
4+
*/
5+
6+
#include <dt-bindings/input/input.h>
7+
#include <dt-bindings/spmi/spmi.h>
8+
9+
&spmi_bus {
10+
pmm8620au_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+
pmm8620au_0_rtc: rtc@6100 {
17+
compatible = "qcom,pmk8350-rtc";
18+
reg = <0x6100>, <0x6200>;
19+
reg-names = "rtc", "alarm";
20+
interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
21+
allow-set-time;
22+
};
23+
24+
pmm8620au_0_gpios: gpio@8800 {
25+
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
26+
reg = <0x8800>;
27+
gpio-controller;
28+
gpio-ranges = <&pmm8620au_0_gpios 0 0 12>;
29+
#gpio-cells = <2>;
30+
interrupt-controller;
31+
#interrupt-cells = <2>;
32+
};
33+
};
34+
35+
pmm8650au_1: pmic@2 {
36+
compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
37+
reg = <0x2 SPMI_USID>;
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
41+
pmm8650au_1_gpios: gpio@8800 {
42+
compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio";
43+
reg = <0x8800>;
44+
gpio-controller;
45+
gpio-ranges = <&pmm8650au_1_gpios 0 0 12>;
46+
#gpio-cells = <2>;
47+
interrupt-controller;
48+
#interrupt-cells = <2>;
49+
};
50+
};
51+
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
1010

1111
#include "qcs8300.dtsi"
12+
#include "qcs8300-pmics.dtsi"
1213
/ {
1314
model = "Qualcomm Technologies, Inc. QCS8300 Ride";
1415
compatible = "qcom,qcs8300-ride", "qcom,qcs8300";

0 commit comments

Comments
 (0)