Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4155151imu; Sat, 19 Jan 2019 03:36:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN4SfOXm1m2tgbkLAU0/xXTIJcZmE8Ngwm0wy7hYZrckZ6Q28LLxJaCd/K0r0G1oXZGVv2/J X-Received: by 2002:a65:65c9:: with SMTP id y9mr21772456pgv.438.1547897781978; Sat, 19 Jan 2019 03:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547897781; cv=none; d=google.com; s=arc-20160816; b=LpQ2zHwHHY2mC19XEdmUi5CJzBPqgkDRI8KCadNx0Aqz4wU3JFeWs9z6LwkA0BNMEk ERwlSP/sa1pbJu+2RtWGArtIGy8dakKg26H+ikog5dWbGf2ZJlh/kUdOyL61WI/Jahfv xoV1Ulnf9mHoXYzK2EsfCs7Y52US6cbWcIaVCE6kd3XMfwlFuO53691lZX/YUyPhUjop rId87LMcB5XsPfPRELow7RgKOC2+b+8EjAdF2ZYzLKwC8aD/o0JB2ZQ6O0N75Qr07nF3 vp6yNO+818nRjBeMEiLVZMnDLOW8r8B/jrI/MNRmIj3q02yklAOR+r8VO8N9irazyQCE zEQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0HlCechkAc3ObRUM6hv1W0c8PK1wYLXHG3tM4eJXam0=; b=RhOPat3J5/pTjkmLmaOcPjbJ6ECyLTfbLweEcfIn9RyIlGYTVQ72UKDK7+OBJhZP8D y7uXVekD52R6BfQZJAclbaGjvjXtVUwFtBSWv8ferfSxvdtvRZQIVe56zjyDQv2j6heX q/dfmqiK0X6hDZWprw5qgL+D/CSwYf6OdKW8FVDYlC6Pq4b8hOU52hAn1/HvlxjTsQOW t//rpkugblmNorqbfD171uJjuJXgG2fYmRZ3Xb/3AOWm0+ETH4RRQsXbsfK8/zPJltzR nf/1tYPwYrBPg3oC5kgcsri6Bt49u8Oj5tWoyvBijgJP+AD5kpKBPaiINsU23X/X6J65 cMtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gEqfNbFC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd3si6795209plb.286.2019.01.19.03.36.03; Sat, 19 Jan 2019 03:36:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gEqfNbFC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727882AbfASLdx (ORCPT + 99 others); Sat, 19 Jan 2019 06:33:53 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44329 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727774AbfASLdx (ORCPT ); Sat, 19 Jan 2019 06:33:53 -0500 Received: by mail-pg1-f194.google.com with SMTP id t13so7303214pgr.11 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=jVrQu7VuytMIh0xD2dfDdkkUHfi7kcdxfzRsWRK88SERRqcjdItqETecL6OrJJKx2D WKPFuh12NJNHenAlneGECdSQU7CnaZRThqEkVfV7V15wuyOOjQt2CsJnlOh7P7QvYyq4 UPpwm8qFxRRJPoXWnACtaMFol3nAxskF3mRGnosZy3zdxCOyAxL2+SCMSUHWHqvOWfl2 ASnndUXk3D+6w+CuK7iUyf3aFZNeZvMdM7o728ATUA4BO27IltSc6FVoYTY1ZiWxlXxN 3e+9ZAnRaTpCB77l0m4ROpLOiaD4BvXf8ZcNKgURim434P6DYNRldmSaM2jNMijZdtvt al+g== X-Gm-Message-State: AJcUukcey3hFq8NFF/R8sRq6PU48hbXkKLCg+YibCdfvW6t+QvBxwRiX 5dX6GOMpnmTZ3b3e+HjZuHTNS3Kjf4A= 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 Cc: Mark Brown , alsa-devel@alsa-project.org, dgreid@chromium.org, tzungbi@chromium.org, Rohit kumar , Guenter Roeck , Cheng-Yi Chiang Subject: [PATCH v4 1/2] ASoC: Documentation: Add google,cros-ec-codec 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.20.1.321.g9e740568ce-goog