From: Gregory Fuchedgi via B4 Relay <devnull+gfuchedgi.gmail.com@kernel.org>
To: Robert Marko <robert.marko@sartura.hr>,
Luka Perkov <luka.perkov@sartura.hr>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Jonathan Corbet <corbet@lwn.net>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Gregory Fuchedgi <gfuchedgi@gmail.com>
Subject: [PATCH v3 1/2] dt-bindings: hwmon: update TI TPS23861 with per-port schema
Date: Thu, 04 Sep 2025 10:33:44 -0700 [thread overview]
Message-ID: <20250904-hwmon-tps23861-add-class-restrictions-v3-1-b4e33e6d066c@gmail.com> (raw)
In-Reply-To: <20250904-hwmon-tps23861-add-class-restrictions-v3-0-b4e33e6d066c@gmail.com>
From: Gregory Fuchedgi <gfuchedgi@gmail.com>
Update schema after per-port poe class restrictions and a few other options
were implemented.
Signed-off-by: Gregory Fuchedgi <gfuchedgi@gmail.com>
---
.../devicetree/bindings/hwmon/ti,tps23861.yaml | 93 +++++++++++++++++++++-
1 file changed, 92 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml b/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml
index ee7de53e19184d4c3df7564624532306d885f6e4..7538d1a9c19905ec90c48d34f84a92c1972f566b 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml
@@ -24,12 +24,60 @@ properties:
reg:
maxItems: 1
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
shunt-resistor-micro-ohms:
description: The value of current sense resistor in microohms.
default: 255000
minimum: 250000
maximum: 255000
+ reset-gpios:
+ description: GPIO for the reset pin.
+ maxItems: 1
+
+ ti,ports-shutdown-gpios:
+ description:
+ GPIO for the shutdown pin. Used to prevent PoE activity before the driver
+ had a chance to configure the chip.
+ maxItems: 1
+
+ interrupts:
+ description:
+ Only required if PoE class is restricted to less than class 4 in the
+ device tree.
+ maxItems: 1
+
+patternProperties:
+ "^poe-port@[0-3]$":
+ type: object
+ description: Port specific nodes.
+ unevaluatedProperties: false
+ properties:
+ reg:
+ description: Port index.
+ items:
+ maximum: 3
+
+ ti,class:
+ description: The maximum power class a port should accept.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ maximum: 4
+
+ ti,off-by-default:
+ description: Indicates the port is off by default.
+ type: boolean
+
+ label:
+ description: Port label.
+
+ required:
+ - reg
+
required:
- compatible
- reg
@@ -45,9 +93,52 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
- tps23861@30 {
+ poe_controller@30 {
compatible = "ti,tps23861";
reg = <0x30>;
shunt-resistor-micro-ohms = <255000>;
};
};
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ poe_controller@28 {
+ compatible = "ti,tps23861";
+ reg = <0x28>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ shunt-resistor-micro-ohms = <255000>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
+ label = "cabinet_poe_controller";
+ reset-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
+ ti,ports-shutdown-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+
+ poe-port@0 {
+ reg = <0>;
+ ti,class = <2>; // Max PoE class allowed.
+ ti,off-by-default;
+ label = "cabinet_port_a";
+ };
+
+ poe-port@1 {
+ reg = <1>;
+ status = "disabled";
+ };
+
+ poe-port@2 {
+ reg = <2>;
+ status = "disabled";
+ };
+
+ poe-port@3 {
+ reg = <3>;
+ status = "disabled";
+ };
+ };
+ };
--
2.43.0
next prev parent reply other threads:[~2025-09-04 17:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-04 17:33 [PATCH v3 0/2] hwmon: (tps23861) add class restrictions and semi-auto mode support Gregory Fuchedgi via B4 Relay
2025-09-04 17:33 ` Gregory Fuchedgi via B4 Relay [this message]
2025-09-05 8:10 ` [PATCH v3 1/2] dt-bindings: hwmon: update TI TPS23861 with per-port schema Krzysztof Kozlowski
2025-09-05 17:22 ` Gregory Fuchedgi
2025-09-06 7:19 ` Krzysztof Kozlowski
2025-09-07 4:24 ` Gregory Fuchedgi
2025-09-04 17:33 ` [PATCH v3 2/2] hwmon: (tps23861) add class restrictions and semi-auto mode support Gregory Fuchedgi via B4 Relay
2025-09-04 18:34 ` Guenter Roeck
2025-09-05 8:01 ` [PATCH v3 0/2] " Krzysztof Kozlowski
2025-09-07 16:06 ` Guenter Roeck
2025-09-08 4:51 ` Oleksij Rempel
2025-09-08 16:39 ` Gregory Fuchedgi
2025-09-08 16:57 ` Kory Maincent
2025-09-08 18:02 ` Guenter Roeck
2025-09-10 19:11 ` Gregory Fuchedgi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250904-hwmon-tps23861-add-class-restrictions-v3-1-b4e33e6d066c@gmail.com \
--to=devnull+gfuchedgi.gmail.com@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=gfuchedgi@gmail.com \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=luka.perkov@sartura.hr \
--cc=robert.marko@sartura.hr \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).