xref: /linux/scripts/dtc/include-prefixes/arm/qcom/pmx55.dtsi (revision 06d07429858317ded2db7986113a9e0129cd599b)
1*455a4c46SDmitry Baryshkov// SPDX-License-Identifier: BSD-3-Clause
2*455a4c46SDmitry Baryshkov
3*455a4c46SDmitry Baryshkov/*
4*455a4c46SDmitry Baryshkov * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
5*455a4c46SDmitry Baryshkov * Copyright (c) 2020, Linaro Limited
6*455a4c46SDmitry Baryshkov */
7*455a4c46SDmitry Baryshkov
8*455a4c46SDmitry Baryshkov#include <dt-bindings/iio/qcom,spmi-vadc.h>
9*455a4c46SDmitry Baryshkov#include <dt-bindings/interrupt-controller/irq.h>
10*455a4c46SDmitry Baryshkov#include <dt-bindings/spmi/spmi.h>
11*455a4c46SDmitry Baryshkov
12*455a4c46SDmitry Baryshkov&spmi_bus {
13*455a4c46SDmitry Baryshkov	pmic@8 {
14*455a4c46SDmitry Baryshkov		compatible = "qcom,pmx55", "qcom,spmi-pmic";
15*455a4c46SDmitry Baryshkov		reg = <0x8 SPMI_USID>;
16*455a4c46SDmitry Baryshkov		#address-cells = <1>;
17*455a4c46SDmitry Baryshkov		#size-cells = <0>;
18*455a4c46SDmitry Baryshkov
19*455a4c46SDmitry Baryshkov		pon@800 {
20*455a4c46SDmitry Baryshkov			compatible = "qcom,pm8916-pon";
21*455a4c46SDmitry Baryshkov			reg = <0x0800>;
22*455a4c46SDmitry Baryshkov
23*455a4c46SDmitry Baryshkov			status = "disabled";
24*455a4c46SDmitry Baryshkov		};
25*455a4c46SDmitry Baryshkov
26*455a4c46SDmitry Baryshkov		pmx55_temp: temp-alarm@2400 {
27*455a4c46SDmitry Baryshkov			compatible = "qcom,spmi-temp-alarm";
28*455a4c46SDmitry Baryshkov			reg = <0x2400>;
29*455a4c46SDmitry Baryshkov			interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
30*455a4c46SDmitry Baryshkov			io-channels = <&pmx55_adc ADC5_DIE_TEMP>;
31*455a4c46SDmitry Baryshkov			io-channel-names = "thermal";
32*455a4c46SDmitry Baryshkov			#thermal-sensor-cells = <0>;
33*455a4c46SDmitry Baryshkov		};
34*455a4c46SDmitry Baryshkov
35*455a4c46SDmitry Baryshkov		pmx55_adc: adc@3100 {
36*455a4c46SDmitry Baryshkov			compatible = "qcom,spmi-adc5";
37*455a4c46SDmitry Baryshkov			reg = <0x3100>;
38*455a4c46SDmitry Baryshkov			#address-cells = <1>;
39*455a4c46SDmitry Baryshkov			#size-cells = <0>;
40*455a4c46SDmitry Baryshkov			#io-channel-cells = <1>;
41*455a4c46SDmitry Baryshkov			interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
42*455a4c46SDmitry Baryshkov
43*455a4c46SDmitry Baryshkov			channel@0 {
44*455a4c46SDmitry Baryshkov				reg = <ADC5_REF_GND>;
45*455a4c46SDmitry Baryshkov				qcom,pre-scaling = <1 1>;
46*455a4c46SDmitry Baryshkov				label = "ref_gnd";
47*455a4c46SDmitry Baryshkov			};
48*455a4c46SDmitry Baryshkov
49*455a4c46SDmitry Baryshkov			channel@1 {
50*455a4c46SDmitry Baryshkov				reg = <ADC5_1P25VREF>;
51*455a4c46SDmitry Baryshkov				qcom,pre-scaling = <1 1>;
52*455a4c46SDmitry Baryshkov				label = "vref_1p25";
53*455a4c46SDmitry Baryshkov			};
54*455a4c46SDmitry Baryshkov
55*455a4c46SDmitry Baryshkov			channel@6 {
56*455a4c46SDmitry Baryshkov				reg = <ADC5_DIE_TEMP>;
57*455a4c46SDmitry Baryshkov				qcom,pre-scaling = <1 1>;
58*455a4c46SDmitry Baryshkov				label = "die_temp";
59*455a4c46SDmitry Baryshkov			};
60*455a4c46SDmitry Baryshkov
61*455a4c46SDmitry Baryshkov			channel@9 {
62*455a4c46SDmitry Baryshkov				reg = <ADC5_CHG_TEMP>;
63*455a4c46SDmitry Baryshkov				qcom,pre-scaling = <1 1>;
64*455a4c46SDmitry Baryshkov				label = "chg_temp";
65*455a4c46SDmitry Baryshkov			};
66*455a4c46SDmitry Baryshkov		};
67*455a4c46SDmitry Baryshkov
68*455a4c46SDmitry Baryshkov		pmx55_gpios: gpio@c000 {
69*455a4c46SDmitry Baryshkov			compatible = "qcom,pmx55-gpio", "qcom,spmi-gpio";
70*455a4c46SDmitry Baryshkov			reg = <0xc000>;
71*455a4c46SDmitry Baryshkov			gpio-controller;
72*455a4c46SDmitry Baryshkov			gpio-ranges = <&pmx55_gpios 0 0 11>;
73*455a4c46SDmitry Baryshkov			#gpio-cells = <2>;
74*455a4c46SDmitry Baryshkov			interrupt-controller;
75*455a4c46SDmitry Baryshkov			#interrupt-cells = <2>;
76*455a4c46SDmitry Baryshkov		};
77*455a4c46SDmitry Baryshkov	};
78*455a4c46SDmitry Baryshkov
79*455a4c46SDmitry Baryshkov	pmic@9 {
80*455a4c46SDmitry Baryshkov		compatible = "qcom,pmx55", "qcom,spmi-pmic";
81*455a4c46SDmitry Baryshkov		reg = <0x9 SPMI_USID>;
82*455a4c46SDmitry Baryshkov		#address-cells = <1>;
83*455a4c46SDmitry Baryshkov		#size-cells = <0>;
84*455a4c46SDmitry Baryshkov	};
85*455a4c46SDmitry Baryshkov};
86