Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1208415rwi; Thu, 20 Oct 2022 09:49:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78uj9qTMT1n3ggf6mbhbKdqeYEYovDEnRoszaH9A+acTWl1R6Tfcp44plgD6sguKU75UPM X-Received: by 2002:a17:907:3d91:b0:78d:f675:5659 with SMTP id he17-20020a1709073d9100b0078df6755659mr11575342ejc.92.1666284562188; Thu, 20 Oct 2022 09:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666284562; cv=none; d=google.com; s=arc-20160816; b=Yew+b8JVVPY3lz7R+C5N7Teo7clA29FaDlUzbFatjiL2rVHC5sWyF87DgGBZx7jUSG s1y0Kmkwq8hneuwaGXM6ywLzeFHbcReCaCemBTIICLNprAhvrfposLdbe4OBef0l4NQf gTfR2nPHmbc7Yo3A+NJ3dM8EGb/WZAMZJ1x04FBRJQpCxDHQaIfsMn1VEioJ8WG9JwXu yPAFZJzP4VTzRQjS70QfNc4G2SOwBWs7d0Jnv8KPNBP9HOS2mM7ev3skkGrApUctNVVD tGjFDt3Y1wqgiPWwiNCMdxx7YEXYrkgBFD/pMmrE5HyDbk8GGAzNEiqyNmFH3CLO8TPi jRLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QEI09DLi91fKmCAbw4cjgGkaMfuDv4RZD1BULECPvY8=; b=LMbauiR9AfJtNgUv9dXPsdOxKQElZuJY+YiZQtDirDrV2L/GApzd5oUdLcoX40c1BJ PLfWzXx1Zc7S/bct9JMp40H7j7gfb4NRVCEJFByYLUmE0koUbCtrJzZ+E9uG/ESI6uc2 dOFHCd41sU7wkR4IPiDu7YpDfN7dzXUeUbs+VG8588qGICO4eZ0FTshTgVuCV9w/jSTC XxBwwi7LXgkm1CRS6DKr2nFQPPTaogxwj78TAmI1SbgQr/2LSVILO95HZ4quyQ0aRs2p nGbbQH5XQDzSXaz1sT+1ZkH+x/9rl12tvhSVKx3vaSyDu2GSUBY+47AEhLovFjJ7TzXQ F5sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isrhw6eV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i31-20020a0564020f1f00b004603a95e1d3si2150138eda.135.2022.10.20.09.48.57; Thu, 20 Oct 2022 09:49:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=isrhw6eV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbiJTQbq (ORCPT + 99 others); Thu, 20 Oct 2022 12:31:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiJTQbo (ORCPT ); Thu, 20 Oct 2022 12:31:44 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FBC71A0F92 for ; Thu, 20 Oct 2022 09:31:42 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id l28so14042540qtv.4 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=Kja50h1846VL/6wWqPKvyHrXnPzgc+1FoyCbYrLoQuz1V01yWhnYtn3j1DCDLTh34W OTtzWHrBHrh8hKyomnwracyaOWsHQ7FJZ96Iv/1CR2Qk5j756wQwt74D/me6kmz03dzz rxWXp9kZSI8RzN9/XRUTXIoUtNkK+lXaafp6Y91fznNuaHfRw6B0j8TnygZni40OtHsY IZnh/Mhgr030ECNQk4rZjOPCwrCuZbb44FDGdRJGUAYxhWGTFNn9wsgga8P0qmWNpDxr /Nd5JrthRghxPrb16tk3bTs9xWUio4Kd1ZDwwb16DFWpXOPlqQkDBCQnvoUOClA3wHvh 60Hw== X-Gm-Message-State: ACrzQf04vxs9Vd15M/iZC5NQGa/6mWLre3jO/umpQWufBV2Q85NzRsCW L9Gx01jZ0pIdAlHeCQAw9d5xTw== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 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