Everest ES8326 audio CODEC

Schema identifier ($id): "http://devicetree.org/schemas/sound/everest,es8326.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "David Yang <yangxiaohua@everest-semi.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "everest,es8326"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

clock for master clock (MCLK)

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt output for headset detection

#sound-dai-cells — required here #

Exact value (const): 0

everest,jack-pol — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8

just the value of reg 57. Bit(3) decides whether the jack polarity is inverted. Bit(2) decides whether the button on the headset is inverted. Bit(1)/(0) decides the mic property to be OMTP/CTIA or auto.

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 15

everest,mic1-src — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8

the value of reg 2A when headset plugged.

Minimum value (minimum): 0

Maximum value (maximum): 119

Default value (default): 34

everest,mic2-src — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8

the value of reg 2A when headset unplugged.

Minimum value (minimum): 0

Maximum value (maximum): 119

Default value (default): 68

everest,jack-detect-inverted — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Defined to invert the jack detection.

everest,interrupt-src — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8

value of reg 0x58, Defines the interrupt source. Bit(2) 1 means button press triggers irq, 0 means not. Bit(3) 1 means PIN9 is the irq source for jack detection. When set to 0, bias change on PIN9 do not triggers irq. Bit(4) 1 means PIN27 is the irq source for jack detection. Bit(5) 1 means PIN9 is the irq source after MIC detect. Bit(6) 1 means PIN27 is the irq source after MIC detect.

Minimum value (minimum): 0

Maximum value (maximum): 60

Default value (default): 8

everest,interrupt-clk — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8

value of reg 0x59, Defines the interrupt output behavior.
Bit(0-3) 0 means irq pulse equals 512*internal clock
  1 means irq pulse equals 1024*internal clock
  2 means ...
  7 means irq pulse equals 65536*internal clock
  8 means irq mutes PA
  9 means irq mutes PA and DAC output
Bit(4) 1 means we invert the interrupt output.
Bit(6) 1 means the chip do not detect jack type after button released.
  0 means the chip detect jack type again after button released.

Minimum value (minimum): 0

Maximum value (maximum): 127

Default value (default): 0

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  es8326: codec@19 {
    compatible = "everest,es8326";
    reg = <0x19>;
    clocks = <&clks 10>;
    clock-names = "mclk";
    #sound-dai-cells = <0>;
    everest,jack-pol = [0e];
    everest,interrupt-src = [08];
    everest,interrupt-clk = [00];
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page