Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp655599imu; Tue, 27 Nov 2018 04:29:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/U87K6LdYiEpTWfXzgf7YJrjv+rVsUJZ0JpdTsPYnyrz16b1M5icqK8WAV/8bNHbfJLzMbF X-Received: by 2002:a63:801:: with SMTP id 1mr28670078pgi.275.1543321774021; Tue, 27 Nov 2018 04:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543321773; cv=none; d=google.com; s=arc-20160816; b=fV6E4FGKUPZqldTUR+8G4lruUxq2YSq1KohKzJuFCxWMPvyOPxQusZga7/22iw8/XL Jbfn0oLoWQAsidN8m4Rah3tkk5G1UfuDluQ8WgKUGd8H9pCiyv/308nM+GUwwCmsRiV6 rRlO6FG/1GttOvgiSH1C2Y/v0zFur0TLQIKvIQCCJ5vHQ4eVT+iW+pOGhJfTCLJFlVRq SKz+J8knPkemnS9GrIpBN/xE6gVrB73Qi7gA23/Y6Ru+1oOqOBNkEdBDoMxSEcdSydJo Mq3nqmA9kLVWtV1v7MMBujLbjjPTeek21hE/GVp7EswfUWOVpjwNlH0IEq/6tGl+IgpN mdFw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=48JQhctEJOoIDWxAa76+1Gc2OHJ05xQ1fJBQHON4z9Q=; b=os279xPGO9ZDf1JAUwqGBQTK4aj97v7L5iC7iksvRO128hdE40vn+rjl6PXz7hkGVq yRRcx7yoQZIxe8QRUEcGY4LthYv2JUiVISUWqjoV8qFn95pXAG9EYMRjAT0EcwBP+sgM 85qEjpwvYzVD0hNnkzVag3PmJyQ9M1wMQwkj6gzcQ3bL5bBisoMYq6T7NybEX9+XTXn3 8O3A6DzhuEW4y3kpDELhoajbZzNzLppbPmcDxmmhE6Dxl1GlkuOMfNaWvTJR/Qcfehh4 AcvDNN2R5nGdvCIhRA7s2LfHtC+w2dsHHwh7phyiVm6Xycs8NcGg7V6+lELh3dZyTOui Pygg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NiQKl+6s; 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 y10si3493216pgp.348.2018.11.27.04.29.15; Tue, 27 Nov 2018 04:29:33 -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=NiQKl+6s; 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 S1730517AbeK0XAQ (ORCPT + 99 others); Tue, 27 Nov 2018 18:00:16 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:32934 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730486AbeK0XAQ (ORCPT ); Tue, 27 Nov 2018 18:00:16 -0500 Received: by mail-pf1-f193.google.com with SMTP id c123so7554856pfb.0 for ; Tue, 27 Nov 2018 04:02:35 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=48JQhctEJOoIDWxAa76+1Gc2OHJ05xQ1fJBQHON4z9Q=; b=NiQKl+6swRF51v8ax65q0KNW369dXl08FhBgedrF+JwaJ8y4wjEulJkfmQJGiPaB+g RC/u2aBKEyq6hV7jwDNmQZ+Rj5k6xq/BBzX4puGi2Zq8IsdIMM78nfOFvzb1WnCSQVCC gUtNHwocybIfmVRZqSWs+NVuFs62MTKk721bo= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=48JQhctEJOoIDWxAa76+1Gc2OHJ05xQ1fJBQHON4z9Q=; b=Zrc6RtKfYJYaKBDAS0ttKFPXOTuqjRc3lQPhMuUaAFYKhSDpt8W0eTLNhCR76f0eQK Y6XtW1u3oYGKJNU/Wh3xQ7qi6kewrOe8+B/4H9cyArwzT3K0C4Tr4/V5bosOvD9YYFVz v1a9FnzRSPpULD44p841Gi3EatjLFUfBTfqxVKpJkdIZ/b6iimOROuEfXDNGM47eizr8 sAD9BQ+T4N9HJfsT/y4rYiFZrsJl9f3HY32hCH0fekLXh6sPwTMhoG0Cy10cO+nu7xtI Cfi5ioyCZHCV+BMFPlQ7lM88c2G5vak7/Vr+BSSj0e9hUm3TknDLZe7mKRfTH+DUAoju T5Tg== X-Gm-Message-State: AGRZ1gKUe6beq8xlFLc2IcTCB8yMjMTIDQqWCf/vyQkEC9/9KZA/1Yqz n9c/bMgxll12GBDLx6MUVFh0I+js7po= X-Received: by 2002:a62:32c4:: with SMTP id y187-v6mr32619461pfy.4.1543320154963; Tue, 27 Nov 2018 04:02:34 -0800 (PST) Received: from cychiang-z840.tpe.corp.google.com ([2401:fa00:1:b:e688:dfd2:a1a7:2956]) by smtp.gmail.com with ESMTPSA id m85sm8312778pfj.171.2018.11.27.04.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 04:02:34 -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 , Cheng-Yi Chiang Subject: [PATCH 2/3] ASoC: Documentation: Add google,cros-ec-codec Date: Tue, 27 Nov 2018 20:00:40 +0800 Message-Id: <20181127120041.90759-2-cychiang@chromium.org> X-Mailer: git-send-email 2.20.0.rc0.387.gc7a69e6b6c-goog In-Reply-To: <20181127120041.90759-1-cychiang@chromium.org> References: <20181127120041.90759-1-cychiang@chromium.org> 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 --- .../bindings/sound/google,cros-ec-codec.txt | 24 +++++++++++++++++++ MAINTAINERS | 5 ++++ 2 files changed, 29 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 0000000000000..57718382b3a36 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt @@ -0,0 +1,24 @@ +* 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. + +Example: + +cros-ec@0 { + compatible = "google,cros-ec-spi"; + + ... + + cros_ec_codec: ec-codec { + compatible = "google,cros-ec-codec"; + #sound-dai-cells = <1>; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 91b4218195aac..5cf8ab296cc61 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3552,6 +3552,11 @@ S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform.git F: drivers/platform/chrome/ +CHROME EC CODEC DRIVER +M: Cheng-Yi Chiang +S: Maintained +F: Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt + CIRRUS LOGIC AUDIO CODEC DRIVERS M: Brian Austin M: Paul Handrigan -- 2.20.0.rc0.387.gc7a69e6b6c-goog