devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description
@ 2024-06-16 19:40 Stanislav Jakubek
  2024-06-16 20:43 ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: Stanislav Jakubek @ 2024-06-16 19:40 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-hwmon, devicetree, linux-kernel

TMP108 is powered by its V+ supply, document it.
While at it, add a short description with a link to its datasheets.

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
Not entirely sure of the "v+-supply" name, but the datasheet only ever
refers to it as "V+" or simply as the "supply voltage".
Only other name I've seen is in the schematic for the msm8226-based
motorola-falcon smartphone, where it's called "V_POS".

 .../devicetree/bindings/hwmon/ti,tmp108.yaml          | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
index 8b5307c875ff..71d3b51d24d1 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
@@ -9,6 +9,14 @@ title: TMP108 temperature sensor
 maintainers:
   - Krzysztof Kozlowski <krzk@kernel.org>
 
+description: |
+  The TMP108 is a digital-output temperature sensor with a
+  dynamically-programmable limit window, and under- and overtemperature
+  alert functions.
+
+  Datasheets:
+    https://www.ti.com/product/TMP108
+
 properties:
   compatible:
     enum:
@@ -24,6 +32,8 @@ properties:
   "#thermal-sensor-cells":
     const: 0
 
+  v+-supply: true
+
 required:
   - compatible
   - reg
@@ -45,6 +55,7 @@ examples:
             interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
             pinctrl-names = "default";
             pinctrl-0 = <&tmp_alrt>;
+            v+-supply = <&supply>;
             #thermal-sensor-cells = <0>;
         };
     };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description
  2024-06-16 19:40 [PATCH] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description Stanislav Jakubek
@ 2024-06-16 20:43 ` Guenter Roeck
  2024-06-17  5:09   ` Stanislav Jakubek
  0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2024-06-16 20:43 UTC (permalink / raw)
  To: Stanislav Jakubek, Jean Delvare, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-hwmon, devicetree, linux-kernel

On 6/16/24 12:40, Stanislav Jakubek wrote:
> TMP108 is powered by its V+ supply, document it.
> While at it, add a short description with a link to its datasheets.
> 
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> ---
> Not entirely sure of the "v+-supply" name, but the datasheet only ever
> refers to it as "V+" or simply as the "supply voltage".
> Only other name I've seen is in the schematic for the msm8226-based
> motorola-falcon smartphone, where it's called "V_POS".
> 

Guess one has to praise the ability of datasheet writers to come up
with different names.

The datasheet for tmp117 also uses the V+ term, yet the supply name
is "vcc-supply". I would personally very much prefer to stick with that,
but that is just my personal opinion.

Guenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description
  2024-06-16 20:43 ` Guenter Roeck
@ 2024-06-17  5:09   ` Stanislav Jakubek
  2024-06-17  6:16     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Stanislav Jakubek @ 2024-06-17  5:09 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-hwmon, devicetree, linux-kernel

On Sun, Jun 16, 2024 at 01:43:08PM -0700, Guenter Roeck wrote:
> On 6/16/24 12:40, Stanislav Jakubek wrote:
> > TMP108 is powered by its V+ supply, document it.
> > While at it, add a short description with a link to its datasheets.
> > 
> > Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> > ---
> > Not entirely sure of the "v+-supply" name, but the datasheet only ever
> > refers to it as "V+" or simply as the "supply voltage".
> > Only other name I've seen is in the schematic for the msm8226-based
> > motorola-falcon smartphone, where it's called "V_POS".
> > 
> 
> Guess one has to praise the ability of datasheet writers to come up
> with different names.
> 
> The datasheet for tmp117 also uses the V+ term, yet the supply name
> is "vcc-supply". I would personally very much prefer to stick with that,
> but that is just my personal opinion.
> 
> Guenter
> 

I'm okay with that. I'll keep this for a few days to see if anyone else
has anything to say, then I'll send a V2 with it changed to vcc.

Stanislav

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description
  2024-06-17  5:09   ` Stanislav Jakubek
@ 2024-06-17  6:16     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-17  6:16 UTC (permalink / raw)
  To: Stanislav Jakubek, Guenter Roeck
  Cc: Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-hwmon, devicetree, linux-kernel

On 17/06/2024 07:09, Stanislav Jakubek wrote:
> On Sun, Jun 16, 2024 at 01:43:08PM -0700, Guenter Roeck wrote:
>> On 6/16/24 12:40, Stanislav Jakubek wrote:
>>> TMP108 is powered by its V+ supply, document it.
>>> While at it, add a short description with a link to its datasheets.
>>>
>>> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
>>> ---
>>> Not entirely sure of the "v+-supply" name, but the datasheet only ever
>>> refers to it as "V+" or simply as the "supply voltage".
>>> Only other name I've seen is in the schematic for the msm8226-based
>>> motorola-falcon smartphone, where it's called "V_POS".
>>>
>>
>> Guess one has to praise the ability of datasheet writers to come up
>> with different names.
>>
>> The datasheet for tmp117 also uses the V+ term, yet the supply name
>> is "vcc-supply". I would personally very much prefer to stick with that,
>> but that is just my personal opinion.
>>
>> Guenter
>>
> 
> I'm okay with that. I'll keep this for a few days to see if anyone else
> has anything to say, then I'll send a V2 with it changed to vcc.

vcc. Anyway + is not an expected character.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-17  6:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-16 19:40 [PATCH] dt-bindings: hwmon: ti,tmp108: document V+ supply, add short description Stanislav Jakubek
2024-06-16 20:43 ` Guenter Roeck
2024-06-17  5:09   ` Stanislav Jakubek
2024-06-17  6:16     ` Krzysztof Kozlowski

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