xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/pm8018.dtsi (revision 6580f5c38dd5b01aeeaed16b370f1a12423437f0)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Device Tree Source for Qualcomm PM8018
4 *
5 * Copyright (C) 2016 BayLibre, SAS.
6 * Author : Neil Armstrong <narmstrong@baylibre.com>
7 */
8
9&ssbi {
10	pm8018: pmic {
11		compatible = "qcom,pm8018", "qcom,pm8921";
12		#interrupt-cells = <2>;
13		interrupt-controller;
14		#address-cells = <1>;
15		#size-cells = <0>;
16
17		pwrkey@1c {
18			compatible = "qcom,pm8018-pwrkey",
19				     "qcom,pm8921-pwrkey";
20			reg = <0x1c>;
21			interrupts-extended = <&pm8018 50 IRQ_TYPE_EDGE_RISING>,
22					      <&pm8018 51 IRQ_TYPE_EDGE_RISING>;
23			debounce = <15625>;
24			pull-up;
25		};
26
27		pm8018_mpps: mpps@50 {
28			compatible = "qcom,pm8018-mpp", "qcom,ssbi-mpp";
29			reg = <0x50>;
30			interrupt-controller;
31			#interrupt-cells = <2>;
32			gpio-controller;
33			#gpio-cells = <2>;
34			gpio-ranges = <&pm8018_mpps 0 0 6>;
35		};
36
37		rtc@11d {
38			compatible = "qcom,pm8018-rtc", "qcom,pm8921-rtc";
39			reg = <0x11d>;
40			interrupts-extended = <&pm8018 39 IRQ_TYPE_EDGE_RISING>;
41			allow-set-time;
42		};
43
44		pm8018_gpio: gpio@150 {
45			compatible = "qcom,pm8058-gpio",
46				     "qcom,ssbi-gpio";
47			reg = <0x150>;
48			interrupt-controller;
49			#interrupt-cells = <2>;
50			gpio-controller;
51			gpio-ranges = <&pm8018_gpio 0 0 6>;
52			#gpio-cells = <2>;
53		};
54	};
55};
56