1e92b61c8SVinod Koul// SPDX-License-Identifier: BSD-3-Clause 2e92b61c8SVinod Koul/* 3e92b61c8SVinod Koul * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 4e92b61c8SVinod Koul * Copyright (c) 2019, Linaro Limited 5e92b61c8SVinod Koul */ 6e92b61c8SVinod Koul 7e92b61c8SVinod Koul#include <dt-bindings/iio/qcom,spmi-vadc.h> 8e92b61c8SVinod Koul#include <dt-bindings/interrupt-controller/irq.h> 9e92b61c8SVinod Koul#include <dt-bindings/spmi/spmi.h> 10e92b61c8SVinod Koul 114c5a410dSDmitry Baryshkov/ { 124c5a410dSDmitry Baryshkov thermal-zones { 133a786086SManivannan Sadhasivam pm8150l-thermal { 144c5a410dSDmitry Baryshkov polling-delay-passive = <100>; 154c5a410dSDmitry Baryshkov 164c5a410dSDmitry Baryshkov thermal-sensors = <&pm8150l_temp>; 174c5a410dSDmitry Baryshkov 184c5a410dSDmitry Baryshkov trips { 194c5a410dSDmitry Baryshkov trip0 { 204c5a410dSDmitry Baryshkov temperature = <95000>; 214c5a410dSDmitry Baryshkov hysteresis = <0>; 224c5a410dSDmitry Baryshkov type = "passive"; 234c5a410dSDmitry Baryshkov }; 244c5a410dSDmitry Baryshkov 254c5a410dSDmitry Baryshkov trip1 { 264c5a410dSDmitry Baryshkov temperature = <115000>; 274c5a410dSDmitry Baryshkov hysteresis = <0>; 284c5a410dSDmitry Baryshkov type = "hot"; 294c5a410dSDmitry Baryshkov }; 304c5a410dSDmitry Baryshkov 314c5a410dSDmitry Baryshkov trip2 { 324c5a410dSDmitry Baryshkov temperature = <145000>; 334c5a410dSDmitry Baryshkov hysteresis = <0>; 344c5a410dSDmitry Baryshkov type = "critical"; 354c5a410dSDmitry Baryshkov }; 364c5a410dSDmitry Baryshkov }; 374c5a410dSDmitry Baryshkov }; 384c5a410dSDmitry Baryshkov }; 394c5a410dSDmitry Baryshkov}; 404c5a410dSDmitry Baryshkov 41e92b61c8SVinod Koul&spmi_bus { 42e92b61c8SVinod Koul pmic@4 { 43e92b61c8SVinod Koul compatible = "qcom,pm8150l", "qcom,spmi-pmic"; 44e92b61c8SVinod Koul reg = <0x4 SPMI_USID>; 45e92b61c8SVinod Koul #address-cells = <1>; 46e92b61c8SVinod Koul #size-cells = <0>; 47e92b61c8SVinod Koul 4887783dbeSKrzysztof Kozlowski pon@800 { 49e92b61c8SVinod Koul compatible = "qcom,pm8916-pon"; 50e92b61c8SVinod Koul reg = <0x0800>; 51e92b61c8SVinod Koul 52e92b61c8SVinod Koul status = "disabled"; 53e92b61c8SVinod Koul }; 54e92b61c8SVinod Koul 554c5a410dSDmitry Baryshkov pm8150l_temp: temp-alarm@2400 { 564c5a410dSDmitry Baryshkov compatible = "qcom,spmi-temp-alarm"; 574c5a410dSDmitry Baryshkov reg = <0x2400>; 584c5a410dSDmitry Baryshkov interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 594c5a410dSDmitry Baryshkov io-channels = <&pm8150l_adc ADC5_DIE_TEMP>; 604c5a410dSDmitry Baryshkov io-channel-names = "thermal"; 614c5a410dSDmitry Baryshkov #thermal-sensor-cells = <0>; 624c5a410dSDmitry Baryshkov }; 634c5a410dSDmitry Baryshkov 644c5a410dSDmitry Baryshkov pm8150l_adc: adc@3100 { 65e92b61c8SVinod Koul compatible = "qcom,spmi-adc5"; 66e92b61c8SVinod Koul reg = <0x3100>; 67e92b61c8SVinod Koul #address-cells = <1>; 68e92b61c8SVinod Koul #size-cells = <0>; 69e92b61c8SVinod Koul #io-channel-cells = <1>; 70e92b61c8SVinod Koul interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 71e92b61c8SVinod Koul 7241c18552SMarijn Suijten channel@0 { 73e92b61c8SVinod Koul reg = <ADC5_REF_GND>; 74e92b61c8SVinod Koul qcom,pre-scaling = <1 1>; 75e92b61c8SVinod Koul label = "ref_gnd"; 76e92b61c8SVinod Koul }; 77e92b61c8SVinod Koul 7841c18552SMarijn Suijten channel@1 { 79e92b61c8SVinod Koul reg = <ADC5_1P25VREF>; 80e92b61c8SVinod Koul qcom,pre-scaling = <1 1>; 81e92b61c8SVinod Koul label = "vref_1p25"; 82e92b61c8SVinod Koul }; 83e92b61c8SVinod Koul 8441c18552SMarijn Suijten channel@6 { 85e92b61c8SVinod Koul reg = <ADC5_DIE_TEMP>; 86e92b61c8SVinod Koul qcom,pre-scaling = <1 1>; 87e92b61c8SVinod Koul label = "die_temp"; 88e92b61c8SVinod Koul }; 89e92b61c8SVinod Koul }; 90e92b61c8SVinod Koul 9128a7eb65SDmitry Baryshkov pm8150l_adc_tm: adc-tm@3500 { 9228a7eb65SDmitry Baryshkov compatible = "qcom,spmi-adc-tm5"; 9328a7eb65SDmitry Baryshkov reg = <0x3500>; 9428a7eb65SDmitry Baryshkov interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 9528a7eb65SDmitry Baryshkov #thermal-sensor-cells = <1>; 9628a7eb65SDmitry Baryshkov #address-cells = <1>; 9728a7eb65SDmitry Baryshkov #size-cells = <0>; 9828a7eb65SDmitry Baryshkov status = "disabled"; 9928a7eb65SDmitry Baryshkov }; 10028a7eb65SDmitry Baryshkov 101e92b61c8SVinod Koul pm8150l_gpios: gpio@c000 { 102019102a9SKrzysztof Kozlowski compatible = "qcom,pm8150l-gpio", "qcom,spmi-gpio"; 103e92b61c8SVinod Koul reg = <0xc000>; 104e92b61c8SVinod Koul gpio-controller; 105b07bfd8eSKrzysztof Kozlowski gpio-ranges = <&pm8150l_gpios 0 0 12>; 106e92b61c8SVinod Koul #gpio-cells = <2>; 10761d2ca50SJonathan Marek interrupt-controller; 10861d2ca50SJonathan Marek #interrupt-cells = <2>; 109e92b61c8SVinod Koul }; 110e92b61c8SVinod Koul }; 111e92b61c8SVinod Koul 112e92b61c8SVinod Koul pmic@5 { 113e92b61c8SVinod Koul compatible = "qcom,pm8150l", "qcom,spmi-pmic"; 114e92b61c8SVinod Koul reg = <0x5 SPMI_USID>; 115e92b61c8SVinod Koul #address-cells = <1>; 116e92b61c8SVinod Koul #size-cells = <0>; 1173e48f742SDmitry Baryshkov 1184f278f71SDanila Tikhonov pm8150l_flash: led-controller@d300 { 1194f278f71SDanila Tikhonov compatible = "qcom,pm8150l-flash-led", "qcom,spmi-flash-led"; 1204f278f71SDanila Tikhonov reg = <0xd300>; 1214f278f71SDanila Tikhonov status = "disabled"; 1224f278f71SDanila Tikhonov }; 1234f278f71SDanila Tikhonov 12415f50a48SKrzysztof Kozlowski pm8150l_lpg: pwm { 1253e48f742SDmitry Baryshkov compatible = "qcom,pm8150l-lpg"; 1263e48f742SDmitry Baryshkov 1273e48f742SDmitry Baryshkov #address-cells = <1>; 1283e48f742SDmitry Baryshkov #size-cells = <0>; 1293e48f742SDmitry Baryshkov #pwm-cells = <2>; 1303e48f742SDmitry Baryshkov 1313e48f742SDmitry Baryshkov status = "disabled"; 1323e48f742SDmitry Baryshkov }; 1333e48f742SDmitry Baryshkov 134*4a94b52aSDanila Tikhonov pm8150l_wled: leds@d800 { 135*4a94b52aSDanila Tikhonov compatible = "qcom,pm8150l-wled"; 136*4a94b52aSDanila Tikhonov reg = <0xd800>, <0xd900>; 137*4a94b52aSDanila Tikhonov interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, 138*4a94b52aSDanila Tikhonov <0x5 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; 139*4a94b52aSDanila Tikhonov interrupt-names = "ovp", "short"; 140*4a94b52aSDanila Tikhonov label = "backlight"; 141*4a94b52aSDanila Tikhonov 142*4a94b52aSDanila Tikhonov status = "disabled"; 143*4a94b52aSDanila Tikhonov }; 144e92b61c8SVinod Koul }; 145e92b61c8SVinod Koul}; 146