From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44BA76D0E for ; Fri, 25 Jun 2021 09:08:00 +0000 (UTC) Received: by mail-pg1-f171.google.com with SMTP id a2so7052176pgi.6 for ; Fri, 25 Jun 2021 02:08:00 -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; bh=DgY/uA2fSmwxzscKqJL9b58zNu3n2nv6yZ9uNShIrNs=; b=gUKyO9dV8cptaXVWZlyd0CU3fRLnVW+pv0gJgJTU79nzWpC8B1BZLpwxryEwKqcuGu nP4vXT9rNO0wQAZYK7rCQlHMh/IDIhkl1qXpxWbWJrjSAoDHkyTu2W+/Z4Vwq/EHIEaq Z/sN9hmHln4OotyxLYgMpqgqKacEuKtXMAX2W0G1nkuHnilw1vTCh7Z6JaFYX2JMYse0 lSlzFP6H6jUb9dmhygX9+UBL68YK6DDCZ+l5oz8dOIrEI2ToR6hr0jl8VgBwyJ4+FiVt iPzHYawZNyyUm/X1AocoCUhvX0PfBHXezBMs7reZtKQEJBR92O4YR/hvUtnrjSISCrk9 5Ozw== 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; bh=DgY/uA2fSmwxzscKqJL9b58zNu3n2nv6yZ9uNShIrNs=; b=fC+5schAqSea8uEAZ146WuTCjweE4bopCIJHJDPRlAzDeR1suXprMF7niKcbJ2NbKA ZCjgG0aFGN5grvrGiNva6d6B1sCngfl5qjWKRpaguDgv6ab8s8ET+kyMzm0taw0RXxsz NNUo7gbfDekNRPPPO/QRWCX2WG5M3LEiuvUqk349Eu+BM0eo8vQaeOOBYWYLL2IY8/Z5 R2jB7Q5FaCgyp+946gmyjSBNIUxt6Go4rGagVUFyme7UDZtOWQH62G8Hgb6Guyh1I0nJ rx+JOaXj0NRCCWhVYuY4SqZKyYQKy15mV9Y9fe3/m8OroySy+21tWo865CCrFrSWn3Pr g9fg== X-Gm-Message-State: AOAM530qIsoVgEaIdTm94wMjrzRbOm8TGcmtIOR8Q1pDpw8KNPYvvkKD xVl4hEt7M0hbH3AUGO4cWg== X-Google-Smtp-Source: ABdhPJxYeAIkRsA7qJaQpgBPopWQ6ZDT4WqnjdXVrD19KKTC7j3DhKE1WfmeaZp+sLUSj1CPkDsXEw== X-Received: by 2002:a63:e04c:: with SMTP id n12mr8705624pgj.239.1624612079925; Fri, 25 Jun 2021 02:07:59 -0700 (PDT) Received: from localhost.localdomain ([61.144.175.119]) by smtp.gmail.com with ESMTPSA id m4sm10279142pjv.41.2021.06.25.02.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:07:59 -0700 (PDT) From: fengzheng923@gmail.com 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 v4 2/2] ASoC: sun50i-dmic: dt-bindings: add DT bindings for DMIC controller Date: Fri, 25 Jun 2021 05:07:21 -0400 Message-Id: <20210625090721.6183-1-fengzheng923@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: From: Ban Tao DT binding documentation for this new ASoC driver. Signed-off-by: Ban Tao Reviewed-by: Rob Herring --- v1->v2: 1.Fix some build errors. --- v2->v3: 1.Fix some build errors. --- v3->v4: 1.None. --- .../sound/allwinner,sun50i-h6-dmic.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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..d9107685b78d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0+ 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 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: bus + - const: mod + + dmas: + items: + - description: RX DMA Channel + + dma-names: + items: + - const: rx + + resets: + maxItems: 1 + +required: + - "#sound-dai-cells" + - compatible + - reg + - clocks + - clock-names + - dmas + - dma-names + - resets + +additionalProperties: false + +examples: + - | + dmic: dmic@5095000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun50i-h6-dmic"; + reg = <0x05095000 0x400>; + clocks = <&ccu 101>, <&ccu 100>; + clock-names = "bus", "mod"; + dmas = <&dma 7>; + dma-names = "rx"; + resets = <&ccu 42>; + }; + +... -- 2.17.1 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 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=unavailable 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 82709C2B9F4 for ; Fri, 25 Jun 2021 09:09:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 B5D0D6141C for ; Fri, 25 Jun 2021 09:09:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5D0D6141C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 19966166C; Fri, 25 Jun 2021 11:08:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 19966166C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1624612142; bh=KHxBV/94lPvN0RYe2ajPONJirTkDjsM/e+Q6mJt5wPM=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=bOuqc3o+sea0+IAOQxENO/SmEmN0bXAFYT684N06Ve8pMoFA8LZlSufBeXQ3VDGRF 1CNa4IvQvUfVcQIYpqwWCc2WhGaadMdzNAqHSATqWPUvAVosPkCWwqpWCyBD48ZRyq HspTIC2ttWbmudaTY8YnTA5ePqWklEJHuZbgbLN4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id AB6AAF8016D; Fri, 25 Jun 2021 11:08:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B6C2AF801D5; Fri, 25 Jun 2021 11:08:09 +0200 (CEST) Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 01056F80137 for ; Fri, 25 Jun 2021 11:08:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 01056F80137 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gUKyO9dV" Received: by mail-pf1-x42a.google.com with SMTP id a127so7512754pfa.10 for ; Fri, 25 Jun 2021 02:08:01 -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; bh=DgY/uA2fSmwxzscKqJL9b58zNu3n2nv6yZ9uNShIrNs=; b=gUKyO9dV8cptaXVWZlyd0CU3fRLnVW+pv0gJgJTU79nzWpC8B1BZLpwxryEwKqcuGu nP4vXT9rNO0wQAZYK7rCQlHMh/IDIhkl1qXpxWbWJrjSAoDHkyTu2W+/Z4Vwq/EHIEaq Z/sN9hmHln4OotyxLYgMpqgqKacEuKtXMAX2W0G1nkuHnilw1vTCh7Z6JaFYX2JMYse0 lSlzFP6H6jUb9dmhygX9+UBL68YK6DDCZ+l5oz8dOIrEI2ToR6hr0jl8VgBwyJ4+FiVt iPzHYawZNyyUm/X1AocoCUhvX0PfBHXezBMs7reZtKQEJBR92O4YR/hvUtnrjSISCrk9 5Ozw== 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; bh=DgY/uA2fSmwxzscKqJL9b58zNu3n2nv6yZ9uNShIrNs=; b=XLn+gKQguSPWXYtdP8X2986M460WZ8EDKSulEGQhotAMqIDD5zGPmfshfA5vlCQcff xTBYRoBcS1fLseim87/hlCuSY5035nAawc59GJ7LBND75e6P5hqf9yxPNfn2/gJd9bwI 9bLpC30WN0QwBZngNweEpDM8HOHT1qz+k5+gInj7dB2ibVXAuQrPJS+ehY1Rev5dGG3H KlW/YWmEgLp9eGXGDOqUdp/kJQGZqaX2FZFwQpqZEnbhqRYEVG8njZOrenpQw/rZMYlm yu+MvpwEhgo2DuT8RAI8mSz5de36D/sKrU/5M6wBdInNIiWmcQJXJrqBT3oHrovkwXS4 rPcw== X-Gm-Message-State: AOAM530Sk6B/SfGA5lygVyjw1zYwzujYWSWBbPBE2Fm0T2SaRr7pYnpr RM0ZvIUjlyJwoe/KEd3c8g== X-Google-Smtp-Source: ABdhPJxYeAIkRsA7qJaQpgBPopWQ6ZDT4WqnjdXVrD19KKTC7j3DhKE1WfmeaZp+sLUSj1CPkDsXEw== X-Received: by 2002:a63:e04c:: with SMTP id n12mr8705624pgj.239.1624612079925; Fri, 25 Jun 2021 02:07:59 -0700 (PDT) Received: from localhost.localdomain ([61.144.175.119]) by smtp.gmail.com with ESMTPSA id m4sm10279142pjv.41.2021.06.25.02.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:07:59 -0700 (PDT) From: fengzheng923@gmail.com To: fengzheng923@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com Subject: [PATCH v4 2/2] ASoC: sun50i-dmic: dt-bindings: add DT bindings for DMIC controller Date: Fri, 25 Jun 2021 05:07:21 -0400 Message-Id: <20210625090721.6183-1-fengzheng923@gmail.com> X-Mailer: git-send-email 2.17.1 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Ban Tao DT binding documentation for this new ASoC driver. Signed-off-by: Ban Tao Reviewed-by: Rob Herring --- v1->v2: 1.Fix some build errors. --- v2->v3: 1.Fix some build errors. --- v3->v4: 1.None. --- .../sound/allwinner,sun50i-h6-dmic.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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..d9107685b78d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0+ 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 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: bus + - const: mod + + dmas: + items: + - description: RX DMA Channel + + dma-names: + items: + - const: rx + + resets: + maxItems: 1 + +required: + - "#sound-dai-cells" + - compatible + - reg + - clocks + - clock-names + - dmas + - dma-names + - resets + +additionalProperties: false + +examples: + - | + dmic: dmic@5095000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun50i-h6-dmic"; + reg = <0x05095000 0x400>; + clocks = <&ccu 101>, <&ccu 100>; + clock-names = "bus", "mod"; + dmas = <&dma 7>; + dma-names = "rx"; + resets = <&ccu 42>; + }; + +... -- 2.17.1 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 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 85324C2B9F4 for ; Fri, 25 Jun 2021 10:10:00 +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 5ACAF61434 for ; Fri, 25 Jun 2021 10:10:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5ACAF61434 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=JFQB6EmnO2/2V2DgfMCmRu8UT25YB0xoyeChCWNTdZI=; b=K2cX9CoTOodkh1 5XHdpsa+ulEPF34hYb/VjhMgqWsJmuemzlHu3yWqtKEUpS6LIbUee+C3KaK6vHoouY9SGAD1lp4rj VztbmHXjRH6sIT3eR8oKYXNUvrX0OWlfKQ6TQ2Y60t8w35b4SoUfjQXT7IidUqTCUwX2RAVE/4Tfd uIcyi30ZvynfwGsnCQaPjGcF6Wa95nYUvcua1x7LsyyaFnJe7z1/ge149f+zWbJ/WbzpfLZHceDTN lZP1Uz5FBWGlKBwMkZmBCNiXFsOrITx42QiTOu8Hz735TNmuBGc8htRC9I8dzfhupxsv0czxQZD4D //DFz1J+Kjd/kb8mCBeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwikW-000r6X-KQ; Fri, 25 Jun 2021 10:07:51 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwhog-000Ztc-LZ for linux-arm-kernel@lists.infradead.org; Fri, 25 Jun 2021 09:08:04 +0000 Received: by mail-pg1-x52e.google.com with SMTP id t9so7073814pgn.4 for ; Fri, 25 Jun 2021 02:08:00 -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; bh=DgY/uA2fSmwxzscKqJL9b58zNu3n2nv6yZ9uNShIrNs=; b=gUKyO9dV8cptaXVWZlyd0CU3fRLnVW+pv0gJgJTU79nzWpC8B1BZLpwxryEwKqcuGu nP4vXT9rNO0wQAZYK7rCQlHMh/IDIhkl1qXpxWbWJrjSAoDHkyTu2W+/Z4Vwq/EHIEaq Z/sN9hmHln4OotyxLYgMpqgqKacEuKtXMAX2W0G1nkuHnilw1vTCh7Z6JaFYX2JMYse0 lSlzFP6H6jUb9dmhygX9+UBL68YK6DDCZ+l5oz8dOIrEI2ToR6hr0jl8VgBwyJ4+FiVt iPzHYawZNyyUm/X1AocoCUhvX0PfBHXezBMs7reZtKQEJBR92O4YR/hvUtnrjSISCrk9 5Ozw== 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; bh=DgY/uA2fSmwxzscKqJL9b58zNu3n2nv6yZ9uNShIrNs=; b=EZ4sXcsdiX9dGaTGz1zbyYDG8jm2snaqoqD7zYJF9HCYADckKtCrbcV6AQAP2enZT4 j+KXXh/xZ+S7SV+NsgAUtOcV9q/RVyJtNM/NJnxhFs61Yt9bahkETor6mBcdvscUM0+s UwgwI/Srwunye1hd7NO+H55cFexwJU5ic9bxdM6j8cDLSEiokLW6g65nJn3N+m2/0YKd mSbyrKPpOrCAyWfOOaHhYZdRCAPcgnUatL0zbqD1U6ptNrdyIUVn7sEsEGgFF/GPrct5 2mB2aMpDnYbVJF3rvK0eLrPLNYyPCw6DRP5RcWxQ7i382JgIVX2pdwfdFfye8DV9smdl i2cw== X-Gm-Message-State: AOAM531XcViJdbeTqL9d9Phfi9afWPdrP7st+tZUJslm/NGEsGJ/Az9o PccZqxhFZ7+ugdP1dkYDtQ== X-Google-Smtp-Source: ABdhPJxYeAIkRsA7qJaQpgBPopWQ6ZDT4WqnjdXVrD19KKTC7j3DhKE1WfmeaZp+sLUSj1CPkDsXEw== X-Received: by 2002:a63:e04c:: with SMTP id n12mr8705624pgj.239.1624612079925; Fri, 25 Jun 2021 02:07:59 -0700 (PDT) Received: from localhost.localdomain ([61.144.175.119]) by smtp.gmail.com with ESMTPSA id m4sm10279142pjv.41.2021.06.25.02.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 02:07:59 -0700 (PDT) From: fengzheng923@gmail.com 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 v4 2/2] ASoC: sun50i-dmic: dt-bindings: add DT bindings for DMIC controller Date: Fri, 25 Jun 2021 05:07:21 -0400 Message-Id: <20210625090721.6183-1-fengzheng923@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210625_020802_789783_D58D78AC X-CRM114-Status: GOOD ( 13.17 ) 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ban Tao DT binding documentation for this new ASoC driver. Signed-off-by: Ban Tao Reviewed-by: Rob Herring --- v1->v2: 1.Fix some build errors. --- v2->v3: 1.Fix some build errors. --- v3->v4: 1.None. --- .../sound/allwinner,sun50i-h6-dmic.yaml | 68 +++++++++++++++++++ 1 file changed, 68 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..d9107685b78d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0+ 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 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: bus + - const: mod + + dmas: + items: + - description: RX DMA Channel + + dma-names: + items: + - const: rx + + resets: + maxItems: 1 + +required: + - "#sound-dai-cells" + - compatible + - reg + - clocks + - clock-names + - dmas + - dma-names + - resets + +additionalProperties: false + +examples: + - | + dmic: dmic@5095000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun50i-h6-dmic"; + reg = <0x05095000 0x400>; + clocks = <&ccu 101>, <&ccu 100>; + clock-names = "bus", "mod"; + dmas = <&dma 7>; + dma-names = "rx"; + resets = <&ccu 42>; + }; + +... -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel