Skip to contentSkip to conversation

dt/bindings: Add bindings for JC-42.4 compatible temperature sensors

RFC PATCH In review Guenter Roeck 2 participants 3 messages Jul 2, 2016 – Jul 5, 2016

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

RFC PATCH 1/1 dt/bindings: Add bindings for JC-42.4 compatible temperature sensors

Provide generic bindings for all Jedec JC-42.4 compatible temperature sensor chips.

---
RFC to address:
- Is "jc-42-4" ok to use for JC-42.4 ?
- JC42.4 really specifies an SPD EEPROM with included temperature sensor. Is "jedec,jc42-4" appropriate, or should it rather be something like "jedec,jc-42-4-sensor" ?

 Documentation/devicetree/bindings/hwmon/jc42.txt | 42 ++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/jc42.txt
Documentation/devicetree/bindings/hwmon/jc42.txt new file +42 -0
new file mode 100644
index 000000000000..2bd604a93430
@@ -0,0 +1,42 @@
+Properties for Jedec JC-42.4 compatible temperature sensors
+
+Required properties:
+- compatible: May include a device-specific string consisting of the
+	      manufacturer and the name of the chip. A list of supported
+	      chip names follows.
+	      Must include "jedec,jc-42-4" for any Jedec JC-42.4 compatible
+	      temperature sensor.
+
+	      Supported chip names:
+		adt7408
+		at30ts00
+		at30tse004
+		cat6095
+		cat34ts02
+		max6604
+		mcp9804
+		mcp9805
+		mcp9808
+		mcp98243
+		mcp98244
+		mcp9843
+		se97
+		se98
+		stts2002
+		stts2004
+		stts3000
+		stts424
+		stts424e
+		tse2002
+		tse2004
+		ts3000
+		ts3001
+
+- reg: I2C address
+
+Example:
+
+temp-sensor@1a {
+	compatible = "jedec,jc-42-4";
+	reg = <0x18>;
+};
Signature · 1 line
2.5.0
maintainer
#1 lore raw
Quoted 8 lines · Guenter Roeck

Provide generic bindings for all Jedec JC-42.4 compatible temperature sensor chips.

---
RFC to address:
- Is "jc-42-4" ok to use for JC-42.4 ?
- JC42.4 really specifies an SPD EEPROM with included temperature sensor.

That would be at a different address?

Quoted 2 lines

Is "jedec,jc42-4" appropriate, or should it rather be something like "jedec,jc-42-4-sensor" ?

If yes, then probably the latter. Though I would do "temp" rather than "sensor".

Also, "-42.4" is fine.

Quoted 33 lines
 Documentation/devicetree/bindings/hwmon/jc42.txt | 42 ++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/jc42.txt
Documentation/devicetree/bindings/hwmon/jc42.txt new file +23 -0
new file mode 100644
index 000000000000..2bd604a93430
@@ -0,0 +1,42 @@
+Properties for Jedec JC-42.4 compatible temperature sensors
+
+Required properties:
+- compatible: May include a device-specific string consisting of the
+	      manufacturer and the name of the chip. A list of supported
+	      chip names follows.
+	      Must include "jedec,jc-42-4" for any Jedec JC-42.4 compatible
+	      temperature sensor.
+
+	      Supported chip names:
+		adt7408
+		at30ts00
+		at30tse004
+		cat6095
+		cat34ts02
+		max6604
+		mcp9804
+		mcp9805
+		mcp9808
+		mcp98243
+		mcp98244
+		mcp9843
+		se97

Documentation/devicetree/bindings/hwmon/jc42.txt line 33

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/jc42.txt new file +10 -0
+		se98
+		stts2002
+		stts2004
+		stts3000
+		stts424
+		stts424e
+		tse2002
+		tse2004
+		ts3000
+		ts3001

These are all vendor independent names?

Quoted 12 lines
Documentation/devicetree/bindings/hwmon/jc42.txt new file +9 -0
+
+- reg: I2C address
+
+Example:
+
+temp-sensor@1a {
+	compatible = "jedec,jc-42-4";
+	reg = <0x18>;
+};
Signature · 1 line
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

author maintainer
#2 lore raw
Quoted 4 lines · Rob Herring
Quoted 3 lines · Guenter Roeck

Provide generic bindings for all Jedec JC-42.4 compatible temperature sensor chips.

Quoted 8 lines
Quoted 5 lines

---
RFC to address:
- Is "jc-42-4" ok to use for JC-42.4 ?
- JC42.4 really specifies an SPD EEPROM with included temperature sensor.

That would be at a different address?

Yes. The EEPROM is at address 0x5[0-7], the temperature sensor is at 0x1[8-f].

Quoted 8 lines
Quoted 2 lines

Is "jedec,jc42-4" appropriate, or should it rather be something like "jedec,jc-42-4-sensor" ?

If yes, then probably the latter. Though I would do "temp" rather than "sensor".

Also, "-42.4" is fine.

Ok, I'll use "jedec,jc-42.4-temp".

Quoted 37 lines
Quoted 37 lines
  Documentation/devicetree/bindings/hwmon/jc42.txt | 42 ++++++++++++++++++++++++
  1 file changed, 42 insertions(+)

create mode 100644 Documentation/devicetree/bindings/hwmon/jc42.txt

Documentation/devicetree/bindings/hwmon/jc42.txt new file +27 -0
new file mode 100644
index 000000000000..2bd604a93430
@@ -0,0 +1,42 @@
+Properties for Jedec JC-42.4 compatible temperature sensors
+
+Required properties:
+- compatible: May include a device-specific string consisting of the
+	      manufacturer and the name of the chip. A list of supported
+	      chip names follows.
+	      Must include "jedec,jc-42-4" for any Jedec JC-42.4 compatible
+	      temperature sensor.
+
+	      Supported chip names:
+		adt7408
+		at30ts00
+		at30tse004
+		cat6095
+		cat34ts02
+		max6604
+		mcp9804
+		mcp9805
+		mcp9808
+		mcp98243
+		mcp98244
+		mcp9843
+		se97
+		se98
+		stts2002
+		stts2004
+		stts3000
Quoted 9 lines

Documentation/devicetree/bindings/hwmon/jc42.txt line 33

Quoted 6 lines
Documentation/devicetree/bindings/hwmon/jc42.txt new file +6 -0
+		stts424
+		stts424e
+		tse2002
+		tse2004
+		ts3000
+		ts3001

These are all vendor independent names?

No. se97/se98 would be NXP, for example. I'll add the vendor prefixes.

Thanks,
Guenter

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html