From patchwork Tue Jul 26 13:17:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Ning X-Patchwork-Id: 12929283 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2DCEFC433EF for ; Tue, 26 Jul 2022 13:19:43 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 17E40161E; Tue, 26 Jul 2022 15:18:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 17E40161E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1658841581; bh=72KPcTc9qgkUq28qh2yNrajpqFWWTqZPmZvHKFDySok=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=UkOv4RxA9uKjtgpyiPX7kzoCVw05Ru+s5OHAsEHgoOzWEGfWAVMgw8ZPg2dZ+GkyV Jnn8LAvE8oDytesUb4q1Bfn7rkfPu2y89NEyPYTpDFR9Ca4nE6/q3+e34SHeqR4QSs cxeWyFD/+MMT6r++8P2sJVIPwn8PR8wWpZw+wxkE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BBA90F8053C; Tue, 26 Jul 2022 15:18:20 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B90CEF80544; Tue, 26 Jul 2022 15:18:18 +0200 (CEST) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9A919F80238 for ; Tue, 26 Jul 2022 15:18:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9A919F80238 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="o1HzOE9l" Received: by mail-pg1-x52e.google.com with SMTP id f11so13115089pgj.7 for ; Tue, 26 Jul 2022 06:18:11 -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=y1MIWnHCM+GAst9qr5uT5FWNOFAzzBmNsrQ4ccKB8sg=; b=o1HzOE9lUNVPGwqVE2FDPK2rOjOpLpgApfnD7kpTCXkG8EI30Vq5i13MZ5OMR8Zdt7 AE/awwN36Dj98SubOLFQHyBF3uRf+JNhy3NHAhJeYbzg4g8BmHAlkWxZt9nLkCs3DvaR KnwK32oVM5srGEDtPXYIeqb4rkvKzy5XVYTN0yyb1oSIuv71yXS7NtvVHBlGKzZcC10C Ku2MMd0GNgyyFDIqKwz+LcDZLW0Sy/3KZ1Ra8emHI2m0YK+18myNaJUbEn6R2/ZIH1TZ peZJ5H1mXP6eDGyhRSG1rKEUCOcKy9rc6gO/7WJUusQGqNYF/oMsZT4RHLldnVA89kJr qwNA== 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=y1MIWnHCM+GAst9qr5uT5FWNOFAzzBmNsrQ4ccKB8sg=; b=C4+BmXoDjFrWdGru0jpz5AFHj9JGXeygqhIjrkXQ1cjamK6eUw8GO1t9AWzemNYGN5 wsus3P5pIt5OxFOmKdvz1LMn0z/UJ/65jCPh0Jc1NcZ8CoTPgwgEcuOFpueMJOkCLLK6 Mz8qhrWnyJYNw/wHFKH+2thrMLZb+eXQ7De/3MKfI4gHTe0lpOTdZiEg+TaaQnU+EZ84 oefoUQhSSPVSsCdkwRgsKg1Tz0Kc2YrxWMejjg25bqUp2L4punxj4Rz/Ky2aaoqui3n1 gukUTvTldP3l1gJwLPhieoatWZwtq15qg82dooVhWnvXWhJt0UxJ1WzO9J7YlgCDq8IE jhTg== X-Gm-Message-State: AJIora80wr5xdBVUOL2du1uJkQqyCf3CXUwB5bD4AnVFXtOg5MF3HwaN kLfBHylgP8+/xh7r+BIxgWR4cVVDBvZC6JelVvs= X-Google-Smtp-Source: AGRyM1vYo1jZTJrNdxAIRCKJQ9eRaZlRJ156Fc326My3lXKm/sEHa+Rib2ZfX54N27PMqc2QQOOsuQ== X-Received: by 2002:a05:6a00:21c5:b0:52b:fc9c:295b with SMTP id t5-20020a056a0021c500b0052bfc9c295bmr8184968pfj.56.1658841489433; Tue, 26 Jul 2022 06:18:09 -0700 (PDT) Received: from a-VirtualBox.tendawifi.com ([101.224.225.209]) by smtp.gmail.com with ESMTPSA id ru6-20020a17090b2bc600b001f229f8d7bdsm11227459pjb.16.2022.07.26.06.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 06:18:09 -0700 (PDT) From: Zhu Ning To: alsa-devel@alsa-project.org Subject: [PATCH v3 2/2] ASoC: dt-bindings: Add Everest ES8326 audio CODEC Date: Tue, 26 Jul 2022 21:17:47 +0800 Message-Id: <20220726131747.127992-2-zhuning0077@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220726131747.127992-1-zhuning0077@gmail.com> References: <20220726131747.127992-1-zhuning0077@gmail.com> MIME-Version: 1.0 Cc: robh@kernel.org, ckeepax@opensource.cirrus.com, Zhu Ning , devicetree@vger.kernel.org, pierre-louis.bossart@linux.intel.com, tiwai@suse.com, broonie@kernel.org, Zhu Ning , David Yang X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Add device tree binding documentation for Everest ES8326 Signed-off-by: David Yang Signed-off-by: Zhu Ning --- .../bindings/sound/everest,es8326.yaml | 84 +++++++++++++++++++ 1 file changed, 84 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..f6aa3c03d456 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/everest,es8326.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/everest,es8326.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Everest ES8326 audio CODEC + +maintainers: + - David Yang + +properties: + compatible: + const: everest,es8326 + + reg: + maxItems: 1 + + clocks: + items: + - description: clock for master clock (MCLK) + + clock-names: + items: + - const: mclk + + "#sound-dai-cells": + const: 0 + + everest,jack-pol: + description: + just the value of reg 57. Bit(3) decides whether the jack polarity is inverted. + Bit(2) decides whether the bottom on the headset is inverted. + Bit(1)/(0) decides the mic properity to be OMTP/CTIA or auto. + $ref: /schemas/types.yaml#/definitions/uint8-array + minimum: 0 + maximum: 0x0f + default: 0x0f + + everest,mic1-src: + description: + the value of reg 2A when headset plugged. + $ref: /schemas/types.yaml#/definitions/uint8-array + minimum: 0x00 + maximum: 0x77 + default: 0x22 + + everest,mic2-src: + description: + the value of reg 2A when headset unplugged. + $ref: /schemas/types.yaml#/definitions/uint8-array + minimum: 0x00 + maximum: 0x77 + default: 0x44 + + everest,jack-detect-inverted: + description: + Defined to invert the jack detection. + $ref: /schemas/types.yaml#/definitions/flag + +required: + - compatible + - reg + - "#sound-dai-cells" + + +additionalProperties: false + +examples: + - | + i2c0 { + #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,mic1-src = [22]; + everest,mic2-src = [44]; + everest,jack-pol = [0e]; + }; + };