1a727ec12SKiran Gunda// SPDX-License-Identifier: BSD-3-Clause 2a727ec12SKiran Gunda// Copyright (c) 2019, The Linux Foundation. All rights reserved. 3a727ec12SKiran Gunda 4a727ec12SKiran Gunda#include <dt-bindings/iio/qcom,spmi-vadc.h> 5a727ec12SKiran Gunda#include <dt-bindings/input/linux-event-codes.h> 6a727ec12SKiran Gunda#include <dt-bindings/interrupt-controller/irq.h> 7a727ec12SKiran Gunda#include <dt-bindings/spmi/spmi.h> 8a727ec12SKiran Gunda#include <dt-bindings/thermal/thermal.h> 9a727ec12SKiran Gunda 10a727ec12SKiran Gunda&spmi_bus { 11a727ec12SKiran Gunda pm6150_lsid0: pmic@0 { 12a727ec12SKiran Gunda compatible = "qcom,pm6150", "qcom,spmi-pmic"; 13a727ec12SKiran Gunda reg = <0x0 SPMI_USID>; 14a727ec12SKiran Gunda #address-cells = <1>; 15a727ec12SKiran Gunda #size-cells = <0>; 16a727ec12SKiran Gunda 17a727ec12SKiran Gunda pm6150_pon: pon@800 { 18a727ec12SKiran Gunda compatible = "qcom,pm8998-pon"; 19a727ec12SKiran Gunda reg = <0x800>; 20a727ec12SKiran Gunda mode-bootloader = <0x2>; 21a727ec12SKiran Gunda mode-recovery = <0x1>; 22a727ec12SKiran Gunda 23f855a922SStephen Boyd pm6150_pwrkey: pwrkey { 24a727ec12SKiran Gunda compatible = "qcom,pm8941-pwrkey"; 25a727ec12SKiran Gunda interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 26a727ec12SKiran Gunda debounce = <15625>; 27a727ec12SKiran Gunda bias-pull-up; 28a727ec12SKiran Gunda linux,code = <KEY_POWER>; 29a727ec12SKiran Gunda }; 30a727ec12SKiran Gunda }; 31a727ec12SKiran Gunda 32a727ec12SKiran Gunda pm6150_temp: temp-alarm@2400 { 33a727ec12SKiran Gunda compatible = "qcom,spmi-temp-alarm"; 34a727ec12SKiran Gunda reg = <0x2400>; 35a727ec12SKiran Gunda interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; 36a727ec12SKiran Gunda io-channels = <&pm6150_adc ADC5_DIE_TEMP>; 37a727ec12SKiran Gunda io-channel-names = "thermal"; 38a727ec12SKiran Gunda #thermal-sensor-cells = <0>; 39a727ec12SKiran Gunda }; 40a727ec12SKiran Gunda 41a727ec12SKiran Gunda pm6150_adc: adc@3100 { 42a727ec12SKiran Gunda compatible = "qcom,spmi-adc5"; 43a727ec12SKiran Gunda reg = <0x3100>; 44a727ec12SKiran Gunda interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 45a727ec12SKiran Gunda #address-cells = <1>; 46a727ec12SKiran Gunda #size-cells = <0>; 47a727ec12SKiran Gunda #io-channel-cells = <1>; 48a727ec12SKiran Gunda 493f155dbeSDouglas Anderson adc-chan@6 { 50a727ec12SKiran Gunda reg = <ADC5_DIE_TEMP>; 51a727ec12SKiran Gunda label = "die_temp"; 52a727ec12SKiran Gunda }; 53a727ec12SKiran Gunda }; 54a727ec12SKiran Gunda 55a727ec12SKiran Gunda pm6150_gpio: gpios@c000 { 56a727ec12SKiran Gunda compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; 57a727ec12SKiran Gunda reg = <0xc000>; 58a727ec12SKiran Gunda gpio-controller; 59a727ec12SKiran Gunda gpio-ranges = <&pm6150_gpio 0 0 10>; 60a727ec12SKiran Gunda #gpio-cells = <2>; 61a727ec12SKiran Gunda interrupt-controller; 62a727ec12SKiran Gunda #interrupt-cells = <2>; 63a727ec12SKiran Gunda }; 64a727ec12SKiran Gunda }; 65a727ec12SKiran Gunda 66a727ec12SKiran Gunda pm6150_lsid1: pmic@1 { 67a727ec12SKiran Gunda compatible = "qcom,pm6150", "qcom,spmi-pmic"; 68a727ec12SKiran Gunda reg = <0x1 SPMI_USID>; 69a727ec12SKiran Gunda #address-cells = <1>; 70a727ec12SKiran Gunda #size-cells = <0>; 71a727ec12SKiran Gunda }; 72a727ec12SKiran Gunda}; 73