Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp148206lqe; Thu, 4 Apr 2024 02:25:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrndRjwsSsYcW6+lXc0hRf1tDKFL1FuXSAQQ+hIz1fULv6HbfZFB+aBx3F/yRU8kbaWUc7WaloSKSnx9P0oNhew1mV1ml3cq8tgtwdIA== X-Google-Smtp-Source: AGHT+IFQcS9ZUM1BygDMsh2YDUbK2kf6TpOusW46NHJToSGgC35ASXWeYcEUf4qdxIW0nnVSkK0o X-Received: by 2002:a50:8d59:0:b0:56e:d9e:f4d3 with SMTP id t25-20020a508d59000000b0056e0d9ef4d3mr1435951edt.18.1712222728250; Thu, 04 Apr 2024 02:25:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712222728; cv=pass; d=google.com; s=arc-20160816; b=X8DaTWJBglfjWZCsfpHC0t4NSjDzNietzZd71SP/STyQ1+hq+5tZogLljjI3c8iEUb x3V4FvgAXK74Fmg8tAnadldspVrDbOP7LfDA1tX3otnKEL1elJ7ji1rxFqC5GZ6nwC92 P7YEUn9k5thyeSiiUJDz1qspRoLQl/qixsGDop4QzqVCXrcOU64N+UAQC4pILlMm8nKj AGHXuwa0wWehTHw+TQusqAutozGh8URVNHZI+pfdNW4WsRt3GBBKN7f07DvwvMs6Z3bD hUwEAVnsjNqaSoDiJZGIhwsayYjiY6cPkYzVZ565nnVRLnbRjS2XMKbSqN5DxE12b4Rz 7CDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=JmD8Cz8LQvllwErFtC5QF38oacw9e604VmlkOt2aTy8=; fh=ws8XzRtCsVHnhfJ66tqrW2bOLhv1Im7sd9Gph8ipVRk=; b=CxLqx+DJWygdxrUvuNe5wQbQcOk6vSCZBqpHZvoSesaHBRcGZu4XvC1z8mo5ZrjJpZ m0938bT3cKwvDo0+aWueQuJTRyjta1wk+azcGwFCu4vdubZFn4gjtQsVDuFATICz63hm 9C5GCdWmjjNZCjUUC+sVNZKeDNTkkkh6K6lWPPCIq9UjIyZzCWxGO5Dj+tuH4sI2yO4q UHtk2Tl3zYXMi0QKz/TeG7a1AZ6MbLrlnKnHTtp0+//ljHldobqMc3Pt+EdCqdlkm/VZ qIM0zh+85rwBKLN8f2RwKBRCGVsJkchU4HNgVNuwd4ASYcSgbGs5MHikKDVbBHssEYqv +OLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=K87hT6eF; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-131163-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131163-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b67-20020a509f49000000b0056dfb2f3bb5si1993883edf.611.2024.04.04.02.25.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 02:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131163-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=K87hT6eF; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-131163-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131163-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id CBE181F248C4 for ; Thu, 4 Apr 2024 09:25:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FCAB74BE1; Thu, 4 Apr 2024 09:25:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="K87hT6eF" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 9BA871E86F; Thu, 4 Apr 2024 09:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712222716; cv=none; b=atVuPIoQO8i7RVuzGGb9359hg7bjawuHH6WENUEoKPUePBNQOekWnID+6mh0kLCjL0PcS43apXFKOj+EPWxngVpwaGN4ZimA/h/8CzRnA9HZvqPpqw609e2IeEBph9N5hnpMEfNbbqW7CBfVGq4g+Y0xU109z4uXB58zteho9jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712222716; c=relaxed/simple; bh=goGoyXyy2aFQvi0+QqmO6oV3VAEgFQ1Y15GcxBwoZ28=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=udTVr4Gx5gj9Tbc0aY5enpUIDFCC9Lc7hQa8jzZhBBvuMjNYLcX5e8D0nK7ZhN94ViOTxY2yKI8Iob377bY0Htl7dCY/t4aLCcnEC5v2DsN3N07FvCg0wQBg4PiXX4o/JV4DWEZOeSYIMHi080YK5KLQsqa92XT+C473gzaBmuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=K87hT6eF; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 074A260008; Thu, 4 Apr 2024 09:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712222712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JmD8Cz8LQvllwErFtC5QF38oacw9e604VmlkOt2aTy8=; b=K87hT6eFy1B8OGtdw6c4NM4XNlL1sD85a1Uge3xud4ocA7A/Sh0ogIKA0De/miAF0B6wEq fUWkit4VX2y1tVN0KhnXSMZy8aoAqRnwyf5j5Kkp/Fa8DiRti8LsC629SlqeSItha2dwrB JljeqzL3D6OnnzHF0NMyZvtP0n633+FVoqSP+ABlnBurdoRSIIlq1XtbBUzPUPDjwnVoVu +iUCEusnp+NAkyiT+85r7kqM7vZRoXz4GXHE0UF7yv+7pqYbODPTDxf11FJXL/C9ujBK+C OalDYtvgOYDwpJhwlD2WJu53LgPGEvfLZyIN8A1FbgS+0/xZrSEsA8Xqm3rLNQ== Date: Thu, 4 Apr 2024 11:25:06 +0200 From: Kory Maincent To: Rob Herring Cc: "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 , Oleksij Rempel , 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: <20240404112506.2e155bad@kmaincent-XPS-13-7390> In-Reply-To: <20240403143142.GA3508225-robh@kernel.org> 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> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Wed, 3 Apr 2024 09:31:42 -0500 Rob Herring wrote: > > =20 > > > > + > > > > + polarity-supported: > > > > + $ref: /schemas/types.yaml#/definitions/string-array > > > > + description: > > > > + Polarity configuration supported by the PSE PI pairs= ets. > > > > + minItems: 1 > > > > + maxItems: 4 > > > > + items: > > > > + enum: > > > > + - MDI-X > > > > + - MDI > > > > + - X > > > > + - S > > > > + > > > > + vpwr-supply: > > > > + description: Regulator power supply for the PSE PI. = =20 > > >=20 > > > I don't see this being used anywhere. =20 > >=20 > > Right, I forgot to add it to the PD692x0 and TPS23881 binding example! = =20 >=20 > But is this really common/generic? I would think input power rails would= =20 > be chip specific. I think as each PSE PI are seen as a regulator we may want it generic to tr= ack 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 conn= ected to the managers (PD69208) and not directly to the PIs. So the devicetree wo= uld 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 m= ind to make it generic? https://lore.kernel.org/netdev/ZeObuKHkPN3tiWz_@pengutronix.de/ Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com