Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4689589rdb; Fri, 15 Sep 2023 09:19:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+Jv27OotDa6QBh+CW4gbG4j3TTe5ATjkZtmj9tkwzGrWZEwZRxSylhHHcSCLhT1GoPEkm X-Received: by 2002:a17:902:dac1:b0:1bb:c64f:9a5e with SMTP id q1-20020a170902dac100b001bbc64f9a5emr2551708plx.5.1694794777633; Fri, 15 Sep 2023 09:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694794777; cv=none; d=google.com; s=arc-20160816; b=Cd6JWvxUNWBJ1pY0CUygsxnlZ7sVcyxxH5KthN/iRIM5kXOaNzdcsz35YWENDsVbDU 3kc+iogZx6i6hiEiFEl/cqsE/wRZSE6V672ia/UguBczszJlngF4mqlKqu4LmbMOq4+7 oaOCGLHIQiJEwlOmiaO5Xp7k8dYR7gpZ9MfzOBoP7aUKDtagGMsldtOiFogTMBtpnpQj yLYNJJbi0K/wS9QbsTsfRVpNyi5Molj/TSVsUU4UYP9LlGFwlTGYCUW1OlAxPKYm3l0X JANuMNnPAxST8heG77krTMpiTz748WTEDocaTTXUdNwM+egqP0AEXCcpupT7hFnG4DbQ uX0g== 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=wf72la5+bcMBFPdA+88aR9f8aQTdpx1+WsSYyWg7+v8=; fh=W3r5OrJPSPTGBA2IWT1OlW3E4DnYusJV63GST/ZiR/Y=; b=J7TJRu5GUxcSgjNcJCCBcVJjLFhWHKfT1W8jsBDa3sCAemtfMn+LM8WJBCdNpNYfio aVK0uBkaC7Md5KBB6xR7nvUT85KYS/4GGMmh/ZocnzRFrv3GoOKaAzMK634fcwmW/xvW I2WDTjDQZ5fsF+TpTR6Lcp0L8AndbJ2Bee2Od1Rig52FgeOdYcXn7kXJKv1wBCCNtkv1 I7OPvFbWdDlSBlFMw+v/t+mubMwUEMMYaJ+VvS00XwujJT+90lFjQ5Nj4yYCbTxuwz2o ZbIjGNKjKmxqDVvlq0HvDLEW0gHwzT9pEhaq8V+/qrm7w/susz2ZzDvJwdpgG0Tb1158 uITg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ySuutNl6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n18-20020a170902e55200b001b8ba81d04dsi3905640plf.395.2023.09.15.09.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 09:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ySuutNl6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A838B8315C94; Fri, 15 Sep 2023 03:59:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231341AbjIOK7J (ORCPT + 99 others); Fri, 15 Sep 2023 06:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232796AbjIOK7I (ORCPT ); Fri, 15 Sep 2023 06:59:08 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D80A18D for ; Fri, 15 Sep 2023 03:59:02 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-31ad9155414so1793065f8f.3 for ; Fri, 15 Sep 2023 03:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694775541; x=1695380341; darn=vger.kernel.org; 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=wf72la5+bcMBFPdA+88aR9f8aQTdpx1+WsSYyWg7+v8=; b=ySuutNl6M93soMU/L4YDbj48/Bpl7C+JtXplmX7R96oNEB5WqzxKXMDDgJfXDVb28t Bipf+YgZkU89dwKYG4SWpRMdTwEZ2vBJK8+8ifC695mii5J5tUl29gHI7ALsvwgjo6Jk b5v+8+0rLnyT6o5H9liOrJ014EmHc2yhsYSmKk+gqyqU2z6Mw5k5QF9YvCdkC22lEs1w Rcgqfyw/g0GxQfe0W2j/iAGJ4QDrpxhSkdxi+PtAeJCD8OnhJUSOFidmB8JASkTgk/qB XizmohXK2AndcH4gnZIOVt2qf9i2WXIWDToNqt7yYJmkpVaKq7HFufpJlboLymhnKu8r 6/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694775541; x=1695380341; 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=wf72la5+bcMBFPdA+88aR9f8aQTdpx1+WsSYyWg7+v8=; b=hZJ7TwTc7a4QnCcB0t99zKvHWitnS7w3AiuurA3KMNt+fopXL1nfYmCmMcKhGxkyPa j7uSab/DI2wSNpxrWcA+XmebUJl0u6fQ+MSN7ElmaaqbHeZW1tTUrXddQWJC181urVtH sWwlb+O0+uRdoiLCt8FMDb4X4Zm7NNUpLQnKBDjDYyEC/2B0DkEUniPo4gm9iyumzEVz D5LHOYvtZh5I6SqhyihKFsJuaekW0sg2aJ8efWlAvXSfBo8G9UzftGe0CbT18NnFI3uz 3yJpb4n1Yt86FRNVvwLv69+2Lvjxvtxo/SEzK/RbnSFbeuhc04C5lJbghOOA5dhQN/RD dQ6g== X-Gm-Message-State: AOJu0YxJOXAUGEHpYe108bIP7YE+chNDbS3Jn9uBuaP42MTsVwO6VqsD hqObP+hA5J6v/ITPt194JGuOWg== X-Received: by 2002:a5d:6b90:0:b0:314:3ad6:2327 with SMTP id n16-20020a5d6b90000000b003143ad62327mr1059459wrx.12.1694775540704; Fri, 15 Sep 2023 03:59:00 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id w4-20020a5d6804000000b003197efd1e7bsm4173674wru.114.2023.09.15.03.58.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Sep 2023 03:59:00 -0700 (PDT) Message-ID: <78167fd2-b4a0-6081-b994-101bbc8facc2@linaro.org> Date: Fri, 15 Sep 2023 12:58:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v4 23/42] dt-bindings: dma: Add Cirrus EP93xx Content-Language: en-US To: nikita.shubin@maquefel.me, Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Sverdlin Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann References: <20230915-ep93xx-v4-0-a1d779dcec10@maquefel.me> <20230915-ep93xx-v4-23-a1d779dcec10@maquefel.me> From: Krzysztof Kozlowski In-Reply-To: <20230915-ep93xx-v4-23-a1d779dcec10@maquefel.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 03:59:07 -0700 (PDT) On 15/09/2023 10:11, Nikita Shubin via B4 Relay wrote: > From: Nikita Shubin > > Add YAML bindings for ep93xx SoC DMA. > > Signed-off-by: Nikita Shubin > --- > .../bindings/dma/cirrus,ep9301-dma-m2m.yaml | 69 ++++++++++++ > .../bindings/dma/cirrus,ep9301-dma-m2p.yaml | 121 +++++++++++++++++++++ > include/dt-bindings/dma/cirrus,ep93xx-dma.h | 26 +++++ > include/linux/platform_data/dma-ep93xx.h | 21 +--- > 4 files changed, 217 insertions(+), 20 deletions(-) > > diff --git a/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2m.yaml b/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2m.yaml > new file mode 100644 > index 000000000000..80a4352bf8aa > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2m.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2m.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cirrus Logick ep93xx SoC DMA controller > + > +maintainers: > + - Alexander Sverdlin > + - Nikita Shubin > + Missing $ref to dma-controller.yaml > +properties: > + compatible: > + oneOf: > + - const: cirrus,ep9301-dma-m2m > + - items: > + - enum: > + - cirrus,ep9302-dma-m2m > + - cirrus,ep9307-dma-m2m > + - cirrus,ep9312-dma-m2m > + - cirrus,ep9315-dma-m2m > + - const: cirrus,ep9301-dma-m2m > + > + reg: > + items: > + - description: m2m0 channel registers > + - description: m2m1 channel registers > + > + clocks: > + items: > + - description: m2m0 channel gate clock > + - description: m2m1 channel gate clock > + > + clock-names: > + items: > + - const: m2m0 > + - const: m2m1 > + > + interrupts: > + items: > + - description: m2m0 channel interrupt > + - description: m2m1 channel interrupt > + > + '#dma-cells': true Rather: const: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + dma-controller@80000100 { > + compatible = "cirrus,ep9301-dma-m2m"; > + reg = <0x80000100 0x0040>, > + <0x80000140 0x0040>; > + clocks = <&eclk EP93XX_CLK_M2M0>, > + <&eclk EP93XX_CLK_M2M1>; > + clock-names = "m2m0", "m2m1"; > + interrupt-parent = <&vic0>; > + interrupts = <17>, <18>; > + #dma-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml b/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml > new file mode 100644 > index 000000000000..0236cc37233e > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/cirrus,ep9301-dma-m2p.yaml > @@ -0,0 +1,121 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2p.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cirrus Logick ep93xx SoC M2P DMA controller > + > +maintainers: > + - Alexander Sverdlin > + - Nikita Shubin > + Same comments in this file > +properties: > + compatible: > + oneOf: > + - const: cirrus,ep9301-dma-m2p > + - items: > + - enum: > + - cirrus,ep9302-dma-m2p > + - cirrus,ep9307-dma-m2p > + - cirrus,ep9312-dma-m2p > + - cirrus,ep9315-dma-m2p > + - const: cirrus,ep9301-dma-m2p > + > + reg: > + items: > + - description: m2p0 channel registers > + - description: m2p1 channel registers > + - description: m2p2 channel registers > + - description: m2p3 channel registers > + - description: m2p4 channel registers > + - description: m2p5 channel registers > + - description: m2p6 channel registers > + - description: m2p7 channel registers > + - description: m2p8 channel registers > + - description: m2p9 channel registers > + ... > diff --git a/include/dt-bindings/dma/cirrus,ep93xx-dma.h b/include/dt-bindings/dma/cirrus,ep93xx-dma.h > new file mode 100644 > index 000000000000..21c7324eb27e > --- /dev/null > +++ b/include/dt-bindings/dma/cirrus,ep93xx-dma.h Use same filename as bindings. > @@ -0,0 +1,26 @@ > +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ > +#ifndef DT_BINDINGS_CIRRUS_EP93XX_DMA_H > +#define DT_BINDINGS_CIRRUS_EP93XX_DMA_H > + > +/* > + * M2P channels. > + * > + * Note that these values are also directly used for setting the PPALLOC > + * register. > + */ > +#define EP93XX_DMA_I2S1 0 Where is the user of these defines? IOW, who uses them? Only driver? > +#define EP93XX_DMA_I2S2 1 > +#define EP93XX_DMA_AAC1 2 > +#define EP93XX_DMA_AAC2 3 > +#define EP93XX_DMA_AAC3 4 > +#define EP93XX_DMA_I2S3 5 > +#define EP93XX_DMA_UART1 6 > +#define EP93XX_DMA_UART2 7 > +#define EP93XX_DMA_UART3 8 > +#define EP93XX_DMA_IRDA 9 > +/* M2M channels */ > +#define EP93XX_DMA_SSP 10 > +#define EP93XX_DMA_IDE 11 > + > +#endif /* DT_BINDINGS_CIRRUS_EP93XX_DMA_H */ > + > diff --git a/include/linux/platform_data/dma-ep93xx.h b/include/linux/platform_data/dma-ep93xx.h> index eb9805bb3fe8..54b41d1468ef 100644 > --- a/include/linux/platform_data/dma-ep93xx.h > +++ b/include/linux/platform_data/dma-ep93xx.h > @@ -5,26 +5,7 @@ > #include > #include > #include > - > -/* > - * M2P channels. > - * > - * Note that these values are also directly used for setting the PPALLOC > - * register. > - */ > -#define EP93XX_DMA_I2S1 0 > -#define EP93XX_DMA_I2S2 1 > -#define EP93XX_DMA_AAC1 2 > -#define EP93XX_DMA_AAC2 3 > -#define EP93XX_DMA_AAC3 4 > -#define EP93XX_DMA_I2S3 5 > -#define EP93XX_DMA_UART1 6 > -#define EP93XX_DMA_UART2 7 > -#define EP93XX_DMA_UART3 8 > -#define EP93XX_DMA_IRDA 9 > -/* M2M channels */ > -#define EP93XX_DMA_SSP 10 > -#define EP93XX_DMA_IDE 11 > +#include Your headers should not include bindings. Best regards, Krzysztof