Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3492922rdh; Mon, 27 Nov 2023 16:10:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNd9xEuB5kwmbU3dLO75yNcfskS73I1bnKF3Ebv3VqgBywPf8MEisTfHWsZ3Ftz3kzAvJl X-Received: by 2002:a05:6a00:2348:b0:6c6:aaa4:5d68 with SMTP id j8-20020a056a00234800b006c6aaa45d68mr12513909pfj.27.1701130204559; Mon, 27 Nov 2023 16:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701130204; cv=none; d=google.com; s=arc-20160816; b=ssp9HhNp/ermbN+OT8Nkx7lfXp/d0vq8g9HM5tyydePDm9hwxrZ4CYQhaDlfSnb7Fc vWISx+cagBAU/YZbCvzi6lyI/+qtmLqdcIeARoL7bacSuTwDxL/ks9xG+V9AVAq5s0Xx lxvoe7jSIjSs/SFu6Yej+VfHBoJwjV/S4daB6ePsCtMnB7WZUM3pchUKzuyn3aIxoqqB uzI7A1vY3RF4Vd+bxHifRrS/XzW6500YYPDJFFkkgEIL/xkXsWp640fbOqooLwEaftUH QeaHdeGO8TZ+RU6q0URepe/XYJRfjviTU109Ksf2ee33KmiVVR+fKqWgsY2l2kXt+S0o PwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ns3R255gsALDi2Q2TyvQsGBPXsb0MIEuzdoPy5X6KnI=; fh=kroShrT6g3ngce2imNVq6HvnZni0kgM7WhmuaHdYFmM=; b=jFyYOT2TJwqmM5uOj27HXpJ7KOWP6HJteiZ4EDnaGrBqFbCJCnEREsgTgRI9OtdkFw G9mGKDrK3v2XODUlSmrdcGOQdPWC2h5zxuinjzILpfXYFjdq4Y/YwF9Xx3ZP5LcBTCUu MQFcGjhw/2TpmZkjBRgFoZNNNaSKpTUBbed6rlNKGuLO/fDptV1+jDZHQZ/kDkzVKGs1 O5oDbMiIbaFDKPvwOVm6l+++i27qbKm4QEIGAMTEEaE2pR1rQp5AvFRQbb5QtFJNmHDV 6GT50CjiDK8HANnvPNNpmhHmlepDBIqrraKjCfyefAnpPjObe0lpn4Cb0rkLAQ15X0I8 RFcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HnwPnhLt; 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=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c11-20020a056a000acb00b006bf531dd685si11215534pfl.64.2023.11.27.16.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 16:10:04 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=HnwPnhLt; 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=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C041582CEFFC; Mon, 27 Nov 2023 16:09:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233687AbjK1AJi (ORCPT + 99 others); Mon, 27 Nov 2023 19:09:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjK1AJh (ORCPT ); Mon, 27 Nov 2023 19:09:37 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF328192; Mon, 27 Nov 2023 16:09:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ns3R255gsALDi2Q2TyvQsGBPXsb0MIEuzdoPy5X6KnI=; b=HnwPnhLtC1NJ6kLr+65/SGM542 v59VSZsTZ7cRCCvbFw41KMq0xkqFLbduLGZ4qO5R3PnQ3Wm/G5Vd/vcR5CXbWVc8vbiTdq4W1WT4L Ke6HQCCTY50pF+kV4hyxACfpkCj4yw+AV42r3oz4N9T3oJPI5wx8xRTDIQoX1NBaN7Cs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r7lfO-001OlF-5C; Tue, 28 Nov 2023 01:09:30 +0100 Date: Tue, 28 Nov 2023 01:09:30 +0100 From: Andrew Lunn To: Rob Herring Cc: Christian Marangi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Matthias Brugger , AngeloGioacchino Del Regno , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next PATCH RFC v3 1/8] dt-bindings: net: document ethernet PHY package nodes Message-ID: References: <20231126015346.25208-1-ansuelsmth@gmail.com> <20231126015346.25208-2-ansuelsmth@gmail.com> <20231127221611.GA4023452-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127221611.GA4023452-robh@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 howler.vger.email 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]); Mon, 27 Nov 2023 16:09:53 -0800 (PST) > > + description: > > + The base ID number for the PHY package. > > + Commonly the ID of the first PHY in the PHY package. > > + > > + Some PHY in the PHY package might be not defined but > > + still exist on the device (just not attached to anything). > > + The reg defined in the PHY package node might differ and > > + the related PHY might be not defined. > > + > > + '#address-cells': > > + const: 1 > > + > > + '#size-cells': > > + const: 0 > > You are implementing a secondary MDIO bus within this node. It needs a > $ref to mdio.yaml instead of defining the bus again implicitly. This is where i think this is questionable. It is not implemented in the kernel as a secondary bus. The devices within this container are just devices on the MDIO bus. The value of reg inside the container and outside the container refer to the same bus. However, i do agree about referring to mdio.yaml inside the container. > > +patternProperties: > > + ^ethernet-phy(@[a-f0-9]+)?$: > > + $ref: ethernet-phy.yaml# > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: true > > + > > +examples: > > + - | > > + mdio { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + ethernet-phy-package@16 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + compatible = "ethernet-phy-package"; Christian, this needs a specific compatible to the package. e.g. 'qca807x-package', and that needs its own .yaml file indicating what properties this package can have. Andrew