From patchwork Mon Jul 18 05:32:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Ning X-Patchwork-Id: 592865 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 BE919C43334 for ; Mon, 18 Jul 2022 05:34:31 +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 9770B1755; Mon, 18 Jul 2022 07:33:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9770B1755 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1658122469; 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=exqP0V3cBt6O/ZogReGcH6A6dNsHbWNC8TMOJkFZxdwxl5dIM6ozvzeyDkRB0LGt5 Bw5oQKkpZbuxURClNOUQ/+f+H/hsAXqtTa+bp9Poo47CzRFE1gYqoVS+/S13xk9tel KgPWzf+ZsZexnppnv1z2nIXC9f2xWCqEx1NHSUls= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 59671F8053C; Mon, 18 Jul 2022 07:33:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 90360F80508; Mon, 18 Jul 2022 07:33:04 +0200 (CEST) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (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 43E52F80430 for ; Mon, 18 Jul 2022 07:32:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 43E52F80430 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ub3V4kc6" Received: by mail-pg1-x531.google.com with SMTP id s206so9648886pgs.3 for ; Sun, 17 Jul 2022 22:32:55 -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=Ub3V4kc6uYBT+k7hO9YNU7BjpbU6FMDrE+unXj904tiry9yZTcUqRTK3YPKFhFUG/L 4zEDC+SOhBeqj24B8X0IrG+Tz4NSX8hq7HkYnNVMZZYOqKvcVGn4j7p8DdKGlmRQEu+T HTxiA0RAslNanpH9isa3mAheR0dQXzDNBBQXEoMAta2iPhjV4c9faklZFCoObTMpqAyC Hnivu/7HrHz5mEgx8weqAfVV5GOUEjHNtGRMtI1Ij3fCBeTpFZZZSESbhdHPB3B7+nRO reIV2BYXIV4XMltG1kNXqOwFFMzMKoPg5fibDqta+p+5LPdKW6x4F9QV+5pgOsSHi8KG vk5g== 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=rR7zs3afU5EZjy5gr5oiWGkIrVU2CnX/sU5EDgy2xvMjDRwJcC8ITPjnGvpwtchBgC VxYgLQGdJnirH1Eb8+7MgbiywNd5uNHxCywwNDWlyQ6FJCrG+RlnLxllmPrrjsSMkKiz aMcueyeR+HrBiBhDbJLTTAW9TNIELSslZg4EX3vOQGlGD7a1R9nlyVYhURwclBQX204K ztbNKt7KXwkmN73aCpd73B+niR43zR8RqFjT3QHBGoiMI550F6I25RTS7C8LVGAfyJU3 loAW5yNg9o73pmT3acoT288g5pxcuVSVI95A1AxrAGyidxcXpYNIkzaEMOgVVBUaC/dM wROg== X-Gm-Message-State: AJIora8OSDED/dnwZl073FOraTbnhILy6ir0zyjrwxYEuJK1BOVKROLk o7wat7aQjo44DBR8ZdHmjwUGrpVlS2fGXdqh X-Google-Smtp-Source: AGRyM1uTyVXJX80zULwBp6WzGBGgEFUaO37MFo99BymiR31Ks0Pfy+FNWzMSHEebm2uIzC6Nx2PPRQ== X-Received: by 2002:a05:6a00:198f:b0:52a:dc25:cc78 with SMTP id d15-20020a056a00198f00b0052adc25cc78mr26553547pfl.20.1658122373186; Sun, 17 Jul 2022 22:32:53 -0700 (PDT) Received: from a-VirtualBox.tendawifi.com ([101.224.225.209]) by smtp.gmail.com with ESMTPSA id z6-20020a1709027e8600b0016c1fdaa38fsm8227608pla.231.2022.07.17.22.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 22:32:51 -0700 (PDT) From: Zhu Ning To: alsa-devel@alsa-project.org Subject: [PATCH v1 2/2] dt-bindings: sound: es8326: Add dtbindings documentation Date: Mon, 18 Jul 2022 13:32:37 +0800 Message-Id: <20220718053237.20146-2-zhuning0077@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220718053237.20146-1-zhuning0077@gmail.com> References: <20220718053237.20146-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]; + }; + };