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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/sound/nuvoton,nau8821.yaml

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-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/sound/nuvoton,nau8821.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: NAU88L21 audio codec
  8 
  9 maintainers:
 10   - Seven Lee <wtli@nuvoton.com>
 11 
 12 allOf:
 13   - $ref: dai-common.yaml#
 14 
 15 properties:
 16   compatible:
 17     const: nuvoton,nau8821
 18 
 19   reg:
 20     maxItems: 1
 21 
 22   interrupts:
 23     maxItems: 1
 24 
 25   nuvoton,jkdet-enable:
 26     description: Enable jack detection via JKDET pin.
 27     type: boolean
 28 
 29   nuvoton,jkdet-pull-enable:
 30     description: Enable JKDET pin pull. If set - pin pull enabled,
 31       otherwise pin in high impedance state.
 32     type: boolean
 33 
 34   nuvoton,jkdet-pull-up:
 35     description: Pull-up JKDET pin. If set then JKDET pin is pull up,
 36       otherwise pull down.
 37     type: boolean
 38 
 39   nuvoton,key-enable:
 40     description: handles key press detection.
 41     type: boolean
 42 
 43   nuvoton,jkdet-polarity:
 44     description: JKDET pin polarity.
 45     $ref: /schemas/types.yaml#/definitions/uint32
 46     enum:
 47       - 0 # active high
 48       - 1 # active low
 49     default: 1
 50 
 51   nuvoton,micbias-voltage:
 52     description: MICBIAS output level select.
 53     $ref: /schemas/types.yaml#/definitions/uint32
 54     enum:
 55       - 0 # VDDA
 56       - 1 # VDDA * 1
 57       - 2 # VDDA * 1.1
 58       - 3 # VDDA * 1.2
 59       - 4 # VDDA * 1.3
 60       - 5 # VDDA * 1.4
 61       - 6 # VDDA * 1.53
 62       - 7 # VDDA * 1.53
 63     default: 6
 64 
 65   nuvoton,vref-impedance:
 66     description: VMID Tie-off impedance select.
 67     $ref: /schemas/types.yaml#/definitions/uint32
 68     enum:
 69       - 0 # open
 70       - 1 # 25KOhms
 71       - 2 # 125KOhms
 72       - 3 # 2.5KOhms
 73     default: 2
 74 
 75   nuvoton,jack-insert-debounce:
 76     description: number from 0 to 7 that sets debounce time to 2^(n+2)ms.
 77     $ref: /schemas/types.yaml#/definitions/uint32
 78     maximum: 7
 79     default: 7
 80 
 81   nuvoton,jack-eject-debounce:
 82     description: number from 0 to 7 that sets debounce time to 2^(n+2)ms.
 83     $ref: /schemas/types.yaml#/definitions/uint32
 84     maximum: 7
 85     default: 0
 86 
 87   nuvoton,dmic-clk-threshold:
 88     description: DMIC clock speed expected value. Unit is Hz.
 89     $ref: /schemas/types.yaml#/definitions/uint32
 90     default: 3072000
 91 
 92   nuvoton,dmic-slew-rate:
 93     description: The range 0 to 7 represents the speed of DMIC slew rate.
 94         The lowest value 0 means the slowest rate and the highest value
 95         7 means the fastest rate.
 96     $ref: /schemas/types.yaml#/definitions/uint32
 97     maximum: 7
 98     default: 0
 99 
100   nuvoton,left-input-single-end:
101     description: Enable left input with single-ended settings if set.
102         For the headset mic application, the single-ended control is
103         just limited to the left adc for design demand.
104     type: boolean
105 
106   nuvoton,adc-delay-ms:
107     description: Delay (in ms) to make input path stable and avoid pop noise.
108     minimum: 125
109     maximum: 500
110     default: 125
111 
112   '#sound-dai-cells':
113     const: 0
114 
115 required:
116   - compatible
117   - reg
118 
119 unevaluatedProperties: false
120 
121 examples:
122   - |
123     #include <dt-bindings/gpio/gpio.h>
124     #include <dt-bindings/interrupt-controller/irq.h>
125     i2c {
126         #address-cells = <1>;
127         #size-cells = <0>;
128         codec@1b {
129             compatible = "nuvoton,nau8821";
130             reg = <0x1b>;
131             interrupt-parent = <&gpio>;
132             interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
133             nuvoton,jkdet-enable;
134             nuvoton,jkdet-pull-enable;
135             nuvoton,jkdet-pull-up;
136             nuvoton,key-enable;
137             nuvoton,left-input-single-end;
138             nuvoton,jkdet-polarity = <GPIO_ACTIVE_LOW>;
139             nuvoton,micbias-voltage = <6>;
140             nuvoton,vref-impedance = <2>;
141             nuvoton,jack-insert-debounce = <7>;
142             nuvoton,jack-eject-debounce = <0>;
143             nuvoton,dmic-clk-threshold = <3072000>;
144             nuvoton,dmic-slew-rate = <0>;
145             nuvoton,adc-delay-ms = <125>;
146             #sound-dai-cells = <0>;
147         };
148     };

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