Skip to contentSkip to conversation

hwmon: ntc_thermistor: prepose vendor prefix change

PATCH Superseded Naveen Krishna Chatradhi 5 participants 15 messages Jun 24, 2014 – Jun 25, 2014

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover hwmon: ntc_thermistor: prepose vendor prefix change

As Murata is the manufacturer of the NTC (Negative Temperature coefficient) based Thermistors. ntc_thermistor driver extensively used the prefix "ntc". But, vendor-prefix should be "murata" instead of "ntc".

This patchset
1. Updates the vendor-prefix, DT bindings and Documentation, where ever necessary.
2. Adds thermistor nodes to Exynos5420 and Exynos5800 based boards.

Patches:
1/4. devicetree: bindings: Document murata vendor prefix
Adds the vendor prefix "murata" to vendor-prefixes.txt.
2/4. hwmon: ntc_thermistor: Use the manufacturer name properly
Updates the driver, Kconfig, device tree bindings and Documentation with the Manufacturer/vendor information.
3/4. ARM: DTS: use new compatible string as per the documentation
Updates the device node in Exynos4412 based Trats2 board with the new device tree bindings.
4/4. ARM: DTS: Add NTC thermistor nodes as child nodes to ADC
Adds Thermistor nodes to Exynos5420 and Exynos5800 based boards.

This patchset
Naveen Krishna Chatradhi (4):
devicetree: bindings: Document murata vendor prefix
hwmon: ntc_thermistor: Use the manufacturer name properly
ARM: DTS: Add NTC thermistor nodes as child nodes to ADC
ARM: DTS: use new compatible string as per the documentation

 .../devicetree/bindings/arm/samsung/exynos-adc.txt |    2 +-
 .../devicetree/bindings/hwmon/ntc_thermistor.txt   |   12 ++++----
 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 Documentation/hwmon/ntc_thermistor                 |    8 ++---
 arch/arm/boot/dts/exynos4412-trats2.dts            |    4 +--
 arch/arm/boot/dts/exynos5420-peach-pit.dts         |   32 ++++++++++++++++++++
 drivers/hwmon/Kconfig                              |    5 +--
 drivers/hwmon/ntc_thermistor.c                     |   12 ++++----
 8 files changed, 55 insertions(+), 21 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/4 devicetree: bindings: Document murata vendor prefix

Add Murata Manufacturing Co., Ltd. to the list of device tree vendor prefixes.

Murata manufactures NTC (Negative Temperature Coefficient) based Thermistors for small scale applications like Mobiles and PDAs.

---
This changes is needed for the following reasons

1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt Thus, giving an error when checked with scripts/checkpatch.pl
2. Murata Manufacturing Co., Ltd. Is the vendor for the NTC (Negative Temperature Coefficient) based thermistors. Hence, "murata" is the right vendor-prefix, Not "ntc".
3. NTC is a technology used, But the prefix "ntc" is wrongly and heavily used in the driver and the documentation.

 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 4d7f375..a39b7d7 100644
@@ -84,6 +84,7 @@ moxa	Moxa
 mpl	MPL AG
 mundoreader	Mundo Reader S.L.
 mxicy	Macronix International Co., Ltd.
+murata	Murata Manufacturing Co., Ltd.
 national	National Semiconductor
 neonode		Neonode Inc.
 netgear	NETGEAR
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/4 devicetree: bindings: Document murata vendor prefix

Quoted 27 lines · Naveen Krishna Chatradhi

Add Murata Manufacturing Co., Ltd. to the list of device tree vendor prefixes.

Murata manufactures NTC (Negative Temperature Coefficient) based Thermistors for small scale applications like Mobiles and PDAs.

---
This changes is needed for the following reasons

1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt Thus, giving an error when checked with scripts/checkpatch.pl
2. Murata Manufacturing Co., Ltd. Is the vendor for the NTC (Negative Temperature Coefficient) based thermistors. Hence, "murata" is the right vendor-prefix, Not "ntc".
3. NTC is a technology used, But the prefix "ntc" is wrongly and heavily used in the driver and the documentation.

 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
index 4d7f375..a39b7d7 100644

Documentation/devicetree/bindings/vendor-prefixes.txt moxa Moxa · line 87

Quoted 4 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -84,6 +84,7 @@ moxa	Moxa
 mpl	MPL AG
 mundoreader	Mundo Reader S.L.
 mxicy	Macronix International Co., Ltd.
+murata	Murata Manufacturing Co., Ltd.

Nit: please keep this list in alphabetical order.

Otherwise, this looks fine to me. With the order fixed:

Mark.

Quoted 11 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
 national	National Semiconductor
 neonode		Neonode Inc.
 netgear	NETGEAR
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 1/4 devicetree: bindings: Document murata vendor prefix

Hello Mark,

Quoted 23 lines · Mark Rutland
Quoted 22 lines · Naveen Krishna Chatradhi

Add Murata Manufacturing Co., Ltd. to the list of device tree vendor prefixes.

Murata manufactures NTC (Negative Temperature Coefficient) based Thermistors for small scale applications like Mobiles and PDAs.

---
This changes is needed for the following reasons

1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt Thus, giving an error when checked with scripts/checkpatch.pl
2. Murata Manufacturing Co., Ltd. Is the vendor for the NTC (Negative Temperature Coefficient) based thermistors. Hence, "murata" is the right vendor-prefix, Not "ntc".
3. NTC is a technology used, But the prefix "ntc" is wrongly and heavily used in the driver and the documentation.

 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

Documentation/devicetree/bindings/vendor-prefixes.txt moxa Moxa · line 87

Quoted 9 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 4d7f375..a39b7d7 100644
@@ -84,6 +84,7 @@ moxa        Moxa
 mpl  MPL AG
 mundoreader  Mundo Reader S.L.
 mxicy        Macronix International Co., Ltd.
+murata       Murata Manufacturing Co., Ltd.

Nit: please keep this list in alphabetical order.

Sure, Will rearrange and re-spin.

Quoted 4 lines

Otherwise, this looks fine to me. With the order fixed:

Thanks

Quoted 14 lines

Mark.

Quoted 11 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -1
 national     National Semiconductor
 neonode              Neonode Inc.
 netgear      NETGEAR
--

1.7.9.5

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

Signature · 2 lines
Shine bright,
(: Nav :)
#4 lore raw

PATCH 2/4 hwmon: ntc_thermistor: Use the manufacturer name properly

In reply to Naveen Krishna Chatradhi

Murata Manufacturing Co., Ltd is the vendor for NTC (Negative Temperature coefficient) based Thermistors. But, the driver extensively uses "NTC" as the vendor name.

This patch corrects the vendor name also updates the compatibility strings according to the vendor-prefix.txt

---
This changes is needed for the following reasons

1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt Thus, giving an error when checked with scripts/checkpatch.pl
2. Murata Manufacturing Co., Ltd. Is the vendor for the NTC (Negative Temperature Coefficient) based thermistors. Hence, "murata" is the right vendor-prefix, Not "ntc".
3. NTC is a technology used, But the prefix "ntc" is wrongly and heavily used in the driver and the documentation.

 .../devicetree/bindings/arm/samsung/exynos-adc.txt |    2 +-
 .../devicetree/bindings/hwmon/ntc_thermistor.txt   |   12 ++++++------
 Documentation/hwmon/ntc_thermistor                 |    8 ++++----
 drivers/hwmon/Kconfig                              |    5 +++--
 drivers/hwmon/ntc_thermistor.c                     |   12 ++++++------
 5 files changed, 20 insertions(+), 19 deletions(-)
Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt +1 -1
index 5d49f2b..832fe8c 100644
@@ -48,7 +48,7 @@ adc at 12D10000 {
 
 	/* NTC thermistor is a hwmon device */
 	ncp15wb473 at 0 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;
 		pullup-ohm = <47000>;
 		pulldown-ohm = <0>;
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +6 -6
index c6f6667..4e9f344 100644
@@ -3,11 +3,11 @@ NTC Thermistor hwmon sensors
 
 Requires node properties:
 - "compatible" value : one of
-	"ntc,ncp15wb473"
-	"ntc,ncp18wb473"
-	"ntc,ncp21wb473"
-	"ntc,ncp03wb473"
-	"ntc,ncp15wl333"
+	"murata,ncp15wb473"
+	"murata,ncp18wb473"
+	"murata,ncp21wb473"
+	"murata,ncp03wb473"
+	"murata,ncp15wl333"
 - "pullup-uv"	Pull up voltage in micro volts
 - "pullup-ohm"	Pull up resistor value in ohms
 - "pulldown-ohm" Pull down resistor value in ohms
@@ -21,7 +21,7 @@ Read more about iio bindings at
 
 Example:
 	ncp15wb473 at 0 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;
 		pullup-ohm = <47000>;
 		pulldown-ohm = <0>;
Documentation/hwmon/ntc_thermistor +4 -4
index 3bfda94..057b770 100644
@@ -1,7 +1,7 @@
 Kernel driver ntc_thermistor
 =================
 
-Supported thermistors:
+Supported thermistors from Murata:
 * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333
   Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333'
   Datasheet: Publicly available at Murata
@@ -15,9 +15,9 @@ Authors:
 Description
 -----------
 
-The NTC thermistor is a simple thermistor that requires users to provide the
-resistance and lookup the corresponding compensation table to get the
-temperature input.
+The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor
+that requires users to provide the resistance and lookup the corresponding
+compensation table to get the temperature input.
 
 The NTC driver provides lookup tables with a linear approximation function
 and four circuit models with an option not to use any of the four models.
drivers/hwmon/Kconfig +3 -2
index 08531a1..154851b 100644
@@ -1052,7 +1052,7 @@ config SENSORS_PC87427
 	  will be called pc87427.
 
 config SENSORS_NTC_THERMISTOR
-	tristate "NTC thermistor support"
+	tristate "NTC based thermistor support from Murata"
 	depends on !OF || IIO=n || IIO
 	help
 	  This driver supports NTC thermistors sensor reading and its
@@ -1060,7 +1060,8 @@ config SENSORS_NTC_THERMISTOR
 	  send notifications about the temperature.
 
 	  Currently, this driver supports
-	  NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333.
+	  NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333
+	  from Murata.
 
 	  This driver can also be built as a module.  If so, the module
 	  will be called ntc-thermistor.
drivers/hwmon/ntc_thermistor.c +6 -6
index e76feb86..6c38fc8 100644
@@ -163,15 +163,15 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata)
 }
 
 static const struct of_device_id ntc_match[] = {
-	{ .compatible = "ntc,ncp15wb473",
+	{ .compatible = "murata,ncp15wb473",
 		.data = &ntc_thermistor_id[0] },
-	{ .compatible = "ntc,ncp18wb473",
+	{ .compatible = "murata,ncp18wb473",
 		.data = &ntc_thermistor_id[1] },
-	{ .compatible = "ntc,ncp21wb473",
+	{ .compatible = "murata,ncp21wb473",
 		.data = &ntc_thermistor_id[2] },
-	{ .compatible = "ntc,ncp03wb473",
+	{ .compatible = "murata,ncp03wb473",
 		.data = &ntc_thermistor_id[3] },
-	{ .compatible = "ntc,ncp15wl333",
+	{ .compatible = "murata,ncp15wl333",
 		.data = &ntc_thermistor_id[4] },
 	{ },
 };
@@ -534,7 +534,7 @@ static struct platform_driver ntc_thermistor_driver = {
 
 module_platform_driver(ntc_thermistor_driver);
 
-MODULE_DESCRIPTION("NTC Thermistor Driver");
+MODULE_DESCRIPTION("NTC based Thermistor Driver from Murata");
 MODULE_AUTHOR("MyungJoo Ham <[email protected]>");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:ntc-thermistor");
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH 2/4 hwmon: ntc_thermistor: Use the manufacturer name properly

Quoted 48 lines · Naveen Krishna Chatradhi

Murata Manufacturing Co., Ltd is the vendor for NTC (Negative Temperature coefficient) based Thermistors. But, the driver extensively uses "NTC" as the vendor name.

This patch corrects the vendor name also updates the compatibility strings according to the vendor-prefix.txt

---
This changes is needed for the following reasons

1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt Thus, giving an error when checked with scripts/checkpatch.pl
2. Murata Manufacturing Co., Ltd. Is the vendor for the NTC (Negative Temperature Coefficient) based thermistors. Hence, "murata" is the right vendor-prefix, Not "ntc".
3. NTC is a technology used, But the prefix "ntc" is wrongly and heavily used in the driver and the documentation.

 .../devicetree/bindings/arm/samsung/exynos-adc.txt |    2 +-
 .../devicetree/bindings/hwmon/ntc_thermistor.txt   |   12 ++++++------
 Documentation/hwmon/ntc_thermistor                 |    8 ++++----
 drivers/hwmon/Kconfig                              |    5 +++--
 drivers/hwmon/ntc_thermistor.c                     |   12 ++++++------
 5 files changed, 20 insertions(+), 19 deletions(-)
Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt +1 -1
index 5d49f2b..832fe8c 100644
@@ -48,7 +48,7 @@ adc at 12D10000 {
 
 	/* NTC thermistor is a hwmon device */
 	ncp15wb473 at 0 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;
 		pullup-ohm = <47000>;
 		pulldown-ohm = <0>;
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +0 -0
index c6f6667..4e9f344 100644
@@ -3,11 +3,11 @@ NTC Thermistor hwmon sensors
 
 Requires node properties:
 - "compatible" value : one of

Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt NTC Thermistor hwmon sensors · line 10

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +5 -5
-	"ntc,ncp15wb473"
-	"ntc,ncp18wb473"
-	"ntc,ncp21wb473"
-	"ntc,ncp03wb473"
-	"ntc,ncp15wl333"
+	"murata,ncp15wb473"
+	"murata,ncp18wb473"
+	"murata,ncp21wb473"
+	"murata,ncp03wb473"
+	"murata,ncp15wl333"

So we're outright changing these rather than deprecating the existing forms?

In general we've pushed back on changes like this, and requested that the old strings are kept in both documentation and code as deprecated forms.

Can you guarantee that changing this is not going to stop someone's board worknig properly? I suspect not.

Mark.

Quoted 103 lines
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +1 -1
 - "pullup-uv"	Pull up voltage in micro volts
 - "pullup-ohm"	Pull up resistor value in ohms
 - "pulldown-ohm" Pull down resistor value in ohms
@@ -21,7 +21,7 @@ Read more about iio bindings at
 
 Example:
 	ncp15wb473 at 0 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;
 		pullup-ohm = <47000>;
 		pulldown-ohm = <0>;
Documentation/hwmon/ntc_thermistor +4 -4
index 3bfda94..057b770 100644
@@ -1,7 +1,7 @@
 Kernel driver ntc_thermistor
 =================
 
-Supported thermistors:
+Supported thermistors from Murata:
 * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333
   Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333'
   Datasheet: Publicly available at Murata
@@ -15,9 +15,9 @@ Authors:
 Description
 -----------
 
-The NTC thermistor is a simple thermistor that requires users to provide the
-resistance and lookup the corresponding compensation table to get the
-temperature input.
+The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor
+that requires users to provide the resistance and lookup the corresponding
+compensation table to get the temperature input.
 
 The NTC driver provides lookup tables with a linear approximation function
 and four circuit models with an option not to use any of the four models.
drivers/hwmon/Kconfig +3 -2
index 08531a1..154851b 100644
@@ -1052,7 +1052,7 @@ config SENSORS_PC87427
 	  will be called pc87427.
 
 config SENSORS_NTC_THERMISTOR
-	tristate "NTC thermistor support"
+	tristate "NTC based thermistor support from Murata"
 	depends on !OF || IIO=n || IIO
 	help
 	  This driver supports NTC thermistors sensor reading and its
@@ -1060,7 +1060,8 @@ config SENSORS_NTC_THERMISTOR
 	  send notifications about the temperature.
 
 	  Currently, this driver supports
-	  NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333.
+	  NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333
+	  from Murata.
 
 	  This driver can also be built as a module.  If so, the module
 	  will be called ntc-thermistor.
drivers/hwmon/ntc_thermistor.c +6 -6
index e76feb86..6c38fc8 100644
@@ -163,15 +163,15 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata)
 }
 
 static const struct of_device_id ntc_match[] = {
-	{ .compatible = "ntc,ncp15wb473",
+	{ .compatible = "murata,ncp15wb473",
 		.data = &ntc_thermistor_id[0] },
-	{ .compatible = "ntc,ncp18wb473",
+	{ .compatible = "murata,ncp18wb473",
 		.data = &ntc_thermistor_id[1] },
-	{ .compatible = "ntc,ncp21wb473",
+	{ .compatible = "murata,ncp21wb473",
 		.data = &ntc_thermistor_id[2] },
-	{ .compatible = "ntc,ncp03wb473",
+	{ .compatible = "murata,ncp03wb473",
 		.data = &ntc_thermistor_id[3] },
-	{ .compatible = "ntc,ncp15wl333",
+	{ .compatible = "murata,ncp15wl333",
 		.data = &ntc_thermistor_id[4] },
 	{ },
 };
@@ -534,7 +534,7 @@ static struct platform_driver ntc_thermistor_driver = {
 
 module_platform_driver(ntc_thermistor_driver);
 
-MODULE_DESCRIPTION("NTC Thermistor Driver");
+MODULE_DESCRIPTION("NTC based Thermistor Driver from Murata");
 MODULE_AUTHOR("MyungJoo Ham <[email protected]>");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:ntc-thermistor");
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw

PATCH 2/4 hwmon: ntc_thermistor: Use the manufacturer name properly

Hello Mark,

Quoted 63 lines · Mark Rutland
Quoted 48 lines · Naveen Krishna Chatradhi

Murata Manufacturing Co., Ltd is the vendor for NTC (Negative Temperature coefficient) based Thermistors. But, the driver extensively uses "NTC" as the vendor name.

This patch corrects the vendor name also updates the compatibility strings according to the vendor-prefix.txt

---
This changes is needed for the following reasons

1. The vendor prefix "ntc" is not defined in vendor-prefixes.txt Thus, giving an error when checked with scripts/checkpatch.pl
2. Murata Manufacturing Co., Ltd. Is the vendor for the NTC (Negative Temperature Coefficient) based thermistors. Hence, "murata" is the right vendor-prefix, Not "ntc".
3. NTC is a technology used, But the prefix "ntc" is wrongly and heavily used in the driver and the documentation.

 .../devicetree/bindings/arm/samsung/exynos-adc.txt |    2 +-
 .../devicetree/bindings/hwmon/ntc_thermistor.txt   |   12 ++++++------
 Documentation/hwmon/ntc_thermistor                 |    8 ++++----
 drivers/hwmon/Kconfig                              |    5 +++--
 drivers/hwmon/ntc_thermistor.c                     |   12 ++++++------
 5 files changed, 20 insertions(+), 19 deletions(-)
Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt +1 -1
index 5d49f2b..832fe8c 100644
@@ -48,7 +48,7 @@ adc at 12D10000 {
 
      /* NTC thermistor is a hwmon device */
      ncp15wb473 at 0 {
-             compatible = "ntc,ncp15wb473";
+             compatible = "murata,ncp15wb473";
              pullup-uv = <1800000>;
              pullup-ohm = <47000>;
              pulldown-ohm = <0>;
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +0 -0
index c6f6667..4e9f344 100644
@@ -3,11 +3,11 @@ NTC Thermistor hwmon sensors
 
 Requires node properties:
 - "compatible" value : one of

Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt NTC Thermistor hwmon sensors · line 10

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +5 -5
-     "ntc,ncp15wb473"
-     "ntc,ncp18wb473"
-     "ntc,ncp21wb473"
-     "ntc,ncp03wb473"
-     "ntc,ncp15wl333"
+     "murata,ncp15wb473"
+     "murata,ncp18wb473"
+     "murata,ncp21wb473"
+     "murata,ncp03wb473"
+     "murata,ncp15wl333"

So we're outright changing these rather than deprecating the existing forms?

Quoted 3 lines

In general we've pushed back on changes like this, and requested that the old strings are kept in both documentation and code as deprecated forms.

Should have kept the old bindings as deprecated.

Quoted 3 lines

Can you guarantee that changing this is not going to stop someone's board worknig properly? I suspect not.

As a result of this change, Exynos4412-Trats2 board is broken. Will re-spin with the deprecated binding.

Quoted 106 lines

Mark.

Quoted 103 lines
Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +1 -1
 - "pullup-uv"        Pull up voltage in micro volts
 - "pullup-ohm"       Pull up resistor value in ohms
 - "pulldown-ohm" Pull down resistor value in ohms
@@ -21,7 +21,7 @@ Read more about iio bindings at
 
 Example:
      ncp15wb473 at 0 {
-             compatible = "ntc,ncp15wb473";
+             compatible = "murata,ncp15wb473";
              pullup-uv = <1800000>;
              pullup-ohm = <47000>;
              pulldown-ohm = <0>;
Documentation/hwmon/ntc_thermistor +4 -4
index 3bfda94..057b770 100644
@@ -1,7 +1,7 @@
 Kernel driver ntc_thermistor
 =================
 
-Supported thermistors:
+Supported thermistors from Murata:
 * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333
   Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333'
   Datasheet: Publicly available at Murata
@@ -15,9 +15,9 @@ Authors:
 Description
 -----------
 
-The NTC thermistor is a simple thermistor that requires users to provide the
-resistance and lookup the corresponding compensation table to get the
-temperature input.
+The NTC (Negative Temperature Coefficient) thermistor is a simple thermistor
+that requires users to provide the resistance and lookup the corresponding
+compensation table to get the temperature input.
 
 The NTC driver provides lookup tables with a linear approximation function
 and four circuit models with an option not to use any of the four models.
drivers/hwmon/Kconfig +3 -2
index 08531a1..154851b 100644
@@ -1052,7 +1052,7 @@ config SENSORS_PC87427
        will be called pc87427.
 
 config SENSORS_NTC_THERMISTOR
-     tristate "NTC thermistor support"
+     tristate "NTC based thermistor support from Murata"
      depends on !OF || IIO=n || IIO
      help
        This driver supports NTC thermistors sensor reading and its
@@ -1060,7 +1060,8 @@ config SENSORS_NTC_THERMISTOR
        send notifications about the temperature.
 
        Currently, this driver supports
-       NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333.
+       NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, and NCP15WL333
+       from Murata.
 
        This driver can also be built as a module.  If so, the module
        will be called ntc-thermistor.
drivers/hwmon/ntc_thermistor.c +6 -7
index e76feb86..6c38fc8 100644
@@ -163,15 +163,15 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata)
 }
 
 static const struct of_device_id ntc_match[] = {
-     { .compatible = "ntc,ncp15wb473",
+     { .compatible = "murata,ncp15wb473",
              .data = &ntc_thermistor_id[0] },
-     { .compatible = "ntc,ncp18wb473",
+     { .compatible = "murata,ncp18wb473",
              .data = &ntc_thermistor_id[1] },
-     { .compatible = "ntc,ncp21wb473",
+     { .compatible = "murata,ncp21wb473",
              .data = &ntc_thermistor_id[2] },
-     { .compatible = "ntc,ncp03wb473",
+     { .compatible = "murata,ncp03wb473",
              .data = &ntc_thermistor_id[3] },
-     { .compatible = "ntc,ncp15wl333",
+     { .compatible = "murata,ncp15wl333",
              .data = &ntc_thermistor_id[4] },
      { },
 };
@@ -534,7 +534,7 @@ static struct platform_driver ntc_thermistor_driver = {
 
 module_platform_driver(ntc_thermistor_driver);
 
-MODULE_DESCRIPTION("NTC Thermistor Driver");
+MODULE_DESCRIPTION("NTC based Thermistor Driver from Murata");
 MODULE_AUTHOR("MyungJoo Ham <[email protected]>");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:ntc-thermistor");
--

1.7.9.5

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

Signature · 2 lines
Shine bright,
(: Nav :)
#7 lore raw

PATCH 3/4 ARM: DTS: use new compatible string as per the documentation

In reply to Naveen Krishna Chatradhi

As Murata is the Manufactures the NTC thermistors. The vendor name in the compatibility is preposed to change to "murata, ncpXXX"

This patch uses the new compatibility string in exynos4412 based Trats2 board.

---
1. Updates the thermistor node in Exynos4412 based Trats2 dts using the new DT bindings for NTC thermistors updated with vendor-prefix

 arch/arm/boot/dts/exynos4412-trats2.dts |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/exynos4412-trats2.dts +2 -2
index 11967f4..d35755a 100644
@@ -771,7 +771,7 @@
 	};
 
 	thermistor-ap at 0 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
 		pullup-ohm = <100000>;	 /* 100K */
 		pulldown-ohm = <100000>; /* 100K */
@@ -779,7 +779,7 @@
 	};
 
 	thermistor-battery at 1 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
 		pullup-ohm = <100000>;	 /* 100K */
 		pulldown-ohm = <100000>; /* 100K */
Signature · 1 line
1.7.9.5
#8 lore raw

PATCH 3/4 ARM: DTS: use new compatible string as per the documentation

Quoted 20 lines · Naveen Krishna Chatradhi

As Murata is the Manufactures the NTC thermistors. The vendor name in the compatibility is preposed to change to "murata, ncpXXX"

This patch uses the new compatibility string in exynos4412 based Trats2 board.

---
1. Updates the thermistor node in Exynos4412 based Trats2 dts using the new DT bindings for NTC thermistors updated with vendor-prefix

 arch/arm/boot/dts/exynos4412-trats2.dts |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/exynos4412-trats2.dts +0 -0
index 11967f4..d35755a 100644

arch/arm/boot/dts/exynos4412-trats2.dts line 774

Quoted 5 lines
arch/arm/boot/dts/exynos4412-trats2.dts +1 -1
@@ -771,7 +771,7 @@
 	};
 
 	thermistor-ap at 0 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";

So the previous patch woul have broken this board?

Mark.

Quoted 20 lines
arch/arm/boot/dts/exynos4412-trats2.dts +1 -1
 		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
 		pullup-ohm = <100000>;	 /* 100K */
 		pulldown-ohm = <100000>; /* 100K */
@@ -779,7 +779,7 @@
 	};
 
 	thermistor-battery at 1 {
-		compatible = "ntc,ncp15wb473";
+		compatible = "murata,ncp15wb473";
 		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
 		pullup-ohm = <100000>;	 /* 100K */
 		pulldown-ohm = <100000>; /* 100K */
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

PATCH 3/4 ARM: DTS: use new compatible string as per the documentation

Hello Mark,

Quoted 23 lines · Mark Rutland
Quoted 22 lines · Naveen Krishna Chatradhi

As Murata is the Manufactures the NTC thermistors. The vendor name in the compatibility is preposed to change to "murata, ncpXXX"

This patch uses the new compatibility string in exynos4412 based Trats2 board.

---
1. Updates the thermistor node in Exynos4412 based Trats2 dts using the new DT bindings for NTC thermistors updated with vendor-prefix

 arch/arm/boot/dts/exynos4412-trats2.dts |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/exynos4412-trats2.dts +0 -0
index 11967f4..d35755a 100644
@@ -771,7 +771,7 @@
      };
 
Quoted 5 lines

arch/arm/boot/dts/exynos4412-trats2.dts line 774

Quoted 3 lines
arch/arm/boot/dts/exynos4412-trats2.dts +1 -1
      thermistor-ap at 0 {
-             compatible = "ntc,ncp15wb473";
+             compatible = "murata,ncp15wb473";

So the previous patch woul have broken this board?

Will keep the deprecated binding. But, still change here. As, this is the only board currently using the NTC thermistors.

Quoted 23 lines

Mark.

Quoted 20 lines
arch/arm/boot/dts/exynos4412-trats2.dts +1 -2
              pullup-uv = <1800000>;   /* VCC_1.8V_AP */
              pullup-ohm = <100000>;   /* 100K */
              pulldown-ohm = <100000>; /* 100K */
@@ -779,7 +779,7 @@
      };
 
      thermistor-battery at 1 {
-             compatible = "ntc,ncp15wb473";
+             compatible = "murata,ncp15wb473";
              pullup-uv = <1800000>;   /* VCC_1.8V_AP */
              pullup-ohm = <100000>;   /* 100K */
              pulldown-ohm = <100000>; /* 100K */
--

1.7.9.5

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

Signature · 2 lines
Shine bright,
(: Nav :)
#10 lore raw

PATCH 4/4 ARM: DTS: Add NTC thermistor nodes as child nodes to ADC

In reply to Naveen Krishna Chatradhi

Exynos5420 based Peach PIT and Exynos5800 based PI boards have 4 NTC thermistors to measure temperatures at various points on the board.

IIO based ADC becomes the parent and NTC thermistors are the childs, via the HWMON interface.

---
This patch needs
1. MAX77802 PMIC device tree nodes (for ldo9)
https://www.mail-archive.com/devicetree at vger.kernel.org/msg31430.html
2. Uses the DT documentation for NTC thermistors updated with vendor-prefix

 arch/arm/boot/dts/exynos5420-peach-pit.dts |   32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm/boot/dts/exynos5420-peach-pit.dts +32 -0
index b96a66a..852a220 100644
@@ -751,4 +751,36 @@
 	timeout-sec = <32>;
 };
 
+&adc {
+	vdd-supply = <&ldo9_reg>;
+	ncp15wb473 at 3 {
+		compatible = "murata,ncp15wb473";
+		pullup-uv = <1800000>;
+		pullup-ohm = <47000>;
+		pulldown-ohm = <0>;
+		io-channels = <&adc 3>;
+	};
+	ncp15wb473 at 4 {
+		compatible = "murata,ncp15wb473";
+		pullup-uv = <1800000>;
+		pullup-ohm = <47000>;
+		pulldown-ohm = <0>;
+		io-channels = <&adc 4>;
+	};
+	ncp15wb473 at 5 {
+		compatible = "murata,ncp15wb473";
+		pullup-uv = <1800000>;
+		pullup-ohm = <47000>;
+		pulldown-ohm = <0>;
+		io-channels = <&adc 5>;
+	};
+	ncp15wb473 at 6 {
+		compatible = "murata,ncp15wb473";
+		pullup-uv = <1800000>;
+		pullup-ohm = <47000>;
+		pulldown-ohm = <0>;
+		io-channels = <&adc 6>;
+	};
+};
+
 #include "cros-ec-keyboard.dtsi"
Signature · 1 line
1.7.9.5
#11 lore raw

PATCH 4/4 ARM: DTS: Add NTC thermistor nodes as child nodes to ADC

Naveen,

Quoted 9 lines · Naveen Krishna Chatradhi

Exynos5420 based Peach PIT and Exynos5800 based PI boards have 4 NTC thermistors to measure temperatures at various points on the board.

IIO based ADC becomes the parent and NTC thermistors are the childs, via the HWMON interface.

Quoted 8 lines

---
This patch needs
1. MAX77802 PMIC device tree nodes (for ldo9)
https://www.mail-archive.com/devicetree at vger.kernel.org/msg31430.html
2. Uses the DT documentation for NTC thermistors updated with vendor-prefix

 arch/arm/boot/dts/exynos5420-peach-pit.dts |   32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

* You forgot: status="okay" for the ADC. One might question how this patch was tested.

* Please also include this change for pi.

* We just got through the painful process of sorting this .dts file. Please sort "&adc" alphabetically. Kukjin: please confirm that you will keep an eye on patches and make sure that they are sorted OK.

Other than those problems this seems to work fine to me.

-Doug

#12 lore raw

PATCH 4/4 ARM: DTS: Add NTC thermistor nodes as child nodes to ADC

Doug,

Quoted 19 lines · Doug Anderson

Naveen,

Quoted 15 lines · Naveen Krishna Chatradhi

Exynos5420 based Peach PIT and Exynos5800 based PI boards have 4 NTC thermistors to measure temperatures at various points on the board.

IIO based ADC becomes the parent and NTC thermistors are the childs, via the HWMON interface.

---
This patch needs
1. MAX77802 PMIC device tree nodes (for ldo9)
https://www.mail-archive.com/devicetree at vger.kernel.org/msg31430.html
2. Uses the DT documentation for NTC thermistors updated with vendor-prefix

Quoted 5 lines
Quoted 2 lines
 arch/arm/boot/dts/exynos5420-peach-pit.dts |   32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

* You forgot: status="okay" for the ADC. One might question how this patch was tested.

Will correct it.

Quoted 2 lines

* Please also include this change for pi.

MAX77802 device node was not added for Peach_PI (exynos5800-peach-pi.dts). I guess, Javier have a plan to send.

I will edit the commit message to remove Peach_PI for now.

Also, we have few similar nodes on Peach PI and Peach PIT. Any plans or discussion on merging the common nodes ?

Quoted 9 lines

* We just got through the painful process of sorting this .dts file. Please sort "&adc" alphabetically. Kukjin: please confirm that you will keep an eye on patches and make sure that they are sorted OK.

Other than those problems this seems to work fine to me.

-Doug

Thanks for the Review.

Signature · 2 lines
Shine bright,
(: Nav :)
#13 lore raw

PATCH 4/4 ARM: DTS: Add NTC thermistor nodes as child nodes to ADC

Hello Naveen,

Quoted 28 lines · Naveen Krishna Ch

Doug,

Quoted 19 lines · Doug Anderson

Naveen,

Quoted 15 lines · Naveen Krishna Chatradhi

Exynos5420 based Peach PIT and Exynos5800 based PI boards have 4 NTC thermistors to measure temperatures at various points on the board.

IIO based ADC becomes the parent and NTC thermistors are the childs, via the HWMON interface.

---
This patch needs
1. MAX77802 PMIC device tree nodes (for ldo9)
https://www.mail-archive.com/devicetree at vger.kernel.org/msg31430.html
2. Uses the DT documentation for NTC thermistors updated with vendor-prefix

Quoted 5 lines
Quoted 2 lines
 arch/arm/boot/dts/exynos5420-peach-pit.dts |   32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

* You forgot: status="okay" for the ADC. One might question how this patch was tested.

Quoted 8 lines

Will correct it.

Quoted 2 lines

* Please also include this change for pi.

MAX77802 device node was not added for Peach_PI (exynos5800-peach-pi.dts). I guess, Javier have a plan to send.

That's correct. I didn't include the changes to Peach Pi since I only have a Pit to test but I'll add it on the next version so you can have that patch as a dependency and use the MAX77802 LD9 regulator.

Quoted 13 lines

I will edit the commit message to remove Peach_PI for now.

Also, we have few similar nodes on Peach PI and Peach PIT. Any plans or discussion on merging the common nodes ?

Quoted 8 lines

* We just got through the painful process of sorting this .dts file. Please sort "&adc" alphabetically. Kukjin: please confirm that you will keep an eye on patches and make sure that they are sorted OK.

Other than those problems this seems to work fine to me.

Quoted 8 lines
Quoted 1 line

-Doug

Thanks for the Review.

--
Shine bright,
(: Nav :)

Best regards,
Javier

#14 lore raw

PATCH 4/4 ARM: DTS: Add NTC thermistor nodes as child nodes to ADC

In reply to Naveen Krishna Ch

Naveen,

Quoted 2 lines · Naveen Krishna Ch

Also, we have few similar nodes on Peach PI and Peach PIT. Any plans or discussion on merging the common nodes ?

There was some discussion about this in another thread with Javier. We were thinking of doing more "config fragments" like I did for the keyboard. See <https://lkml.org/lkml/2014/6/24/337> for context.

If someone wants to try to break some config fragments out feel free to send up patches. Until that is done let's at least keep pit and pi as close to the same as possible (try to add features to both and try to make sure that "diff" between the two looks good).

-Doug