1f126890aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause 2f126890aSEmmanuel Vadot 3f126890aSEmmanuel Vadot/* 4f126890aSEmmanuel Vadot * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 5f126890aSEmmanuel Vadot * Copyright (c) 2020, Linaro Limited 6f126890aSEmmanuel Vadot */ 7f126890aSEmmanuel Vadot 8f126890aSEmmanuel Vadot#include <dt-bindings/iio/qcom,spmi-vadc.h> 9f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 10f126890aSEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadot&spmi_bus { 13f126890aSEmmanuel Vadot pmic@8 { 14f126890aSEmmanuel Vadot compatible = "qcom,pmx55", "qcom,spmi-pmic"; 15f126890aSEmmanuel Vadot reg = <0x8 SPMI_USID>; 16f126890aSEmmanuel Vadot #address-cells = <1>; 17f126890aSEmmanuel Vadot #size-cells = <0>; 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot pon@800 { 20f126890aSEmmanuel Vadot compatible = "qcom,pm8916-pon"; 21f126890aSEmmanuel Vadot reg = <0x0800>; 22f126890aSEmmanuel Vadot 23f126890aSEmmanuel Vadot status = "disabled"; 24f126890aSEmmanuel Vadot }; 25f126890aSEmmanuel Vadot 26f126890aSEmmanuel Vadot pmx55_temp: temp-alarm@2400 { 27f126890aSEmmanuel Vadot compatible = "qcom,spmi-temp-alarm"; 28f126890aSEmmanuel Vadot reg = <0x2400>; 29f126890aSEmmanuel Vadot interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 30f126890aSEmmanuel Vadot io-channels = <&pmx55_adc ADC5_DIE_TEMP>; 31f126890aSEmmanuel Vadot io-channel-names = "thermal"; 32f126890aSEmmanuel Vadot #thermal-sensor-cells = <0>; 33f126890aSEmmanuel Vadot }; 34f126890aSEmmanuel Vadot 35f126890aSEmmanuel Vadot pmx55_adc: adc@3100 { 36f126890aSEmmanuel Vadot compatible = "qcom,spmi-adc5"; 37f126890aSEmmanuel Vadot reg = <0x3100>; 38f126890aSEmmanuel Vadot #address-cells = <1>; 39f126890aSEmmanuel Vadot #size-cells = <0>; 40f126890aSEmmanuel Vadot #io-channel-cells = <1>; 41f126890aSEmmanuel Vadot interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 42f126890aSEmmanuel Vadot 43*aa1a8ff2SEmmanuel Vadot channel@0 { 44f126890aSEmmanuel Vadot reg = <ADC5_REF_GND>; 45f126890aSEmmanuel Vadot qcom,pre-scaling = <1 1>; 46f126890aSEmmanuel Vadot label = "ref_gnd"; 47f126890aSEmmanuel Vadot }; 48f126890aSEmmanuel Vadot 49*aa1a8ff2SEmmanuel Vadot channel@1 { 50f126890aSEmmanuel Vadot reg = <ADC5_1P25VREF>; 51f126890aSEmmanuel Vadot qcom,pre-scaling = <1 1>; 52f126890aSEmmanuel Vadot label = "vref_1p25"; 53f126890aSEmmanuel Vadot }; 54f126890aSEmmanuel Vadot 55*aa1a8ff2SEmmanuel Vadot channel@6 { 56f126890aSEmmanuel Vadot reg = <ADC5_DIE_TEMP>; 57f126890aSEmmanuel Vadot qcom,pre-scaling = <1 1>; 58f126890aSEmmanuel Vadot label = "die_temp"; 59f126890aSEmmanuel Vadot }; 60f126890aSEmmanuel Vadot 61*aa1a8ff2SEmmanuel Vadot channel@9 { 62f126890aSEmmanuel Vadot reg = <ADC5_CHG_TEMP>; 63f126890aSEmmanuel Vadot qcom,pre-scaling = <1 1>; 64f126890aSEmmanuel Vadot label = "chg_temp"; 65f126890aSEmmanuel Vadot }; 66f126890aSEmmanuel Vadot }; 67f126890aSEmmanuel Vadot 68f126890aSEmmanuel Vadot pmx55_gpios: gpio@c000 { 69f126890aSEmmanuel Vadot compatible = "qcom,pmx55-gpio", "qcom,spmi-gpio"; 70f126890aSEmmanuel Vadot reg = <0xc000>; 71f126890aSEmmanuel Vadot gpio-controller; 72f126890aSEmmanuel Vadot gpio-ranges = <&pmx55_gpios 0 0 11>; 73f126890aSEmmanuel Vadot #gpio-cells = <2>; 74f126890aSEmmanuel Vadot interrupt-controller; 75f126890aSEmmanuel Vadot #interrupt-cells = <2>; 76f126890aSEmmanuel Vadot }; 77f126890aSEmmanuel Vadot }; 78f126890aSEmmanuel Vadot 79f126890aSEmmanuel Vadot pmic@9 { 80f126890aSEmmanuel Vadot compatible = "qcom,pmx55", "qcom,spmi-pmic"; 81f126890aSEmmanuel Vadot reg = <0x9 SPMI_USID>; 82f126890aSEmmanuel Vadot #address-cells = <1>; 83f126890aSEmmanuel Vadot #size-cells = <0>; 84f126890aSEmmanuel Vadot }; 85f126890aSEmmanuel Vadot}; 86