Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp874529pxb; Fri, 22 Apr 2022 13:10:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu2/zcBlWVT5mKFwWnH390xq+0nJaqhVtJMi47/9/WlW+ZPYV/+dKWxnw/PZjXI+5UyLub X-Received: by 2002:a17:902:7795:b0:157:c50:53a6 with SMTP id o21-20020a170902779500b001570c5053a6mr6195688pll.40.1650658216520; Fri, 22 Apr 2022 13:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650658216; cv=none; d=google.com; s=arc-20160816; b=R4DwPDJ07OQFOMR2jHLgS8nQ5nLjeS/iJh5vfGRPrgEWtcCy99bxGDt5J6dU8zEWin NBvChiXl9/nYoFsEVffXR7jYpNfgnCH1/8I5ODZhhhhYgIz9roJXjPA9PsDKwZpisxfK G7ZT/5mjov5Fp/NDpoH3N3PqLZWps6tl2/2b7RuqO4cnLoou+1gcTY5Nyg3HDbHsoeQK nxrTaZP5V16vILih1DFoNsRO4HIaPIEwGMIe7riOCx1TwdFD4yGxHg8F2niOd0EqrfbV 3v8dyHqCEpydF/i0IOScvjTxNjXKwcLNfEUvKdmVBmz0AkuNCF2RAroGobTZEf/vwnRz a0yQ== 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=WLCIlxSm+6HZPp+Lk7ZxfdPzXTPGBGvfuCUxsxsFRgQ=; b=fzAIgebrNDrV2HoHLsuRTPFcG0TZ1sQ5q3Aee4kSyceIcqL6huXy/nlUE7rzXKmVu1 rJcrr3pH0FHpWARIoBNcZz4KcVlw70eM6mPmZqxxfqquw+I/z/cMQmgnU8Fu2tvvYaqH yhE29C39hPhglVQAwnzHyrmotGB9B3ST6cgbeTVZafV78ZUbiSXSgTD1drbTVG1q+O4l rWmsKUxJi9q5zKb70CRGyyrim04rpMnmFbi0IETn/TwyEl8RRrugHmYwzkQIPs0PLKxG BVxTTRl3q5QcKYuVDwGZb71XtEJp4yP7QcgcRXA6pDEBzZiBtC8c264aHTP0uo+cvHDp SnYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=AcRTv0XQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q11-20020a65494b000000b0039cc448271dsi9101314pgs.571.2022.04.22.13.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:10:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=AcRTv0XQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 BB4A2256AB0; Fri, 22 Apr 2022 12:07:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381673AbiDTTMB (ORCPT + 99 others); Wed, 20 Apr 2022 15:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345755AbiDTTLx (ORCPT ); Wed, 20 Apr 2022 15:11:53 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B30E4093E; Wed, 20 Apr 2022 12:09:03 -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=1650481741; bh=WLCIlxSm+6HZPp+Lk7ZxfdPzXTPGBGvfuCUxsxsFRgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=AcRTv0XQg9PbiJfjLbg8cdSfl18R5taSOM+39xgQkc92HqnK96aiKYtXmauMSyF66 cOxDXhLLP/UCTww4YXtHSOu5lHm3akRWsNdXIhdzJQVlxyvioQrzYLw+AtGptsQ6TM 6ZnWMWK9012z8Me1v6qRKnqMLPs7I9F9cDEsZFqI= To: Hector Martin , Sven Peter , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: Alyssa Rosenzweig , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , =?UTF-8?q?Martin=20Povi=C5=A1er?= Subject: [PATCH v3 1/2] dt-bindings: dma: Add Apple ADMAC Date: Wed, 20 Apr 2022 21:07:54 +0200 Message-Id: <20220420190755.76617-2-povik+lin@cutebit.org> In-Reply-To: <20220420190755.76617-1-povik+lin@cutebit.org> References: <20220420190755.76617-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 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. 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