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 polling-delay = <0>; 164c5a410dSDmitry Baryshkov 174c5a410dSDmitry Baryshkov thermal-sensors = <&pm8150l_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 42e92b61c8SVinod Koul&spmi_bus { 43e92b61c8SVinod Koul pmic@4 { 44e92b61c8SVinod Koul compatible = "qcom,pm8150l", "qcom,spmi-pmic"; 45e92b61c8SVinod Koul reg = <0x4 SPMI_USID>; 46e92b61c8SVinod Koul #address-cells = <1>; 47e92b61c8SVinod Koul #size-cells = <0>; 48e92b61c8SVinod Koul 4987783dbeSKrzysztof Kozlowski pon@800 { 50e92b61c8SVinod Koul compatible = "qcom,pm8916-pon"; 51e92b61c8SVinod Koul reg = <0x0800>; 52e92b61c8SVinod Koul 53e92b61c8SVinod Koul status = "disabled"; 54e92b61c8SVinod Koul }; 55e92b61c8SVinod Koul 564c5a410dSDmitry Baryshkov pm8150l_temp: temp-alarm@2400 { 574c5a410dSDmitry Baryshkov compatible = "qcom,spmi-temp-alarm"; 584c5a410dSDmitry Baryshkov reg = <0x2400>; 594c5a410dSDmitry Baryshkov interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 604c5a410dSDmitry Baryshkov io-channels = <&pm8150l_adc ADC5_DIE_TEMP>; 614c5a410dSDmitry Baryshkov io-channel-names = "thermal"; 624c5a410dSDmitry Baryshkov #thermal-sensor-cells = <0>; 634c5a410dSDmitry Baryshkov }; 644c5a410dSDmitry Baryshkov 654c5a410dSDmitry Baryshkov pm8150l_adc: adc@3100 { 66e92b61c8SVinod Koul compatible = "qcom,spmi-adc5"; 67e92b61c8SVinod Koul reg = <0x3100>; 68e92b61c8SVinod Koul #address-cells = <1>; 69e92b61c8SVinod Koul #size-cells = <0>; 70e92b61c8SVinod Koul #io-channel-cells = <1>; 71e92b61c8SVinod Koul interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 72e92b61c8SVinod Koul 73*41c18552SMarijn Suijten channel@0 { 74e92b61c8SVinod Koul reg = <ADC5_REF_GND>; 75e92b61c8SVinod Koul qcom,pre-scaling = <1 1>; 76e92b61c8SVinod Koul label = "ref_gnd"; 77e92b61c8SVinod Koul }; 78e92b61c8SVinod Koul 79*41c18552SMarijn Suijten channel@1 { 80e92b61c8SVinod Koul reg = <ADC5_1P25VREF>; 81e92b61c8SVinod Koul qcom,pre-scaling = <1 1>; 82e92b61c8SVinod Koul label = "vref_1p25"; 83e92b61c8SVinod Koul }; 84e92b61c8SVinod Koul 85*41c18552SMarijn Suijten channel@6 { 86e92b61c8SVinod Koul reg = <ADC5_DIE_TEMP>; 87e92b61c8SVinod Koul qcom,pre-scaling = <1 1>; 88e92b61c8SVinod Koul label = "die_temp"; 89e92b61c8SVinod Koul }; 90e92b61c8SVinod Koul }; 91e92b61c8SVinod Koul 9228a7eb65SDmitry Baryshkov pm8150l_adc_tm: adc-tm@3500 { 9328a7eb65SDmitry Baryshkov compatible = "qcom,spmi-adc-tm5"; 9428a7eb65SDmitry Baryshkov reg = <0x3500>; 9528a7eb65SDmitry Baryshkov interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 9628a7eb65SDmitry Baryshkov #thermal-sensor-cells = <1>; 9728a7eb65SDmitry Baryshkov #address-cells = <1>; 9828a7eb65SDmitry Baryshkov #size-cells = <0>; 9928a7eb65SDmitry Baryshkov status = "disabled"; 10028a7eb65SDmitry Baryshkov }; 10128a7eb65SDmitry Baryshkov 102e92b61c8SVinod Koul pm8150l_gpios: gpio@c000 { 103019102a9SKrzysztof Kozlowski compatible = "qcom,pm8150l-gpio", "qcom,spmi-gpio"; 104e92b61c8SVinod Koul reg = <0xc000>; 105e92b61c8SVinod Koul gpio-controller; 106b07bfd8eSKrzysztof Kozlowski gpio-ranges = <&pm8150l_gpios 0 0 12>; 107e92b61c8SVinod Koul #gpio-cells = <2>; 10861d2ca50SJonathan Marek interrupt-controller; 10961d2ca50SJonathan Marek #interrupt-cells = <2>; 110e92b61c8SVinod Koul }; 111e92b61c8SVinod Koul }; 112e92b61c8SVinod Koul 113e92b61c8SVinod Koul pmic@5 { 114e92b61c8SVinod Koul compatible = "qcom,pm8150l", "qcom,spmi-pmic"; 115e92b61c8SVinod Koul reg = <0x5 SPMI_USID>; 116e92b61c8SVinod Koul #address-cells = <1>; 117e92b61c8SVinod Koul #size-cells = <0>; 1183e48f742SDmitry Baryshkov 1194f278f71SDanila Tikhonov pm8150l_flash: led-controller@d300 { 1204f278f71SDanila Tikhonov compatible = "qcom,pm8150l-flash-led", "qcom,spmi-flash-led"; 1214f278f71SDanila Tikhonov reg = <0xd300>; 1224f278f71SDanila Tikhonov status = "disabled"; 1234f278f71SDanila Tikhonov }; 1244f278f71SDanila Tikhonov 12515f50a48SKrzysztof Kozlowski pm8150l_lpg: pwm { 1263e48f742SDmitry Baryshkov compatible = "qcom,pm8150l-lpg"; 1273e48f742SDmitry Baryshkov 1283e48f742SDmitry Baryshkov #address-cells = <1>; 1293e48f742SDmitry Baryshkov #size-cells = <0>; 1303e48f742SDmitry Baryshkov #pwm-cells = <2>; 1313e48f742SDmitry Baryshkov 1323e48f742SDmitry Baryshkov status = "disabled"; 1333e48f742SDmitry Baryshkov }; 1343e48f742SDmitry Baryshkov 135e92b61c8SVinod Koul }; 136e92b61c8SVinod Koul}; 137