1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/google,cros-ec-codec.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Audio codec controlled by ChromeOS EC 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Cheng-Yi Chiang <cychiang@chromium.org> 11*7ef62cebSEmmanuel Vadot - Tzung-Bi Shih <tzungbi@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: | 14c66ec88fSEmmanuel Vadot Google's ChromeOS EC codec is a digital mic codec provided by the 156be33864SEmmanuel Vadot Embedded Controller (EC) and is controlled via a host-command 166be33864SEmmanuel Vadot interface. An EC codec node should only be found inside the "codecs" 176be33864SEmmanuel Vadot subnode of a cros-ec node. 186be33864SEmmanuel Vadot (see Documentation/devicetree/bindings/mfd/google,cros-ec.yaml). 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadotproperties: 21c66ec88fSEmmanuel Vadot compatible: 22c66ec88fSEmmanuel Vadot const: google,cros-ec-codec 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot "#sound-dai-cells": 25c66ec88fSEmmanuel Vadot const: 1 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot reg: 28c66ec88fSEmmanuel Vadot items: 29c66ec88fSEmmanuel Vadot - description: | 30c66ec88fSEmmanuel Vadot Physical base address and length of shared memory region from EC. 31c66ec88fSEmmanuel Vadot It contains 3 unsigned 32-bit integer. The first 2 integers 32c66ec88fSEmmanuel Vadot combine to become an unsigned 64-bit physical address. 33c66ec88fSEmmanuel Vadot The last one integer is the length of the shared memory. 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot memory-region: 362eb4d8dcSEmmanuel Vadot maxItems: 1 37c66ec88fSEmmanuel Vadot description: | 38c66ec88fSEmmanuel Vadot Shared memory region to EC. A "shared-dma-pool". 39c66ec88fSEmmanuel Vadot See ../reserved-memory/reserved-memory.txt for details. 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadotrequired: 42c66ec88fSEmmanuel Vadot - compatible 43c66ec88fSEmmanuel Vadot - '#sound-dai-cells' 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel VadotadditionalProperties: false 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadotexamples: 48c66ec88fSEmmanuel Vadot - | 49c66ec88fSEmmanuel Vadot reserved_mem: reserved-mem@52800000 { 50c66ec88fSEmmanuel Vadot compatible = "shared-dma-pool"; 51c66ec88fSEmmanuel Vadot reg = <0x52800000 0x100000>; 52c66ec88fSEmmanuel Vadot no-map; 53c66ec88fSEmmanuel Vadot }; 54c66ec88fSEmmanuel Vadot spi { 55c66ec88fSEmmanuel Vadot #address-cells = <1>; 56c66ec88fSEmmanuel Vadot #size-cells = <0>; 57c66ec88fSEmmanuel Vadot cros-ec@0 { 58c66ec88fSEmmanuel Vadot compatible = "google,cros-ec-spi"; 596be33864SEmmanuel Vadot reg = <0>; 606be33864SEmmanuel Vadot 616be33864SEmmanuel Vadot codecs { 62c66ec88fSEmmanuel Vadot #address-cells = <2>; 63c66ec88fSEmmanuel Vadot #size-cells = <1>; 646be33864SEmmanuel Vadot 65c66ec88fSEmmanuel Vadot cros_ec_codec: ec-codec@10500000 { 66c66ec88fSEmmanuel Vadot compatible = "google,cros-ec-codec"; 67c66ec88fSEmmanuel Vadot #sound-dai-cells = <1>; 68c66ec88fSEmmanuel Vadot reg = <0x0 0x10500000 0x80000>; 69c66ec88fSEmmanuel Vadot memory-region = <&reserved_mem>; 70c66ec88fSEmmanuel Vadot }; 716be33864SEmmanuel Vadot 726be33864SEmmanuel Vadot }; 73c66ec88fSEmmanuel Vadot }; 74c66ec88fSEmmanuel Vadot }; 75