From patchwork Tue Jun 15 13:07:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?54+t5rab?= X-Patchwork-Id: 12322613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8B62C48BE5 for ; Tue, 15 Jun 2021 18:23:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ABC97613CC for ; Tue, 15 Jun 2021 18:23:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABC97613CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fYkrzl0Vpyz50hlxzClmtHUqYXmGqw2RciZ3DlO5C7k=; b=NHAZTRx3vg7yEp RKXQ24mNbkKGQMoEcoqCsqtH6gvpmrl5G4W8lDlL1EolNDe3VRAtA6E4KNEEsnDoRrcpqU0w9STeZ i5s5kv+mQMzrtzZ+/m0GvuJnzJkxPyAQKa8NIogYiYZLDL4auNYqNS01oCYPk+7bZ8Rqf3HW99T9G 6+fwY7FVzhM0f/lsnPqydEDUO7jnDpiSN0RaLbxjs9Aq1PU02z+1uiSGW9mTa7MDtBN0cHSVbmWOt E7QBiV9/Q4fg9ylhzrA+bJNxFU5uaSCX+hvvblBpVjw4q1I6yekKXA2V9Vn/ogYu9w6b/UHEfg+8b RnQ3Iw8maNrUPW9FCLrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltDgN-0024XP-Gy; Tue, 15 Jun 2021 18:21:05 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9CU-000ByJ-Lw for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:33:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=B6awZixPEBIc1khaAEYvB0eLqjgA3TvS8zRyCjLVg8M=; b=LGQXdl4bDRp50VzA5RJVrxFXZ7 3G8c+Vn98Zq/g/9RTnrLgqZiXweT8ga506xfL+nlK4/IdiHKHWsBZ7hGZ/gG194MMROJDeZT4lLCT tvz2ZbYbp+Oiii6gRbrneCPCdkHnIXClP3lgHn3BAMhQNt+UPZffITRFRjF+RVsjKLFm18dsd250o vKpoWuS4cgCLupRcM/S9tkvP9ynOlkxI2RnLVMK55AsIW3LJaZuoTRoSslQ+b/lffV7dX27upTg0m GkMnGFWzDZiZ84Fo6mTR4DWGvGp4cXAcWkAR5wXDe7xMkMV0/ZSK59onuXVUXuNuUQRAco2frQ3lQ /HfMdF9w==; Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt8n4-007uAn-Mn for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 13:07:47 +0000 Received: by mail-pf1-x430.google.com with SMTP id s14so13206199pfd.9 for ; Tue, 15 Jun 2021 06:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=B6awZixPEBIc1khaAEYvB0eLqjgA3TvS8zRyCjLVg8M=; b=n7x038lnwlPdOc1w4l4gFub8lJPwPclJPWsYqMy1Wc8MbjD/zVwvxANPeRHHjVosGh 0dVfYRasW68lEiiA7i0f/fdIigTDl9Nj/D3O8zZ7E6W76uH3SXj0bMB2tYcFEAA/yWPl 1L7C6HpLQJ5Rj80ZWdANpc+nccdfD9Ai8XIxrp2+w/2rHFZ1UVbiMLeAA6oEV7QluYWl CziCGByCjnhSp4pNfuZ+8TLMh4AHd+JPzFXYYR7pIsNd8QxzlBhBK/K/NDuYByReGWZq ha21WkCl0P8csN/DrnXO4QNBXtIJpsj4C6+tQB/txwpBD3vxXnKt9xvxoBMGuPK3liu8 YZfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=B6awZixPEBIc1khaAEYvB0eLqjgA3TvS8zRyCjLVg8M=; b=OtqFqJp/KOFNeyHwoTqNbxAIhFZDMCT2FnKencpkSVXw8rLzFm787Fho8YC73bOSik lGnjdS4O9c+kTNQCHa/7rhi89lr9mr1i+XA83pcwf32mgHSpCvOsGdgsaWVYtu+EMjNG qUL1Nk97KbOehNwG0SNI1aX3wH3VJ7gHnPNfky0Pktn+uwSBcx5sJncQzW4F1g1wNdTa sJGQHNHQ2SEwo196LcJ4Dc4aG8pxWQvUqg4A3FtQKZCD4ill3nTPn+oTbFvOeU/R2TcP p9IL3iK4xVHB1wDWmnBZzILaYDhOE71irPSVOsvzVWkGF96byPThmimO2Bg/hv/Sxn/K v4gA== X-Gm-Message-State: AOAM530spHUZ78IAQ01ni5RwVkzz760xoJkQKi4SFXSRRRVq+IcUFdSQ hKgyD0iBsPfSNRy7vq/hgg== X-Google-Smtp-Source: ABdhPJybqEKw7feR8dYi/lWxFb3O2c8qqo8a+8pYqsq3Gq2My0PZ0nz16HwDobhs4XvfWtt4mW2bYw== X-Received: by 2002:a05:6a00:1a41:b029:2ef:9721:879e with SMTP id h1-20020a056a001a41b02902ef9721879emr4352418pfv.74.1623762463956; Tue, 15 Jun 2021 06:07:43 -0700 (PDT) Received: from INTERNET-129.allwinnertech.com ([223.197.233.48]) by smtp.gmail.com with ESMTPSA id s4sm15218877pjn.31.2021.06.15.06.07.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jun 2021 06:07:43 -0700 (PDT) From: Ban Tao To: fengzheng923@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ASoC: sun50i-dmic: dt-bindings: add DT bindings for DMIC controller Date: Tue, 15 Jun 2021 21:07:37 +0800 Message-Id: <20210615130737.2098-1-fengzheng923@gmail.com> X-Mailer: git-send-email 2.22.0.windows.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_140745_667790_403B7778 X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Allwinner SoCs feature an I2S controller across multiple SoC generations. Signed-off-by: Ban Tao --- .../sound/allwinner,sun50i-h6-dmic.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml new file mode 100644 index 000000000000..81d40c374e44 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/allwinner,sun50i-h6-dmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner H6 DMIC Controller Device Tree Bindings + +maintainers: + - Ban Tao + +properties: + "#sound-dai-cells": + const: 0 + + compatible: + const: allwinner,sun50i-h6-dmic + + reg: + maxItems: 1 + + clocks: + items: + - description: Bus Clock + - description: Module Clock + + clock-names: + items: + - const: apb + - const: dmic + + dmas: + maxItems: 1 + + dma-names: + const: rx + + resets: + maxItems: 1 + +required: + - "#sound-dai-cells" + - compatible + - reg + - clocks + - clock-names + - dmas + - dma-names + - resets + +additionalProperties: false + +examples: + - | + spdif: spdif@5095000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun50i-h6-dmic"; + reg = <0x05095000 0x400>; + clocks = <&ccu CLK_BUS_DMIC>, <&ccu CLK_DMIC>; + clock-names = "apb", "dmic"; + dmas = <&dma 7>; + dma-names = "rx"; + resets = <&ccu RST_BUS_DMIC>; + }; + +...