Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5741696iog; Thu, 23 Jun 2022 04:34:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vfHYLXtwnvm+HsphWKHOmqnGfN94wMth0ES8WIq6CXF2b4kiZ64LkwPA52tt33kAUA0v6f X-Received: by 2002:a05:6402:2392:b0:435:824e:b661 with SMTP id j18-20020a056402239200b00435824eb661mr10384396eda.13.1655984056933; Thu, 23 Jun 2022 04:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655984056; cv=none; d=google.com; s=arc-20160816; b=vwoYgyfSOdLiRjmsBzsN1sDzkTX9uQ8uIc2JqjV5+8KoAZaUjbTxMB5Ix/v+SLSODj 6e/CCwCTz6bRmpoLio6gnvIWKSgRFFXwBI37QOE0OUmeTbMWggs5ykUJiQQFT1F4zKfs TE+X3rnOj0lJKgTnWqlQv8cQ4wCWHEKj3MoB/NLttwtx5r69ARdVdgms6FC3ua/D/0Rp 9f4Q264Cj7IFq7PGwBJ5hhq1SZwaONzlLjCSyFTDjBpskynV/+KJUM/PxSz3GefxgCTX f4nkFJcsJoQ1Ouhc/vWfQkoVkia2TcyUPsZ2ORmVV3aY2zPJGHRRAFwdMLWeBpNJ1BDP XVew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Xdz7Jl6mHi6bR/1t1cvAxBE/tYGETfiEidCIDTwM+2U=; b=aoVCuiJlqetteHAVDpKKfQQVmXqF2PTLwZRJ7wrM0zoWpTNcpNwspOw1khh7qWIo+K n9omMHlWtCVHQG3PNrh/FxWbvUenNccq7YN9cFRQfflu3ftfBccO8OVngAIi9X0AYpmS wSfzKIVcPDwpwMa/+lTijSSq6Xr+C3uDQQIOsGVN6Fi2H1pDpU3wrO9L3mrLaFjj7m5U HKorz7iUChyMAbc2VM4nD3Bu4MuDlpIvUNGgFnuVkm6N24GAp9xJdAT0jCwW5j70hcpU /2uIPO+G9FYt9MmSQCq0EJBueaTSXXvOoh1cg74pjjaAhMpeHPUuAKG8Y/rV0dCarkvm dTpw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a056402281000b004357fc49fd6si17272522ede.113.2022.06.23.04.33.52; Thu, 23 Jun 2022 04:34:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiFWKnI (ORCPT + 99 others); Thu, 23 Jun 2022 06:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiFWKnF (ORCPT ); Thu, 23 Jun 2022 06:43:05 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1D08BCB5; Thu, 23 Jun 2022 03:43:03 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5460B202D8C; Thu, 23 Jun 2022 12:43:02 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id DD410200904; Thu, 23 Jun 2022 12:43:01 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 9A2A11802201; Thu, 23 Jun 2022 18:43:00 +0800 (+08) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: shengjiu.wang@gmail.com Subject: [PATCH] ASoC: dt-bindings: fsl,micfil: Convert format to json-schema Date: Thu, 23 Jun 2022 18:28:45 +0800 Message-Id: <1655980125-24141-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Convert the NXP MICFIL binding to DT schema format using json-schema. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,micfil.txt | 33 --------- .../devicetree/bindings/sound/fsl,micfil.yaml | 73 +++++++++++++++++++ 2 files changed, 73 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/fsl,micfil.txt create mode 100644 Documentation/devicetree/bindings/sound/fsl,micfil.yaml diff --git a/Documentation/devicetree/bindings/sound/fsl,micfil.txt b/Documentation/devicetree/bindings/sound/fsl,micfil.txt deleted file mode 100644 index 1ea05d4996c7..000000000000 --- a/Documentation/devicetree/bindings/sound/fsl,micfil.txt +++ /dev/null @@ -1,33 +0,0 @@ -NXP MICFIL Digital Audio Interface (MICFIL). - -The MICFIL digital interface provides a 16-bit audio signal from a PDM -microphone bitstream in a configurable output sampling rate. - -Required properties: - - - compatible : Compatible list, contains "fsl,imx8mm-micfil" - or "fsl,imx8mp-micfil" - - - reg : Offset and length of the register set for the device. - - - interrupts : Contains the micfil interrupts. - - - clocks : Must contain an entry for each entry in clock-names. - - - clock-names : Must include the "ipg_clk" for register access and - "ipg_clk_app" for internal micfil clock. - - - dmas : Generic dma devicetree binding as described in - Documentation/devicetree/bindings/dma/dma.txt. - -Example: -micfil: micfil@30080000 { - compatible = "fsl,imx8mm-micfil"; - reg = <0x0 0x30080000 0x0 0x10000>; - interrupts = , - ; - clocks = <&clk IMX8MM_CLK_PDM_IPG>, - <&clk IMX8MM_CLK_PDM_ROOT>; - clock-names = "ipg_clk", "ipg_clk_app"; - dmas = <&sdma2 24 26 0x80000000>; -}; diff --git a/Documentation/devicetree/bindings/sound/fsl,micfil.yaml b/Documentation/devicetree/bindings/sound/fsl,micfil.yaml new file mode 100644 index 000000000000..74c77f4cf7a4 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,micfil.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,micfil.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP MICFIL Digital Audio Interface (MICFIL) + +maintainers: + - Shengjiu Wang + +description: | + The MICFIL digital interface provides a 16-bit or 24-bit audio signal + from a PDM microphone bitstream in a configurable output sampling rate. + +properties: + compatible: + enum: + - fsl,imx8mm-micfil + - fsl,imx8mp-micfil + + reg: + maxItems: 1 + + interrupts: + maxItems: 4 + + dmas: + items: + - description: DMA controller phandle and request line for RX + + dma-names: + items: + - const: rx + + clocks: + items: + - description: The ipg clock for register access + - description: internal micfil clock + + clock-names: + items: + - const: ipg_clk + - const: ipg_clk_app + +required: + - compatible + - reg + - interrupts + - dmas + - dma-names + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + micfil: audio-controller@30080000 { + compatible = "fsl,imx8mm-micfil"; + reg = <0x30080000 0x10000>; + interrupts = , + , + , + ; + clocks = <&clk IMX8MM_CLK_PDM_IPG>, + <&clk IMX8MM_CLK_PDM_ROOT>; + clock-names = "ipg_clk", "ipg_clk_app"; + dmas = <&sdma2 24 25 0>; + dma-names = "rx"; + }; -- 2.17.1