Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5294726rwb; Mon, 8 Aug 2022 16:16:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Ua1tetCyV8O4OELu9UgC4IwrYn9WI1ghF0wpy48ivXF9hwkLGocfaT2KLUhQ40U61AZDQ X-Received: by 2002:a05:6402:50c9:b0:43e:42b0:f84a with SMTP id h9-20020a05640250c900b0043e42b0f84amr19216351edb.72.1660000615246; Mon, 08 Aug 2022 16:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660000615; cv=none; d=google.com; s=arc-20160816; b=CERvvbTJPsU7AoIS+aa92U19Fp9sjFHTK+zF60UxytrR+MF3lQlpxWJzocjAHpLbtK weet7VsM7ozOHYyabhPNiq1Wl4vMdO4/Jr8YWldBMQ3idRyw7ZGEf1xWUlQvZVYVT4zd bfo/kz6gwpA/JJxq+ap7WLNFtux/w8smsl+13UCrtDEvnti2ixoGdggfeWwraNeU0R9h 4JcDWG/O+0OII7LY/mQNm8vGJ85dhQE2SD06Rx4McFEZT+V/u9XtaRGnMaGn7+dRY7tW Gv1icPy8bb5tAWzxQTJLHzNZ0hzVaZlliFd2fTI+lQVnto70ryaD6ciIvlTP8TQmXswO MK8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from; bh=J/tXOc4gJzf4l3jN3HeF5qZ43cNwfPnYOJyQtAI7qR8=; b=k2E0RCGCQYMLvhwSRxfISHIm5idrKpLNVCKmMnpo/bnDvH/QwOI+C+/sZlbXukzkzX 7vCiwOoAXeQsi8X6F3zP+B0eu0E3Xd09MhcnCwla2V8omDujvDnkNAKzfNjbG6GYfDGs 3w8aBDVX2VVzPWe/ehIM+SfHnrZrcRbjvOGXumb+vLt5iRFiugqZecM2gltPH0fN/YHV Myryz+SJNMdCxLxj5s1H+gJ2Igcc3RcAW+h3vUm2O5aoM/HXVjroeE0O3y5fIWZc3m8x 3cWno70rYJy/2oh2UNy0qH2e42Yn1ovSO9ElKiJpbrA3+OkDTHlt4WAIoDqdeVqbtW0L MqzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=qHtMZstZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020a17090632d300b0073150d71172si550019ejk.1004.2022.08.08.16.16.29; Mon, 08 Aug 2022 16:16:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=qHtMZstZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244619AbiHHWnH (ORCPT + 99 others); Mon, 8 Aug 2022 18:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244524AbiHHWnB (ORCPT ); Mon, 8 Aug 2022 18:43:01 -0400 Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E95167CE for ; Mon, 8 Aug 2022 15:42:58 -0700 (PDT) From: =?UTF-8?q?Martin=20Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1659998576; bh=J/tXOc4gJzf4l3jN3HeF5qZ43cNwfPnYOJyQtAI7qR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qHtMZstZ+im9Tfkqo6RtXCTnaYPeWqHfIhZArUb3vR6AaWKeuDy6mw6jXjyTv2qAI 947CKL3D/YP4OLwjmEqMzD8zcInZe06fHZRhLLM0Se905oQp+ftgMfetgW5p5ybByp UP8DfAxVl2QgrzFNksYAl21P9WuD37doi1B1z0vU= To: =?UTF-8?q?Martin=20Povi=C5=A1er?= , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , Philipp Zabel Cc: asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: sound: Add Apple MCA I2S transceiver Date: Tue, 9 Aug 2022 00:41:51 +0200 Message-Id: <20220808224153.3634-2-povik+lin@cutebit.org> In-Reply-To: <20220808224153.3634-1-povik+lin@cutebit.org> References: <20220808224153.3634-1-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 109 ++++++++++++++++++ 1 file changed, 109 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..f64119c5d8d1 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/apple,mca.yaml @@ -0,0 +1,109 @@ +# 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: + items: + - description: Register region of the MCA clusters proper + - description: Register region of the DMA glue and its FIFOs + + interrupts: + minItems: 4 + maxItems: 6 + description: + One interrupt per each cluster + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + dmas: + minItems: 16 + maxItems: 24 + description: + DMA channels corresponding to the SERDES units in the peripheral. They are + listed in groups of four per cluster, and within the group they are given + as associated to the TXA, RXA, TXB, RXB units. + + dma-names: + minItems: 16 + maxItems: 24 + items: + pattern: '^(tx|rx)[0-5][ab]$' + description: | + Names for the DMA channels: 'tx'/'rx', then cluster number, then 'a'/'b' + based on the associated SERDES unit. + + clocks: + minItems: 4 + maxItems: 6 + description: + Clusters' input reference clock. + + resets: + maxItems: 1 + + power-domains: + minItems: 5 + maxItems: 7 + description: + First a general 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>, + <0x9b200000 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