xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/pm660l.dtsi (revision 19261079b74319502c6ffa1249920079f0f69a72)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2020, Konrad Dybcio
4 */
5
6#include <dt-bindings/input/linux-event-codes.h>
7#include <dt-bindings/interrupt-controller/irq.h>
8#include <dt-bindings/spmi/spmi.h>
9
10&spmi_bus {
11
12	pmic@2 {
13		compatible = "qcom,pm660l", "qcom,spmi-pmic";
14		reg = <0x2 SPMI_USID>;
15		#address-cells = <1>;
16		#size-cells = <0>;
17
18		pm660l_gpios: gpios@c000 {
19			compatible = "qcom,pm660l-gpio", "qcom,spmi-gpio";
20			reg = <0xc000>;
21			gpio-controller;
22			gpio-ranges = <&pm660l_gpios 0 0 12>;
23			#gpio-cells = <2>;
24			interrupt-controller;
25			#interrupt-cells = <2>;
26		};
27	};
28
29	pmic@3 {
30		compatible = "qcom,pm660l", "qcom,spmi-pmic";
31		reg = <0x3 SPMI_USID>;
32		#address-cells = <1>;
33		#size-cells = <0>;
34	};
35};
36
37