Skip to contentSkip to conversation

dt-bindings: trivial-devices: Add National lm77 temperature sensor

PATCH In review Lukasz Majewski 4 participants 6 messages Nov 10 – Nov 12 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: trivial-devices: Add National lm77 temperature sensor

Add "national,lm77" as compatible for the National (now TI) LM77 digital I2C temperature sensor.

---
 Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
index a8b2b9deade4..9413ee0626f5 100644
@@ -387,6 +387,8 @@ properties:
           - national,lm85c
             # I2C ±0.33°C Accurate, 12-Bit + Sign Temperature Sensor and Thermal Window Comparator
           - national,lm92
+            # Temperature sensor
+          - national,lm77
             # Nuvoton Temperature Sensor
           - nuvoton,w83773g
             # NXP ISP1301 USB transceiver
Signature · 1 line
2.39.5
#1 lore raw
Quoted 13 lines · Lukasz Majewski

Add "national,lm77" as compatible for the National (now TI) LM77 digital I2C temperature sensor.

---
  Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
  1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +0 -0
index a8b2b9deade4..9413ee0626f5 100644

Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 391

Quoted 5 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -387,6 +387,8 @@ properties:
            - national,lm85c
              # I2C ±0.33°C Accurate, 12-Bit + Sign Temperature Sensor and Thermal Window Comparator
            - national,lm92
+            # Temperature sensor
+          - national,lm77

I'd suggest to retain alphabetic order.

Having said that, is there any evidence that this chip is used on a system supporting devicetree ?

Thanks,
Guenter

Quoted 3 lines
Documentation/devicetree/bindings/trivial-devices.yaml +0 -0
              # Nuvoton Temperature Sensor
            - nuvoton,w83773g
              # NXP ISP1301 USB transceiver
#2 lore raw
Quoted 9 lines · Guenter Roeck
Quoted 8 lines · Lukasz Majewski

Add "national,lm77" as compatible for the National (now TI) LM77 digital I2C temperature sensor.

---
  Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
  1 file changed, 2 insertions(+)
Quoted 12 lines

Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 391

Quoted 10 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
index a8b2b9deade4..9413ee0626f5 100644
@@ -387,6 +387,8 @@ properties:
            - national,lm85c
              # I2C ±0.33°C Accurate, 12-Bit + Sign Temperature Sensor and Thermal Window Comparator
            - national,lm92
+            # Temperature sensor
+          - national,lm77

I'd suggest to retain alphabetic order.

pw-bot: changes-requested

Quoted 2 lines

Having said that, is there any evidence that this chip is used on a system supporting devicetree ?

Seemingly yes, the author just submitted a "series" adding a board that uses it. I say series, because it was two independent patches:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Quoted 8 lines

Thanks,
Guenter

Quoted 3 lines
Documentation/devicetree/bindings/trivial-devices.yaml +0 -0
              # Nuvoton Temperature Sensor
            - nuvoton,w83773g
              # NXP ISP1301 USB transceiver
#3 lore raw
In reply to Guenter Roeck

Hi Guenter,

Quoted 9 lines · Lukasz Majewski
Quoted 8 lines

Add "national,lm77" as compatible for the National (now TI) LM77 digital I2C temperature sensor.

---
  Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
  1 file changed, 2 insertions(+)
Quoted 15 lines

Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 391

Quoted 12 lines
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/trivial-devices.yaml index a8b2b9deade4..9413ee0626f5 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -387,6 +387,8 @@ properties:
- national,lm85c
# I2C ±0.33°C Accurate, 12-Bit + Sign Temperature
Sensor and Thermal Window Comparator
- national,lm92

Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
+            # Temperature sensor
+          - national,lm77  

I'd suggest to retain alphabetic order.

The "alphabetic" order for "national," is already "disturbed" in this file - that is why I've put it in the end.

Now, the question - shall I "order" properly all of "national," bindings in a single patch (including the new one)?

Or prepare two patches:
- One to make the alphabetic order for already in-tree properties

and

- Add the "national,lm77" afterwards ?

Quoted 2 lines

Having said that, is there any evidence that this chip is used on a system supporting devicetree ?

Yes, it is required for CBASE board (also send to the devicetree mailing list for review).

Quoted 8 lines

Thanks,
Guenter

Quoted 3 lines

# Nuvoton Temperature Sensor
- nuvoton,w83773g
# NXP ISP1301 USB transceiver

Signature · 10 lines
Best regards,

Lukasz Majewski

--
Nabla Software Engineering GmbH
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Managing Director : Stefano Babic
maintainer
#4 lore raw
Quoted 10 lines · Łukasz Majewski

Hi Guenter,

Quoted 8 lines · Lukasz Majewski
Quoted 7 lines

Add "national,lm77" as compatible for the National (now TI) LM77 digital I2C temperature sensor.

---
  Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
  1 file changed, 2 insertions(+)

Not really a trivial device as there is a T_CRIT_A signal...

Though I guess LM80 and probably others aren't really either.

Quoted 23 lines
Quoted 16 lines

Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 391

Quoted 13 lines
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/trivial-devices.yaml index a8b2b9deade4..9413ee0626f5 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -387,6 +387,8 @@ properties:
- national,lm85c
# I2C ±0.33°C Accurate, 12-Bit + Sign Temperature
Sensor and Thermal Window Comparator
- national,lm92

Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
+            # Temperature sensor
+          - national,lm77  

I'd suggest to retain alphabetic order.

The "alphabetic" order for "national," is already "disturbed" in this file - that is why I've put it in the end.

Now, the question - shall I "order" properly all of "national," bindings in a single patch (including the new one)?

Quoted 6 lines

Or prepare two patches:
- One to make the alphabetic order for already in-tree properties

and

- Add the "national,lm77" afterwards ?

Just don't make things worse. Put it after national,lm95245 and before national,lm80. Then all but the first 2 are in order.

Rob

#5 lore raw

Hi Rob,

Quoted 7 lines · Łukasz Majewski
Quoted 6 lines

Hi Guenter,

Quoted 4 lines · Lukasz Majewski
Quoted 3 lines

Add "national,lm77" as compatible for the National (now TI) LM77 digital I2C temperature sensor.

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
---
  Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
  1 file changed, 2 insertions(+)  

Not really a trivial device as there is a T_CRIT_A signal...

Though I guess LM80 and probably others aren't really either.

Yes...

Quoted 24 lines
Quoted 24 lines
Quoted 15 lines
Quoted 12 lines

diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index a8b2b9deade4..9413ee0626f5 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -387,6 +387,8 @@ properties:
- national,lm85c
# I2C ±0.33°C Accurate, 12-Bit + Sign Temperature
Sensor and Thermal Window Comparator
- national,lm92

Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 391

Quoted 2 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
+            # Temperature sensor
+          - national,lm77    
Quoted 2 lines

I'd suggest to retain alphabetic order.

The "alphabetic" order for "national," is already "disturbed" in this file - that is why I've put it in the end.

Now, the question - shall I "order" properly all of "national," bindings in a single patch (including the new one)?

Quoted 8 lines
Quoted 6 lines

Or prepare two patches:
- One to make the alphabetic order for already in-tree properties

and

- Add the "national,lm77" afterwards ?

Just don't make things worse.

Ok. I will :-)

Quoted 3 lines

Put it after national,lm95245 and
before national,lm80. Then all but the first 2 are in order.

+1

Quoted 1 line

Rob

Signature · 10 lines
Best regards,

Lukasz Majewski

--
Nabla Software Engineering GmbH
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Managing Director : Stefano Babic