1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2019, Linaro Limited 5 */ 6 7#include <dt-bindings/input/input.h> 8#include <dt-bindings/interrupt-controller/irq.h> 9#include <dt-bindings/spmi/spmi.h> 10#include <dt-bindings/iio/qcom,spmi-vadc.h> 11 12&spmi_bus { 13 pm8150_0: pmic@0 { 14 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 15 reg = <0x0 SPMI_USID>; 16 #address-cells = <1>; 17 #size-cells = <0>; 18 19 pon: power-on@800 { 20 compatible = "qcom,pm8916-pon"; 21 reg = <0x0800>; 22 pwrkey { 23 compatible = "qcom,pm8941-pwrkey"; 24 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; 25 debounce = <15625>; 26 bias-pull-up; 27 linux,code = <KEY_POWER>; 28 29 status = "disabled"; 30 }; 31 }; 32 33 pm8150_adc: adc@3100 { 34 compatible = "qcom,spmi-adc5"; 35 reg = <0x3100>; 36 #address-cells = <1>; 37 #size-cells = <0>; 38 #io-channel-cells = <1>; 39 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 40 41 status = "disabled"; 42 43 ref-gnd@0 { 44 reg = <ADC5_REF_GND>; 45 qcom,pre-scaling = <1 1>; 46 label = "ref_gnd"; 47 }; 48 49 vref-1p25@1 { 50 reg = <ADC5_1P25VREF>; 51 qcom,pre-scaling = <1 1>; 52 label = "vref_1p25"; 53 }; 54 55 die-temp@6 { 56 reg = <ADC5_DIE_TEMP>; 57 qcom,pre-scaling = <1 1>; 58 label = "die_temp"; 59 }; 60 }; 61 62 rtc@6000 { 63 compatible = "qcom,pm8941-rtc"; 64 reg = <0x6000>; 65 reg-names = "rtc", "alarm"; 66 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; 67 68 status = "disabled"; 69 }; 70 71 pm8150_gpios: gpio@c000 { 72 compatible = "qcom,pm8150-gpio"; 73 reg = <0xc000>; 74 gpio-controller; 75 #gpio-cells = <2>; 76 interrupt-controller; 77 #interrupt-cells = <2>; 78 }; 79 }; 80 81 pmic@1 { 82 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 83 reg = <0x1 SPMI_USID>; 84 #address-cells = <1>; 85 #size-cells = <0>; 86 }; 87}; 88