From patchwork Sat Jan 19 11:33:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-yi Chiang X-Patchwork-Id: 10771991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E43413B5 for ; Sat, 19 Jan 2019 11:34:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 401DC289E9 for ; Sat, 19 Jan 2019 11:34:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E65A289F8; Sat, 19 Jan 2019 11:34:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F7AE289E9 for ; Sat, 19 Jan 2019 11:33:59 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2A5832670A8; Sat, 19 Jan 2019 12:33:58 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 961442670AC; Sat, 19 Jan 2019 12:33:55 +0100 (CET) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by alsa0.perex.cz (Postfix) with ESMTP id E0BC22667E7 for ; Sat, 19 Jan 2019 12:33:52 +0100 (CET) Received: by mail-pg1-f193.google.com with SMTP id w7so7291756pgp.13 for ; Sat, 19 Jan 2019 03:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0HlCechkAc3ObRUM6hv1W0c8PK1wYLXHG3tM4eJXam0=; b=gEqfNbFCKxI4HSNedc9KZpKxsIqAiWdWv3KB/zsNedea31VHpl6SO+jWK6+DnpWh0o ppCs18brVnMj6rM+Y0FcYZPHxCQ8HY8NzlIfQOY01aOUlakJ+msKtnosx1EsVVXX84mx emIWH6oUvuac42E+d6deVw0Awaw/MvBr6eW4w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0HlCechkAc3ObRUM6hv1W0c8PK1wYLXHG3tM4eJXam0=; b=KSco1GEIRfNscdD27RIXtWf7oMLiI/QAl7F4zDYnGYJ2wAAHAuAejoCb7k8TT00eg5 P9o4cwjiu/V1pRDQnAkgUGlEhi4vuOD30pjEIh2jlKqD0VxP0JTEoAdv8M9DBE6CMeNJ /1RuvhBaxB58I76r+AcCpKyMh425Qd9Yw4uhMruAdpLA/7IAY+eSh+DpQ2R7NKjoZGeS gdEcs50fZE3/iXH8/eUeZ4vhXs53miPrlsz8E42KLs+cmQUyj3pLWhpvl/1Q85GIT7Co aXwq0syRPZBJV1DYfhuPvWoV0cisdcDWKshijL3LQRkgvIT7bIOwPEXF4khOcUGQVle2 XTvQ== X-Gm-Message-State: AJcUukftBaF33oUdUNjEIR6SJ6dY70nH2MzCc+MkAXYe3a3ClOJFWdmM 0hIBWt0TAvfzzvArfxemYxdpGg== X-Google-Smtp-Source: ALg8bN7iurSaISS8DttQAlGR0TQZcc1SrpNwA2pHtMXyUcUF9veMrOVvtRcjzvrJX9wpYZUmsQZBag== X-Received: by 2002:a62:184e:: with SMTP id 75mr22624476pfy.28.1547897631666; Sat, 19 Jan 2019 03:33:51 -0800 (PST) Received: from cychiang-z840.tpe.corp.google.com ([2401:fa00:1:b:d3e3:8b64:9238:2823]) by smtp.gmail.com with ESMTPSA id d18sm10477098pfj.47.2019.01.19.03.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 03:33:50 -0800 (PST) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Date: Sat, 19 Jan 2019 19:33:31 +0800 Message-Id: <20190119113332.249720-1-cychiang@chromium.org> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, tzungbi@chromium.org, Mark Brown , Rohit kumar , Guenter Roeck , dgreid@chromium.org, Cheng-Yi Chiang Subject: [alsa-devel] [PATCH v4 1/2] ASoC: Documentation: Add google, cros-ec-codec X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add documentation for Chrome EC codec driver. Signed-off-by: Cheng-Yi Chiang --- Change in v4: - Add a property max-dmic-gain so we can configure maximum gain on dmic. - Add Guenter to the reviewer list. .../bindings/sound/google,cros-ec-codec.txt | 26 +++++++++++++++++++ MAINTAINERS | 7 +++++ 2 files changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt diff --git a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt new file mode 100644 index 000000000000..1084f7f22eea --- /dev/null +++ b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt @@ -0,0 +1,26 @@ +* Audio codec controlled by ChromeOS EC + +Google's ChromeOS EC codec is a digital mic codec provided by the +Embedded Controller (EC) and is controlled via a host-command interface. + +An EC codec node should only be found as a sub-node of the EC node (see +Documentation/devicetree/bindings/mfd/cros-ec.txt). + +Required properties: +- compatible: Must contain "google,cros-ec-codec" +- #sound-dai-cells: Should be 1. The cell specifies number of DAIs. +- max-dmic-gain: A number for maximum gain in dB on digital microphone. + +Example: + +cros-ec@0 { + compatible = "google,cros-ec-spi"; + + ... + + cros_ec_codec: ec-codec { + compatible = "google,cros-ec-codec"; + #sound-dai-cells = <1>; + max-dmic-gain = <43>; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 4d04cebb4a71..a5678e4041e9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3688,6 +3688,13 @@ N: cros_ec N: cros-ec F: drivers/power/supply/cros_usbpd-charger.c +CHROMEOS EC CODEC DRIVER +M: Cheng-Yi Chiang +S: Maintained +R: Enric Balletbo i Serra +R: Guenter Roeck +F: Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt + CIRRUS LOGIC AUDIO CODEC DRIVERS M: Brian Austin M: Paul Handrigan