From: Antoniu Miclaus <antoniu.miclaus@analog.com>
To: Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Antoniu Miclaus <antoniu.miclaus@analog.com>,
<linux-hwmon@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH 1/2] dt-bindings: hwmon: add ltc4296-1 support
Date: Fri, 25 Oct 2024 14:56:10 +0300 [thread overview]
Message-ID: <20241025115624.21835-2-antoniu.miclaus@analog.com> (raw)
In-Reply-To: <20241025115624.21835-1-antoniu.miclaus@analog.com>
Add devicetree bindings for the ltc4296-1 device.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
.../bindings/hwmon/adi,ltc4296-1.yaml | 105 ++++++++++++++++++
1 file changed, 105 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc4296-1.yaml
diff --git a/Documentation/devicetree/bindings/hwmon/adi,ltc4296-1.yaml b/Documentation/devicetree/bindings/hwmon/adi,ltc4296-1.yaml
new file mode 100644
index 000000000000..be73d59a7d65
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/adi,ltc4296-1.yaml
@@ -0,0 +1,105 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/adi,ltc4296-1.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: LTC4296-1 5-Port SPoE PSE Controller
+
+maintainers:
+ - Antoniu Miclaus <antoniu.miclaus@analog.com>
+
+description: |
+ The LTC4296-1 is an IEEE 802.3cg-compliant, five port, single-pair
+ power over Ethernet (SPoE), power sourcing equipment (PSE)
+ controller. SPoE simplifies system design and installation with
+ standardized power and Ethernet data over a single-pair cable.
+
+ Datasheet:
+ https://www.analog.com/en/products/ltc4296-1.html
+
+$ref: /schemas/spi/spi-peripheral-props.yaml#
+
+properties:
+ compatible:
+ const: adi,ltc4296-1
+
+ reg:
+ maxItems: 1
+
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
+ vin-supply: true
+
+patternProperties:
+ "^channel@[0-3]$":
+ type: object
+ description:
+ Represents the current monitoring channels.
+
+ properties:
+ reg:
+ description:
+ The channel number. ltc4296-1 can monitor 5 currents.
+ items:
+ minimum: 0
+ maximum: 4
+
+ shunt-resistor-micro-ohms:
+ description:
+ The value of curent sense resistor in micro ohms.
+
+ required:
+ - reg
+
+ additionalProperties: false
+
+required:
+ - compatible
+ - reg
+ - vin-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hwmon@0 {
+ compatible = "adi,ltc4296-1";
+ reg = <0x0>;
+ vin-supply = <&vcc>;
+ };
+ };
+ - |
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hwmon@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ compatible = "adi,ltc4296-1";
+ reg = <0x0>;
+ vin-supply = <&vin>;
+
+ channel@0 {
+ reg = <0x0>;
+ shunt-resistor-micro-ohms = <100000>;
+ };
+
+ channel@1 {
+ reg = <0x1>;
+ shunt-resistor-micro-ohms = <100000>;
+ };
+ };
+ };
+...
--
2.46.2
next prev parent reply other threads:[~2024-10-25 12:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 11:56 [PATCH 0/2] Add Support for LTC4296-1 Antoniu Miclaus
2024-10-25 11:56 ` Antoniu Miclaus [this message]
2024-10-28 7:42 ` [PATCH 1/2] dt-bindings: hwmon: add ltc4296-1 support Krzysztof Kozlowski
2024-10-25 11:56 ` [PATCH 2/2] hwmon: ltc4296-1: add driver support Antoniu Miclaus
2024-10-25 14:22 ` Guenter Roeck
2024-10-25 15:01 ` Oleksij Rempel
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=20241025115624.21835-2-antoniu.miclaus@analog.com \
--to=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--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