12e1cec6eSEric Chanudet// SPDX-License-Identifier: BSD-3-Clause
22e1cec6eSEric Chanudet/*
32e1cec6eSEric Chanudet * Copyright (c) 2021, The Linux Foundation. All rights reserved.
42e1cec6eSEric Chanudet * Copyright (c) 2022, Linaro Limited
52e1cec6eSEric Chanudet */
62e1cec6eSEric Chanudet
732c028fcSJohan Hovold#include <dt-bindings/interrupt-controller/irq.h>
82e1cec6eSEric Chanudet#include <dt-bindings/spmi/spmi.h>
92e1cec6eSEric Chanudet
102e1cec6eSEric Chanudet&spmi_bus {
11aab961deSJohan Hovold	pmm8540a: pmic@0 {
122e1cec6eSEric Chanudet		compatible = "qcom,pm8150", "qcom,spmi-pmic";
132e1cec6eSEric Chanudet		reg = <0x0 SPMI_USID>;
142e1cec6eSEric Chanudet		#address-cells = <1>;
152e1cec6eSEric Chanudet		#size-cells = <0>;
162e1cec6eSEric Chanudet
17*e85cbb34SEric Chanudet		pmm8540a_rtc: rtc@6000 {
18650fed78SEric Chanudet			compatible = "qcom,pm8941-rtc";
19650fed78SEric Chanudet			reg = <0x6000>, <0x6100>;
20650fed78SEric Chanudet			reg-names = "rtc", "alarm";
21650fed78SEric Chanudet			interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
22650fed78SEric Chanudet			wakeup-source;
23650fed78SEric Chanudet		};
24650fed78SEric Chanudet
25aab961deSJohan Hovold		pmm8540a_gpios: gpio@c000 {
262e1cec6eSEric Chanudet			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
272e1cec6eSEric Chanudet			reg = <0xc000>;
282e1cec6eSEric Chanudet			gpio-controller;
29aab961deSJohan Hovold			gpio-ranges = <&pmm8540a_gpios 0 0 10>;
302e1cec6eSEric Chanudet			#gpio-cells = <2>;
312e1cec6eSEric Chanudet			interrupt-controller;
322e1cec6eSEric Chanudet			#interrupt-cells = <2>;
332e1cec6eSEric Chanudet		};
342e1cec6eSEric Chanudet	};
352e1cec6eSEric Chanudet
36aab961deSJohan Hovold	pmm8540c: pmic@4 {
372e1cec6eSEric Chanudet		compatible = "qcom,pm8150", "qcom,spmi-pmic";
382e1cec6eSEric Chanudet		reg = <0x4 SPMI_USID>;
392e1cec6eSEric Chanudet		#address-cells = <1>;
402e1cec6eSEric Chanudet		#size-cells = <0>;
412e1cec6eSEric Chanudet
42*e85cbb34SEric Chanudet		pmm8540c_sdam_2: nvram@b110 {
43*e85cbb34SEric Chanudet			compatible = "qcom,spmi-sdam";
44*e85cbb34SEric Chanudet			reg = <0xb110>;
45*e85cbb34SEric Chanudet			#address-cells = <1>;
46*e85cbb34SEric Chanudet			#size-cells = <1>;
47*e85cbb34SEric Chanudet			ranges = <0 0xb110 0xb0>;
48*e85cbb34SEric Chanudet			status = "disabled";
49*e85cbb34SEric Chanudet		};
50*e85cbb34SEric Chanudet
51aab961deSJohan Hovold		pmm8540c_gpios: gpio@c000 {
522e1cec6eSEric Chanudet			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
532e1cec6eSEric Chanudet			reg = <0xc000>;
542e1cec6eSEric Chanudet			gpio-controller;
55aab961deSJohan Hovold			gpio-ranges = <&pmm8540c_gpios 0 0 10>;
562e1cec6eSEric Chanudet			#gpio-cells = <2>;
572e1cec6eSEric Chanudet			interrupt-controller;
582e1cec6eSEric Chanudet			#interrupt-cells = <2>;
592e1cec6eSEric Chanudet		};
602e1cec6eSEric Chanudet	};
612e1cec6eSEric Chanudet
62aab961deSJohan Hovold	pmm8540e: pmic@8 {
632e1cec6eSEric Chanudet		compatible = "qcom,pm8150", "qcom,spmi-pmic";
642e1cec6eSEric Chanudet		reg = <0x8 SPMI_USID>;
652e1cec6eSEric Chanudet		#address-cells = <1>;
662e1cec6eSEric Chanudet		#size-cells = <0>;
672e1cec6eSEric Chanudet
68aab961deSJohan Hovold		pmm8540e_gpios: gpio@c000 {
692e1cec6eSEric Chanudet			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
702e1cec6eSEric Chanudet			reg = <0xc000>;
712e1cec6eSEric Chanudet			gpio-controller;
72aab961deSJohan Hovold			gpio-ranges = <&pmm8540e_gpios 0 0 10>;
732e1cec6eSEric Chanudet			#gpio-cells = <2>;
742e1cec6eSEric Chanudet			interrupt-controller;
752e1cec6eSEric Chanudet			#interrupt-cells = <2>;
762e1cec6eSEric Chanudet		};
772e1cec6eSEric Chanudet	};
782e1cec6eSEric Chanudet
79aab961deSJohan Hovold	pmm8540g: pmic@c {
802e1cec6eSEric Chanudet		compatible = "qcom,pm8150", "qcom,spmi-pmic";
812e1cec6eSEric Chanudet		reg = <0xc SPMI_USID>;
822e1cec6eSEric Chanudet		#address-cells = <1>;
832e1cec6eSEric Chanudet		#size-cells = <0>;
842e1cec6eSEric Chanudet
85aab961deSJohan Hovold		pmm8540g_gpios: gpio@c000 {
862e1cec6eSEric Chanudet			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
872e1cec6eSEric Chanudet			reg = <0xc000>;
882e1cec6eSEric Chanudet			gpio-controller;
89aab961deSJohan Hovold			gpio-ranges = <&pmm8540g_gpios 0 0 10>;
902e1cec6eSEric Chanudet			#gpio-cells = <2>;
912e1cec6eSEric Chanudet			interrupt-controller;
922e1cec6eSEric Chanudet			#interrupt-cells = <2>;
932e1cec6eSEric Chanudet		};
942e1cec6eSEric Chanudet	};
952e1cec6eSEric Chanudet};
96