11.1Sjmcneill/* $NetBSD: qcom,spmi-adc7-pm8350b.h,v 1.1.1.1 2021/11/07 16:49:57 jmcneill Exp $ */ 21.1Sjmcneill 31.1Sjmcneill/* SPDX-License-Identifier: GPL-2.0-only */ 41.1Sjmcneill/* 51.1Sjmcneill * Copyright (c) 2020 The Linux Foundation. All rights reserved. 61.1Sjmcneill */ 71.1Sjmcneill 81.1Sjmcneill#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PM8350B_H 91.1Sjmcneill#define _DT_BINDINGS_QCOM_SPMI_VADC_PM8350B_H 101.1Sjmcneill 111.1Sjmcneill#ifndef PM8350B_SID 121.1Sjmcneill#define PM8350B_SID 3 131.1Sjmcneill#endif 141.1Sjmcneill 151.1Sjmcneill/* ADC channels for PM8350B_ADC for PMIC7 */ 161.1Sjmcneill#define PM8350B_ADC7_REF_GND (PM8350B_SID << 8 | 0x0) 171.1Sjmcneill#define PM8350B_ADC7_1P25VREF (PM8350B_SID << 8 | 0x01) 181.1Sjmcneill#define PM8350B_ADC7_VREF_VADC (PM8350B_SID << 8 | 0x02) 191.1Sjmcneill#define PM8350B_ADC7_DIE_TEMP (PM8350B_SID << 8 | 0x03) 201.1Sjmcneill 211.1Sjmcneill#define PM8350B_ADC7_AMUX_THM1 (PM8350B_SID << 8 | 0x04) 221.1Sjmcneill#define PM8350B_ADC7_AMUX_THM2 (PM8350B_SID << 8 | 0x05) 231.1Sjmcneill#define PM8350B_ADC7_AMUX_THM3 (PM8350B_SID << 8 | 0x06) 241.1Sjmcneill#define PM8350B_ADC7_AMUX_THM4 (PM8350B_SID << 8 | 0x07) 251.1Sjmcneill#define PM8350B_ADC7_AMUX_THM5 (PM8350B_SID << 8 | 0x08) 261.1Sjmcneill#define PM8350B_ADC7_AMUX_THM6 (PM8350B_SID << 8 | 0x09) 271.1Sjmcneill#define PM8350B_ADC7_GPIO1 (PM8350B_SID << 8 | 0x0a) 281.1Sjmcneill#define PM8350B_ADC7_GPIO2 (PM8350B_SID << 8 | 0x0b) 291.1Sjmcneill#define PM8350B_ADC7_GPIO3 (PM8350B_SID << 8 | 0x0c) 301.1Sjmcneill#define PM8350B_ADC7_GPIO4 (PM8350B_SID << 8 | 0x0d) 311.1Sjmcneill 321.1Sjmcneill#define PM8350B_ADC7_CHG_TEMP (PM8350B_SID << 8 | 0x10) 331.1Sjmcneill#define PM8350B_ADC7_USB_IN_V_16 (PM8350B_SID << 8 | 0x11) 341.1Sjmcneill#define PM8350B_ADC7_VDC_16 (PM8350B_SID << 8 | 0x12) 351.1Sjmcneill#define PM8350B_ADC7_CC1_ID (PM8350B_SID << 8 | 0x13) 361.1Sjmcneill#define PM8350B_ADC7_VREF_BAT_THERM (PM8350B_SID << 8 | 0x15) 371.1Sjmcneill#define PM8350B_ADC7_IIN_FB (PM8350B_SID << 8 | 0x17) 381.1Sjmcneill 391.1Sjmcneill/* 30k pull-up1 */ 401.1Sjmcneill#define PM8350B_ADC7_AMUX_THM1_30K_PU (PM8350B_SID << 8 | 0x24) 411.1Sjmcneill#define PM8350B_ADC7_AMUX_THM2_30K_PU (PM8350B_SID << 8 | 0x25) 421.1Sjmcneill#define PM8350B_ADC7_AMUX_THM3_30K_PU (PM8350B_SID << 8 | 0x26) 431.1Sjmcneill#define PM8350B_ADC7_AMUX_THM4_30K_PU (PM8350B_SID << 8 | 0x27) 441.1Sjmcneill#define PM8350B_ADC7_AMUX_THM5_30K_PU (PM8350B_SID << 8 | 0x28) 451.1Sjmcneill#define PM8350B_ADC7_AMUX_THM6_30K_PU (PM8350B_SID << 8 | 0x29) 461.1Sjmcneill#define PM8350B_ADC7_GPIO1_30K_PU (PM8350B_SID << 8 | 0x2a) 471.1Sjmcneill#define PM8350B_ADC7_GPIO2_30K_PU (PM8350B_SID << 8 | 0x2b) 481.1Sjmcneill#define PM8350B_ADC7_GPIO3_30K_PU (PM8350B_SID << 8 | 0x2c) 491.1Sjmcneill#define PM8350B_ADC7_GPIO4_30K_PU (PM8350B_SID << 8 | 0x2d) 501.1Sjmcneill#define PM8350B_ADC7_CC1_ID_30K_PU (PM8350B_SID << 8 | 0x33) 511.1Sjmcneill 521.1Sjmcneill/* 100k pull-up2 */ 531.1Sjmcneill#define PM8350B_ADC7_AMUX_THM1_100K_PU (PM8350B_SID << 8 | 0x44) 541.1Sjmcneill#define PM8350B_ADC7_AMUX_THM2_100K_PU (PM8350B_SID << 8 | 0x45) 551.1Sjmcneill#define PM8350B_ADC7_AMUX_THM3_100K_PU (PM8350B_SID << 8 | 0x46) 561.1Sjmcneill#define PM8350B_ADC7_AMUX_THM4_100K_PU (PM8350B_SID << 8 | 0x47) 571.1Sjmcneill#define PM8350B_ADC7_AMUX_THM5_100K_PU (PM8350B_SID << 8 | 0x48) 581.1Sjmcneill#define PM8350B_ADC7_AMUX_THM6_100K_PU (PM8350B_SID << 8 | 0x49) 591.1Sjmcneill#define PM8350B_ADC7_GPIO1_100K_PU (PM8350B_SID << 8 | 0x4a) 601.1Sjmcneill#define PM8350B_ADC7_GPIO2_100K_PU (PM8350B_SID << 8 | 0x4b) 611.1Sjmcneill#define PM8350B_ADC7_GPIO3_100K_PU (PM8350B_SID << 8 | 0x4c) 621.1Sjmcneill#define PM8350B_ADC7_GPIO4_100K_PU (PM8350B_SID << 8 | 0x4d) 631.1Sjmcneill#define PM8350B_ADC7_CC1_ID_100K_PU (PM8350B_SID << 8 | 0x53) 641.1Sjmcneill 651.1Sjmcneill/* 400k pull-up3 */ 661.1Sjmcneill#define PM8350B_ADC7_AMUX_THM1_400K_PU (PM8350B_SID << 8 | 0x64) 671.1Sjmcneill#define PM8350B_ADC7_AMUX_THM2_400K_PU (PM8350B_SID << 8 | 0x65) 681.1Sjmcneill#define PM8350B_ADC7_AMUX_THM3_400K_PU (PM8350B_SID << 8 | 0x66) 691.1Sjmcneill#define PM8350B_ADC7_AMUX_THM4_400K_PU (PM8350B_SID << 8 | 0x67) 701.1Sjmcneill#define PM8350B_ADC7_AMUX_THM5_400K_PU (PM8350B_SID << 8 | 0x68) 711.1Sjmcneill#define PM8350B_ADC7_AMUX_THM6_400K_PU (PM8350B_SID << 8 | 0x69) 721.1Sjmcneill#define PM8350B_ADC7_GPIO1_400K_PU (PM8350B_SID << 8 | 0x6a) 731.1Sjmcneill#define PM8350B_ADC7_GPIO2_400K_PU (PM8350B_SID << 8 | 0x6b) 741.1Sjmcneill#define PM8350B_ADC7_GPIO3_400K_PU (PM8350B_SID << 8 | 0x6c) 751.1Sjmcneill#define PM8350B_ADC7_GPIO4_400K_PU (PM8350B_SID << 8 | 0x6d) 761.1Sjmcneill#define PM8350B_ADC7_CC1_ID_400K_PU (PM8350B_SID << 8 | 0x73) 771.1Sjmcneill 781.1Sjmcneill/* 1/3 Divider */ 791.1Sjmcneill#define PM8350B_ADC7_GPIO1_DIV3 (PM8350B_SID << 8 | 0x8a) 801.1Sjmcneill#define PM8350B_ADC7_GPIO2_DIV3 (PM8350B_SID << 8 | 0x8b) 811.1Sjmcneill#define PM8350B_ADC7_GPIO3_DIV3 (PM8350B_SID << 8 | 0x8c) 821.1Sjmcneill#define PM8350B_ADC7_GPIO4_DIV3 (PM8350B_SID << 8 | 0x8d) 831.1Sjmcneill 841.1Sjmcneill#define PM8350B_ADC7_VPH_PWR (PM8350B_SID << 8 | 0x8e) 851.1Sjmcneill#define PM8350B_ADC7_VBAT_SNS (PM8350B_SID << 8 | 0x8f) 861.1Sjmcneill 871.1Sjmcneill#define PM8350B_ADC7_SBUx (PM8350B_SID << 8 | 0x94) 881.1Sjmcneill#define PM8350B_ADC7_VBAT_2S_MID (PM8350B_SID << 8 | 0x96) 891.1Sjmcneill 901.1Sjmcneill#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PM8350B_H */ 91