1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * Device Tree defines for Arizona devices 4 * 5 * Copyright 2015 Cirrus Logic Inc. 6 * 7 * Author: Charles Keepax <ckeepax@opensource. 8 */ 9 10 #ifndef _DT_BINDINGS_MFD_ARIZONA_H 11 #define _DT_BINDINGS_MFD_ARIZONA_H 12 13 /* GPIO Function Definitions */ 14 #define ARIZONA_GP_FN_TXLRCLK 15 #define ARIZONA_GP_FN_GPIO 16 #define ARIZONA_GP_FN_IRQ1 17 #define ARIZONA_GP_FN_IRQ2 18 #define ARIZONA_GP_FN_OPCLK 19 #define ARIZONA_GP_FN_FLL1_OUT 20 #define ARIZONA_GP_FN_FLL2_OUT 21 #define ARIZONA_GP_FN_PWM1 22 #define ARIZONA_GP_FN_PWM2 23 #define ARIZONA_GP_FN_SYSCLK_UNDERCLOCKED 24 #define ARIZONA_GP_FN_ASYNCCLK_UNDERCLOCKED 25 #define ARIZONA_GP_FN_FLL1_LOCK 26 #define ARIZONA_GP_FN_FLL2_LOCK 27 #define ARIZONA_GP_FN_FLL1_CLOCK_OK 28 #define ARIZONA_GP_FN_FLL2_CLOCK_OK 29 #define ARIZONA_GP_FN_HEADPHONE_DET 30 #define ARIZONA_GP_FN_MIC_DET 31 #define ARIZONA_GP_FN_WSEQ_STATUS 32 #define ARIZONA_GP_FN_CIF_ADDRESS_ERROR 33 #define ARIZONA_GP_FN_ASRC1_LOCK 34 #define ARIZONA_GP_FN_ASRC2_LOCK 35 #define ARIZONA_GP_FN_ASRC_CONFIG_ERROR 36 #define ARIZONA_GP_FN_DRC1_SIGNAL_DETECT 37 #define ARIZONA_GP_FN_DRC1_ANTICLIP 38 #define ARIZONA_GP_FN_DRC1_DECAY 39 #define ARIZONA_GP_FN_DRC1_NOISE 40 #define ARIZONA_GP_FN_DRC1_QUICK_RELEASE 41 #define ARIZONA_GP_FN_DRC2_SIGNAL_DETECT 42 #define ARIZONA_GP_FN_DRC2_ANTICLIP 43 #define ARIZONA_GP_FN_DRC2_DECAY 44 #define ARIZONA_GP_FN_DRC2_NOISE 45 #define ARIZONA_GP_FN_DRC2_QUICK_RELEASE 46 #define ARIZONA_GP_FN_MIXER_DROPPED_SAMPLE 47 #define ARIZONA_GP_FN_AIF1_CONFIG_ERROR 48 #define ARIZONA_GP_FN_AIF2_CONFIG_ERROR 49 #define ARIZONA_GP_FN_AIF3_CONFIG_ERROR 50 #define ARIZONA_GP_FN_SPK_TEMP_SHUTDOWN 51 #define ARIZONA_GP_FN_SPK_TEMP_WARNING 52 #define ARIZONA_GP_FN_UNDERCLOCKED 53 #define ARIZONA_GP_FN_OVERCLOCKED 54 #define ARIZONA_GP_FN_DSP_IRQ1 55 #define ARIZONA_GP_FN_DSP_IRQ2 56 #define ARIZONA_GP_FN_ASYNC_OPCLK 57 #define ARIZONA_GP_FN_BOOT_DONE 58 #define ARIZONA_GP_FN_DSP1_RAM_READY 59 #define ARIZONA_GP_FN_SYSCLK_ENA_STATUS 60 #define ARIZONA_GP_FN_ASYNCCLK_ENA_STATUS 61 62 /* GPIO Configuration Bits */ 63 #define ARIZONA_GPN_DIR 64 #define ARIZONA_GPN_PU 65 #define ARIZONA_GPN_PD 66 #define ARIZONA_GPN_LVL 67 #define ARIZONA_GPN_POL 68 #define ARIZONA_GPN_OP_CFG 69 #define ARIZONA_GPN_DB 70 71 /* Provide some defines for the most common co 72 #define ARIZONA_GP_DEFAULT 0xfffff 73 #define ARIZONA_GP_OUTPUT (ARIZON 74 #define ARIZONA_GP_INPUT (ARIZON 75 ARIZON 76 77 #define ARIZONA_32KZ_MCLK1 1 78 #define ARIZONA_32KZ_MCLK2 2 79 #define ARIZONA_32KZ_NONE 3 80 81 #define ARIZONA_DMIC_MICVDD 0 82 #define ARIZONA_DMIC_MICBIAS1 1 83 #define ARIZONA_DMIC_MICBIAS2 2 84 #define ARIZONA_DMIC_MICBIAS3 3 85 86 #define ARIZONA_INMODE_DIFF 0 87 #define ARIZONA_INMODE_SE 1 88 #define ARIZONA_INMODE_DMIC 2 89 90 #define ARIZONA_MICD_TIME_CONTINUOUS 91 #define ARIZONA_MICD_TIME_250US 92 #define ARIZONA_MICD_TIME_500US 93 #define ARIZONA_MICD_TIME_1MS 94 #define ARIZONA_MICD_TIME_2MS 95 #define ARIZONA_MICD_TIME_4MS 96 #define ARIZONA_MICD_TIME_8MS 97 #define ARIZONA_MICD_TIME_16MS 98 #define ARIZONA_MICD_TIME_32MS 99 #define ARIZONA_MICD_TIME_64MS 100 #define ARIZONA_MICD_TIME_128MS 101 #define ARIZONA_MICD_TIME_256MS 102 #define ARIZONA_MICD_TIME_512MS 103 104 #define ARIZONA_ACCDET_MODE_MIC 0 105 #define ARIZONA_ACCDET_MODE_HPL 1 106 #define ARIZONA_ACCDET_MODE_HPR 2 107 #define ARIZONA_ACCDET_MODE_HPM 4 108 #define ARIZONA_ACCDET_MODE_ADC 7 109 110 #define ARIZONA_GPSW_OPEN 0 111 #define ARIZONA_GPSW_CLOSED 1 112 #define ARIZONA_GPSW_CLAMP_ENABLED 2 113 #define ARIZONA_GPSW_CLAMP_DISABLED 3 114 115 #endif 116
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.