18d13bc63SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 28d13bc63SEmmanuel Vadot#include <dt-bindings/iio/qcom,spmi-vadc.h> 3*b2d2a78aSEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h> 48d13bc63SEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 58d13bc63SEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 68d13bc63SEmmanuel Vadot 78d13bc63SEmmanuel Vadot&spmi_bus { 88d13bc63SEmmanuel Vadot 98d13bc63SEmmanuel Vadot pma8084_0: pma8084@0 { 108d13bc63SEmmanuel Vadot compatible = "qcom,pma8084", "qcom,spmi-pmic"; 118d13bc63SEmmanuel Vadot reg = <0x0 SPMI_USID>; 128d13bc63SEmmanuel Vadot #address-cells = <1>; 138d13bc63SEmmanuel Vadot #size-cells = <0>; 148d13bc63SEmmanuel Vadot 158d13bc63SEmmanuel Vadot rtc@6000 { 168d13bc63SEmmanuel Vadot compatible = "qcom,pm8941-rtc"; 178d13bc63SEmmanuel Vadot reg = <0x6000>, 188d13bc63SEmmanuel Vadot <0x6100>; 198d13bc63SEmmanuel Vadot reg-names = "rtc", "alarm"; 208d13bc63SEmmanuel Vadot interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 218d13bc63SEmmanuel Vadot }; 228d13bc63SEmmanuel Vadot 23*b2d2a78aSEmmanuel Vadot pon@800 { 24*b2d2a78aSEmmanuel Vadot compatible = "qcom,pm8941-pon"; 258d13bc63SEmmanuel Vadot reg = <0x800>; 26*b2d2a78aSEmmanuel Vadot 27*b2d2a78aSEmmanuel Vadot pwrkey { 28*b2d2a78aSEmmanuel Vadot compatible = "qcom,pm8941-pwrkey"; 298d13bc63SEmmanuel Vadot interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 308d13bc63SEmmanuel Vadot debounce = <15625>; 318d13bc63SEmmanuel Vadot bias-pull-up; 32*b2d2a78aSEmmanuel Vadot linux,code = <KEY_POWER>; 33*b2d2a78aSEmmanuel Vadot }; 348d13bc63SEmmanuel Vadot }; 358d13bc63SEmmanuel Vadot 368d13bc63SEmmanuel Vadot pma8084_gpios: gpio@c000 { 378d13bc63SEmmanuel Vadot compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; 388d13bc63SEmmanuel Vadot reg = <0xc000>; 398d13bc63SEmmanuel Vadot gpio-controller; 408d13bc63SEmmanuel Vadot gpio-ranges = <&pma8084_gpios 0 0 22>; 418d13bc63SEmmanuel Vadot #gpio-cells = <2>; 428d13bc63SEmmanuel Vadot interrupt-controller; 438d13bc63SEmmanuel Vadot #interrupt-cells = <2>; 448d13bc63SEmmanuel Vadot }; 458d13bc63SEmmanuel Vadot 468d13bc63SEmmanuel Vadot pma8084_mpps: mpps@a000 { 478d13bc63SEmmanuel Vadot compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp"; 488d13bc63SEmmanuel Vadot reg = <0xa000>; 498d13bc63SEmmanuel Vadot gpio-controller; 508d13bc63SEmmanuel Vadot #gpio-cells = <2>; 518d13bc63SEmmanuel Vadot gpio-ranges = <&pma8084_mpps 0 0 8>; 528d13bc63SEmmanuel Vadot interrupt-controller; 538d13bc63SEmmanuel Vadot #interrupt-cells = <2>; 548d13bc63SEmmanuel Vadot }; 558d13bc63SEmmanuel Vadot 568d13bc63SEmmanuel Vadot pma8084_temp: temp-alarm@2400 { 578d13bc63SEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 588d13bc63SEmmanuel Vadot reg = <0x2400>; 598d13bc63SEmmanuel Vadot interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; 608d13bc63SEmmanuel Vadot #thermal-sensor-cells = <0>; 618d13bc63SEmmanuel Vadot io-channels = <&pma8084_vadc VADC_DIE_TEMP>; 628d13bc63SEmmanuel Vadot io-channel-names = "thermal"; 638d13bc63SEmmanuel Vadot }; 648d13bc63SEmmanuel Vadot 658d13bc63SEmmanuel Vadot pma8084_vadc: adc@3100 { 668d13bc63SEmmanuel Vadot compatible = "qcom,spmi-vadc"; 678d13bc63SEmmanuel Vadot reg = <0x3100>; 688d13bc63SEmmanuel Vadot interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 698d13bc63SEmmanuel Vadot #address-cells = <1>; 708d13bc63SEmmanuel Vadot #size-cells = <0>; 718d13bc63SEmmanuel Vadot #io-channel-cells = <1>; 728d13bc63SEmmanuel Vadot 738d13bc63SEmmanuel Vadot channel@8 { 748d13bc63SEmmanuel Vadot reg = <VADC_DIE_TEMP>; 758d13bc63SEmmanuel Vadot }; 768d13bc63SEmmanuel Vadot 778d13bc63SEmmanuel Vadot channel@9 { 788d13bc63SEmmanuel Vadot reg = <VADC_REF_625MV>; 798d13bc63SEmmanuel Vadot }; 808d13bc63SEmmanuel Vadot 818d13bc63SEmmanuel Vadot channel@a { 828d13bc63SEmmanuel Vadot reg = <VADC_REF_1250MV>; 838d13bc63SEmmanuel Vadot }; 848d13bc63SEmmanuel Vadot 858d13bc63SEmmanuel Vadot channel@c { 868d13bc63SEmmanuel Vadot reg = <VADC_SPARE1>; 878d13bc63SEmmanuel Vadot }; 888d13bc63SEmmanuel Vadot 898d13bc63SEmmanuel Vadot channel@e { 908d13bc63SEmmanuel Vadot reg = <VADC_GND_REF>; 918d13bc63SEmmanuel Vadot }; 928d13bc63SEmmanuel Vadot 938d13bc63SEmmanuel Vadot channel@f { 948d13bc63SEmmanuel Vadot reg = <VADC_VDD_VADC>; 958d13bc63SEmmanuel Vadot }; 968d13bc63SEmmanuel Vadot }; 978d13bc63SEmmanuel Vadot }; 988d13bc63SEmmanuel Vadot 998d13bc63SEmmanuel Vadot pma8084_1: pma8084@1 { 1008d13bc63SEmmanuel Vadot compatible = "qcom,pma8084", "qcom,spmi-pmic"; 1018d13bc63SEmmanuel Vadot reg = <0x1 SPMI_USID>; 1028d13bc63SEmmanuel Vadot #address-cells = <1>; 1038d13bc63SEmmanuel Vadot #size-cells = <0>; 1048d13bc63SEmmanuel Vadot }; 1058d13bc63SEmmanuel Vadot}; 106