Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp642101rdb; Thu, 21 Dec 2023 23:55:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8vz5hA3JUnDNTqHgDn9BdLkxKoCYAlmxKBXg8KgZReNDM3xtQ9GAErfT6ugekZaQkzR72 X-Received: by 2002:a05:6a20:da:b0:18b:d207:d857 with SMTP id 26-20020a056a2000da00b0018bd207d857mr899636pzh.11.1703231725858; Thu, 21 Dec 2023 23:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703231725; cv=none; d=google.com; s=arc-20160816; b=yBDNc6urI4ETSB+CWasbHAKBIV1djtPNL/OTYMiGMQI3I2WYMCA0gqU51XHplORkjR WE77ZHc7hIeQqoyn4lqw3LmXl1fZ4XJtJmoLNjlogHeQaYMqnIRy8fY12ayOHdDwoiPb udNrO760Ml75wewP6RxsCUgOjv7LB5MPoEsBgCfe9n5YpluOrEx8Ssjne94PuoIZoyr/ Srv47qrIXbP8ar17GufzJkLfWsiXdWA7QAokMjrqEJSI7vfSLILjisqaT8fwnbkqLdoc zgfFtSMqU9l4JdiG42e0fD0+njkeXFskrrqlpjdqW/0R9IdWdAMLqHPnwByHmCg+EiAZ vmlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=YDo6JGw5pn59kLwUzBETi1tOXX8Or/NFvTDtGWNd5Ig=; fh=E3xNuxHJTYtyTNEcPOXTfAHL/yjAvHdrK/wyLbU3Hss=; b=W8SOkvD99K57BqWqx+NZYzu9QMuWGbZ3uSZpA+Zf5jAPlxWXAKxeGHPoa7+kJwuZmT 6Ad2qpifHMw1B1QL7xVlWyDWP6AY1THRY6rkGbaTkJEsuHWO113t/7kC0i0Q81w0086v U/CoETmKz12YQpyv77jQd2EUm/0Bs2rBNoZqBxYx7XR1H7SCo796cliOLq7GBs9M6uci UnMK5TS058CTgC6Z9A7ILxo3kQzibNxfl06LdMvgcpSlHmo3OgCkSxeCeyxWe5A5gWCj fDlyVlzNyCMsslvxfqwC5sNCI2FusSKZtmEvsBB3CM+Jha91LvfqiiqdZ9cA8IUhdQ0U k+Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9466-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gc18-20020a17090b311200b0028c03f378a2si1214131pjb.174.2023.12.21.23.55.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 23:55:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9466-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 85E12286AA5 for ; Fri, 22 Dec 2023 07:55:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C202BE5F; Fri, 22 Dec 2023 07:55:20 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5832ABE48 for ; Fri, 22 Dec 2023 07:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rGaMz-00027g-BL; Fri, 22 Dec 2023 08:54:57 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rGaMu-000hcp-CW; Fri, 22 Dec 2023 08:54:53 +0100 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1rGaMv-008FUz-CD; Fri, 22 Dec 2023 08:54:53 +0100 Date: Fri, 22 Dec 2023 08:54:53 +0100 From: Oleksij Rempel To: Mark Brown Cc: =?utf-8?B?S8O2cnk=?= Maincent , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , Liam Girdwood Subject: Re: [PATCH net-next v2 8/8] net: pse-pd: Add PD692x0 PSE controller driver Message-ID: <20231222075453.GJ1697233@pengutronix.de> References: <20231205064527.GJ981228@pengutronix.de> <4b96b8c8-7def-46e5-9c85-d9e925fb9251@sirena.org.uk> <20231205140203.GK981228@pengutronix.de> <88ed0c94-d052-4564-be0c-79a0f502eda8@sirena.org.uk> <20231221163610.47038996@kmaincent-XPS-13-7390> <20231221171000.45310167@kmaincent-XPS-13-7390> <501f671d-4e03-490b-a9d6-e1f39bb99115@sirena.org.uk> <20231221174246.GI1697233@pengutronix.de> <81f0ddba-5008-43a4-a41c-c7b6ba8e2e3b@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <81f0ddba-5008-43a4-a41c-c7b6ba8e2e3b@sirena.org.uk> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Thu, Dec 21, 2023 at 06:05:28PM +0000, Mark Brown wrote: > On Thu, Dec 21, 2023 at 06:42:46PM +0100, Oleksij Rempel wrote: > > > The main question is - how to represent a remote consumer (Powered > > Device)? It looks for me like having a dummy regulator consumer for each > > (PSE PI) withing the PSE framework is the simplest thing to do. User > > should enable this dummy consumer from user space by using already > > existing interface in case of PoDL - ETHTOOL_A_PODL_PSE_ADMIN_CONTROL > > or new interface for Clause 33 PSE. > > That's not even a dummy consumer - the physical power output from the > system is a real, physical thing that we can point at just as much as > any other physical device. Some kind of library/helper thing that > connects up with other interfaces for controlling network ports like you > suggest above does seem like a good fit here. @Köry, It will be good if you add vin-supply property to your DTs. It will allow to track all needed dependencies. If I interpret PD692x0/PD69208 manuals properly, each Manager may have only one Vmain shared for different ports. But different managers may have different Vmains. I assume, regulator tree will be like this: Vmain-0 manager@0 (assigned to ethernet-pse@3c controller) port0 port1 .. manager@1 (assigned to ethernet-pse@3c controller) port0 port1 .. More complex system may look like: Vmain-0 manager@0 (ethernet-pse@3c) port0 port1 .. Vmain-1 manager@1 (ethernet-pse@3c) port0 port1 .. Not sure how to properly represent even more complex system with multiple controllers, in this case manager names will overlap: Vmain-0 manager@0 (ethernet-pse@3c) port0 port1 .. manager@0 (ethernet-pse@4c) <---- port0 port1 .. -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |