xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pm8009.dtsi (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1380af2b7SDmitry Baryshkov// SPDX-License-Identifier: BSD-3-Clause
2380af2b7SDmitry Baryshkov/*
3380af2b7SDmitry Baryshkov * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4380af2b7SDmitry Baryshkov * Copyright (c) 2020, Linaro Limited
5380af2b7SDmitry Baryshkov */
6380af2b7SDmitry Baryshkov
7380af2b7SDmitry Baryshkov#include <dt-bindings/spmi/spmi.h>
8380af2b7SDmitry Baryshkov
9380af2b7SDmitry Baryshkov&spmi_bus {
10380af2b7SDmitry Baryshkov	pmic@a {
11380af2b7SDmitry Baryshkov		compatible = "qcom,pm8009", "qcom,spmi-pmic";
12380af2b7SDmitry Baryshkov		reg = <0xa SPMI_USID>;
13380af2b7SDmitry Baryshkov		#address-cells = <1>;
14380af2b7SDmitry Baryshkov		#size-cells = <0>;
15380af2b7SDmitry Baryshkov
16380af2b7SDmitry Baryshkov		pm8009_pon: pon@800 {
17380af2b7SDmitry Baryshkov			compatible = "qcom,pm8916-pon";
18380af2b7SDmitry Baryshkov			reg = <0x0800>;
19380af2b7SDmitry Baryshkov		};
20380af2b7SDmitry Baryshkov
21380af2b7SDmitry Baryshkov		pm8009_gpios: gpio@c000 {
22019102a9SKrzysztof Kozlowski			compatible = "qcom,pm8005-gpio", "qcom,spmi-gpio";
23380af2b7SDmitry Baryshkov			reg = <0xc000>;
24380af2b7SDmitry Baryshkov			gpio-controller;
25*b07bfd8eSKrzysztof Kozlowski			gpio-ranges = <&pm8009_gpios 0 0 4>;
26380af2b7SDmitry Baryshkov			#gpio-cells = <2>;
27380af2b7SDmitry Baryshkov			interrupt-controller;
28380af2b7SDmitry Baryshkov			#interrupt-cells = <2>;
29380af2b7SDmitry Baryshkov		};
30380af2b7SDmitry Baryshkov	};
31380af2b7SDmitry Baryshkov
32380af2b7SDmitry Baryshkov	pmic@b {
33380af2b7SDmitry Baryshkov		compatible = "qcom,pm8009", "qcom,spmi-pmic";
34380af2b7SDmitry Baryshkov		reg = <0xb SPMI_USID>;
35380af2b7SDmitry Baryshkov		#address-cells = <1>;
36380af2b7SDmitry Baryshkov		#size-cells = <0>;
37380af2b7SDmitry Baryshkov	};
38380af2b7SDmitry Baryshkov};
39