Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0709BC19F29 for ; Fri, 29 Jul 2022 09:09:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbiG2JJL (ORCPT ); Fri, 29 Jul 2022 05:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235494AbiG2JJK (ORCPT ); Fri, 29 Jul 2022 05:09:10 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE2B284EF0 for ; Fri, 29 Jul 2022 02:09:09 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id h21-20020a17090aa89500b001f31a61b91dso4958149pjq.4 for ; Fri, 29 Jul 2022 02:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=hCbUDfewVNfxco0jKTNS446yrXoa8F7t2H5Ga7NL5pw=; b=KSvU33lvVjaXWP9ysUOK/wPTjk/mtsTWRhVl425C/RkAOhkyKgWN9h2hqBuLvJAAbW iofrSIb+EGHDrx883BnQFKM0yKLsvTwkw5L9+UhE5sm1qrESrhl/rzXK7hFlY3pycKKH S7NOu4AXE2812CtB1kz3rsRgmI+5XmG+RUCdH7fxb+/D7WjkiKCpVnL8BWbN35yjLQUF o5gFRX8o96hc/tp+uL6eNKwFcRcw0mkw16S4aNh0pl7NGYtbYWt5clJW5bPmTUpmxnD/ 9xPqcI5UEQaOqHftXBKeqNxkfNZ77bs5TvrNG3OiyZT3tlsmEkDwuhRscpRhkKXP0DLC b4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=hCbUDfewVNfxco0jKTNS446yrXoa8F7t2H5Ga7NL5pw=; b=J5zmcDXtkMSSV2vWbjwUrZvOYC1i6UJ3IEhucy26sunpr+KahUyVmIQ1qjR2QQCXn8 vG11U1qgMUhDFmpyPL9pHL0zMYwmpzautlWTuazwfCJcEhHrNFdkTIHhJi88/vDeMOvf vOk0I/KpPuiOKEFHSnWBL8GQQ77kZh9xNiNo7Ixzc2Rnjk6uogTS82LCdJApx1d65vx1 XLYyBZScLnk6dUqfGXonlkQe1zxVuGHEq3q28p3+BzhoRmMh2PkCRO6pcOL0kJQ55pwr 2anIvSEC8pfR/Wo6ngiyiWHvsag706Ow+FX6Za5IYnNRhyJ+UH2viNQEUzA09aUdyFEZ l5vQ== X-Gm-Message-State: ACgBeo07js6Tufpj9tTmTIGjnmRok5H0acHWvetAuZhch02ffy9cbavg FeKxCGB9O1X0i3nbIsvynyc= X-Google-Smtp-Source: AA6agR7mSPMQjbv34yhsmlYgC5w2oGSgf9nxlR/7bSoxSsjeEQYz1ShM0oyPzjva5iMt43bk5qKOpA== X-Received: by 2002:a17:902:b10a:b0:16c:51cd:a6f with SMTP id q10-20020a170902b10a00b0016c51cd0a6fmr2846747plr.42.1659085749274; Fri, 29 Jul 2022 02:09:09 -0700 (PDT) Received: from a-VirtualBox.. ([116.233.75.140]) by smtp.gmail.com with ESMTPSA id s3-20020a170902ea0300b0016d763967f8sm2954832plg.107.2022.07.29.02.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 02:09:09 -0700 (PDT) From: Zhu Ning To: alsa-devel@alsa-project.org Cc: pierre-louis.bossart@linux.intel.com, tiwai@suse.com, broonie@kernel.org, devicetree@vger.kernel.org, robh@kernel.org, Zhu Ning , David Yang , Zhu Ning Subject: [PATCH v4 2/2] ASoC: dt-bindings: Add Everest ES8326 audio CODEC Date: Fri, 29 Jul 2022 17:08:57 +0800 Message-Id: <20220729090857.579785-2-zhuning0077@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220729090857.579785-1-zhuning0077@gmail.com> References: <20220729090857.579785-1-zhuning0077@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree binding documentation for Everest ES8326 Signed-off-by: David Yang Signed-off-by: Zhu Ning ---- v4 add properity for reg58 and reg59 --- .../bindings/sound/everest,es8326.yaml | 116 ++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100755 Documentation/devicetree/bindings/sound/everest,es8326.= yaml diff --git a/Documentation/devicetree/bindings/sound/everest,es8326.yaml b/= Documentation/devicetree/bindings/sound/everest,es8326.yaml new file mode 100755 index 000000000000..d957211516f0 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/everest,es8326.yaml @@ -0,0 +1,116 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)=0D +%YAML 1.2=0D +---=0D +$id: http://devicetree.org/schemas/sound/everest,es8326.yaml#=0D +$schema: http://devicetree.org/meta-schemas/core.yaml#=0D +=0D +title: Everest ES8326 audio CODEC=0D +=0D +maintainers:=0D + - David Yang =0D +=0D +properties:=0D + compatible:=0D + const: everest,es8326=0D +=0D + reg:=0D + maxItems: 1=0D +=0D + clocks:=0D + items:=0D + - description: clock for master clock (MCLK)=0D +=0D + clock-names:=0D + items:=0D + - const: mclk=0D +=0D + "#sound-dai-cells":=0D + const: 0=0D +=0D + everest,jack-pol:=0D + description:=0D + just the value of reg 57. Bit(3) decides whether the jack polarity i= s inverted.=0D + Bit(2) decides whether the button on the headset is inverted.=0D + Bit(1)/(0) decides the mic properity to be OMTP/CTIA or auto.=0D + $ref: /schemas/types.yaml#/definitions/uint8=0D + minimum: 0x00=0D + maximum: 0x0f=0D + default: 0x0f=0D + =0D + everest,mic1-src:=0D + description:=0D + the value of reg 2A when headset plugged.=0D + $ref: /schemas/types.yaml#/definitions/uint8=0D + minimum: 0x00=0D + maximum: 0x77=0D + default: 0x22=0D +=0D + everest,mic2-src:=0D + description:=0D + the value of reg 2A when headset unplugged.=0D + $ref: /schemas/types.yaml#/definitions/uint8=0D + minimum: 0x00=0D + maximum: 0x77=0D + default: 0x44=0D +=0D + everest,jack-detect-inverted:=0D + description:=0D + Defined to invert the jack detection.=0D + $ref: /schemas/types.yaml#/definitions/flag=0D +=0D + everest,interrupt-src:=0D + description:=0D + value of reg 0x58, Defines the interrupt source.=0D + Bit(2) 1 means button press triggers irq, 0 means not.=0D + Bit(3) 1 means PIN9 is the irq source for jack detection. When set t= o 0,=0D + bias change on PIN9 do not triggers irq.=0D + Bit(4) 1 means PIN27 is the irq source for jack detection.=0D + Bit(5) 1 means PIN9 is the irq source after MIC detect.=0D + Bit(6) 1 means PIN27 is the irq source after MIC detect.=0D + $ref: /schemas/types.yaml#/definitions/uint8=0D + minimum: 0=0D + maximum: 0x3c=0D + default: 0x08=0D +=0D + everest,interrupt-clk:=0D + description:=0D + value of reg 0x59, Defines the interrupt output behavior.=0D + Bit(0-3) 0 means irq pulse equals 512*internal clock=0D + 1 means irq pulse equals 1024*internal clock=0D + 2 means ...=0D + 7 means irq pulse equals 65536*internal clock=0D + 8 means irq mutes PA=0D + 9 means irq mutes PA and DAC output=0D + Bit(4) 1 means we invert the interrupt output.=0D + Bit(6) 1 means the chip do not detect jack type after button released= .=0D + 0 means the chip detect jack type again after button released.=0D + $ref: /schemas/types.yaml#/definitions/uint8=0D + minimum: 0=0D + maximum: 0x7f=0D + default: 0x45=0D +=0D +required:=0D + - compatible=0D + - reg=0D + - "#sound-dai-cells"=0D +=0D +additionalProperties: false=0D +=0D +examples:=0D + - |=0D + i2c {=0D + #address-cells =3D <1>;=0D + #size-cells =3D <0>;=0D + es8326: codec@19 {=0D + compatible =3D "everest,es8326";=0D + reg =3D <0x19>;=0D + clocks =3D <&clks 10>;=0D + clock-names =3D "mclk";=0D + #sound-dai-cells =3D <0>;=0D + everest,mic1-src =3D [22];=0D + everest,mic2-src =3D [44];=0D + everest,jack-pol =3D [0e];=0D + everest,interrupt-src =3D [08];=0D + everest,interrupt-clk =3D [45];=0D + };=0D + };=0D --=20 2.36.1