arm64: dts: qcom: sa8775p: add support for the on-board PMICs
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 27 Mar 2023 12:53:05 +0000 (14:53 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 5 Apr 2023 03:42:29 +0000 (20:42 -0700)
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
arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/qcom/sa8775p-ride.dts

diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi
new file mode 100644 (file)
index 0000000..afe220b
--- /dev/null
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2023, Linaro Limited
+ */
+
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/spmi/spmi.h>
+
+&spmi_bus {
+       pmm8654au_0: pmic@0 {
+               compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
+               reg = <0x0 SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };
+
+       pmm8654au_1: pmic@2 {
+               compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
+               reg = <0x2 SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };
+
+       pmm8654au_2: pmic@4 {
+               compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
+               reg = <0x4 SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };
+
+       pmm8654au_3: pmic@6 {
+               compatible = "qcom,pmm8654au", "qcom,spmi-pmic";
+               reg = <0x6 SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+       };
+};
index 1020dfd21da20abd0c002f880070b280f37df09d..b7ee4cc676b5406c42bc548caaf874b61ef4c832 100644 (file)
@@ -6,6 +6,7 @@
 /dts-v1/;
 
 #include "sa8775p.dtsi"
+#include "sa8775p-pmics.dtsi"
 
 / {
        model = "Qualcomm SA8775P Ride";