brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · 32e66ee Raw
107 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * This header provides constants for the Qualcomm PMIC's4 * Multi-Purpose Pin binding.5 */6 7#ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H8#define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H9 10/* power-source */11 12/* Digital Input/Output: level [PM8058] */13#define PM8058_MPP_VPH			014#define PM8058_MPP_S3			115#define PM8058_MPP_L2			216#define PM8058_MPP_L3			317 18/* Digital Input/Output: level [PM8901] */19#define PM8901_MPP_MSMIO		020#define PM8901_MPP_DIG			121#define PM8901_MPP_L5			222#define PM8901_MPP_S4			323#define PM8901_MPP_VPH			424 25/* Digital Input/Output: level [PM8921] */26#define PM8921_MPP_S4			127#define PM8921_MPP_L15			328#define PM8921_MPP_L17			429#define PM8921_MPP_VPH			730 31/* Digital Input/Output: level [PM8821] */32#define PM8821_MPP_1P8			033#define PM8821_MPP_VPH			734 35/* Digital Input/Output: level [PM8018] */36#define PM8018_MPP_L4			037#define PM8018_MPP_L14			138#define PM8018_MPP_S3			239#define PM8018_MPP_L6			340#define PM8018_MPP_L2			441#define PM8018_MPP_L5			542#define PM8018_MPP_VPH			743 44/* Digital Input/Output: level [PM8038] */45#define PM8038_MPP_L20			046#define PM8038_MPP_L11			147#define PM8038_MPP_L5			248#define PM8038_MPP_L15			349#define PM8038_MPP_L17			450#define PM8038_MPP_VPH			751 52#define PM8841_MPP_VPH			053#define PM8841_MPP_S3			254 55#define PM8916_MPP_VPH			056#define PM8916_MPP_L2			257#define PM8916_MPP_L5			358 59#define PM8941_MPP_VPH			060#define PM8941_MPP_L1			161#define PM8941_MPP_S3			262#define PM8941_MPP_L6			363 64#define PMA8084_MPP_VPH			065#define PMA8084_MPP_L1			166#define PMA8084_MPP_S4			267#define PMA8084_MPP_L6			368 69#define PM8994_MPP_VPH			070/* Only supported for MPP_05-MPP_08 */71#define PM8994_MPP_L19			172#define PM8994_MPP_S4			273#define PM8994_MPP_L12			374 75/*76 * Analog Input - Set the source for analog input.77 * To be used with "qcom,amux-route" property78 */79#define PMIC_MPP_AMUX_ROUTE_CH5		080#define PMIC_MPP_AMUX_ROUTE_CH6		181#define PMIC_MPP_AMUX_ROUTE_CH7		282#define PMIC_MPP_AMUX_ROUTE_CH8		383#define PMIC_MPP_AMUX_ROUTE_ABUS1	484#define PMIC_MPP_AMUX_ROUTE_ABUS2	585#define PMIC_MPP_AMUX_ROUTE_ABUS3	686#define PMIC_MPP_AMUX_ROUTE_ABUS4	787 88/* Analog Output: level */89#define PMIC_MPP_AOUT_LVL_1V25		090#define PMIC_MPP_AOUT_LVL_1V25_2	191#define PMIC_MPP_AOUT_LVL_0V625		292#define PMIC_MPP_AOUT_LVL_0V3125	393#define PMIC_MPP_AOUT_LVL_MPP		494#define PMIC_MPP_AOUT_LVL_ABUS1		595#define PMIC_MPP_AOUT_LVL_ABUS2		696#define PMIC_MPP_AOUT_LVL_ABUS3		797 98/* To be used with "function" */99#define PMIC_MPP_FUNC_NORMAL		"normal"100#define PMIC_MPP_FUNC_PAIRED		"paired"101#define PMIC_MPP_FUNC_DTEST1		"dtest1"102#define PMIC_MPP_FUNC_DTEST2		"dtest2"103#define PMIC_MPP_FUNC_DTEST3		"dtest3"104#define PMIC_MPP_FUNC_DTEST4		"dtest4"105 106#endif107