Skip to contentSkip to conversation

dt-bindings: arm: fsl: Add an entry for Cloos CBASE board

PATCH Applied Lukasz Majewski 4 participants 7 messages Nov 26 – Nov 27

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v5 1/3 dt-bindings: arm: fsl: Add an entry for Cloos CBASE board

Add an entry for the i.MX8MM Cloos CBASE board.

---
Changes for v2:
- Place cbase in the correct order

Changes for v3:
- Add Acked-by

Changes for v4, v5:
- None

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
index c8290a83205b..0fd10f1a1a58 100644
@@ -1101,6 +1101,7 @@ properties:
           one compatible is needed.
         items:
           - enum:
+              - cloos,imx8mm-cbase         # i.MX8MM Cloos CBASE Board
               - cloos,imx8mm-phg           # i.MX8MM Cloos PHG Board
               - tq,imx8mm-tqma8mqml-mba8mx # TQ-Systems GmbH i.MX8MM TQMa8MQML SOM on MBa8Mx
           - const: tq,imx8mm-tqma8mqml     # TQ-Systems GmbH i.MX8MM TQMa8MQML SOM
Signature · 1 line
2.39.5
#1 lore raw

PATCH v5 2/3 dt-bindings: hwmon: Add National/TI LM77 temperature sensor

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].

---
Changes for v3:
- New patch, as this IC description is added to Documentation/hwmon as a separate entry and not to trivial devices

Changes for v4:
- Add Reviewed-by tag

Changes for v5:
- Add Acked-by tag

---
 .../bindings/hwmon/national,lm77.yaml         | 66 +++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/national,lm77.yaml
Documentation/devicetree/bindings/hwmon/national,lm77.yaml new file +66 -0
new file mode 100644
index 000000000000..fbb6e711342c
@@ -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 <[email protected]>
+
+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>;
+        };
+    };
Signature · 1 line
2.39.5
#2 lore raw

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

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: hwmon: national,lm77: use items list for interrupts property --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: hwmon: national,lm77: use items list for interrupts property
--

commit 1e0de9410961323eaf2b74ef56e166bc063143d4
Author: Lukasz Majewski <[email protected]>

dt-bindings: hwmon: Add National/TI LM77 temperature sensor

This commit adds a Device Tree binding schema for the National Semiconductor / TI LM77 temperature sensor.

Quoted 6 lines
Documentation/devicetree/bindings/hwmon/national,lm77.yaml new file +0 -0
new file mode 100644
index 0000000000000..fbb6e711342ce
@@ -0,0 +1,66 @@

[ ... ]

Documentation/devicetree/bindings/hwmon/national,lm77.yaml line 40

Quoted 8 lines
Documentation/devicetree/bindings/hwmon/national,lm77.yaml new file +8 -0
+  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).

[Severity: Low]
Should interrupts use an items list with per-entry descriptions instead of enumerating the INT and T_CRIT_A outputs in a free-form description?

In DT schemas, properties with fixed positional entries normally describe each entry under items (along with minItems: 1) rather than listing the entries and their optionality in prose with maxItems.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer Applied
#3 lore raw

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

In reply to Lukasz Majewski
Quoted 9 lines · Lukasz Majewski

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].

Applied.

Thanks,
Guenter

#4 lore raw

PATCH v5 3/3 arm64: dts: imx8mm: Add Cloos CBASE support

In reply to Lukasz Majewski

Add support for CBASE board, which incorporates the TQMa8MQML module.

---
Changes for v2:
- Fix the DTS according to the sashiko bot review (gemini/gemini-4-argon) Changes for v3:
- None
Changes for v4:
- Use hex values for switch reg property
- Change subject and commit message according to community feedback Changes for v5:
- Delete flash0 node '/delete-node/'
- Make ./scripts/dtc/dt-check-style --mode=strict run clean

---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../arm64/boot/dts/freescale/imx8mm-cbase.dts | 593 ++++++++++++++++++
 2 files changed, 594 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-cbase.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
index a80cccf34eb5..c14e5ae2e4a0 100644
@@ -121,6 +121,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8dxl-hummingboard-telematics.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8dxp-tqma8xdp-mba8xx.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8dxp-tqma8xdps-mb-smarc-2.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mm-beacon-kit.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mm-cbase.dtb
 
 imx8mm-data-modul-edm-sbc-overlay-cm4-dtbs := \
 	imx8mm-data-modul-edm-sbc.dtb \
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +593 -0

593 lines not on this page · raw message

Signature · 1 line
2.39.5
#5 lore raw
In reply to Lukasz Majewski
Sashiko has finished reviewing this 3-patch series:

Sashiko has finished reviewing this 3-patch series:

- Patches 1 and 3: no issues found.
- Patch 2 ("dt-bindings: hwmon: Add National/TI LM77 temperature..."): 1 potential issue (1 Low)

A detailed review has been sent as a separate reply to patch 2.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]
#6 lore raw
In reply to Lukasz Majewski

From: Frank Li <[email protected]>

Quoted 1 line · Lukasz Majewski

Add an entry for the i.MX8MM Cloos CBASE board.

Applied, thanks!

[1/3] dt-bindings: arm: fsl: Add an entry for Cloos CBASE board

      commit: 07b6d12c7f2fd20424dc6c28596e807aa68999b4
[2/3] dt-bindings: hwmon: Add National/TI LM77 temperature sensor
      commit: 4e2aee441a877bc5688ead92e33d9295ef610826
[3/3] arm64: dts: imx8mm: Add Cloos CBASE support
      commit: 24154ccfd63b6d151ed5557f769865e84b26b964

Best regards,

Signature · 1 line
Frank Li <[email protected]>