Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp536847lqp; Fri, 5 Apr 2024 00:54:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyE4gMnenoF5VGuJ4nU5PMsi9j+JEa5cf6v0QLPIef7nRzufD6pV2tkTcfx93op5g487toI+F0thHNXTss2DFcgZm8YnvvVzED7JQlrQ== X-Google-Smtp-Source: AGHT+IHwOzaDhCYtwoi83990bRJskb2irLfeA1tOzUQBOqj8xCV2bUkZR3Cprgzzkl/qZKxzs9q3 X-Received: by 2002:a9d:4f0d:0:b0:6e6:96d2:acbe with SMTP id d13-20020a9d4f0d000000b006e696d2acbemr738159otl.26.1712303656199; Fri, 05 Apr 2024 00:54:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712303656; cv=pass; d=google.com; s=arc-20160816; b=QkxHTyxc6sEuSy5Q4pWAXT5mmMdBZNCYHvpcspA2CFzk/JbfVkijKmq8PXtC8rCXb0 569HbPpO94drxNTm2FZeulSsqZR947WzsDtMLv5NcM8WvlK9NcXa2uBWt/8HFNwXOIUN dNM0WuZYHSUy1OAQctz7Fm7qlKWjIHChMSQAHSWb8OZ4GqS+N0zCpt9Jw7ezWq4nnsFb TTPBNp/dW7LaFiA4MVIw//p9izjDEQQ76EwzZhAFGtlHcIrua8+5yHt/smGtGHFV9RWJ zSdBIOTyDhhMMF3MUKs8tSCP6ZfC0AuOD44Jwi1HGffOBWwMPyB7S/1f/Au5PgJknexR 9Iuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=g6VBNfylxGKviEZ6pdMVOaqigHwtXBkS9nzXeRIspGA=; fh=8bLL042G8zekNK6ivZlNnU9+cVGllnJ2q3zHgw96TCE=; b=l0oJIbxw5GG4nBccbMCuir6Sr7FwoEExUz+r91kySR6tAuXz/h2qLGgH1Bo5hMBTMg W8CFPSa6CNd7CHFMTFUylSADBgFg0+tDg2019u80t0YuHHAHW0Ku74eNU1/O9FV15OsR jYzgtnFF8lBZJ/MiHDIE2Is4PD4iXVy5uPgk9IUqhnzjRdQ7a7JpqeGtakJ1xzoqPCsN WacP2y1lCj0hID9Ac5aZ2TEXhi3zyIvmx6DWOx5h2ZRBrQ5xbcn/k6GVqTHQqwKZuLSn NlLO84S6hJxBiwVhPJFpa5FpLixdtxcCO8cLQdNTofLg4tSWtB25A+ofPaQXjguAXzd0 PaOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-132578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132578-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 13-20020a63010d000000b005dcbb9ab5b7si897525pgb.277.2024.04.05.00.54.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 00:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132578-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; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-132578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132578-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 5871C284861 for ; Fri, 5 Apr 2024 07:44:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB45013D52C; Fri, 5 Apr 2024 07:44:29 +0000 (UTC) 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 CCDC713D508 for ; Fri, 5 Apr 2024 07:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712303069; cv=none; b=GM/KSNJtBGPQVyNhmB6L0l8Sn3b4vKFjmMqDKFCssDlfjrVG6ohr2rYuoJ2lzrnKyM7L213fkUT57fsz+0umAEEqwOaSA5CJhCSsI4Q+bHudbimTRszrQZK4jYx1KkXKY6CosfVDl4Yl43VeE6d4/rXOre6gGMXkWtOWgJUE8B4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712303069; c=relaxed/simple; bh=R03D674QYB5Ga54S94jEHsV8UofXlPVpjBUr5x+5e/k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UluWeD6EB75uRvk9q7Pay6/uBOw7Db3blBgy8N6ywXMLhYLQQO8ZYlI3LH4qaocBL3hRttLUinBGYU1HFUYGh5IHufbNyhnNIY98B9riCyJ3aoEXzEkEYTs7VY1pvu56AjG61ERLLvrqaPTT7PebBeQXugAdxrRbatK1RFfUmAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 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 1rseEx-0000sw-KA; Fri, 05 Apr 2024 09:43:59 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.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 1rseEr-00AWqn-SL; Fri, 05 Apr 2024 09:43:53 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rseEr-00FbmS-2U; Fri, 05 Apr 2024 09:43:53 +0200 Date: Fri, 5 Apr 2024 09:43:53 +0200 From: Oleksij Rempel To: Kory Maincent Cc: Rob Herring , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Krzysztof Kozlowski , Conor Dooley , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project Subject: Re: [PATCH net-next v6 11/17] dt-bindings: net: pse-pd: Add another way of describing several PSE PIs Message-ID: References: <20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com> <20240326-feature_poe-v6-11-c1011b6ea1cb@bootlin.com> <20240402132637.GA3744978-robh@kernel.org> <20240403111548.30e780b5@kmaincent-XPS-13-7390> <20240403143142.GA3508225-robh@kernel.org> <20240404112506.2e155bad@kmaincent-XPS-13-7390> 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 In-Reply-To: <20240404112506.2e155bad@kmaincent-XPS-13-7390> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain 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, Apr 04, 2024 at 11:25:06AM +0200, Kory Maincent wrote: > On Wed, 3 Apr 2024 09:31:42 -0500 > Rob Herring wrote: > > > > > > > > > + > > > > > + polarity-supported: > > > > > + $ref: /schemas/types.yaml#/definitions/string-array > > > > > + description: > > > > > + Polarity configuration supported by the PSE PI pairsets. > > > > > + minItems: 1 > > > > > + maxItems: 4 > > > > > + items: > > > > > + enum: > > > > > + - MDI-X > > > > > + - MDI > > > > > + - X > > > > > + - S > > > > > + > > > > > + vpwr-supply: > > > > > + description: Regulator power supply for the PSE PI. > > > > > > > > I don't see this being used anywhere. > > > > > > Right, I forgot to add it to the PD692x0 and TPS23881 binding example! > > > > But is this really common/generic? I would think input power rails would > > be chip specific. > > I think as each PSE PI are seen as a regulator we may want it generic to track > each PI parent. Having the parent regulator described like that would force the > devicetree to describe where the power come from. > In contrary, for example, on the pd692x0 controller the regulators are connected > to the managers (PD69208) and not directly to the PIs. So the devicetree would > not really fit the hardware. It is indeed chip specific but having described > like that would be more simple. > > If we decided to make it chip specific the core would have a callback to ask > the driver to fill the regulator_init_data structure for each PI before > registering the regulators. It is feasible. > > Mmh in fact I am still unsure about the solution. > > Oleksij as you were the first to push the idea. Have you more argument in mind > to make it generic? > https://lore.kernel.org/netdev/ZeObuKHkPN3tiWz_@pengutronix.de/ There can be different, chip specific power consumer, for example the one which is feeding the PSE controller it self, but also there are common providers/consumers those which are used to feed PSE PIs. In case of pd692x0 based setup, the managers are actual regulator responsible to control power rails connected to PSE PIs, so managers should use this common provider. Not sure how TI is designed, but it will have same type of consumer to feed PSE PIs as well. Regards, Oleksij -- 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 |