18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This header provides constants for the Qualcomm PMIC's 48c2ecf20Sopenharmony_ci * Multi-Purpose Pin binding. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H 88c2ecf20Sopenharmony_ci#define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* power-source */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* Digital Input/Output: level [PM8058] */ 138c2ecf20Sopenharmony_ci#define PM8058_MPP_VPH 0 148c2ecf20Sopenharmony_ci#define PM8058_MPP_S3 1 158c2ecf20Sopenharmony_ci#define PM8058_MPP_L2 2 168c2ecf20Sopenharmony_ci#define PM8058_MPP_L3 3 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* Digital Input/Output: level [PM8901] */ 198c2ecf20Sopenharmony_ci#define PM8901_MPP_MSMIO 0 208c2ecf20Sopenharmony_ci#define PM8901_MPP_DIG 1 218c2ecf20Sopenharmony_ci#define PM8901_MPP_L5 2 228c2ecf20Sopenharmony_ci#define PM8901_MPP_S4 3 238c2ecf20Sopenharmony_ci#define PM8901_MPP_VPH 4 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* Digital Input/Output: level [PM8921] */ 268c2ecf20Sopenharmony_ci#define PM8921_MPP_S4 1 278c2ecf20Sopenharmony_ci#define PM8921_MPP_L15 3 288c2ecf20Sopenharmony_ci#define PM8921_MPP_L17 4 298c2ecf20Sopenharmony_ci#define PM8921_MPP_VPH 7 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* Digital Input/Output: level [PM8821] */ 328c2ecf20Sopenharmony_ci#define PM8821_MPP_1P8 0 338c2ecf20Sopenharmony_ci#define PM8821_MPP_VPH 7 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci/* Digital Input/Output: level [PM8018] */ 368c2ecf20Sopenharmony_ci#define PM8018_MPP_L4 0 378c2ecf20Sopenharmony_ci#define PM8018_MPP_L14 1 388c2ecf20Sopenharmony_ci#define PM8018_MPP_S3 2 398c2ecf20Sopenharmony_ci#define PM8018_MPP_L6 3 408c2ecf20Sopenharmony_ci#define PM8018_MPP_L2 4 418c2ecf20Sopenharmony_ci#define PM8018_MPP_L5 5 428c2ecf20Sopenharmony_ci#define PM8018_MPP_VPH 7 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* Digital Input/Output: level [PM8038] */ 458c2ecf20Sopenharmony_ci#define PM8038_MPP_L20 0 468c2ecf20Sopenharmony_ci#define PM8038_MPP_L11 1 478c2ecf20Sopenharmony_ci#define PM8038_MPP_L5 2 488c2ecf20Sopenharmony_ci#define PM8038_MPP_L15 3 498c2ecf20Sopenharmony_ci#define PM8038_MPP_L17 4 508c2ecf20Sopenharmony_ci#define PM8038_MPP_VPH 7 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#define PM8841_MPP_VPH 0 538c2ecf20Sopenharmony_ci#define PM8841_MPP_S3 2 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci#define PM8916_MPP_VPH 0 568c2ecf20Sopenharmony_ci#define PM8916_MPP_L2 2 578c2ecf20Sopenharmony_ci#define PM8916_MPP_L5 3 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci#define PM8941_MPP_VPH 0 608c2ecf20Sopenharmony_ci#define PM8941_MPP_L1 1 618c2ecf20Sopenharmony_ci#define PM8941_MPP_S3 2 628c2ecf20Sopenharmony_ci#define PM8941_MPP_L6 3 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#define PMA8084_MPP_VPH 0 658c2ecf20Sopenharmony_ci#define PMA8084_MPP_L1 1 668c2ecf20Sopenharmony_ci#define PMA8084_MPP_S4 2 678c2ecf20Sopenharmony_ci#define PMA8084_MPP_L6 3 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci#define PM8994_MPP_VPH 0 708c2ecf20Sopenharmony_ci/* Only supported for MPP_05-MPP_08 */ 718c2ecf20Sopenharmony_ci#define PM8994_MPP_L19 1 728c2ecf20Sopenharmony_ci#define PM8994_MPP_S4 2 738c2ecf20Sopenharmony_ci#define PM8994_MPP_L12 3 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci/* 768c2ecf20Sopenharmony_ci * Analog Input - Set the source for analog input. 778c2ecf20Sopenharmony_ci * To be used with "qcom,amux-route" property 788c2ecf20Sopenharmony_ci */ 798c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_CH5 0 808c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_CH6 1 818c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_CH7 2 828c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_CH8 3 838c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_ABUS1 4 848c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_ABUS2 5 858c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_ABUS3 6 868c2ecf20Sopenharmony_ci#define PMIC_MPP_AMUX_ROUTE_ABUS4 7 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci/* Analog Output: level */ 898c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_1V25 0 908c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_1V25_2 1 918c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_0V625 2 928c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_0V3125 3 938c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_MPP 4 948c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_ABUS1 5 958c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_ABUS2 6 968c2ecf20Sopenharmony_ci#define PMIC_MPP_AOUT_LVL_ABUS3 7 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci/* To be used with "function" */ 998c2ecf20Sopenharmony_ci#define PMIC_MPP_FUNC_NORMAL "normal" 1008c2ecf20Sopenharmony_ci#define PMIC_MPP_FUNC_PAIRED "paired" 1018c2ecf20Sopenharmony_ci#define PMIC_MPP_FUNC_DTEST1 "dtest1" 1028c2ecf20Sopenharmony_ci#define PMIC_MPP_FUNC_DTEST2 "dtest2" 1038c2ecf20Sopenharmony_ci#define PMIC_MPP_FUNC_DTEST3 "dtest3" 1048c2ecf20Sopenharmony_ci#define PMIC_MPP_FUNC_DTEST4 "dtest4" 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci#endif 107