1455a4c46SDmitry Baryshkov// SPDX-License-Identifier: GPL-2.0 2455a4c46SDmitry Baryshkov#include <dt-bindings/iio/qcom,spmi-vadc.h> 3*611cd69fSRayyan Ansari#include <dt-bindings/input/linux-event-codes.h> 4455a4c46SDmitry Baryshkov#include <dt-bindings/interrupt-controller/irq.h> 5455a4c46SDmitry Baryshkov#include <dt-bindings/spmi/spmi.h> 6455a4c46SDmitry Baryshkov 7455a4c46SDmitry Baryshkov&spmi_bus { 8455a4c46SDmitry Baryshkov 9455a4c46SDmitry Baryshkov pma8084_0: pma8084@0 { 10455a4c46SDmitry Baryshkov compatible = "qcom,pma8084", "qcom,spmi-pmic"; 11455a4c46SDmitry Baryshkov reg = <0x0 SPMI_USID>; 12455a4c46SDmitry Baryshkov #address-cells = <1>; 13455a4c46SDmitry Baryshkov #size-cells = <0>; 14455a4c46SDmitry Baryshkov 15455a4c46SDmitry Baryshkov rtc@6000 { 16455a4c46SDmitry Baryshkov compatible = "qcom,pm8941-rtc"; 17455a4c46SDmitry Baryshkov reg = <0x6000>, 18455a4c46SDmitry Baryshkov <0x6100>; 19455a4c46SDmitry Baryshkov reg-names = "rtc", "alarm"; 20455a4c46SDmitry Baryshkov interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 21455a4c46SDmitry Baryshkov }; 22455a4c46SDmitry Baryshkov 23*611cd69fSRayyan Ansari pon@800 { 24*611cd69fSRayyan Ansari compatible = "qcom,pm8941-pon"; 25455a4c46SDmitry Baryshkov reg = <0x800>; 26*611cd69fSRayyan Ansari 27*611cd69fSRayyan Ansari pwrkey { 28*611cd69fSRayyan Ansari compatible = "qcom,pm8941-pwrkey"; 29455a4c46SDmitry Baryshkov interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 30455a4c46SDmitry Baryshkov debounce = <15625>; 31455a4c46SDmitry Baryshkov bias-pull-up; 32*611cd69fSRayyan Ansari linux,code = <KEY_POWER>; 33*611cd69fSRayyan Ansari }; 34455a4c46SDmitry Baryshkov }; 35455a4c46SDmitry Baryshkov 36455a4c46SDmitry Baryshkov pma8084_gpios: gpio@c000 { 37455a4c46SDmitry Baryshkov compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; 38455a4c46SDmitry Baryshkov reg = <0xc000>; 39455a4c46SDmitry Baryshkov gpio-controller; 40455a4c46SDmitry Baryshkov gpio-ranges = <&pma8084_gpios 0 0 22>; 41455a4c46SDmitry Baryshkov #gpio-cells = <2>; 42455a4c46SDmitry Baryshkov interrupt-controller; 43455a4c46SDmitry Baryshkov #interrupt-cells = <2>; 44455a4c46SDmitry Baryshkov }; 45455a4c46SDmitry Baryshkov 46455a4c46SDmitry Baryshkov pma8084_mpps: mpps@a000 { 47455a4c46SDmitry Baryshkov compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp"; 48455a4c46SDmitry Baryshkov reg = <0xa000>; 49455a4c46SDmitry Baryshkov gpio-controller; 50455a4c46SDmitry Baryshkov #gpio-cells = <2>; 51455a4c46SDmitry Baryshkov gpio-ranges = <&pma8084_mpps 0 0 8>; 52455a4c46SDmitry Baryshkov interrupt-controller; 53455a4c46SDmitry Baryshkov #interrupt-cells = <2>; 54455a4c46SDmitry Baryshkov }; 55455a4c46SDmitry Baryshkov 56455a4c46SDmitry Baryshkov pma8084_temp: temp-alarm@2400 { 57455a4c46SDmitry Baryshkov compatible = "qcom,spmi-temp-alarm"; 58455a4c46SDmitry Baryshkov reg = <0x2400>; 59455a4c46SDmitry Baryshkov interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; 60455a4c46SDmitry Baryshkov #thermal-sensor-cells = <0>; 61455a4c46SDmitry Baryshkov io-channels = <&pma8084_vadc VADC_DIE_TEMP>; 62455a4c46SDmitry Baryshkov io-channel-names = "thermal"; 63455a4c46SDmitry Baryshkov }; 64455a4c46SDmitry Baryshkov 65455a4c46SDmitry Baryshkov pma8084_vadc: adc@3100 { 66455a4c46SDmitry Baryshkov compatible = "qcom,spmi-vadc"; 67455a4c46SDmitry Baryshkov reg = <0x3100>; 68455a4c46SDmitry Baryshkov interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 69455a4c46SDmitry Baryshkov #address-cells = <1>; 70455a4c46SDmitry Baryshkov #size-cells = <0>; 71455a4c46SDmitry Baryshkov #io-channel-cells = <1>; 72455a4c46SDmitry Baryshkov 73455a4c46SDmitry Baryshkov channel@8 { 74455a4c46SDmitry Baryshkov reg = <VADC_DIE_TEMP>; 75455a4c46SDmitry Baryshkov }; 76455a4c46SDmitry Baryshkov 77455a4c46SDmitry Baryshkov channel@9 { 78455a4c46SDmitry Baryshkov reg = <VADC_REF_625MV>; 79455a4c46SDmitry Baryshkov }; 80455a4c46SDmitry Baryshkov 81455a4c46SDmitry Baryshkov channel@a { 82455a4c46SDmitry Baryshkov reg = <VADC_REF_1250MV>; 83455a4c46SDmitry Baryshkov }; 84455a4c46SDmitry Baryshkov 85455a4c46SDmitry Baryshkov channel@c { 86455a4c46SDmitry Baryshkov reg = <VADC_SPARE1>; 87455a4c46SDmitry Baryshkov }; 88455a4c46SDmitry Baryshkov 89455a4c46SDmitry Baryshkov channel@e { 90455a4c46SDmitry Baryshkov reg = <VADC_GND_REF>; 91455a4c46SDmitry Baryshkov }; 92455a4c46SDmitry Baryshkov 93455a4c46SDmitry Baryshkov channel@f { 94455a4c46SDmitry Baryshkov reg = <VADC_VDD_VADC>; 95455a4c46SDmitry Baryshkov }; 96455a4c46SDmitry Baryshkov }; 97455a4c46SDmitry Baryshkov }; 98455a4c46SDmitry Baryshkov 99455a4c46SDmitry Baryshkov pma8084_1: pma8084@1 { 100455a4c46SDmitry Baryshkov compatible = "qcom,pma8084", "qcom,spmi-pmic"; 101455a4c46SDmitry Baryshkov reg = <0x1 SPMI_USID>; 102455a4c46SDmitry Baryshkov #address-cells = <1>; 103455a4c46SDmitry Baryshkov #size-cells = <0>; 104455a4c46SDmitry Baryshkov }; 105455a4c46SDmitry Baryshkov}; 106