Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1362297rwd; Wed, 31 May 2023 12:49:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XEZfhaUOmzlWimfn+iDona3xjOBF7miGDt4y3RHh++py5bgWfP9mhVq/2XcniT1EO2f3O X-Received: by 2002:a05:6a00:b50:b0:647:1cb7:b714 with SMTP id p16-20020a056a000b5000b006471cb7b714mr6671198pfo.3.1685562560965; Wed, 31 May 2023 12:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685562560; cv=none; d=google.com; s=arc-20160816; b=JQ1V4Hq6CvFQo1Zr6iIKk5g3fyMJIRvncplucorcMBtmhdZxFUIIGOuKpPsKeual1Q u5c5DIWhefKsIaezN5w+A10cAwLAnVjN56ZBd+fb9s/xhCQtiBa8xki9cEZyfHIpb/ep jKzUPjrR+r6taIwC+PBEiW1UBsz8WkXS+j2XVRNJIK3JcOo0bD7qM3omyYN0m+cEG/80 sRhKwZNxv4hx4/gmbExSh/sqPSXdkgxa3RJWPxCI9gMXWDfarvEag5pJdRt7UsxHOnMh +njtAYAOP5J4+I6RwXruGSk2x36Z+YM9xcM7hZiNOP4h7sAWao5bHGqnqdzfsRm/HKHm S30A== 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=XzmS9Q7rcF4wK+3M4xWTzjFrvHkAxzNx2k0i9sXDaBI=; b=z63soQSH4cWwR6qIj+GVVe5FyC1xOLWe2m/gTlvaNMAX0/v80vzGHksToGtHzh4Fcu 8ieUX4ORe1PRK6f7YpEnL3Cd1TWgoWFK4dtVqkh4hY9x4Jhe5iOjOELWf5fc3i+qwi0O BuiDu6QlUj9o+TtoPE2GuhGSQVdiwqCc4G6AKHZ1Q5xgyjA8zzDB9s1Ib7C09vRQh4lP LS2vcsTdpxTTQ3blefWrPnOG+r2ldLmiTa/uMYcIkV6Lsv04eA7ismZDAmScWplRJG2n ouDdfkJZnL95oixXd0zp+QKJy1zxS7XW9ljSx00UpUMKDLgKHVNjRouvVRLRw6pFYk/c Hrlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kmUd0XwM; 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 k11-20020aa7972b000000b0064f787f2888si4024286pfg.397.2023.05.31.12.49.07; Wed, 31 May 2023 12:49:20 -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=kmUd0XwM; 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 S229934AbjEaTbZ (ORCPT + 99 others); Wed, 31 May 2023 15:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjEaTbX (ORCPT ); Wed, 31 May 2023 15:31:23 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50455107 for ; Wed, 31 May 2023 12:31:22 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-96f7bf3cf9eso1135027266b.0 for ; Wed, 31 May 2023 12:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685561481; x=1688153481; 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=XzmS9Q7rcF4wK+3M4xWTzjFrvHkAxzNx2k0i9sXDaBI=; b=kmUd0XwMBxGai5Os+SkdP4FhHNwp6VP4CdwZVb4ASXJHhhW5RA30JTo0fHGGLGewCL SagSqWzSx5FUD63hlEcd4px2errlCXd1ERTf4jwER+cI9yXSLKTlc3/CRf4/tzKkX3kM 5eihEYPiPDX87UVMK8kYU9atiYTEUwDjlsOpXBMnoougeaHRkpzl8Vb7ca/kMIGfZ2fM HbcvRvqlRlXjNcptJYtsquDN+XvHmb8LBlMPKs6WzlvUZtcoNUkg9DRQgs5vtrvagyCZ KitkbHZMXXlqU6cgc5KyjUOTQHUU7jfTFXP0yER16lse8X4DOY1QpX7ZsCHf+Llc7WJL YQIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685561481; x=1688153481; 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=XzmS9Q7rcF4wK+3M4xWTzjFrvHkAxzNx2k0i9sXDaBI=; b=aQSgRn/ze+OXi2OcP4kc17qhuPCysHxFgUcLfjQz0hbo9+CW0HNmEXebf/2CHWqFuB gvZ3pIhusBYtiDiNgMHTiOCk4bn1r/yhjmJxecTRQxJ85SoBnfhvMzhm2kWugCQNPCc0 3keSxgTl0jwbnNx/ilGONKe3CgMB1YmMAwXxzRVWOg9Km/V3V0vImLbfCImtO+koTZzv oVnQlNl9/05lKoGDQvwZNm/7jMkd32P+KVDtexTatGAtfCaBtp54RQWmmcUowHmV+9ad AOMPZ8YWqckxgnhkTiSadrOn51kV7U9u1wNtsDbCNkDyR5t6XQswOfT0upaMzR5Enhc/ w7eg== X-Gm-Message-State: AC+VfDxI2ihMh9V/kNxrGbQE7xOUySmdcE6xyTGaY4K6VZvCOCdWL/qq sipdrdLQ6z+7hjrLcs/48scTPw== X-Received: by 2002:a17:907:25cd:b0:973:8823:f53f with SMTP id ae13-20020a17090725cd00b009738823f53fmr6334041ejc.52.1685561480773; Wed, 31 May 2023 12:31:20 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id ss7-20020a170907038700b0096a2eaa508asm9414104ejb.168.2023.05.31.12.31.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 12:31:20 -0700 (PDT) Message-ID: <4810fb0f-2b0f-0118-435a-d7373553163a@linaro.org> Date: Wed, 31 May 2023 21:31:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v5 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller Content-Language: en-US To: Florian Fainelli , Justin Chen , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, opendmb@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, richardcochran@gmail.com, sumit.semwal@linaro.org, christian.koenig@amd.com, simon.horman@corigine.com References: <1684969313-35503-1-git-send-email-justin.chen@broadcom.com> <1684969313-35503-3-git-send-email-justin.chen@broadcom.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 31/05/2023 21:29, Florian Fainelli wrote: >>> + required: >>> + - reg >>> + - brcm,channel >>> + >>> + additionalProperties: false >>> + >>> +patternProperties: >>> + "^mdio@[0-9a-f]+$": >> >> Isn't mdio a property of each ethernet port? Existing users >> (e.g.bcmgenet, owl-emac, switches) do it that way... > > They are sub-nodes of the larger Ethernet controller block, hence the > property here. This is the Ethernet controller. They are subnodes here, so what do you mean by that? They are part of some other block? > >> >> Otherwise how do you define relation-ship? Can one mdio fit multiple ports? > > The relationship is established between Ethernet ports and children > nodes of the MDIO controller, such as switches or Ethernet PHYs using > 'phy-handle' for instance. And yes, a single/common MDIO controller > could be serving multiple Ethernet ports. We do not talk about generic case, but your device. Best regards, Krzysztof