Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * This header provides constants for the Qualcomm PMIC's
0004  * Multi-Purpose Pin binding.
0005  */
0006 
0007 #ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H
0008 #define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H
0009 
0010 /* power-source */
0011 
0012 /* Digital Input/Output: level [PM8058] */
0013 #define PM8058_MPP_VPH          0
0014 #define PM8058_MPP_S3           1
0015 #define PM8058_MPP_L2           2
0016 #define PM8058_MPP_L3           3
0017 
0018 /* Digital Input/Output: level [PM8901] */
0019 #define PM8901_MPP_MSMIO        0
0020 #define PM8901_MPP_DIG          1
0021 #define PM8901_MPP_L5           2
0022 #define PM8901_MPP_S4           3
0023 #define PM8901_MPP_VPH          4
0024 
0025 /* Digital Input/Output: level [PM8921] */
0026 #define PM8921_MPP_S4           1
0027 #define PM8921_MPP_L15          3
0028 #define PM8921_MPP_L17          4
0029 #define PM8921_MPP_VPH          7
0030 
0031 /* Digital Input/Output: level [PM8821] */
0032 #define PM8821_MPP_1P8          0
0033 #define PM8821_MPP_VPH          7
0034 
0035 /* Digital Input/Output: level [PM8018] */
0036 #define PM8018_MPP_L4           0
0037 #define PM8018_MPP_L14          1
0038 #define PM8018_MPP_S3           2
0039 #define PM8018_MPP_L6           3
0040 #define PM8018_MPP_L2           4
0041 #define PM8018_MPP_L5           5
0042 #define PM8018_MPP_VPH          7
0043 
0044 /* Digital Input/Output: level [PM8038] */
0045 #define PM8038_MPP_L20          0
0046 #define PM8038_MPP_L11          1
0047 #define PM8038_MPP_L5           2
0048 #define PM8038_MPP_L15          3
0049 #define PM8038_MPP_L17          4
0050 #define PM8038_MPP_VPH          7
0051 
0052 #define PM8841_MPP_VPH          0
0053 #define PM8841_MPP_S3           2
0054 
0055 #define PM8916_MPP_VPH          0
0056 #define PM8916_MPP_L2           2
0057 #define PM8916_MPP_L5           3
0058 
0059 #define PM8941_MPP_VPH          0
0060 #define PM8941_MPP_L1           1
0061 #define PM8941_MPP_S3           2
0062 #define PM8941_MPP_L6           3
0063 
0064 #define PMA8084_MPP_VPH         0
0065 #define PMA8084_MPP_L1          1
0066 #define PMA8084_MPP_S4          2
0067 #define PMA8084_MPP_L6          3
0068 
0069 #define PM8994_MPP_VPH          0
0070 /* Only supported for MPP_05-MPP_08 */
0071 #define PM8994_MPP_L19          1
0072 #define PM8994_MPP_S4           2
0073 #define PM8994_MPP_L12          3
0074 
0075 /*
0076  * Analog Input - Set the source for analog input.
0077  * To be used with "qcom,amux-route" property
0078  */
0079 #define PMIC_MPP_AMUX_ROUTE_CH5     0
0080 #define PMIC_MPP_AMUX_ROUTE_CH6     1
0081 #define PMIC_MPP_AMUX_ROUTE_CH7     2
0082 #define PMIC_MPP_AMUX_ROUTE_CH8     3
0083 #define PMIC_MPP_AMUX_ROUTE_ABUS1   4
0084 #define PMIC_MPP_AMUX_ROUTE_ABUS2   5
0085 #define PMIC_MPP_AMUX_ROUTE_ABUS3   6
0086 #define PMIC_MPP_AMUX_ROUTE_ABUS4   7
0087 
0088 /* Analog Output: level */
0089 #define PMIC_MPP_AOUT_LVL_1V25      0
0090 #define PMIC_MPP_AOUT_LVL_1V25_2    1
0091 #define PMIC_MPP_AOUT_LVL_0V625     2
0092 #define PMIC_MPP_AOUT_LVL_0V3125    3
0093 #define PMIC_MPP_AOUT_LVL_MPP       4
0094 #define PMIC_MPP_AOUT_LVL_ABUS1     5
0095 #define PMIC_MPP_AOUT_LVL_ABUS2     6
0096 #define PMIC_MPP_AOUT_LVL_ABUS3     7
0097 
0098 /* To be used with "function" */
0099 #define PMIC_MPP_FUNC_NORMAL        "normal"
0100 #define PMIC_MPP_FUNC_PAIRED        "paired"
0101 #define PMIC_MPP_FUNC_DTEST1        "dtest1"
0102 #define PMIC_MPP_FUNC_DTEST2        "dtest2"
0103 #define PMIC_MPP_FUNC_DTEST3        "dtest3"
0104 #define PMIC_MPP_FUNC_DTEST4        "dtest4"
0105 
0106 #endif