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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FB69C4332F for ; Thu, 20 Oct 2022 16:31:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbiJTQbp (ORCPT ); Thu, 20 Oct 2022 12:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiJTQbo (ORCPT ); Thu, 20 Oct 2022 12:31:44 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102131A0FB8 for ; Thu, 20 Oct 2022 09:31:42 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id f22so14042755qto.3 for ; Thu, 20 Oct 2022 09:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QEI09DLi91fKmCAbw4cjgGkaMfuDv4RZD1BULECPvY8=; b=isrhw6eVwYYx+2Hi+NI1YXI+7q1QPWt0s+2F8FeRVQop05DYDdlrTWFg4QcLio9JbL tPnJ3V67EBpl8XyxB8G+vshiYvgGz4fXbe2bNhR4/62Zwu0QQU7C+TAMb1FXj3UfQqKB FhCy/hidGlWifrnr8Tf8kydO6XxoCrjre4EeAh7kqCwY6KuUflsFAD0xlHBR+8a7rDpX cBrDDNfsTZxQW65vr0AWMsLBd2PlpAgc8k3gUDZbVAMG4hOIte5wFtCbhicSDtuqpKnw 20a/JJP2Lq6SIXFTi4SORyLc4bmIdohfBHKELjDrrbLwFa1ajCr/SBe4v2hPVa0l89xe pkuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QEI09DLi91fKmCAbw4cjgGkaMfuDv4RZD1BULECPvY8=; b=jrMDVAFK7hziEMSsQrly6tsk727FFNQLlYqPTzL65I3ilRdPibb/mea8jvAU5C7v0l WhKz3VTyyy/ZfBwxlLFG9QpALy24z8dl60zYDjF/xXNAVt/k0HeqNKf8GMfkeJQyoO0P jVkQx2ISOwo42kpuZTt9PaoDVvCvQ393jFh5mhgPj79ZMmyRzmAEZ3yKQra9ZLzLq4vQ uVQJ+SU6fB8uajNTUicj/2Rs24oMX4HzgZ9FDu1lWuSEb1h24kAoRWPFEovkkg706vzr SH9jPZ3BjVzT+0tJl5Zq+f0+iSLTQ+dUHTR+NiQRD58/b9GKxCH7peUqT32eMgFecTPm YPgA== X-Gm-Message-State: ACrzQf1O1TeYpzkKqb2NFdTbo1gReav2UeaPvDJXH0SovJ2kd+Rh5HbP uPsj+tTkmbHGf4RySvAQlnTi7A== X-Google-Smtp-Source: AMsMyM4YVTimrtk2xF6RM3xXt+mPnRJQBhDGxbdwCTRCKJ4uhuq7xdMD9IJ8fG/530M69TM100Cyfw== X-Received: by 2002:ac8:5bc9:0:b0:39a:348b:857e with SMTP id b9-20020ac85bc9000000b0039a348b857emr11805159qtb.462.1666283501208; Thu, 20 Oct 2022 09:31:41 -0700 (PDT) Received: from [192.168.10.124] (pool-72-83-177-149.washdc.east.verizon.net. [72.83.177.149]) by smtp.gmail.com with ESMTPSA id p12-20020ae9f30c000000b006eec09eed39sm7360114qkg.40.2022.10.20.09.31.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Oct 2022 09:31:40 -0700 (PDT) Message-ID: Date: Thu, 20 Oct 2022 12:31:39 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v7 1/2] dt-bindings: fsl-imx-sdma: Convert imx sdma to DT schema Content-Language: en-US To: Joy Zou , vkoul@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: shengjiu.wang@nxp.com, martink@posteo.de, dev@lynxeye.de, alexander.stein@ew.tq-group.com, peng.fan@nxp.com, david@ixit.cz, aford173@gmail.com, hongxing.zhu@nxp.com, linux-imx@nxp.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221020101402.1856818-1-joy.zou@nxp.com> <20221020101402.1856818-2-joy.zou@nxp.com> From: Krzysztof Kozlowski In-Reply-To: <20221020101402.1856818-2-joy.zou@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 20/10/2022 06:14, Joy Zou wrote: > Convert the i.MX SDMA binding to DT schema format using json-schema. > > --- > .../devicetree/bindings/dma/fsl,imx-sdma.yaml | 147 ++++++++++++++++++ > .../devicetree/bindings/dma/fsl-imx-sdma.txt | 118 -------------- > 2 files changed, 147 insertions(+), 118 deletions(-) > create mode 100644 Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml > delete mode 100644 Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt > > diff --git a/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml b/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml > new file mode 100644 > index 000000000000..3da65d3ea4af > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/fsl,imx-sdma.yaml > @@ -0,0 +1,147 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/fsl,imx-sdma.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale Smart Direct Memory Access (SDMA) Controller for i.MX > + > +maintainers: > + - Joy Zou > + You need to reference dma-controller.yaml schema. > +properties: > + compatible: > + oneOf: (...) > + > + gpr: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: The phandle to the General Purpose Register (GPR) node > + > + fsl,sdma-event-remap: > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + maxItems: 2 > + items: > + items: > + - description: GPR register offset > + - description: GPR register shift > + - description: GPR register value > + description: | > + Register bits of sdma event remap, the format is . > + The order is , . > + > + clocks: > + maxItems: 2 > + > + clock-names: > + items: > + - const: ipg > + - const: ahb > + > + iram: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: The phandle to the On-chip RAM (OCRAM) node. > + > +required: > + - compatible > + - reg > + - interrupts > + - fsl,sdma-ram-script-name > + - "#dma-cells" and then this can one be dropped. > + > +additionalProperties: false Best regards, Krzysztof