xref: /linux/scripts/dtc/include-prefixes/arm64/qcom/pm8350c.dtsi (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
158befd8fSVinod Koul// SPDX-License-Identifier: BSD-3-Clause
258befd8fSVinod Koul/*
358befd8fSVinod Koul * Copyright (c) 2021, Linaro Limited
458befd8fSVinod Koul */
558befd8fSVinod Koul
658befd8fSVinod Koul#include <dt-bindings/interrupt-controller/irq.h>
758befd8fSVinod Koul#include <dt-bindings/spmi/spmi.h>
858befd8fSVinod Koul
958befd8fSVinod Koul&spmi_bus {
1058befd8fSVinod Koul	pm8350c: pmic@2 {
1158befd8fSVinod Koul		compatible = "qcom,pm8350c", "qcom,spmi-pmic";
1258befd8fSVinod Koul		reg = <0x2 SPMI_USID>;
1358befd8fSVinod Koul		#address-cells = <1>;
1458befd8fSVinod Koul		#size-cells = <0>;
1558befd8fSVinod Koul
163795fe7dSsatya priya		pm8350c_temp_alarm: temp-alarm@a00 {
173795fe7dSsatya priya			compatible = "qcom,spmi-temp-alarm";
183795fe7dSsatya priya			reg = <0xa00>;
193795fe7dSsatya priya			interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
203795fe7dSsatya priya			#thermal-sensor-cells = <0>;
213795fe7dSsatya priya		};
223795fe7dSsatya priya
2358befd8fSVinod Koul		pm8350c_gpios: gpio@8800 {
246327abefSsatya priya			compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio";
2558befd8fSVinod Koul			reg = <0x8800>;
2658befd8fSVinod Koul			gpio-controller;
276327abefSsatya priya			gpio-ranges = <&pm8350c_gpios 0 0 9>;
2858befd8fSVinod Koul			#gpio-cells = <2>;
2958befd8fSVinod Koul			interrupt-controller;
3058befd8fSVinod Koul			#interrupt-cells = <2>;
3158befd8fSVinod Koul		};
325be66d2dSSatya Priya
33bfd4412aSLuca Weiss		pm8350c_flash: led-controller@ee00 {
34bfd4412aSLuca Weiss			compatible = "qcom,pm8350c-flash-led", "qcom,spmi-flash-led";
35bfd4412aSLuca Weiss			reg = <0xee00>;
36bfd4412aSLuca Weiss			status = "disabled";
37bfd4412aSLuca Weiss		};
38bfd4412aSLuca Weiss
39eeca7d46SBryan O'Donoghue		pm8350c_pwm: pwm {
405be66d2dSSatya Priya			compatible = "qcom,pm8350c-pwm";
415be66d2dSSatya Priya			#pwm-cells = <2>;
425be66d2dSSatya Priya			status = "disabled";
435be66d2dSSatya Priya		};
4458befd8fSVinod Koul	};
4558befd8fSVinod Koul};
463795fe7dSsatya priya
47d67ddd17SDmitry Baryshkov/ {
48d67ddd17SDmitry Baryshkov	thermal-zones {
493795fe7dSsatya priya		pm8350c_thermal: pm8350c-thermal {
503795fe7dSsatya priya			polling-delay-passive = <100>;
51*07fab483SKonrad Dybcio
523795fe7dSsatya priya			thermal-sensors = <&pm8350c_temp_alarm>;
533795fe7dSsatya priya
543795fe7dSsatya priya			trips {
553795fe7dSsatya priya				pm8350c_trip0: trip0 {
563795fe7dSsatya priya					temperature = <95000>;
573795fe7dSsatya priya					hysteresis = <0>;
583795fe7dSsatya priya					type = "passive";
593795fe7dSsatya priya				};
603795fe7dSsatya priya
613795fe7dSsatya priya				pm8350c_crit: pm8350c-crit {
623795fe7dSsatya priya					temperature = <115000>;
633795fe7dSsatya priya					hysteresis = <0>;
643795fe7dSsatya priya					type = "critical";
653795fe7dSsatya priya				};
663795fe7dSsatya priya			};
673795fe7dSsatya priya		};
683795fe7dSsatya priya	};
69d67ddd17SDmitry Baryshkov};
70