From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11F44C433EF for ; Thu, 9 Jun 2022 18:44:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239402AbiFISoM (ORCPT ); Thu, 9 Jun 2022 14:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239446AbiFISoK (ORCPT ); Thu, 9 Jun 2022 14:44:10 -0400 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 107CA11CA15; Thu, 9 Jun 2022 11:44:08 -0700 (PDT) Received: by mail-io1-f53.google.com with SMTP id y79so4506798iof.2; Thu, 09 Jun 2022 11:44:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=/DfCD3cuDBq5K2klbggsGdSn0HwRJ4iTJrrtYODZosg=; b=sfXS+y3TB/GWSc8lQcZsC7zEJJiKGc1JbvMJxeYHw/paoCYWwPRBa/3ZCxBlx/5V4s vs5th7HV8KtEjiVDBryGQ0vP/Sz+3KFzK/tu7YdNX8LXiM+vC3rkS7OUeXDwVyRGanxC UL4eDEg5VJDuV+wNr8MegbnurGkvFkeLRzR0Y3k0D9DuDqiMBdbtXTPWdPLEWR1dFvon cEM3NYwmOrINFNHi2uA2COJpBVNs/R2CQdKa/B6D8GEHPgm4f5nY4pHh8j473tmixwOd OCQ37GYM8PqSnEyj+Noij7W1oqlrdC1It9RK3L5GAcEhpRe3IV4ggjwChkUuuFqv10v9 OBkw== X-Gm-Message-State: AOAM533qxP/03tiVBhGBGUqHoyJee9Dwcf6d1G6FDCN/r+6wRlcrCcGt KcJHvalpk/NklHYL/tEhxA== X-Google-Smtp-Source: ABdhPJzjXxrVw5MMqaZ2JwPQdzsGl7hU7LgNBN7cipZ1qhkEhsMizNAjdXeJDaJ78eYYlXv4kPrOcg== X-Received: by 2002:a02:ceba:0:b0:331:bd1c:a97f with SMTP id z26-20020a02ceba000000b00331bd1ca97fmr10014983jaq.216.1654800247972; Thu, 09 Jun 2022 11:44:07 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id q24-20020a027b18000000b003313005be01sm9823472jac.141.2022.06.09.11.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 11:44:07 -0700 (PDT) Received: (nullmailer pid 4097584 invoked by uid 1000); Thu, 09 Jun 2022 18:44:05 -0000 Date: Thu, 9 Jun 2022 12:44:05 -0600 From: Rob Herring To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , Hector Martin , Sven Peter , asahi@lists.linux.dev Subject: Re: [RFC PATCH v2 1/5] dt-bindings: sound: Add Apple MCA I2S transceiver Message-ID: <20220609184405.GA4091342-robh@kernel.org> References: <20220606191910.16580-1-povik+lin@cutebit.org> <20220606191910.16580-2-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220606191910.16580-2-povik+lin@cutebit.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, Jun 06, 2022 at 09:19:06PM +0200, Martin Povišer wrote: > Add binding schema for MCA I2S transceiver found on Apple M1 and other > chips. > > Signed-off-by: Martin Povišer > --- > .../devicetree/bindings/sound/apple,mca.yaml | 102 ++++++++++++++++++ > 1 file changed, 102 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/apple,mca.yaml > > diff --git a/Documentation/devicetree/bindings/sound/apple,mca.yaml b/Documentation/devicetree/bindings/sound/apple,mca.yaml > new file mode 100644 > index 000000000000..c8a36d8c38ad > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/apple,mca.yaml > @@ -0,0 +1,102 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/apple,mca.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Apple MCA I2S transceiver > + > +description: | > + MCA is an I2S transceiver peripheral found on M1 and other Apple chips. It is > + composed of a number of identical clusters which can operate independently > + or in an interlinked fashion. Up to 6 clusters have been seen on an MCA. > + > +maintainers: > + - Martin Povišer > + > +properties: > + compatible: > + items: > + - enum: > + - apple,t8103-mca > + - apple,t6000-mca > + - const: apple,mca > + > + reg: > + minItems: 2 > + maxItems: 2 Need to define what each entry is. > + > + interrupts: > + maxItems: 6 > + description: | > + One interrupt per each cluster > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + dmas: > + minItems: 16 > + maxItems: 24 > + description: | > + DMA channels associated to the SERDES units within the peripheral. They > + are listed in groups of four per cluster, and within the cluster they are > + given in order TXA, RXA, TXB, RXB of the respective SERDES units. > + > + dma-names: > + minItems: 16 > + maxItems: 24 > + description: | > + Names for the DMA channels: 'tx'/'rx', then cluster number, then 'a'/'b' > + based on the associated SERDES unit. Express as a schema: items: pattern: '^(tx|rx)[0-5][ab]$' > + > + clocks: > + minItems: 4 > + maxItems: 6 > + description: | > + Clusters' input reference clock. > + > + power-domains: > + minItems: 5 > + maxItems: 7 > + description: | > + First the overall power domain for register access, then the power > + domains of individual clusters for their operation. > + > + "#sound-dai-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - dmas > + - dma-names > + - clocks > + - power-domains > + - '#sound-dai-cells' > + > +additionalProperties: false > + > +examples: > + - | > + mca: mca@9b600000 { > + compatible = "apple,t6000-mca", "apple,mca"; > + reg = <0x9b600000 0x10000>, > + <0x9b500000 0x20000>; > + > + clocks = <&nco 0>, <&nco 1>, <&nco 2>, <&nco 3>; > + power-domains = <&ps_audio_p>, <&ps_mca0>, <&ps_mca1>, > + <&ps_mca2>, <&ps_mca3>; > + dmas = <&admac 0>, <&admac 1>, <&admac 2>, <&admac 3>, > + <&admac 4>, <&admac 5>, <&admac 6>, <&admac 7>, > + <&admac 8>, <&admac 9>, <&admac 10>, <&admac 11>, > + <&admac 12>, <&admac 13>, <&admac 14>, <&admac 15>; > + dma-names = "tx0a", "rx0a", "tx0b", "rx0b", > + "tx1a", "rx1a", "tx1b", "rx1b", > + "tx2a", "rx2a", "tx2b", "rx2b", > + "tx3a", "rx3a", "tx3b", "rx3b"; > + > + #sound-dai-cells = <1>; > + }; > -- > 2.33.0 > >