1eadd54c7SDafna Hirschfeld# SPDX-License-Identifier: GPL-2.0-only 2eadd54c7SDafna Hirschfeld%YAML 1.2 3eadd54c7SDafna Hirschfeld--- 4eadd54c7SDafna Hirschfeld$id: http://devicetree.org/schemas/sound/google,cros-ec-codec.yaml# 5eadd54c7SDafna Hirschfeld$schema: http://devicetree.org/meta-schemas/core.yaml# 6eadd54c7SDafna Hirschfeld 7eadd54c7SDafna Hirschfeldtitle: Audio codec controlled by ChromeOS EC 8eadd54c7SDafna Hirschfeld 9eadd54c7SDafna Hirschfeldmaintainers: 10eadd54c7SDafna Hirschfeld - Cheng-Yi Chiang <cychiang@chromium.org> 1169d1abc0STzung-Bi Shih - Tzung-Bi Shih <tzungbi@kernel.org> 12eadd54c7SDafna Hirschfeld 13eadd54c7SDafna Hirschfelddescription: | 14eadd54c7SDafna Hirschfeld Google's ChromeOS EC codec is a digital mic codec provided by the 155c024e68SRicardo Cañuelo Embedded Controller (EC) and is controlled via a host-command 165c024e68SRicardo Cañuelo interface. An EC codec node should only be found inside the "codecs" 175c024e68SRicardo Cañuelo subnode of a cros-ec node. 185c024e68SRicardo Cañuelo (see Documentation/devicetree/bindings/mfd/google,cros-ec.yaml). 19eadd54c7SDafna Hirschfeld 20*58ae9a2aSKrzysztof KozlowskiallOf: 21*58ae9a2aSKrzysztof Kozlowski - $ref: dai-common.yaml# 22*58ae9a2aSKrzysztof Kozlowski 23eadd54c7SDafna Hirschfeldproperties: 24eadd54c7SDafna Hirschfeld compatible: 25eadd54c7SDafna Hirschfeld const: google,cros-ec-codec 26eadd54c7SDafna Hirschfeld 27eadd54c7SDafna Hirschfeld "#sound-dai-cells": 28eadd54c7SDafna Hirschfeld const: 1 29eadd54c7SDafna Hirschfeld 30eadd54c7SDafna Hirschfeld reg: 31eadd54c7SDafna Hirschfeld items: 32eadd54c7SDafna Hirschfeld - description: | 33eadd54c7SDafna Hirschfeld Physical base address and length of shared memory region from EC. 34eadd54c7SDafna Hirschfeld It contains 3 unsigned 32-bit integer. The first 2 integers 35eadd54c7SDafna Hirschfeld combine to become an unsigned 64-bit physical address. 36eadd54c7SDafna Hirschfeld The last one integer is the length of the shared memory. 37eadd54c7SDafna Hirschfeld 38eadd54c7SDafna Hirschfeld memory-region: 39c2156348SRob Herring maxItems: 1 40eadd54c7SDafna Hirschfeld description: | 41eadd54c7SDafna Hirschfeld Shared memory region to EC. A "shared-dma-pool". 42eadd54c7SDafna Hirschfeld See ../reserved-memory/reserved-memory.txt for details. 43eadd54c7SDafna Hirschfeld 44eadd54c7SDafna Hirschfeldrequired: 45eadd54c7SDafna Hirschfeld - compatible 46eadd54c7SDafna Hirschfeld - '#sound-dai-cells' 47eadd54c7SDafna Hirschfeld 48*58ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false 49eadd54c7SDafna Hirschfeld 50eadd54c7SDafna Hirschfeldexamples: 51eadd54c7SDafna Hirschfeld - | 52b239d0c2SRob Herring reserved_mem: reserved-mem@52800000 { 53eadd54c7SDafna Hirschfeld compatible = "shared-dma-pool"; 54b239d0c2SRob Herring reg = <0x52800000 0x100000>; 55eadd54c7SDafna Hirschfeld no-map; 56eadd54c7SDafna Hirschfeld }; 57b239d0c2SRob Herring spi { 58b239d0c2SRob Herring #address-cells = <1>; 59b239d0c2SRob Herring #size-cells = <0>; 60eadd54c7SDafna Hirschfeld cros-ec@0 { 61eadd54c7SDafna Hirschfeld compatible = "google,cros-ec-spi"; 625c024e68SRicardo Cañuelo reg = <0>; 637a2f3682SStephen Boyd interrupts = <93 0>; 645c024e68SRicardo Cañuelo 655c024e68SRicardo Cañuelo codecs { 66eadd54c7SDafna Hirschfeld #address-cells = <2>; 67eadd54c7SDafna Hirschfeld #size-cells = <1>; 685c024e68SRicardo Cañuelo 69b239d0c2SRob Herring cros_ec_codec: ec-codec@10500000 { 70eadd54c7SDafna Hirschfeld compatible = "google,cros-ec-codec"; 71eadd54c7SDafna Hirschfeld #sound-dai-cells = <1>; 72eadd54c7SDafna Hirschfeld reg = <0x0 0x10500000 0x80000>; 73eadd54c7SDafna Hirschfeld memory-region = <&reserved_mem>; 74eadd54c7SDafna Hirschfeld }; 755c024e68SRicardo Cañuelo 765c024e68SRicardo Cañuelo }; 77eadd54c7SDafna Hirschfeld }; 78b239d0c2SRob Herring }; 79