~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/dt-bindings/mfd/arizona.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/dt-bindings/mfd/arizona.h (Architecture i386) and /include/dt-bindings/mfd/arizona.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * Device Tree defines for Arizona devices          3  * Device Tree defines for Arizona devices
  4  *                                                  4  *
  5  * Copyright 2015 Cirrus Logic Inc.                 5  * Copyright 2015 Cirrus Logic Inc.
  6  *                                                  6  *
  7  * Author: Charles Keepax <ckeepax@opensource.      7  * Author: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
  8  */                                                 8  */
  9                                                     9 
 10 #ifndef _DT_BINDINGS_MFD_ARIZONA_H                 10 #ifndef _DT_BINDINGS_MFD_ARIZONA_H
 11 #define _DT_BINDINGS_MFD_ARIZONA_H                 11 #define _DT_BINDINGS_MFD_ARIZONA_H
 12                                                    12 
 13 /* GPIO Function Definitions */                    13 /* GPIO Function Definitions */
 14 #define ARIZONA_GP_FN_TXLRCLK                      14 #define ARIZONA_GP_FN_TXLRCLK                    0x00
 15 #define ARIZONA_GP_FN_GPIO                         15 #define ARIZONA_GP_FN_GPIO                       0x01
 16 #define ARIZONA_GP_FN_IRQ1                         16 #define ARIZONA_GP_FN_IRQ1                       0x02
 17 #define ARIZONA_GP_FN_IRQ2                         17 #define ARIZONA_GP_FN_IRQ2                       0x03
 18 #define ARIZONA_GP_FN_OPCLK                        18 #define ARIZONA_GP_FN_OPCLK                      0x04
 19 #define ARIZONA_GP_FN_FLL1_OUT                     19 #define ARIZONA_GP_FN_FLL1_OUT                   0x05
 20 #define ARIZONA_GP_FN_FLL2_OUT                     20 #define ARIZONA_GP_FN_FLL2_OUT                   0x06
 21 #define ARIZONA_GP_FN_PWM1                         21 #define ARIZONA_GP_FN_PWM1                       0x08
 22 #define ARIZONA_GP_FN_PWM2                         22 #define ARIZONA_GP_FN_PWM2                       0x09
 23 #define ARIZONA_GP_FN_SYSCLK_UNDERCLOCKED          23 #define ARIZONA_GP_FN_SYSCLK_UNDERCLOCKED        0x0A
 24 #define ARIZONA_GP_FN_ASYNCCLK_UNDERCLOCKED        24 #define ARIZONA_GP_FN_ASYNCCLK_UNDERCLOCKED      0x0B
 25 #define ARIZONA_GP_FN_FLL1_LOCK                    25 #define ARIZONA_GP_FN_FLL1_LOCK                  0x0C
 26 #define ARIZONA_GP_FN_FLL2_LOCK                    26 #define ARIZONA_GP_FN_FLL2_LOCK                  0x0D
 27 #define ARIZONA_GP_FN_FLL1_CLOCK_OK                27 #define ARIZONA_GP_FN_FLL1_CLOCK_OK              0x0F
 28 #define ARIZONA_GP_FN_FLL2_CLOCK_OK                28 #define ARIZONA_GP_FN_FLL2_CLOCK_OK              0x10
 29 #define ARIZONA_GP_FN_HEADPHONE_DET                29 #define ARIZONA_GP_FN_HEADPHONE_DET              0x12
 30 #define ARIZONA_GP_FN_MIC_DET                      30 #define ARIZONA_GP_FN_MIC_DET                    0x13
 31 #define ARIZONA_GP_FN_WSEQ_STATUS                  31 #define ARIZONA_GP_FN_WSEQ_STATUS                0x15
 32 #define ARIZONA_GP_FN_CIF_ADDRESS_ERROR            32 #define ARIZONA_GP_FN_CIF_ADDRESS_ERROR          0x16
 33 #define ARIZONA_GP_FN_ASRC1_LOCK                   33 #define ARIZONA_GP_FN_ASRC1_LOCK                 0x1A
 34 #define ARIZONA_GP_FN_ASRC2_LOCK                   34 #define ARIZONA_GP_FN_ASRC2_LOCK                 0x1B
 35 #define ARIZONA_GP_FN_ASRC_CONFIG_ERROR            35 #define ARIZONA_GP_FN_ASRC_CONFIG_ERROR          0x1C
 36 #define ARIZONA_GP_FN_DRC1_SIGNAL_DETECT           36 #define ARIZONA_GP_FN_DRC1_SIGNAL_DETECT         0x1D
 37 #define ARIZONA_GP_FN_DRC1_ANTICLIP                37 #define ARIZONA_GP_FN_DRC1_ANTICLIP              0x1E
 38 #define ARIZONA_GP_FN_DRC1_DECAY                   38 #define ARIZONA_GP_FN_DRC1_DECAY                 0x1F
 39 #define ARIZONA_GP_FN_DRC1_NOISE                   39 #define ARIZONA_GP_FN_DRC1_NOISE                 0x20
 40 #define ARIZONA_GP_FN_DRC1_QUICK_RELEASE           40 #define ARIZONA_GP_FN_DRC1_QUICK_RELEASE         0x21
 41 #define ARIZONA_GP_FN_DRC2_SIGNAL_DETECT           41 #define ARIZONA_GP_FN_DRC2_SIGNAL_DETECT         0x22
 42 #define ARIZONA_GP_FN_DRC2_ANTICLIP                42 #define ARIZONA_GP_FN_DRC2_ANTICLIP              0x23
 43 #define ARIZONA_GP_FN_DRC2_DECAY                   43 #define ARIZONA_GP_FN_DRC2_DECAY                 0x24
 44 #define ARIZONA_GP_FN_DRC2_NOISE                   44 #define ARIZONA_GP_FN_DRC2_NOISE                 0x25
 45 #define ARIZONA_GP_FN_DRC2_QUICK_RELEASE           45 #define ARIZONA_GP_FN_DRC2_QUICK_RELEASE         0x26
 46 #define ARIZONA_GP_FN_MIXER_DROPPED_SAMPLE         46 #define ARIZONA_GP_FN_MIXER_DROPPED_SAMPLE       0x27
 47 #define ARIZONA_GP_FN_AIF1_CONFIG_ERROR            47 #define ARIZONA_GP_FN_AIF1_CONFIG_ERROR          0x28
 48 #define ARIZONA_GP_FN_AIF2_CONFIG_ERROR            48 #define ARIZONA_GP_FN_AIF2_CONFIG_ERROR          0x29
 49 #define ARIZONA_GP_FN_AIF3_CONFIG_ERROR            49 #define ARIZONA_GP_FN_AIF3_CONFIG_ERROR          0x2A
 50 #define ARIZONA_GP_FN_SPK_TEMP_SHUTDOWN            50 #define ARIZONA_GP_FN_SPK_TEMP_SHUTDOWN          0x2B
 51 #define ARIZONA_GP_FN_SPK_TEMP_WARNING             51 #define ARIZONA_GP_FN_SPK_TEMP_WARNING           0x2C
 52 #define ARIZONA_GP_FN_UNDERCLOCKED                 52 #define ARIZONA_GP_FN_UNDERCLOCKED               0x2D
 53 #define ARIZONA_GP_FN_OVERCLOCKED                  53 #define ARIZONA_GP_FN_OVERCLOCKED                0x2E
 54 #define ARIZONA_GP_FN_DSP_IRQ1                     54 #define ARIZONA_GP_FN_DSP_IRQ1                   0x35
 55 #define ARIZONA_GP_FN_DSP_IRQ2                     55 #define ARIZONA_GP_FN_DSP_IRQ2                   0x36
 56 #define ARIZONA_GP_FN_ASYNC_OPCLK                  56 #define ARIZONA_GP_FN_ASYNC_OPCLK                0x3D
 57 #define ARIZONA_GP_FN_BOOT_DONE                    57 #define ARIZONA_GP_FN_BOOT_DONE                  0x44
 58 #define ARIZONA_GP_FN_DSP1_RAM_READY               58 #define ARIZONA_GP_FN_DSP1_RAM_READY             0x45
 59 #define ARIZONA_GP_FN_SYSCLK_ENA_STATUS            59 #define ARIZONA_GP_FN_SYSCLK_ENA_STATUS          0x4B
 60 #define ARIZONA_GP_FN_ASYNCCLK_ENA_STATUS          60 #define ARIZONA_GP_FN_ASYNCCLK_ENA_STATUS        0x4C
 61                                                    61 
 62 /* GPIO Configuration Bits */                      62 /* GPIO Configuration Bits */
 63 #define ARIZONA_GPN_DIR                            63 #define ARIZONA_GPN_DIR                          0x8000
 64 #define ARIZONA_GPN_PU                             64 #define ARIZONA_GPN_PU                           0x4000
 65 #define ARIZONA_GPN_PD                             65 #define ARIZONA_GPN_PD                           0x2000
 66 #define ARIZONA_GPN_LVL                            66 #define ARIZONA_GPN_LVL                          0x0800
 67 #define ARIZONA_GPN_POL                            67 #define ARIZONA_GPN_POL                          0x0400
 68 #define ARIZONA_GPN_OP_CFG                         68 #define ARIZONA_GPN_OP_CFG                       0x0200
 69 #define ARIZONA_GPN_DB                             69 #define ARIZONA_GPN_DB                           0x0100
 70                                                    70 
 71 /* Provide some defines for the most common co     71 /* Provide some defines for the most common configs */
 72 #define ARIZONA_GP_DEFAULT             0xfffff     72 #define ARIZONA_GP_DEFAULT             0xffffffff
 73 #define ARIZONA_GP_OUTPUT              (ARIZON     73 #define ARIZONA_GP_OUTPUT              (ARIZONA_GP_FN_GPIO)
 74 #define ARIZONA_GP_INPUT               (ARIZON     74 #define ARIZONA_GP_INPUT               (ARIZONA_GP_FN_GPIO | \
 75                                         ARIZON     75                                         ARIZONA_GPN_DIR)
 76                                                    76 
 77 #define ARIZONA_32KZ_MCLK1 1                       77 #define ARIZONA_32KZ_MCLK1 1
 78 #define ARIZONA_32KZ_MCLK2 2                       78 #define ARIZONA_32KZ_MCLK2 2
 79 #define ARIZONA_32KZ_NONE  3                       79 #define ARIZONA_32KZ_NONE  3
 80                                                    80 
 81 #define ARIZONA_DMIC_MICVDD   0                    81 #define ARIZONA_DMIC_MICVDD   0
 82 #define ARIZONA_DMIC_MICBIAS1 1                    82 #define ARIZONA_DMIC_MICBIAS1 1
 83 #define ARIZONA_DMIC_MICBIAS2 2                    83 #define ARIZONA_DMIC_MICBIAS2 2
 84 #define ARIZONA_DMIC_MICBIAS3 3                    84 #define ARIZONA_DMIC_MICBIAS3 3
 85                                                    85 
 86 #define ARIZONA_INMODE_DIFF 0                      86 #define ARIZONA_INMODE_DIFF 0
 87 #define ARIZONA_INMODE_SE   1                      87 #define ARIZONA_INMODE_SE   1
 88 #define ARIZONA_INMODE_DMIC 2                      88 #define ARIZONA_INMODE_DMIC 2
 89                                                    89 
 90 #define ARIZONA_MICD_TIME_CONTINUOUS               90 #define ARIZONA_MICD_TIME_CONTINUOUS                 0
 91 #define ARIZONA_MICD_TIME_250US                    91 #define ARIZONA_MICD_TIME_250US                      1
 92 #define ARIZONA_MICD_TIME_500US                    92 #define ARIZONA_MICD_TIME_500US                      2
 93 #define ARIZONA_MICD_TIME_1MS                      93 #define ARIZONA_MICD_TIME_1MS                        3
 94 #define ARIZONA_MICD_TIME_2MS                      94 #define ARIZONA_MICD_TIME_2MS                        4
 95 #define ARIZONA_MICD_TIME_4MS                      95 #define ARIZONA_MICD_TIME_4MS                        5
 96 #define ARIZONA_MICD_TIME_8MS                      96 #define ARIZONA_MICD_TIME_8MS                        6
 97 #define ARIZONA_MICD_TIME_16MS                     97 #define ARIZONA_MICD_TIME_16MS                       7
 98 #define ARIZONA_MICD_TIME_32MS                     98 #define ARIZONA_MICD_TIME_32MS                       8
 99 #define ARIZONA_MICD_TIME_64MS                     99 #define ARIZONA_MICD_TIME_64MS                       9
100 #define ARIZONA_MICD_TIME_128MS                   100 #define ARIZONA_MICD_TIME_128MS                      10
101 #define ARIZONA_MICD_TIME_256MS                   101 #define ARIZONA_MICD_TIME_256MS                      11
102 #define ARIZONA_MICD_TIME_512MS                   102 #define ARIZONA_MICD_TIME_512MS                      12
103                                                   103 
104 #define ARIZONA_ACCDET_MODE_MIC 0                 104 #define ARIZONA_ACCDET_MODE_MIC 0
105 #define ARIZONA_ACCDET_MODE_HPL 1                 105 #define ARIZONA_ACCDET_MODE_HPL 1
106 #define ARIZONA_ACCDET_MODE_HPR 2                 106 #define ARIZONA_ACCDET_MODE_HPR 2
107 #define ARIZONA_ACCDET_MODE_HPM 4                 107 #define ARIZONA_ACCDET_MODE_HPM 4
108 #define ARIZONA_ACCDET_MODE_ADC 7                 108 #define ARIZONA_ACCDET_MODE_ADC 7
109                                                   109 
110 #define ARIZONA_GPSW_OPEN           0             110 #define ARIZONA_GPSW_OPEN           0
111 #define ARIZONA_GPSW_CLOSED         1             111 #define ARIZONA_GPSW_CLOSED         1
112 #define ARIZONA_GPSW_CLAMP_ENABLED  2             112 #define ARIZONA_GPSW_CLAMP_ENABLED  2
113 #define ARIZONA_GPSW_CLAMP_DISABLED 3             113 #define ARIZONA_GPSW_CLAMP_DISABLED 3
114                                                   114 
115 #endif                                            115 #endif
116                                                   116 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php