Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3949840rwi; Wed, 12 Oct 2022 08:43:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yimgk3rz92POXQaeWshSoah5G8y1GOiXFw2oq+zAd2We+H7F0ct9NF8l5UvHVFH0d5au/ X-Received: by 2002:a17:906:6086:b0:731:3970:48d0 with SMTP id t6-20020a170906608600b00731397048d0mr23497555ejj.16.1665589389856; Wed, 12 Oct 2022 08:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665589389; cv=none; d=google.com; s=arc-20160816; b=U3Yx2OdldMLrVZLoA+ItPNwDqkp1Qz81ifdkY58d/CX4o4Oa0yzSHh+0xDDBkWaNEX 4+O81V4TFeMz71eY7lB2KZUCLsaw+gOEzqvUqyJUHJRJ4BMDcKnPNj6TX/AkIpJHTW2c 4blIWh2ehe7YJchIwc+dqNO9Yq+J/FTRRMDxTxtTojeeuhUWo2zml+NCKN3NVTT6qXkN RfIRc2cQkI8GsQf4LkLipjzkCPtP7opqHUmbY6BBFCZ+r3LSKDyHqUUSoCDuTjDbH5i6 L+8bWQSSWgd1A4PnN7pjQ9LZObNEf/8uhNNqmE98oTo9CQoaw7+aTjBZ7RbhSJPbHVe7 u1Ag== 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=SH4UGOuYFZRjMjpUe6JiCqBFCXy39ifK+ZqrTxN5hbc=; b=rnjIENKY57VYMDQ5OO18SVVRXnO16QjkK+CaVt+3QWGThmCbCilwyaXTIuQ+pMwJxE Iozyt2hDpZDHNywFHizDjZQoNYnkFrRrA9rZXSHNwMvips4bCgbUKitW0qhVBJj7I3AO hYNwTE/oLCzXr4uJoNYTZLliFjssoREPaZy/I6tmsw3W2fPBjnAyLb4tCnhQ6JY9sGkD JpoZomRM6MA8PLNRsOxNIVMKXydvgo5AR1hg2uxFbUiO4Yenc6P/VmJ9zRieiXlv8G75 j3zB1/IYsaRt6yZYm0Gc+3ZM/P++p5Hng0zGsJgAYQ/16kIp+3VNtkjr/MR8mAbVGE6I Cg8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h2tWoloL; 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 y12-20020a170906914c00b00783ddc8b643si13158908ejw.317.2022.10.12.08.42.43; Wed, 12 Oct 2022 08:43:09 -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=h2tWoloL; 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 S229545AbiJLOcf (ORCPT + 99 others); Wed, 12 Oct 2022 10:32:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiJLOcd (ORCPT ); Wed, 12 Oct 2022 10:32:33 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 573A9CA8B0 for ; Wed, 12 Oct 2022 07:32:31 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id o2so3337860qkk.10 for ; Wed, 12 Oct 2022 07:32:31 -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=SH4UGOuYFZRjMjpUe6JiCqBFCXy39ifK+ZqrTxN5hbc=; b=h2tWoloLCif8btRNVAv/Kb99Ys0nSBWAsdEQBv245LFnhCgk3+HaPx5b6/4u30qaqc 3oAtZ6i0r8pAwA6mGhMULAttwwqiEz6jBQtizIuuziZjGvoZS4RdauEHZqmqBizGuvPB FI+hp1RU8rPQRamMz24NeXBCIGqonYlFLzaYaRuYQGv7CDp5clNblWwTN5wg1mGX2CeC /FfFsnjm0Vh4kcQWjmEH5rwe6YfmYUkmjq0hB08kmbs0WuGjLZPm45nKNLd4leXDbYt4 W4wL0UBPGSP7zC03yOpTfEGgEAHsPCesRgSH44F3E5SZxiorLTkr9vqu9mHiZRZPzWeC 1Bzg== 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=SH4UGOuYFZRjMjpUe6JiCqBFCXy39ifK+ZqrTxN5hbc=; b=6Mo8nGBZjMJvtHAqp2hBGxVFFwshkAmCjRqv1Solhz1sgoF0RNa3Cvyrcd52miKAbK /tdBPlIlFa5GdfDWZlAWInN5tDuReIBKpUlI63OKSKBwPasSLQiS2rCOF2ceoHP1j8jf StR7J69qWOuqFpOAf/i1kC4zCxaPLZSFdSwD6dityvFXKiCcvxFSMKud6iarbNtmjMpg y18flTQl/hoJvIHb9syMSNGiPcXKm72mpbXFQUxZz7fKOskYLBG867PMCe2gJzAs+9/r FpwxiqHnxVeyBhjWFTD+y3x9f+0H6g9Tzmd0YO/nO2TGx4jYEks6J+bWkU9PcaRY/XKE ePWQ== X-Gm-Message-State: ACrzQf3kNigCnjCIyxfCREUtqFl+pNL03zvGcmX381c/UH2Bg4A+3qdx /c+DviRRc7mK+JskDZG7/OcY6PrK2jaWnw== X-Received: by 2002:a37:ad12:0:b0:6ee:8313:6199 with SMTP id f18-20020a37ad12000000b006ee83136199mr5398271qkm.570.1665585150355; Wed, 12 Oct 2022 07:32:30 -0700 (PDT) Received: from [192.168.1.57] (cpe-72-225-192-120.nyc.res.rr.com. [72.225.192.120]) by smtp.gmail.com with ESMTPSA id bq15-20020a05622a1c0f00b0039cb9b6c390sm2395117qtb.79.2022.10.12.07.32.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Oct 2022 07:32:29 -0700 (PDT) Message-ID: <6f3088a8-284d-d71f-68d1-01a5412bfff2@linaro.org> Date: Wed, 12 Oct 2022 10:32:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v3 1/3] dt-bindings: net: marvell,pp2: convert to json-schema Content-Language: en-US To: Marcin Wojtas Cc: =?UTF-8?Q?Micha=c5=82_Grzelak?= , devicetree@vger.kernel.org, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@semihalf.com References: <20221011190613.13008-1-mig@semihalf.com> <20221011190613.13008-2-mig@semihalf.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 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 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 11/10/2022 16:34, Marcin Wojtas wrote: >> >> Keep the same order of items here as in list of properties >> >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - clocks >>> + - clock-names >>> + >>> +allOf: >>> + - $ref: ethernet-controller.yaml# >> >> Hmm, are you sure this applies to top-level properties, not to >> ethernet-port subnodes? Your ports have phy-mode and phy - just like >> ethernet-controller. If I understand correctly, your Armada Ethernet >> Controller actually consists of multiple ethernet controllers? >> > > PP2 is a single controller with common HW blocks, such as queue/buffer > management, parser/classifier, register space, and more. It controls > up to 3 MAC's (ports) that can be connected to phys, sfp cages, etc. > The latter cannot exist on their own and IMO the current hierarchy - > the main controller with subnodes (ports) properly reflects the > hardware. > > Anyway, the ethernet-controller.yaml properties fit to the subnodes. > Apart from the name. The below is IMO a good description:. It also starts to look a bit like a switch (see bindings/net/dsa). > >> If so, this should be moved to proper place inside patternProperties. >> Maybe the subnodes should also be renamed from ports to just "ethernet" >> (as ethernet-controller.yaml expects), but other schemas do not follow >> this convention, > > ethernet@ > { > ethernet-port@0 > { > } > ethernet-port@1 > { > } > } > > What do you recommend? Yes, keep it like this and reference the ethernet-controller.yaml in each port. Best regards, Krzysztof