[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250904-hwmon-tps23861-add-class-restrictions-v3-0-b4e33e6d066c@gmail.com>
Date: Thu, 04 Sep 2025 10:33:43 -0700
From: Gregory Fuchedgi via B4 Relay <devnull+gfuchedgi.gmail.com@...nel.org>
To: Robert Marko <robert.marko@...tura.hr>,
Luka Perkov <luka.perkov@...tura.hr>, Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>, Jonathan Corbet <corbet@....net>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: linux-hwmon@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
Gregory Fuchedgi <gfuchedgi@...il.com>
Subject: [PATCH v3 0/2] hwmon: (tps23861) add class restrictions and
semi-auto mode support
This patch series introduces per-port device tree configuration with poe
class restrictions. Also adds optional reset/shutdown gpios.
Tested with hw poe tester:
- Auto mode tested with no per-port DT settings as well as explicit port
DT ti,class=4. Tested that no IRQ is required in this case.
- Semi-Auto mode with class restricted to 0, 1, 2 or 3. IRQ required.
- Tested current cut-offs in Semi-Auto mode.
- On/off by default setting tested for both Auto and Semi-Auto modes.
- Tested fully disabling the ports in DT.
- Tested with both reset and ti,ports-shutdown gpios defined, as well as
with reset only, as well as with neither reset nor shutdown.
Signed-off-by: Gregory Fuchedgi <gfuchedgi@...il.com>
---
Changes in v3:
- cleaned up dt bindings in response to v2 review
- Link to v2: https://lore.kernel.org/r/20250811-hwmon-tps23861-add-class-restrictions-v2-0-ebd122ec5e3b@gmail.com
Changes in v2:
- code cleanup
- split bindings into separate patch
- use patternProperties
- use labels instead of DT node names
- add few comments for clarity
---
Gregory Fuchedgi (2):
dt-bindings: hwmon: update TI TPS23861 with per-port schema
hwmon: (tps23861) add class restrictions and semi-auto mode support
.../devicetree/bindings/hwmon/ti,tps23861.yaml | 93 +++++++-
Documentation/hwmon/tps23861.rst | 6 +-
drivers/hwmon/tps23861.c | 249 ++++++++++++++++++++-
3 files changed, 341 insertions(+), 7 deletions(-)
---
base-commit: 3db46a82d467bd23d9ebc473d872a865785299d8
change-id: 20250808-hwmon-tps23861-add-class-restrictions-83ce3c02d885
Best regards,
--
Gregory Fuchedgi <gfuchedgi@...il.com>
Powered by blists - more mailing lists