xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm8450a.dtsi (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1*8bab661aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2*8bab661aSEmmanuel Vadot/*
3*8bab661aSEmmanuel Vadot * Copyright (c) 2021, The Linux Foundation. All rights reserved.
4*8bab661aSEmmanuel Vadot * Copyright (c) 2022, Linaro Limited
5*8bab661aSEmmanuel Vadot */
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadot&spmi_bus {
10*8bab661aSEmmanuel Vadot	pm8450a: pmic@0 {
11*8bab661aSEmmanuel Vadot		compatible = "qcom,pm8150", "qcom,spmi-pmic";
12*8bab661aSEmmanuel Vadot		reg = <0x0 SPMI_USID>;
13*8bab661aSEmmanuel Vadot		#address-cells = <1>;
14*8bab661aSEmmanuel Vadot		#size-cells = <0>;
15*8bab661aSEmmanuel Vadot
16*8bab661aSEmmanuel Vadot		pm8450a_gpios: gpio@c000 {
17*8bab661aSEmmanuel Vadot			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
18*8bab661aSEmmanuel Vadot			reg = <0xc000>;
19*8bab661aSEmmanuel Vadot			gpio-controller;
20*8bab661aSEmmanuel Vadot			gpio-ranges = <&pm8450a_gpios 0 0 10>;
21*8bab661aSEmmanuel Vadot			#gpio-cells = <2>;
22*8bab661aSEmmanuel Vadot			interrupt-controller;
23*8bab661aSEmmanuel Vadot			#interrupt-cells = <2>;
24*8bab661aSEmmanuel Vadot		};
25*8bab661aSEmmanuel Vadot	};
26*8bab661aSEmmanuel Vadot
27*8bab661aSEmmanuel Vadot	pm8450c: pmic@4 {
28*8bab661aSEmmanuel Vadot		compatible = "qcom,pm8150", "qcom,spmi-pmic";
29*8bab661aSEmmanuel Vadot		reg = <0x4 SPMI_USID>;
30*8bab661aSEmmanuel Vadot		#address-cells = <1>;
31*8bab661aSEmmanuel Vadot		#size-cells = <0>;
32*8bab661aSEmmanuel Vadot
33*8bab661aSEmmanuel Vadot		pm8450c_gpios: gpio@c000 {
34*8bab661aSEmmanuel Vadot			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
35*8bab661aSEmmanuel Vadot			reg = <0xc000>;
36*8bab661aSEmmanuel Vadot			gpio-controller;
37*8bab661aSEmmanuel Vadot			gpio-ranges = <&pm8450c_gpios 0 0 10>;
38*8bab661aSEmmanuel Vadot			#gpio-cells = <2>;
39*8bab661aSEmmanuel Vadot			interrupt-controller;
40*8bab661aSEmmanuel Vadot			#interrupt-cells = <2>;
41*8bab661aSEmmanuel Vadot		};
42*8bab661aSEmmanuel Vadot	};
43*8bab661aSEmmanuel Vadot
44*8bab661aSEmmanuel Vadot	pm8450e: pmic@8 {
45*8bab661aSEmmanuel Vadot		compatible = "qcom,pm8150", "qcom,spmi-pmic";
46*8bab661aSEmmanuel Vadot		reg = <0x8 SPMI_USID>;
47*8bab661aSEmmanuel Vadot		#address-cells = <1>;
48*8bab661aSEmmanuel Vadot		#size-cells = <0>;
49*8bab661aSEmmanuel Vadot
50*8bab661aSEmmanuel Vadot		pm8450e_gpios: gpio@c000 {
51*8bab661aSEmmanuel Vadot			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
52*8bab661aSEmmanuel Vadot			reg = <0xc000>;
53*8bab661aSEmmanuel Vadot			gpio-controller;
54*8bab661aSEmmanuel Vadot			gpio-ranges = <&pm8450e_gpios 0 0 10>;
55*8bab661aSEmmanuel Vadot			#gpio-cells = <2>;
56*8bab661aSEmmanuel Vadot			interrupt-controller;
57*8bab661aSEmmanuel Vadot			#interrupt-cells = <2>;
58*8bab661aSEmmanuel Vadot		};
59*8bab661aSEmmanuel Vadot	};
60*8bab661aSEmmanuel Vadot
61*8bab661aSEmmanuel Vadot	pm8450g: pmic@c {
62*8bab661aSEmmanuel Vadot		compatible = "qcom,pm8150", "qcom,spmi-pmic";
63*8bab661aSEmmanuel Vadot		reg = <0xc SPMI_USID>;
64*8bab661aSEmmanuel Vadot		#address-cells = <1>;
65*8bab661aSEmmanuel Vadot		#size-cells = <0>;
66*8bab661aSEmmanuel Vadot
67*8bab661aSEmmanuel Vadot		pm8450g_gpios: gpio@c000 {
68*8bab661aSEmmanuel Vadot			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
69*8bab661aSEmmanuel Vadot			reg = <0xc000>;
70*8bab661aSEmmanuel Vadot			gpio-controller;
71*8bab661aSEmmanuel Vadot			gpio-ranges = <&pm8450g_gpios 0 0 10>;
72*8bab661aSEmmanuel Vadot			#gpio-cells = <2>;
73*8bab661aSEmmanuel Vadot			interrupt-controller;
74*8bab661aSEmmanuel Vadot			#interrupt-cells = <2>;
75*8bab661aSEmmanuel Vadot		};
76*8bab661aSEmmanuel Vadot	};
77*8bab661aSEmmanuel Vadot};
78