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 33*eeca7d46SBryan O'Donoghue pm8350c_pwm: pwm { 345be66d2dSSatya Priya compatible = "qcom,pm8350c-pwm"; 355be66d2dSSatya Priya #pwm-cells = <2>; 365be66d2dSSatya Priya status = "disabled"; 375be66d2dSSatya Priya }; 3858befd8fSVinod Koul }; 3958befd8fSVinod Koul}; 403795fe7dSsatya priya 41d67ddd17SDmitry Baryshkov/ { 42d67ddd17SDmitry Baryshkov thermal-zones { 433795fe7dSsatya priya pm8350c_thermal: pm8350c-thermal { 443795fe7dSsatya priya polling-delay-passive = <100>; 453795fe7dSsatya priya polling-delay = <0>; 463795fe7dSsatya priya thermal-sensors = <&pm8350c_temp_alarm>; 473795fe7dSsatya priya 483795fe7dSsatya priya trips { 493795fe7dSsatya priya pm8350c_trip0: trip0 { 503795fe7dSsatya priya temperature = <95000>; 513795fe7dSsatya priya hysteresis = <0>; 523795fe7dSsatya priya type = "passive"; 533795fe7dSsatya priya }; 543795fe7dSsatya priya 553795fe7dSsatya priya pm8350c_crit: pm8350c-crit { 563795fe7dSsatya priya temperature = <115000>; 573795fe7dSsatya priya hysteresis = <0>; 583795fe7dSsatya priya type = "critical"; 593795fe7dSsatya priya }; 603795fe7dSsatya priya }; 613795fe7dSsatya priya }; 623795fe7dSsatya priya }; 63d67ddd17SDmitry Baryshkov}; 64