xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/pm8150.dtsi (revision 1260ed77798502de9c98020040d2995008de10cc)
15101f22aSVinod Koul// SPDX-License-Identifier: BSD-3-Clause
25101f22aSVinod Koul/*
35101f22aSVinod Koul * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
45101f22aSVinod Koul * Copyright (c) 2019, Linaro Limited
55101f22aSVinod Koul */
65101f22aSVinod Koul
75101f22aSVinod Koul#include <dt-bindings/input/input.h>
85101f22aSVinod Koul#include <dt-bindings/interrupt-controller/irq.h>
95101f22aSVinod Koul#include <dt-bindings/spmi/spmi.h>
105101f22aSVinod Koul#include <dt-bindings/iio/qcom,spmi-vadc.h>
115101f22aSVinod Koul
124c5a410dSDmitry Baryshkov/ {
134c5a410dSDmitry Baryshkov	thermal-zones {
143a786086SManivannan Sadhasivam		pm8150-thermal {
154c5a410dSDmitry Baryshkov			polling-delay-passive = <100>;
164c5a410dSDmitry Baryshkov
174c5a410dSDmitry Baryshkov			thermal-sensors = <&pm8150_temp>;
184c5a410dSDmitry Baryshkov
194c5a410dSDmitry Baryshkov			trips {
204c5a410dSDmitry Baryshkov				trip0 {
214c5a410dSDmitry Baryshkov					temperature = <95000>;
224c5a410dSDmitry Baryshkov					hysteresis = <0>;
234c5a410dSDmitry Baryshkov					type = "passive";
244c5a410dSDmitry Baryshkov				};
254c5a410dSDmitry Baryshkov
264c5a410dSDmitry Baryshkov				trip1 {
274c5a410dSDmitry Baryshkov					temperature = <115000>;
284c5a410dSDmitry Baryshkov					hysteresis = <0>;
294c5a410dSDmitry Baryshkov					type = "hot";
304c5a410dSDmitry Baryshkov				};
314c5a410dSDmitry Baryshkov
324c5a410dSDmitry Baryshkov				trip2 {
334c5a410dSDmitry Baryshkov					temperature = <145000>;
344c5a410dSDmitry Baryshkov					hysteresis = <0>;
354c5a410dSDmitry Baryshkov					type = "critical";
364c5a410dSDmitry Baryshkov				};
374c5a410dSDmitry Baryshkov			};
384c5a410dSDmitry Baryshkov		};
394c5a410dSDmitry Baryshkov	};
404c5a410dSDmitry Baryshkov};
414c5a410dSDmitry Baryshkov
425101f22aSVinod Koul&spmi_bus {
435101f22aSVinod Koul	pm8150_0: pmic@0 {
445101f22aSVinod Koul		compatible = "qcom,pm8150", "qcom,spmi-pmic";
455101f22aSVinod Koul		reg = <0x0 SPMI_USID>;
465101f22aSVinod Koul		#address-cells = <1>;
475101f22aSVinod Koul		#size-cells = <0>;
485101f22aSVinod Koul
4987783dbeSKrzysztof Kozlowski		pon: pon@800 {
50a153d317SDmitry Baryshkov			compatible = "qcom,pm8998-pon";
515101f22aSVinod Koul			reg = <0x0800>;
52d0a6ce59SKonrad Dybcio
53d0a6ce59SKonrad Dybcio			pon_pwrkey: pwrkey {
545101f22aSVinod Koul				compatible = "qcom,pm8941-pwrkey";
555101f22aSVinod Koul				interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
565101f22aSVinod Koul				debounce = <15625>;
575101f22aSVinod Koul				bias-pull-up;
585101f22aSVinod Koul				linux,code = <KEY_POWER>;
595101f22aSVinod Koul
605101f22aSVinod Koul				status = "disabled";
615101f22aSVinod Koul			};
62b135d097SKonrad Dybcio
63b135d097SKonrad Dybcio			pon_resin: resin {
64b135d097SKonrad Dybcio				compatible = "qcom,pm8941-resin";
65b135d097SKonrad Dybcio				interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
66b135d097SKonrad Dybcio				debounce = <15625>;
67b135d097SKonrad Dybcio				bias-pull-up;
68b135d097SKonrad Dybcio
69b135d097SKonrad Dybcio				status = "disabled";
70b135d097SKonrad Dybcio			};
715101f22aSVinod Koul		};
725101f22aSVinod Koul
734c5a410dSDmitry Baryshkov		pm8150_temp: temp-alarm@2400 {
744c5a410dSDmitry Baryshkov			compatible = "qcom,spmi-temp-alarm";
754c5a410dSDmitry Baryshkov			reg = <0x2400>;
764c5a410dSDmitry Baryshkov			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
774c5a410dSDmitry Baryshkov			io-channels = <&pm8150_adc ADC5_DIE_TEMP>;
784c5a410dSDmitry Baryshkov			io-channel-names = "thermal";
794c5a410dSDmitry Baryshkov			#thermal-sensor-cells = <0>;
804c5a410dSDmitry Baryshkov		};
814c5a410dSDmitry Baryshkov
825101f22aSVinod Koul		pm8150_adc: adc@3100 {
835101f22aSVinod Koul			compatible = "qcom,spmi-adc5";
845101f22aSVinod Koul			reg = <0x3100>;
855101f22aSVinod Koul			#address-cells = <1>;
865101f22aSVinod Koul			#size-cells = <0>;
875101f22aSVinod Koul			#io-channel-cells = <1>;
885101f22aSVinod Koul			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
895101f22aSVinod Koul
90*41c18552SMarijn Suijten			channel@0 {
915101f22aSVinod Koul				reg = <ADC5_REF_GND>;
925101f22aSVinod Koul				qcom,pre-scaling = <1 1>;
935101f22aSVinod Koul				label = "ref_gnd";
945101f22aSVinod Koul			};
955101f22aSVinod Koul
96*41c18552SMarijn Suijten			channel@1 {
975101f22aSVinod Koul				reg = <ADC5_1P25VREF>;
985101f22aSVinod Koul				qcom,pre-scaling = <1 1>;
995101f22aSVinod Koul				label = "vref_1p25";
1005101f22aSVinod Koul			};
1015101f22aSVinod Koul
102*41c18552SMarijn Suijten			channel@6 {
1035101f22aSVinod Koul				reg = <ADC5_DIE_TEMP>;
1045101f22aSVinod Koul				qcom,pre-scaling = <1 1>;
1055101f22aSVinod Koul				label = "die_temp";
1065101f22aSVinod Koul			};
1075101f22aSVinod Koul		};
1085101f22aSVinod Koul
10928a7eb65SDmitry Baryshkov		pm8150_adc_tm: adc-tm@3500 {
11028a7eb65SDmitry Baryshkov			compatible = "qcom,spmi-adc-tm5";
11128a7eb65SDmitry Baryshkov			reg = <0x3500>;
11228a7eb65SDmitry Baryshkov			interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
11328a7eb65SDmitry Baryshkov			#thermal-sensor-cells = <1>;
11428a7eb65SDmitry Baryshkov			#address-cells = <1>;
11528a7eb65SDmitry Baryshkov			#size-cells = <0>;
11628a7eb65SDmitry Baryshkov			status = "disabled";
11728a7eb65SDmitry Baryshkov		};
11828a7eb65SDmitry Baryshkov
11940a5aa1fSBjorn Andersson		rtc@6000 {
1205101f22aSVinod Koul			compatible = "qcom,pm8941-rtc";
121ceb01bb8SEric Chanudet			reg = <0x6000>, <0x6100>;
1225101f22aSVinod Koul			reg-names = "rtc", "alarm";
1235101f22aSVinod Koul			interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
1245101f22aSVinod Koul		};
1255101f22aSVinod Koul
1265101f22aSVinod Koul		pm8150_gpios: gpio@c000 {
127019102a9SKrzysztof Kozlowski			compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
1285101f22aSVinod Koul			reg = <0xc000>;
1295101f22aSVinod Koul			gpio-controller;
130b07bfd8eSKrzysztof Kozlowski			gpio-ranges = <&pm8150_gpios 0 0 10>;
1315101f22aSVinod Koul			#gpio-cells = <2>;
13261d2ca50SJonathan Marek			interrupt-controller;
13361d2ca50SJonathan Marek			#interrupt-cells = <2>;
1345101f22aSVinod Koul		};
1355101f22aSVinod Koul	};
1365101f22aSVinod Koul
1375101f22aSVinod Koul	pmic@1 {
1385101f22aSVinod Koul		compatible = "qcom,pm8150", "qcom,spmi-pmic";
1395101f22aSVinod Koul		reg = <0x1 SPMI_USID>;
1405101f22aSVinod Koul		#address-cells = <1>;
1415101f22aSVinod Koul		#size-cells = <0>;
1425101f22aSVinod Koul	};
1435101f22aSVinod Koul};
144