From patchwork Thu Jul 14 02:42:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Ning X-Patchwork-Id: 590878 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 41219C433EF for ; Thu, 14 Jul 2022 02:44:19 +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 E9997176B; Thu, 14 Jul 2022 04:43:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E9997176B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1657766657; 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=U4q3ou1dQzlPF9tHT236ffYj/TR1TGjz0KsXoWoxGQWCpnXQfMAWOab0/s1w0ypbf UA1HMWeW4P1P2NAWEkGVceELQ1dwaJWGoc+B4fvXy75dtQQloe1Q9Hhjy/B0CUn3O4 rKgotlYFtYFl1y+19uKe0qLmR6geyMUZLFeUT5Q8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BDF1BF80542; Thu, 14 Jul 2022 04:42:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4BA8AF80165; Thu, 14 Jul 2022 04:42:52 +0200 (CEST) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (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 F1360F80152 for ; Thu, 14 Jul 2022 04:42:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F1360F80152 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VGAykDuH" Received: by mail-pf1-x431.google.com with SMTP id j3so647347pfb.6 for ; Wed, 13 Jul 2022 19:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=y1MIWnHCM+GAst9qr5uT5FWNOFAzzBmNsrQ4ccKB8sg=; b=VGAykDuHuHB7XHdTzqhGGPh3suNG9ojL3cNOlUVl3wihdFm+242Z2LKa2DhH3BTS7q xfxmIbGLCEKKaLEtmagBdiycH1pwsb0/OztOauwure4k2ty3gD1+0l4ZOkFcP7cLy0io Sr4R0k4/PV/1FoKbPPsXSiAmfGbSsKF7p0dsmnbY8qZcMEwO2GSThfK4z+g54QgrE1Xg W8+zntaX1v264P7G8mQ2UfR1q6fi/AMHXHdpyRCloZnn40oykxaF5KVSn9crK8aKsmDc eDbyC4D/j8PYebJHMojPkemKzr2CfLKcNDKjmu9XLqoxBdStrLyPYA5VbXgxVChsWnAj NUPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y1MIWnHCM+GAst9qr5uT5FWNOFAzzBmNsrQ4ccKB8sg=; b=x0GK7SmXB5xjrsWa+Q30yqu6cQkBXIlsYvaIPln+etgu/fpczzyyjA4rn1Hdwbdwl4 m+x3sdCE94ZBG31jBwa4ThezHNRmCbvJjxv00NUUNor4ZIV06MLQ//iDwkFB+MNkDHgy 0pe8TySKa/KLAs26xGauLfNtqEvWh1u/gLOE8DbjQoWvvZRixE2vR/uPCY82vYNGJUQt OkBUu9qFIb9XJwfGo0Zrd48iB6ljXzSivKLEstiq1HZRcowttqxONuhydFZeG0yuGbzF XqCEwKXtKN1dOm4fsUVspfJXwiSHPJOIYa47SAh3c4aDkjVjHMjOgqzQNICMEpol57hb lpKg== X-Gm-Message-State: AJIora+QTJPi/xJjWy86han4zYiC19hy5Tu77HN54JUazyluidA7cuYx egFenvoIVsHldnSBzW3syIwFaQXPQddPeQ== X-Google-Smtp-Source: AGRyM1vHihOayjX1obFQSa35qz0Ym+me7Usz98CaW31Uf+TQO3FBQl35qgY5mbj3IcccLE0CnoUjxw== X-Received: by 2002:a05:6a00:18a7:b0:51b:c63f:1989 with SMTP id x39-20020a056a0018a700b0051bc63f1989mr5961824pfh.49.1657766563617; Wed, 13 Jul 2022 19:42:43 -0700 (PDT) Received: from a-VirtualBox.. ([116.232.54.164]) by smtp.gmail.com with ESMTPSA id w188-20020a6282c5000000b0052aee60e058sm261125pfd.102.2022.07.13.19.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 19:42:43 -0700 (PDT) From: Zhu Ning To: alsa-devel@alsa-project.org Subject: [PATCH 2/2] dt-bindings: sound: es8326: Add dtbindings documentation Date: Thu, 14 Jul 2022 10:42:03 +0800 Message-Id: <20220714024203.7332-2-zhuning0077@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220714024203.7332-1-zhuning0077@gmail.com> References: <20220714024203.7332-1-zhuning0077@gmail.com> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, Zhu Ning , 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]; + }; + };