Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1280720lfc; Wed, 1 Jun 2022 14:04:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1RamYbRI169JVOqyUjyijd9fG0rG9O+gSstltGr4rwb3YieL/WAYQJxpdOoenMs6OIdOr X-Received: by 2002:a17:902:c2c1:b0:161:c6af:278e with SMTP id c1-20020a170902c2c100b00161c6af278emr1284817pla.151.1654117487879; Wed, 01 Jun 2022 14:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654117487; cv=none; d=google.com; s=arc-20160816; b=fVnTPE+kelS09tyzc8MhvKrmu2NJ+pumb7yUqzpirtCZZTYllJKCOH5DViQryHqe+t G7o2ChFFk0wJv9dU/I0i/Wn3eVYlzvWbG1aRib/GMZMUzkYp3o37yFP0xjkSPpu6SoM6 gcpFBcS8wd7IodBQ5o+MDrSQ+AMHVW8X3kAYHZWWz84/2+ZV8ZsRr34tR99FMYYVl+L5 +0rB+eMuQfpVkBg3ZFIVHhiKEtTiix0FmcIUAAK8mgb+yN8T/MuNhkMPo/7daiJ2LgCO nZY+MLdsLk3RE2q1TaHgm4uOXerx0tXyZp/0vbqZiM0vyiGZ4B6th6eHSJilXylGBIyK XHEA== 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=CPWVSVHa28KDvdSstDaWFZDL9Ast1WCVvqOwg7GnnT4=; b=tlpW2xHiR8UUGu7xYjz+hEL6wXahMNkVEFoUJMctoOcdvIO153KnMNeqatDfv5YAQk aSzX2eXQ9S/SeBcVgMfcikU3jCcxHJIotB1KapUWk/GO35zAojUrzE+uFvdZdA6C0uHf 1x1q9cDDnQll+2r4Htln6MUCUvU3y4aSL7ROFn5pBi2tvJnH+xN6Hkc+lh0FsDvIgtnC mXV7KyGF2Y2uNZ+hmEFUt81OrdbxtvKJFY3wseO2LqIPouzj+zC0hWmaMKksix5c10W1 mcszTnYtGl6zz731wTTCK3t/dX7L66qObBhrUQYIqH+ZuvCuhvaN4MDiZXAIC1L057fA ZjuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=Os1rOH6X; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y191-20020a638ac8000000b003fca31af921si3532320pgd.185.2022.06.01.14.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:04:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=Os1rOH6X; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cutebit.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 081202EF0E9; Wed, 1 Jun 2022 13:10:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243379AbiEaVwm (ORCPT + 99 others); Tue, 31 May 2022 17:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241098AbiEaVwc (ORCPT ); Tue, 31 May 2022 17:52:32 -0400 Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 031E122B0D; Tue, 31 May 2022 14:52:29 -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=1654033458; bh=CPWVSVHa28KDvdSstDaWFZDL9Ast1WCVvqOwg7GnnT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Os1rOH6XwiMKLoqEenByIV0k5qVxbh3QQbaCHEdIkDO1ywtyZ7NwBUcAWKM9CpF8f 4YL/NGmv8I3ttkzhhLYJdM5YK1Ek4hAWjOBjLhMKLrTW+ldCqtR/CwI6DzPrvo+aSA 9r/ZJ7klFn88cqx3X9Ns5CQqP9tEkRPK2gk3yyvY= To: Hector Martin , Sven Peter , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: Alyssa Rosenzweig , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, Mark Kettenis , =?UTF-8?q?Martin=20Povi=C5=A1er?= , Rob Herring Subject: [PATCH v4 1/3] dt-bindings: dma: Add Apple ADMAC Date: Tue, 31 May 2022 23:36:13 +0200 Message-Id: <20220531213615.7822-2-povik+lin@cutebit.org> In-Reply-To: <20220531213615.7822-1-povik+lin@cutebit.org> References: <20220531213615.7822-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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Apple's Audio DMA Controller (ADMAC) is used to fetch and store audio samples on SoCs from the "Apple Silicon" family. Reviewed-by: Rob Herring Signed-off-by: Martin Povišer --- .../devicetree/bindings/dma/apple,admac.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/apple,admac.yaml diff --git a/Documentation/devicetree/bindings/dma/apple,admac.yaml b/Documentation/devicetree/bindings/dma/apple,admac.yaml new file mode 100644 index 000000000000..ab8a4ec7779f --- /dev/null +++ b/Documentation/devicetree/bindings/dma/apple,admac.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/apple,admac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple Audio DMA Controller (ADMAC) + +description: | + Apple's Audio DMA Controller (ADMAC) is used to fetch and store audio samples + on SoCs from the "Apple Silicon" family. + + The controller has been seen with up to 24 channels. Even-numbered channels + are TX-only, odd-numbered are RX-only. Individual channels are coupled to + fixed device endpoints. + +maintainers: + - Martin Povišer + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + items: + - enum: + - apple,t6000-admac + - apple,t8103-admac + - const: apple,admac + + reg: + maxItems: 1 + + '#dma-cells': + const: 1 + description: + Clients specify a single cell with channel number. + + dma-channels: + maximum: 24 + + interrupts: + minItems: 4 + maxItems: 4 + description: + Interrupts that correspond to the 4 IRQ outputs of the controller. Usually + only one of the controller outputs will be connected as an usable interrupt + source. The remaining interrupts will be left without a valid value, e.g. + in an interrupts-extended list the disconnected positions will contain + an empty phandle reference <0>. + +required: + - compatible + - reg + - '#dma-cells' + - dma-channels + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + + admac: dma-controller@238200000 { + compatible = "apple,t8103-admac", "apple,admac"; + reg = <0x38200000 0x34000>; + dma-channels = <24>; + interrupts-extended = <0>, + <&aic AIC_IRQ 626 IRQ_TYPE_LEVEL_HIGH>, + <0>, + <0>; + #dma-cells = <1>; + }; -- 2.33.0