xref: /freebsd-src/sys/contrib/device-tree/src/arm/qcom/qcom-pmx65.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
7*f126890aSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h>
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot&spmi_bus {
10*f126890aSEmmanuel Vadot	pmic@1 {
11*f126890aSEmmanuel Vadot		compatible = "qcom,pmx65", "qcom,spmi-pmic";
12*f126890aSEmmanuel Vadot		reg = <1 SPMI_USID>;
13*f126890aSEmmanuel Vadot		#address-cells = <1>;
14*f126890aSEmmanuel Vadot		#size-cells = <0>;
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot		pmx65_temp: temp-alarm@a00 {
17*f126890aSEmmanuel Vadot			compatible = "qcom,spmi-temp-alarm";
18*f126890aSEmmanuel Vadot			reg = <0xa00>;
19*f126890aSEmmanuel Vadot			interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
20*f126890aSEmmanuel Vadot			#thermal-sensor-cells = <0>;
21*f126890aSEmmanuel Vadot		};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot		pmx65_gpios: gpio@8800 {
24*f126890aSEmmanuel Vadot			compatible = "qcom,pmx65-gpio", "qcom,spmi-gpio";
25*f126890aSEmmanuel Vadot			reg = <0x8800>;
26*f126890aSEmmanuel Vadot			gpio-controller;
27*f126890aSEmmanuel Vadot			gpio-ranges = <&pmx65_gpios 0 0 16>;
28*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
29*f126890aSEmmanuel Vadot			interrupt-controller;
30*f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot};
34