arm64: dts: qcom: x1e80100: Add dedicated pmic dtsi
authorAbel Vesa <abel.vesa@linaro.org>
Thu, 22 Feb 2024 14:19:20 +0000 (16:19 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 18 Mar 2024 03:38:59 +0000 (22:38 -0500)
Add dedicated file for x1e80100 PMICs, add the all 3 smb2360 PMIC nodes
with the eUSB2 repeater nodes.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20240222-x1e80100-dts-smb2360-v3-2-85a691d4f68a@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi [new file with mode: 0644]

diff --git a/arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi b/arch/arm64/boot/dts/qcom/x1e80100-pmics.dtsi
new file mode 100644 (file)
index 0000000..04301f7
--- /dev/null
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2024, Linaro Limited
+ */
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
+
+/ {
+};
+
+&spmi_bus1 {
+       smb2360_0: pmic@7 {
+               compatible = "qcom,smb2360", "qcom,spmi-pmic";
+               reg = <0x7 SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               smb2360_0_eusb2_repeater: phy@fd00 {
+                       compatible = "qcom,smb2360-eusb2-repeater";
+                       reg = <0xfd00>;
+                       #phy-cells = <0>;
+               };
+       };
+
+       smb2360_1: pmic@a {
+               compatible = "qcom,smb2360", "qcom,spmi-pmic";
+               reg = <0xa SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               smb2360_1_eusb2_repeater: phy@fd00 {
+                       compatible = "qcom,smb2360-eusb2-repeater";
+                       reg = <0xfd00>;
+                       #phy-cells = <0>;
+               };
+       };
+
+       smb2360_2: pmic@b {
+               compatible = "qcom,smb2360", "qcom,spmi-pmic";
+               reg = <0xb SPMI_USID>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               smb2360_2_eusb2_repeater: phy@fd00 {
+                       compatible = "qcom,smb2360-eusb2-repeater";
+                       reg = <0xfd00>;
+                       #phy-cells = <0>;
+               };
+       };
+};