1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/everest,es8326.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Everest ES8326 audio CODEC
10 - David Yang <yangxiaohua@everest-semi.com>
21 - description: clock for master clock (MCLK)
31 $ref: /schemas/types.yaml#/definitions/uint8
33 just the value of reg 57. Bit(3) decides whether the jack polarity is inverted.
34 Bit(2) decides whether the button on the headset is inverted.
35 Bit(1)/(0) decides the mic properity to be OMTP/CTIA or auto.
41 $ref: /schemas/types.yaml#/definitions/uint8
43 the value of reg 2A when headset plugged.
49 $ref: /schemas/types.yaml#/definitions/uint8
51 the value of reg 2A when headset unplugged.
56 everest,jack-detect-inverted:
57 $ref: /schemas/types.yaml#/definitions/flag
59 Defined to invert the jack detection.
61 everest,interrupt-src:
62 $ref: /schemas/types.yaml#/definitions/uint8
64 value of reg 0x58, Defines the interrupt source.
65 Bit(2) 1 means button press triggers irq, 0 means not.
66 Bit(3) 1 means PIN9 is the irq source for jack detection. When set to 0,
67 bias change on PIN9 do not triggers irq.
68 Bit(4) 1 means PIN27 is the irq source for jack detection.
69 Bit(5) 1 means PIN9 is the irq source after MIC detect.
70 Bit(6) 1 means PIN27 is the irq source after MIC detect.
75 everest,interrupt-clk:
76 $ref: /schemas/types.yaml#/definitions/uint8
78 value of reg 0x59, Defines the interrupt output behavior.
79 Bit(0-3) 0 means irq pulse equals 512*internal clock
80 1 means irq pulse equals 1024*internal clock
82 7 means irq pulse equals 65536*internal clock
84 9 means irq mutes PA and DAC output
85 Bit(4) 1 means we invert the interrupt output.
86 Bit(6) 1 means the chip do not detect jack type after button released.
87 0 means the chip detect jack type again after button released.
97 additionalProperties: false
102 #address-cells = <1>;
105 compatible = "everest,es8326";
108 clock-names = "mclk";
109 #sound-dai-cells = <0>;
110 everest,mic1-src = [22];
111 everest,mic2-src = [44];
112 everest,jack-pol = [0e];
113 everest,interrupt-src = [08];
114 everest,interrupt-clk = [45];