blob: aff92a8100a2a3125b3214f73770c0511b02d203 [file] [log] [blame]
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/interrupt-controller/irq.h>
&spmi_bus {
qcom,pm8005@4 {
compatible = "qcom,spmi-pmic";
reg = <0x4 SPMI_USID>;
#address-cells = <2>;
#size-cells = <0>;
pm8005_revid: qcom,revid@100 {
compatible = "qcom,qpnp-revid";
reg = <0x100 0x100>;
};
pm8005_tz: qcom,temp-alarm@2400 {
compatible = "qcom,qpnp-temp-alarm";
reg = <0x2400 0x100>;
interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
label = "pm8005_tz";
#thermal-sensor-cells = <0>;
};
pm8005_gpios: pinctrl@c000 {
compatible = "qcom,spmi-gpio";
reg = <0xc000 0x400>;
interrupts = <0x4 0xc0 0 IRQ_TYPE_NONE>,
<0x4 0xc1 0 IRQ_TYPE_NONE>;
interrupt-names = "pm8005_gpio1", "pm8005_gpio2";
gpio-controller;
#gpio-cells = <2>;
qcom,gpios-disallowed = <3 4>;
};
};
qcom,pm8005@5 {
compatible ="qcom,spmi-pmic";
reg = <0x5 SPMI_USID>;
#address-cells = <2>;
#size-cells = <0>;
regulator@1400 {
compatible = "qcom,qpnp-regulator";
reg = <0x1400 0x100>;
regulator-name = "pm8005_s1";
status = "disabled";
};
regulator@1700 {
compatible = "qcom,qpnp-regulator";
reg = <0x1700 0x100>;
regulator-name = "pm8005_s2";
status = "disabled";
};
regulator@1a00 {
compatible = "qcom,qpnp-regulator";
reg = <0x1a00 0x100>;
regulator-name = "pm8005_s3";
status = "disabled";
};
regulator@1d00 {
compatible = "qcom,qpnp-regulator";
reg = <0x1d00 0x100>;
regulator-name = "pm8005_s4";
status = "disabled";
};
};
};
&thermal_zones {
pm8005_tz {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pm8005_tz>;
trips {
pm8005-trip0 {
temperature = <105000>;
hysteresis = <0>;
type = "passive";
};
pm8005-trip1 {
temperature = <125000>;
hysteresis = <0>;
type = "passive";
};
pm8005-trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "passive";
};
};
};
};