[PATCH v3 2/3] dt-bindings: hwmon: Add National/TI LM77 temperature sensor

From: Lukasz Majewski

Date: Mon Nov 16 2026 - 06:25:14 EST


Add binding description for National/TI LM77 temperature sensor.
When compared to LM75 - it has two output pins one for interrupt
and another one to signal the critical temperature alarm.

It also has only two I2C address pins (A0 and A1) - possible I2C
addresses are: 0x4[89ab].

Signed-off-by: Lukasz Majewski <lukma@xxxxxxxxxxxx>
---
Changes for v3:
- New patch, as this IC description is added to Documentation/hwmon
as a separate entry and not to trivial devices
---
.../bindings/hwmon/national,lm77.yaml | 66 +++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/national,lm77.yaml

diff --git a/Documentation/devicetree/bindings/hwmon/national,lm77.yaml b/Documentation/devicetree/bindings/hwmon/national,lm77.yaml
new file mode 100644
index 000000000000..fbb6e711342c
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/national,lm77.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/national,lm77.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: National Semiconductor / TI LM77 Temperature Sensor
+
+maintainers:
+ - Guenter Roeck <linux@xxxxxxxxxxxx>
+
+description: |
+ The LM77 is a 9-bit plus sign digital temperature sensor and thermal window
+ comparator with a 2-wire (I2C) interface.
+
+ Unlike the LM75, which has a single alert output, the LM77 features two
+ separate open-drain outputs: an Interrupt (INT) output and a Critical
+ Temperature Alarm (T_CRIT_A) output.
+
+properties:
+ compatible:
+ const: national,lm77
+
+ reg:
+ maxItems: 1
+ description: |
+ I2C address of the device. Depending on the A0 and A1 pins, this
+ can be 0x48, 0x49, 0x4a, or 0x4b.
+
+ vs-supply:
+ description: +VS power supply regulator.
+
+ interrupts:
+ minItems: 1
+ maxItems: 2
+ description: |
+ The LM77 has two open-drain interrupt outputs.
+ - The first interrupt should be the INT pin (window comparator).
+ - The second (optional) interrupt is the T_CRIT_A pin (critical
+ over-temp limit).
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ temperature-sensor@49 {
+ compatible = "national,lm77";
+ reg = <0x49>;
+ vs-supply = <&vcc_3v3_reg>;
+ interrupt-parent = <&gpio1>;
+
+ /* INT routed to GPIO1_12, T_CRIT_A routed to GPIO1_13 */
+ interrupts = <12 IRQ_TYPE_LEVEL_LOW>,
+ <13 IRQ_TYPE_LEVEL_LOW>;
+ };
+ };
--
2.39.5