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

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/dt-bindings/sound/cs35l45.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 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
  2 /*
  3  * cs35l45.h -- CS35L45 ALSA SoC audio driver DT bindings header
  4  *
  5  * Copyright 2022 Cirrus Logic, Inc.
  6  */
  7 
  8 #ifndef DT_CS35L45_H
  9 #define DT_CS35L45_H
 10 
 11 /*
 12  * cirrus,asp-sdout-hiz-ctrl
 13  *
 14  * TX_HIZ_UNUSED:   TX pin high-impedance during unused slots.
 15  * TX_HIZ_DISABLED: TX pin high-impedance when all channels disabled.
 16  */
 17 #define CS35L45_ASP_TX_HIZ_UNUSED       0x1
 18 #define CS35L45_ASP_TX_HIZ_DISABLED     0x2
 19 
 20 /*
 21  * Optional GPIOX Sub-nodes:
 22  *  The cs35l45 node can have up to three "cirrus,gpio-ctrlX" ('X' = [1,2,3])
 23  *  sub-nodes for configuring the GPIO pins.
 24  *
 25  * - gpio-dir : GPIO pin direction. Valid only when 'gpio-ctrl'
 26  *   is 1.
 27  *    0 = Output
 28  *    1 = Input (Default)
 29  *
 30  * - gpio-lvl : GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0.
 31  *
 32  *    0 = Low (Default)
 33  *    1 = High
 34  *
 35  * - gpio-op-cfg : GPIO output configuration. Valid only when 'gpio-ctrl' is 1
 36  *   and 'gpio-dir' is 0.
 37  *
 38  *    0 = CMOS (Default)
 39  *    1 = Open Drain
 40  *
 41  * - gpio-pol : GPIO output polarity select. Valid only when 'gpio-ctrl' is 1
 42  *   and 'gpio-dir' is 0.
 43  *
 44  *    0 = Non-inverted, Active High (Default)
 45  *    1 = Inverted, Active Low
 46  *
 47  * - gpio-invert : Defines the polarity of the GPIO pin if configured
 48  *   as input.
 49  *
 50  *    0 = Not inverted (Default)
 51  *    1 = Inverted
 52  *
 53  * - gpio-ctrl : Defines the function of the GPIO pin.
 54  *
 55  * GPIO1:
 56  *   0 = High impedance input (Default)
 57  *   1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
 58  *   2 = Pin acts as MDSYNC, direction controlled by MDSYNC
 59  *   3-7 = Reserved
 60  *
 61  * GPIO2:
 62  *   0 = High impedance input (Default)
 63  *   1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
 64  *   2 = Pin acts as open drain INT
 65  *   3 = Reserved
 66  *   4 = Pin acts as push-pull output INT. Active low.
 67  *   5 = Pin acts as push-pull output INT. Active high.
 68  *   6,7 = Reserved
 69  *
 70  * GPIO3:
 71  *   0 = High impedance input (Default)
 72  *   1 = Pin acts as a GPIO, direction controlled by 'gpio-dir'
 73  *   2-7 = Reserved
 74  */
 75 #define CS35L45_NUM_GPIOS       0x3
 76 
 77 #endif /* DT_CS35L45_H */
 78 

~ [ 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