Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1362713rdh; Fri, 24 Nov 2023 10:36:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IENGWNcjMm2LFA9q+p3MmmwiqeoVbcxXdk/AZa+0bsrVZ9/T/nuP4FVU4vhM/kfhpM+G/2l X-Received: by 2002:a17:90b:3a90:b0:283:912:9c22 with SMTP id om16-20020a17090b3a9000b0028309129c22mr4179061pjb.1.1700850975931; Fri, 24 Nov 2023 10:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700850975; cv=none; d=google.com; s=arc-20160816; b=RYfciv/Q3tOCbBtFhNAhQsQOjsxhEnu6CAMzET7h7gbc7Ctoh//6Q0YvApKN/8GXvA KDn/wEwg1P47sedPHlvOMdpDW9HTncsh47KyoDSeimEZ46kXuBkaw2Sb3EVNWBESm6FC pIPV9YYOV7hYlXoOw9Z54Egth+Psu7u/rWdssNbLhEnjtTjUjw7Xmw+JxgoLxpyHeZE/ Uh8QsswwzPGf3Rsxzm7PXS2vy92tDkKT0jlfio4s8HPGphJt+84zi1R1W7cKetb9mwcD X1DjnVO8epz7rROqGoo7tfR2QdxeRVZFjy6eJbjRZ0H4jj+BQm9GPQQ5ftVMChz/OZLA Vukw== 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=gwmyJG9vbp3QOEoifoxISsT4fXojTNtLKYVLH+21FeI=; fh=wFmQ5JSnQANsyP+FQe9fpKDQ6ynhxsuqTeX3JbYSGSU=; b=r/4kuNfltzYcI567Ib6yDxasgoy9GJYI8RsWTxQXufuWdQKSCuaszLO4oWhS742uGj O7XsvogSGClAZXVXJTFmYCgUMSvHQxanw6ZKPNl4ct1Nn9hqY6n9WbjKAGsGAVe9QHQY SWOMM7C0Fz3mwFVM3Cu8rFzk6ZYEcKRMOrEq4qSX9nXc0HvPhME/BhWmSaUPdkOWP+ON buxIHT4XuUaszc2hWA72mrQPfnfkeSVIhDM+i3vTEH/eMuOLsLmsPsIfJnXCHoH5unCp mMZv6JEsDrNoxhzNTOVpSvxFD3PWOXFf8dtheLEHaMbsQdRiGhVPjt2AGEANJd+dcFip 1QDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hQEe5os3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y8-20020a17090a784800b00283bc6d83f4si4559657pjl.14.2023.11.24.10.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 10:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hQEe5os3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id D5CF1809C436; Fri, 24 Nov 2023 10:36:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231460AbjKXSfz (ORCPT + 99 others); Fri, 24 Nov 2023 13:35:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjKXSfy (ORCPT ); Fri, 24 Nov 2023 13:35:54 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09E1B189; Fri, 24 Nov 2023 10:36:00 -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=gwmyJG9vbp3QOEoifoxISsT4fXojTNtLKYVLH+21FeI=; b=hQEe5os3F07048ijAtiZMvGGWh ZZmKad7TP8b2Xydt3N25pbnMjju/0738kGnsfpBCSSuZKnEnY5eSG8fzNl6FXigNaf5UzWr+EIasK 8pLW/BaSuzKc/VrixnHCEr8hzWFrDhJE6USIRDu5odK2ahnDzPXwMEnM6Zo7NSK1vFxU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r6b1b-0017zc-6B; Fri, 24 Nov 2023 19:35:35 +0100 Date: Fri, 24 Nov 2023 19:35:35 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Christian Marangi , Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , "Russell King (Oracle)" , Harini Katakam , Simon Horman , 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 RFC PATCH 03/14] dt-bindings: net: document ethernet PHY package nodes Message-ID: References: <20231120135041.15259-1-ansuelsmth@gmail.com> <20231120135041.15259-4-ansuelsmth@gmail.com> <20231121144244.GA1682395-robh@kernel.org> <655e4939.5d0a0220.d9a9e.0491@mx.google.com> <20231124165923.p2iozsrnwlogjzua@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231124165923.p2iozsrnwlogjzua@skbuf> 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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 24 Nov 2023 10:36:13 -0800 (PST) > I think you are hitting some of the same points I have hit with DSA. > The PHY package could be considered an SoC with lots of peripherals on > it, for which you'd want separate drivers. At least at the moment, this is not true. The package does just contain PHYs. But it also has some properties which are shared across those PHYs, e.g. reset. What you describe might become true in the future. e.g. The LED/GPIO controller is currently part of the PHY, and each PHY has its own. I could however imagine that becomes a block of its own, outside of the PHY address space, and maybe it might want its own class LED driver. Some PHYs have temperature sensors, which could be a package sensor, so could in theory be an individual hwmon driver. However, i've not yet seen such a package. Do we consider this now? At the moment i don't see an MFD style system is required. We could crystal ball gaze and come up with some requirements, but i would prefer to have some real devices and datasheets. Without them, we will get the requirements wrong. I also think we are not that far away from it, in terms of DT, if you consider the later comments. I suggested we need a phy package specific compatible. At the moment, it will be ignored by the kernel, the kernel does not need it, it probes the PHYs in the current way, using the ID registers. But it could in future be used to probe a real driver, which could be an MFD style driver. We need to see updated DT binding examples, but i don't see why we cannot slot it in at a later date. Andrew