Path: blob/master/include/dt-bindings/pinctrl/qcom,pmic-mpp.h
26285 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* This header provides constants for the Qualcomm PMIC's3* Multi-Purpose Pin binding.4*/56#ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H7#define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H89/* power-source */1011/* Digital Input/Output: level [PM8058] */12#define PM8058_MPP_VPH 013#define PM8058_MPP_S3 114#define PM8058_MPP_L2 215#define PM8058_MPP_L3 31617/* Digital Input/Output: level [PM8901] */18#define PM8901_MPP_MSMIO 019#define PM8901_MPP_DIG 120#define PM8901_MPP_L5 221#define PM8901_MPP_S4 322#define PM8901_MPP_VPH 42324/* Digital Input/Output: level [PM8921] */25#define PM8921_MPP_S4 126#define PM8921_MPP_L15 327#define PM8921_MPP_L17 428#define PM8921_MPP_VPH 72930/* Digital Input/Output: level [PM8821] */31#define PM8821_MPP_1P8 032#define PM8821_MPP_VPH 73334/* Digital Input/Output: level [PM8018] */35#define PM8018_MPP_L4 036#define PM8018_MPP_L14 137#define PM8018_MPP_S3 238#define PM8018_MPP_L6 339#define PM8018_MPP_L2 440#define PM8018_MPP_L5 541#define PM8018_MPP_VPH 74243/* Digital Input/Output: level [PM8038] */44#define PM8038_MPP_L20 045#define PM8038_MPP_L11 146#define PM8038_MPP_L5 247#define PM8038_MPP_L15 348#define PM8038_MPP_L17 449#define PM8038_MPP_VPH 75051#define PM8841_MPP_VPH 052#define PM8841_MPP_S3 25354#define PM8916_MPP_VPH 055#define PM8916_MPP_L2 256#define PM8916_MPP_L5 35758#define PM8941_MPP_VPH 059#define PM8941_MPP_L1 160#define PM8941_MPP_S3 261#define PM8941_MPP_L6 36263#define PMA8084_MPP_VPH 064#define PMA8084_MPP_L1 165#define PMA8084_MPP_S4 266#define PMA8084_MPP_L6 36768#define PM8994_MPP_VPH 069/* Only supported for MPP_05-MPP_08 */70#define PM8994_MPP_L19 171#define PM8994_MPP_S4 272#define PM8994_MPP_L12 37374/*75* Analog Input - Set the source for analog input.76* To be used with "qcom,amux-route" property77*/78#define PMIC_MPP_AMUX_ROUTE_CH5 079#define PMIC_MPP_AMUX_ROUTE_CH6 180#define PMIC_MPP_AMUX_ROUTE_CH7 281#define PMIC_MPP_AMUX_ROUTE_CH8 382#define PMIC_MPP_AMUX_ROUTE_ABUS1 483#define PMIC_MPP_AMUX_ROUTE_ABUS2 584#define PMIC_MPP_AMUX_ROUTE_ABUS3 685#define PMIC_MPP_AMUX_ROUTE_ABUS4 78687/* Analog Output: level */88#define PMIC_MPP_AOUT_LVL_1V25 089#define PMIC_MPP_AOUT_LVL_1V25_2 190#define PMIC_MPP_AOUT_LVL_0V625 291#define PMIC_MPP_AOUT_LVL_0V3125 392#define PMIC_MPP_AOUT_LVL_MPP 493#define PMIC_MPP_AOUT_LVL_ABUS1 594#define PMIC_MPP_AOUT_LVL_ABUS2 695#define PMIC_MPP_AOUT_LVL_ABUS3 79697/* To be used with "function" */98#define PMIC_MPP_FUNC_NORMAL "normal"99#define PMIC_MPP_FUNC_PAIRED "paired"100#define PMIC_MPP_FUNC_DTEST1 "dtest1"101#define PMIC_MPP_FUNC_DTEST2 "dtest2"102#define PMIC_MPP_FUNC_DTEST3 "dtest3"103#define PMIC_MPP_FUNC_DTEST4 "dtest4"104105#endif106107108