Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1052894pxb; Wed, 6 Apr 2022 07:37:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLAfq9oS6Rz/90WMyOxRfNyREtM60Rpi9IN7KogM3kPeIBLlkLXRKkxhe9avypM+eqgD0F X-Received: by 2002:a65:6657:0:b0:381:1b99:3f04 with SMTP id z23-20020a656657000000b003811b993f04mr7300067pgv.512.1649255850431; Wed, 06 Apr 2022 07:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649255850; cv=none; d=google.com; s=arc-20160816; b=bnV4RQp9to19K6F3LP2NdNlaalq7P3EbrPa5sHNh3hZx5FFJr+GpY0DK8F+gwswXsF QKF9wxtDeGWrmCQJcqWzhdkw4N+KOvMCmiFLm8P3I3if4/ukObEprFOoV81evaHZlCNW r711S3du3aCbAl4oMfnu17ycItT9u1CK/766TgxW/i3SfYk0JIw9TKJdkQy4A0o8wAJF 225jI9BR6qZET2GaeaNNlgwfwMnNy9cNHdL/0vKD4rMfO/vz1GU8fKxdvRFJp2+36WrO /RSlONaSYU36KA0g51a0vHB98YAszM3y3Ty0MaHVVApQqcGD1Uip0LlyvfFI3MvCrZ50 tFnw== 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=Gqfp2NecHKAauwLOTljdIkk3Q50Ea/cnQshb9luki8c=; b=Rj2nLSTU2jtuOnt0/+skWh7molDDVqbPLKrqynW47UpQDaJHib3NqxZILsI0pxR8+2 somEKKjOSKUFkjmyzxkjY6bA+HOBKx6PSSmzyOutZC8uY1VfuPW2hKH1Nlja1wbsmMFB S/GGBa0HS0rvdfCXlw5b/Zt1VnfP6vXEKWXVcemYEC8v0n8071QRS044+rZQ3vWp1yvo myMgQ01NW6Gc8GZtElGGnm2frUujYOCcPkBCIxHSqBKmTxW3uNa9sUWFHUp77UBHNStO d/PD7q+yl8odqEY62RFvFGapEJ2FVg3AosXoDOjFs0Y48ivuHE14/ePy6SJ12vJtWx1d HhAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pq64m81I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h7-20020a170902ac8700b00156a7f60b5bsi8320908plr.379.2022.04.06.07.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pq64m81I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D119C64E2D8; Wed, 6 Apr 2022 05:22:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232628AbiDFMYl (ORCPT + 99 others); Wed, 6 Apr 2022 08:24:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234608AbiDFMXe (ORCPT ); Wed, 6 Apr 2022 08:23:34 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01250100A5D for ; Wed, 6 Apr 2022 01:09:27 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id qh7so2538860ejb.11 for ; Wed, 06 Apr 2022 01:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Gqfp2NecHKAauwLOTljdIkk3Q50Ea/cnQshb9luki8c=; b=pq64m81I9e0FH9yQUKk/b5lS1MJbaIuBPVWf6sECtzwzZFgInsOH1N8r0J0en4Trgt 2i/0wmYGWjMXO4UC9k29DuFFahF9A14Xvyxtho8hoedHO+uXjXscOsZXdj2v7F1Gy0uD 5sNFE5XDk7MMuKryD+pqoyMFkQ4GScqGCn8jOeI/fsrIlwlXbbb4Jn7KS/uL/7sgcH7j ijZ5xsxpsLX7EYTtyBVbp/eR777mDnOz3RhkjN16PA21fC11SHJBR1u6H3Wla5bN7xOj JofDFb57WhI0avtetitOMQsDxbncGK66ZvxEevs0o3qcIwv1F2cihVKsIqUr7e6RqM2g th4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Gqfp2NecHKAauwLOTljdIkk3Q50Ea/cnQshb9luki8c=; b=t2I+PbjjQfUhRS6467kYjKdw+dSNys5S3fVtCKyf2mJGirQAtnc58btA4OEIaReIRY mdwe5GRAWD7BdqHMtyKz3r9jl6QR3zmaWrv5tlK3QMOZnPyu0bWmhyzg0mCvhUPcsIdt y5MOxvaj2euoC5KVWcnM8WR4fTiHAfU4HWWuoys7lScYTIXLhaOPyqe34XaI2xrD/5ZQ lEkHwVR1EbcUnbo6lBD+umyw8UW0JOC77lWwHgh9urPQySGHcxOwTEE3SVAKV0ilYtDF IKnAVlKc5rChhQBIqlNgnRxV20opE2ptPHQjV7lr4CKH9fR8iQsO/1TfGC75OQVm+Wv1 Gjww== X-Gm-Message-State: AOAM533RfruzaBwiQnamTZMQZh7G+7gvYR4bbdNlNU/SmDP+tW+89ilB 0EkkGisW5wGWlfsb5PEv2oZgXg== X-Received: by 2002:a17:906:9744:b0:6da:9e49:9fe3 with SMTP id o4-20020a170906974400b006da9e499fe3mr7146911ejy.319.1649232566546; Wed, 06 Apr 2022 01:09:26 -0700 (PDT) Received: from [192.168.0.182] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id k14-20020a170906128e00b006e4b67514a1sm6372095ejb.179.2022.04.06.01.09.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 01:09:26 -0700 (PDT) Message-ID: Date: Wed, 6 Apr 2022 10:09:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 04/14] dt-bindings: arm: mediatek: document WED binding for MT7622 Content-Language: en-US To: Felix Fietkau , netdev@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Matthias Brugger , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220405195755.10817-1-nbd@nbd.name> <20220405195755.10817-5-nbd@nbd.name> From: Krzysztof Kozlowski In-Reply-To: <20220405195755.10817-5-nbd@nbd.name> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 05/04/2022 21:57, Felix Fietkau wrote: > From: Lorenzo Bianconi > > Document the binding for the Wireless Ethernet Dispatch core on the MT7622 > SoC, which is used for Ethernet->WLAN offloading > Add related info in mediatek-net bindings. > > Signed-off-by: Lorenzo Bianconi > Signed-off-by: Felix Fietkau Thank you for your patch. There is something to discuss/improve. > --- > .../arm/mediatek/mediatek,mt7622-wed.yaml | 50 +++++++++++++++++++ > .../devicetree/bindings/net/mediatek-net.txt | 2 + > 2 files changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml Don't store drivers in arm directory. See: https://lore.kernel.org/linux-devicetree/YkJa1oLSEP8R4U6y@robh.at.kernel.org/ Isn't this a network offload engine? If yes, then probably it should be in "net/". > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml > new file mode 100644 > index 000000000000..787d6673f952 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-wed.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: MediaTek Wireless Ethernet Dispatch Controller for MT7622 > + > +maintainers: > + - Lorenzo Bianconi > + - Felix Fietkau > + > +description: > + The mediatek wireless ethernet dispatch controller can be configured to > + intercept and handle access to the WLAN DMA queues and PCIe interrupts > + and implement hardware flow offloading from ethernet to WLAN. > + > +properties: > + compatible: > + items: > + - enum: > + - mediatek,mt7622-wed > + - const: syscon > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + wed0: wed@1020a000 { Generic node name, "wed" is specific. Maybe "network-offload"? Or "network-accelerator"? You probably know better what this device does, so maybe come with some generic name? The same in DTS patch. The bindings themself look ok. Best regards, Krzysztof