Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6608272ybv; Wed, 12 Feb 2020 15:58:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyXczuS6WVX+5Q1nHqgsJZ5m298OrMscEMpYn7vxKEyxSnT9z9cbgApWcx82ChUOGS9T7DJ X-Received: by 2002:a9d:7ad9:: with SMTP id m25mr10809958otn.13.1581551901980; Wed, 12 Feb 2020 15:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581551901; cv=none; d=google.com; s=arc-20160816; b=evQIzZtN1YF8ry/disS9fC97SjbsAiQFN6JVJGSuN6tdH84AaCZ90oOu+E60t7fc2i j3IUkLYVVXFJXz9el+imsaxPMbLer/tBxJ8OUOTupYgN+AoQSIORVgWanz0Q9ihBx/U5 Gp8C8CECNO7Cp4KZ3X+L6lmEApeNizJw3cwLngItRHPHPE+J+Fun9O+1fjK8wSI/BOjX w5/DwV4dhkP2UpckCgHBuh5J/OGHzVxmKthmZ+sNFZwSGZbbagcJt4XeKqg+0nhMF0WF Tt9FrjRam1maEmhsvzFB+VX/IGNERvsS7+oXC7hSk5FbmaurzPVfKUm+lJMpo8d9dap1 S2yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=WumVOP4dtfbhbHiZ7iGnALyLAfDB7XHUSFVsSrVFiGA=; b=hMqX2ygRgVjtQ1an9rVz1rx+YIxyIGwQomTI539i6i17EBQF49u4OmorI2yp3ZlUGf 7TZwbu0X1IoVeDqxnxpYI4wOkIlkLvzRzMMzDlo6oZ4MarPSXNBeLif9adQuvtQS9E6W dfNWF74bxP4Wk2m7nZGxMC+7kGmJFS8MdXbC/eDGhmKVtAFHfanKOFjBklYMgVP+lqRf jDIswn3Egm6C7iWvYs5UmAbjhELtqyhfQneucc124dfLUwR3wa1sZ+VEDO16EdviaFow yOWph5MExVUn11Eb1VTVqXLaV5PUNYT9i6yXVJrrHbzGXPw12bU/lp2V5Mh8p9C/6kaP 78uA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si188362oti.283.2020.02.12.15.58.07; Wed, 12 Feb 2020 15:58: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729389AbgBLX5R (ORCPT + 99 others); Wed, 12 Feb 2020 18:57:17 -0500 Received: from foss.arm.com ([217.140.110.172]:39726 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbgBLX5P (ORCPT ); Wed, 12 Feb 2020 18:57:15 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A1009106F; Wed, 12 Feb 2020 15:57:14 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 267453F68E; Wed, 12 Feb 2020 15:57:14 -0800 (PST) Date: Wed, 12 Feb 2020 23:57:12 +0000 From: Mark Brown To: Dafna Hirschfeld Cc: alsa-devel@alsa-project.org, bleung@chromium.org, broonie@kernel.org, cychiang@chromium.org, dafna3@gmail.com, dafna.hirschfeld@collabora.com, devicetree@vger.kernel.org, enric.balletbo@collabora.com, ezequiel@collabora.com, groeck@chromium.org, helen.koike@collabora.com, kernel@collabora.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Mark Brown , mark.rutland@arm.com, robh+dt@kernel.org Subject: Applied "dt-bindings: Convert the binding file google, cros-ec-codec.txt to yaml format." to the asoc tree In-Reply-To: <20200127091806.11403-1-dafna.hirschfeld@collabora.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch dt-bindings: Convert the binding file google, cros-ec-codec.txt to yaml format. has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From eadd54c75f1ef1566a6fe004787c028eb095f8b4 Mon Sep 17 00:00:00 2001 From: Dafna Hirschfeld Date: Mon, 27 Jan 2020 10:18:06 +0100 Subject: [PATCH] dt-bindings: Convert the binding file google, cros-ec-codec.txt to yaml format. This was tested and verified with: make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml Signed-off-by: Dafna Hirschfeld Reviewed-by: Rob Herring Link: https://lore.kernel.org/r/20200127091806.11403-1-dafna.hirschfeld@collabora.com Signed-off-by: Mark Brown --- .../bindings/sound/google,cros-ec-codec.txt | 44 ------------- .../bindings/sound/google,cros-ec-codec.yaml | 62 +++++++++++++++++++ 2 files changed, 62 insertions(+), 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt create mode 100644 Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml diff --git a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt deleted file mode 100644 index 8ca52dcc5572..000000000000 --- a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.txt +++ /dev/null @@ -1,44 +0,0 @@ -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. - -Optional properties: -- reg: Pysical base address and length of shared memory region from EC. - It contains 3 unsigned 32-bit integer. The first 2 integers - combine to become an unsigned 64-bit physical address. The last - one integer is length of the shared memory. -- memory-region: Shared memory region to EC. A "shared-dma-pool". See - ../reserved-memory/reserved-memory.txt for details. - -Example: - -{ - ... - - reserved_mem: reserved_mem { - compatible = "shared-dma-pool"; - reg = <0 0x52800000 0 0x100000>; - no-map; - }; -} - -cros-ec@0 { - compatible = "google,cros-ec-spi"; - - ... - - cros_ec_codec: ec-codec { - compatible = "google,cros-ec-codec"; - #sound-dai-cells = <1>; - reg = <0x0 0x10500000 0x80000>; - memory-region = <&reserved_mem>; - }; -}; diff --git a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml new file mode 100644 index 000000000000..94a85d0cbf43 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/google,cros-ec-codec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Audio codec controlled by ChromeOS EC + +maintainers: + - Cheng-Yi Chiang + +description: | + 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). + +properties: + compatible: + const: google,cros-ec-codec + + "#sound-dai-cells": + const: 1 + + reg: + items: + - description: | + Physical base address and length of shared memory region from EC. + It contains 3 unsigned 32-bit integer. The first 2 integers + combine to become an unsigned 64-bit physical address. + The last one integer is the length of the shared memory. + + memory-region: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: | + Shared memory region to EC. A "shared-dma-pool". + See ../reserved-memory/reserved-memory.txt for details. + +required: + - compatible + - '#sound-dai-cells' + +additionalProperties: false + +examples: + - | + reserved_mem: reserved_mem { + compatible = "shared-dma-pool"; + reg = <0 0x52800000 0 0x100000>; + no-map; + }; + cros-ec@0 { + compatible = "google,cros-ec-spi"; + #address-cells = <2>; + #size-cells = <1>; + cros_ec_codec: ec-codec { + compatible = "google,cros-ec-codec"; + #sound-dai-cells = <1>; + reg = <0x0 0x10500000 0x80000>; + memory-region = <&reserved_mem>; + }; + }; -- 2.20.1