* [PATCH 0/4] hwmon: ntc_thermistor: prepose vendor prefix change @ 2014-06-24 12:19 Naveen Krishna Chatradhi [not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Naveen Krishna Chatradhi @ 2014-06-24 12:19 UTC (permalink / raw) To: linux-samsung-soc, linux-iio Cc: naveenkrishna.ch, kgene.kim, linux-arm-kernel, cpgs, devicetree, lars 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(-) -- 1.7.9.5 ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* [PATCH 1/4] devicetree: bindings: Document murata vendor prefix [not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2014-06-24 12:19 ` Naveen Krishna Chatradhi [not found] ` <1403612356-23685-2-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 12:19 ` [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly Naveen Krishna Chatradhi ` (2 subsequent siblings) 3 siblings, 1 reply; 15+ messages in thread From: Naveen Krishna Chatradhi @ 2014-06-24 12:19 UTC (permalink / raw) To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, cpgs-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, lars-Qo5EllUWu/uELgA04lAiVw, Guenter Roeck 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. Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> --- 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(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 4d7f375..a39b7d7 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -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 -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1403612356-23685-2-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 1/4] devicetree: bindings: Document murata vendor prefix [not found] ` <1403612356-23685-2-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2014-06-24 13:30 ` Mark Rutland 2014-06-24 13:38 ` Naveen Krishna Ch 0 siblings, 1 reply; 15+ messages in thread From: Mark Rutland @ 2014-06-24 13:30 UTC (permalink / raw) To: Naveen Krishna Chatradhi Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, cpgs-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org, Guenter Roeck On Tue, Jun 24, 2014 at 01:19:13PM +0100, Naveen Krishna Chatradhi wrote: > 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. > > Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> > --- > 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(+) > > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt > index 4d7f375..a39b7d7 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > @@ -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: Acked-by: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Mark. > 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 1/4] devicetree: bindings: Document murata vendor prefix 2014-06-24 13:30 ` Mark Rutland @ 2014-06-24 13:38 ` Naveen Krishna Ch 0 siblings, 0 replies; 15+ messages in thread From: Naveen Krishna Ch @ 2014-06-24 13:38 UTC (permalink / raw) To: Mark Rutland Cc: Naveen Krishna Chatradhi, linux-samsung-soc@vger.kernel.org, linux-iio@vger.kernel.org, kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org, cpgs@samsung.com, devicetree@vger.kernel.org, lars@metafoo.de, Guenter Roeck Hello Mark, On 24 June 2014 19:00, Mark Rutland <mark.rutland@arm.com> wrote: > On Tue, Jun 24, 2014 at 01:19:13PM +0100, Naveen Krishna Chatradhi wrote: >> 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. >> >> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> >> Cc: Guenter Roeck <linux@roeck-us.net> >> --- >> 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(+) >> >> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt >> index 4d7f375..a39b7d7 100644 >> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt >> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt >> @@ -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. > > Otherwise, this looks fine to me. With the order fixed: > > Acked-by: Mark Rutland <mark.rutland@arm.com> Thanks > > Mark. > >> 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@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> -- Shine bright, (: Nav :) ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly [not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 12:19 ` [PATCH 1/4] devicetree: bindings: Document murata vendor prefix Naveen Krishna Chatradhi @ 2014-06-24 12:19 ` Naveen Krishna Chatradhi [not found] ` <1403612356-23685-3-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 12:19 ` [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation Naveen Krishna Chatradhi 2014-06-24 12:19 ` [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC Naveen Krishna Chatradhi 3 siblings, 1 reply; 15+ messages in thread From: Naveen Krishna Chatradhi @ 2014-06-24 12:19 UTC (permalink / raw) To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, cpgs-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, lars-Qo5EllUWu/uELgA04lAiVw, Guenter Roeck 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 Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> --- 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(-) diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt index 5d49f2b..832fe8c 100644 --- a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt @@ -48,7 +48,7 @@ adc@12D10000 { /* NTC thermistor is a hwmon device */ ncp15wb473@0 { - compatible = "ntc,ncp15wb473"; + compatible = "murata,ncp15wb473"; pullup-uv = <1800000>; pullup-ohm = <47000>; pulldown-ohm = <0>; diff --git a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt index c6f6667..4e9f344 100644 --- a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt +++ b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt @@ -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@0 { - compatible = "ntc,ncp15wb473"; + compatible = "murata,ncp15wb473"; pullup-uv = <1800000>; pullup-ohm = <47000>; pulldown-ohm = <0>; diff --git a/Documentation/hwmon/ntc_thermistor b/Documentation/hwmon/ntc_thermistor index 3bfda94..057b770 100644 --- a/Documentation/hwmon/ntc_thermistor +++ b/Documentation/hwmon/ntc_thermistor @@ -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. diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 08531a1..154851b 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -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. diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index e76feb86..6c38fc8 100644 --- a/drivers/hwmon/ntc_thermistor.c +++ b/drivers/hwmon/ntc_thermistor.c @@ -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 <myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:ntc-thermistor"); -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1403612356-23685-3-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly [not found] ` <1403612356-23685-3-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2014-06-24 13:32 ` Mark Rutland 2014-06-24 13:40 ` Naveen Krishna Ch 0 siblings, 1 reply; 15+ messages in thread From: Mark Rutland @ 2014-06-24 13:32 UTC (permalink / raw) To: Naveen Krishna Chatradhi Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, cpgs-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org, Guenter Roeck On Tue, Jun 24, 2014 at 01:19:14PM +0100, Naveen Krishna Chatradhi wrote: > 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 > > Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> > --- > 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(-) > > diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt > index 5d49f2b..832fe8c 100644 > --- a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt > +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt > @@ -48,7 +48,7 @@ adc@12D10000 { > > /* NTC thermistor is a hwmon device */ > ncp15wb473@0 { > - compatible = "ntc,ncp15wb473"; > + compatible = "murata,ncp15wb473"; > pullup-uv = <1800000>; > pullup-ohm = <47000>; > pulldown-ohm = <0>; > diff --git a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt > index c6f6667..4e9f344 100644 > --- a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt > +++ b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt > @@ -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" 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. > - "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@0 { > - compatible = "ntc,ncp15wb473"; > + compatible = "murata,ncp15wb473"; > pullup-uv = <1800000>; > pullup-ohm = <47000>; > pulldown-ohm = <0>; > diff --git a/Documentation/hwmon/ntc_thermistor b/Documentation/hwmon/ntc_thermistor > index 3bfda94..057b770 100644 > --- a/Documentation/hwmon/ntc_thermistor > +++ b/Documentation/hwmon/ntc_thermistor > @@ -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. > diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig > index 08531a1..154851b 100644 > --- a/drivers/hwmon/Kconfig > +++ b/drivers/hwmon/Kconfig > @@ -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. > diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c > index e76feb86..6c38fc8 100644 > --- a/drivers/hwmon/ntc_thermistor.c > +++ b/drivers/hwmon/ntc_thermistor.c > @@ -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 <myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>"); > 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly 2014-06-24 13:32 ` Mark Rutland @ 2014-06-24 13:40 ` Naveen Krishna Ch 0 siblings, 0 replies; 15+ messages in thread From: Naveen Krishna Ch @ 2014-06-24 13:40 UTC (permalink / raw) To: Mark Rutland Cc: Naveen Krishna Chatradhi, linux-samsung-soc@vger.kernel.org, linux-iio@vger.kernel.org, kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org, cpgs@samsung.com, devicetree@vger.kernel.org, lars@metafoo.de, Guenter Roeck Hello Mark, On 24 June 2014 19:02, Mark Rutland <mark.rutland@arm.com> wrote: > On Tue, Jun 24, 2014 at 01:19:14PM +0100, Naveen Krishna Chatradhi wrote: >> 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 >> >> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> >> Cc: Guenter Roeck <linux@roeck-us.net> >> --- >> 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(-) >> >> diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt >> index 5d49f2b..832fe8c 100644 >> --- a/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt >> +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt >> @@ -48,7 +48,7 @@ adc@12D10000 { >> >> /* NTC thermistor is a hwmon device */ >> ncp15wb473@0 { >> - compatible = "ntc,ncp15wb473"; >> + compatible = "murata,ncp15wb473"; >> pullup-uv = <1800000>; >> pullup-ohm = <47000>; >> pulldown-ohm = <0>; >> diff --git a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt >> index c6f6667..4e9f344 100644 >> --- a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt >> +++ b/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt >> @@ -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" > > 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. Should have kept the old bindings as deprecated. > > 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. > > Mark. > >> - "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@0 { >> - compatible = "ntc,ncp15wb473"; >> + compatible = "murata,ncp15wb473"; >> pullup-uv = <1800000>; >> pullup-ohm = <47000>; >> pulldown-ohm = <0>; >> diff --git a/Documentation/hwmon/ntc_thermistor b/Documentation/hwmon/ntc_thermistor >> index 3bfda94..057b770 100644 >> --- a/Documentation/hwmon/ntc_thermistor >> +++ b/Documentation/hwmon/ntc_thermistor >> @@ -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. >> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig >> index 08531a1..154851b 100644 >> --- a/drivers/hwmon/Kconfig >> +++ b/drivers/hwmon/Kconfig >> @@ -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. >> diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c >> index e76feb86..6c38fc8 100644 >> --- a/drivers/hwmon/ntc_thermistor.c >> +++ b/drivers/hwmon/ntc_thermistor.c >> @@ -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 <myungjoo.ham@samsung.com>"); >> 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@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> -- Shine bright, (: Nav :) ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation [not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 12:19 ` [PATCH 1/4] devicetree: bindings: Document murata vendor prefix Naveen Krishna Chatradhi 2014-06-24 12:19 ` [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly Naveen Krishna Chatradhi @ 2014-06-24 12:19 ` Naveen Krishna Chatradhi [not found] ` <1403612356-23685-4-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 12:19 ` [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC Naveen Krishna Chatradhi 3 siblings, 1 reply; 15+ messages in thread From: Naveen Krishna Chatradhi @ 2014-06-24 12:19 UTC (permalink / raw) To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, cpgs-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, lars-Qo5EllUWu/uELgA04lAiVw, Chanwoo Choi 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. Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Cc: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> --- 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(-) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 11967f4..d35755a 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -771,7 +771,7 @@ }; thermistor-ap@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@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 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1403612356-23685-4-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation [not found] ` <1403612356-23685-4-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2014-06-24 13:33 ` Mark Rutland 2014-06-24 13:41 ` Naveen Krishna Ch 0 siblings, 1 reply; 15+ messages in thread From: Mark Rutland @ 2014-06-24 13:33 UTC (permalink / raw) To: Naveen Krishna Chatradhi Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, cpgs-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org, Chanwoo Choi On Tue, Jun 24, 2014 at 01:19:15PM +0100, Naveen Krishna Chatradhi wrote: > 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. > > Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > Cc: Chanwoo Choi <cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > --- > 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(-) > > diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts > index 11967f4..d35755a 100644 > --- a/arch/arm/boot/dts/exynos4412-trats2.dts > +++ b/arch/arm/boot/dts/exynos4412-trats2.dts > @@ -771,7 +771,7 @@ > }; > > thermistor-ap@0 { > - compatible = "ntc,ncp15wb473"; > + compatible = "murata,ncp15wb473"; So the previous patch woul have broken this board? Mark. > pullup-uv = <1800000>; /* VCC_1.8V_AP */ > pullup-ohm = <100000>; /* 100K */ > pulldown-ohm = <100000>; /* 100K */ > @@ -779,7 +779,7 @@ > }; > > thermistor-battery@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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation 2014-06-24 13:33 ` Mark Rutland @ 2014-06-24 13:41 ` Naveen Krishna Ch 0 siblings, 0 replies; 15+ messages in thread From: Naveen Krishna Ch @ 2014-06-24 13:41 UTC (permalink / raw) To: Mark Rutland Cc: Naveen Krishna Chatradhi, linux-samsung-soc@vger.kernel.org, linux-iio@vger.kernel.org, kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org, cpgs@samsung.com, devicetree@vger.kernel.org, lars@metafoo.de, Chanwoo Choi Hello Mark, On 24 June 2014 19:03, Mark Rutland <mark.rutland@arm.com> wrote: > On Tue, Jun 24, 2014 at 01:19:15PM +0100, Naveen Krishna Chatradhi wrote: >> 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. >> >> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> >> Cc: Chanwoo Choi <cw00.choi@samsung.com> >> --- >> 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(-) >> >> diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts >> index 11967f4..d35755a 100644 >> --- a/arch/arm/boot/dts/exynos4412-trats2.dts >> +++ b/arch/arm/boot/dts/exynos4412-trats2.dts >> @@ -771,7 +771,7 @@ >> }; >> >> thermistor-ap@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. > > Mark. > >> pullup-uv = <1800000>; /* VCC_1.8V_AP */ >> pullup-ohm = <100000>; /* 100K */ >> pulldown-ohm = <100000>; /* 100K */ >> @@ -779,7 +779,7 @@ >> }; >> >> thermistor-battery@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@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> -- Shine bright, (: Nav :) ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC [not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> ` (2 preceding siblings ...) 2014-06-24 12:19 ` [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation Naveen Krishna Chatradhi @ 2014-06-24 12:19 ` Naveen Krishna Chatradhi 2014-06-24 21:54 ` Doug Anderson 3 siblings, 1 reply; 15+ messages in thread From: Naveen Krishna Chatradhi @ 2014-06-24 12:19 UTC (permalink / raw) To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-iio-u79uwXL29TY76Z2rM5mHXA Cc: naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, cpgs-Sze3O3UU22JBDgjK7y7TUQ, devicetree-u79uwXL29TY76Z2rM5mHXA, lars-Qo5EllUWu/uELgA04lAiVw, Doug Anderson 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. Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Cc: Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> --- This patch needs 1. MAX77802 PMIC device tree nodes (for ldo9) https://www.mail-archive.com/devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.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(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index b96a66a..852a220 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -751,4 +751,36 @@ timeout-sec = <32>; }; +&adc { + vdd-supply = <&ldo9_reg>; + ncp15wb473@3 { + compatible = "murata,ncp15wb473"; + pullup-uv = <1800000>; + pullup-ohm = <47000>; + pulldown-ohm = <0>; + io-channels = <&adc 3>; + }; + ncp15wb473@4 { + compatible = "murata,ncp15wb473"; + pullup-uv = <1800000>; + pullup-ohm = <47000>; + pulldown-ohm = <0>; + io-channels = <&adc 4>; + }; + ncp15wb473@5 { + compatible = "murata,ncp15wb473"; + pullup-uv = <1800000>; + pullup-ohm = <47000>; + pulldown-ohm = <0>; + io-channels = <&adc 5>; + }; + ncp15wb473@6 { + compatible = "murata,ncp15wb473"; + pullup-uv = <1800000>; + pullup-ohm = <47000>; + pulldown-ohm = <0>; + io-channels = <&adc 6>; + }; +}; + #include "cros-ec-keyboard.dtsi" -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC 2014-06-24 12:19 ` [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC Naveen Krishna Chatradhi @ 2014-06-24 21:54 ` Doug Anderson [not found] ` <CAD=FV=Wmi73S4c5TPUqnNyycQ5xX5SbYy_ES-cbbJF2Hr0tqvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Doug Anderson @ 2014-06-24 21:54 UTC (permalink / raw) To: Naveen Krishna Chatradhi Cc: linux-samsung-soc, linux-iio, Naveen Krishna, Kukjin Kim, linux-arm-kernel@lists.infradead.org, cpgs ., devicetree@vger.kernel.org, Lars-Peter Clausen, Tushar Behera Naveen, On Tue, Jun 24, 2014 at 5:19 AM, Naveen Krishna Chatradhi <ch.naveen@samsung.com> wrote: > 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. > > Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> > Cc: Doug Anderson <dianders@chromium.org> > --- > This patch needs > 1. MAX77802 PMIC device tree nodes (for ldo9) > https://www.mail-archive.com/devicetree@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 ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CAD=FV=Wmi73S4c5TPUqnNyycQ5xX5SbYy_ES-cbbJF2Hr0tqvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC [not found] ` <CAD=FV=Wmi73S4c5TPUqnNyycQ5xX5SbYy_ES-cbbJF2Hr0tqvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-06-25 5:04 ` Naveen Krishna Ch [not found] ` <CAHfPSqAAWFtCQQrKBhLFuE2OuO_fwmUOhcOX9zKk8eMRMNSVvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 15+ messages in thread From: Naveen Krishna Ch @ 2014-06-25 5:04 UTC (permalink / raw) To: Doug Anderson Cc: Naveen Krishna Chatradhi, linux-samsung-soc, linux-iio, Kukjin Kim, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, cpgs ., devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lars-Peter Clausen, Tushar Behera Doug, On 25 June 2014 03:24, Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote: > Naveen, > > On Tue, Jun 24, 2014 at 5:19 AM, Naveen Krishna Chatradhi > <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote: >> 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. >> >> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >> Cc: Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> >> --- >> This patch needs >> 1. MAX77802 PMIC device tree nodes (for ldo9) >> https://www.mail-archive.com/devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.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. Will correct it. > > * 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 ? > > * 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. -- Shine bright, (: Nav :) ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <CAHfPSqAAWFtCQQrKBhLFuE2OuO_fwmUOhcOX9zKk8eMRMNSVvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC [not found] ` <CAHfPSqAAWFtCQQrKBhLFuE2OuO_fwmUOhcOX9zKk8eMRMNSVvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-06-25 7:37 ` Javier Martinez Canillas 2014-06-25 17:00 ` Doug Anderson 1 sibling, 0 replies; 15+ messages in thread From: Javier Martinez Canillas @ 2014-06-25 7:37 UTC (permalink / raw) To: Naveen Krishna Ch Cc: Doug Anderson, Naveen Krishna Chatradhi, linux-samsung-soc, linux-iio, Kukjin Kim, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, cpgs ., devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lars-Peter Clausen, Tushar Behera Hello Naveen, On Wed, Jun 25, 2014 at 7:04 AM, Naveen Krishna Ch <naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Doug, > > On 25 June 2014 03:24, Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote: >> Naveen, >> >> On Tue, Jun 24, 2014 at 5:19 AM, Naveen Krishna Chatradhi >> <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote: >>> 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. >>> >>> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >>> Cc: Doug Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> >>> --- >>> This patch needs >>> 1. MAX77802 PMIC device tree nodes (for ldo9) >>> https://www.mail-archive.com/devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.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. > > Will correct it. > >> >> * 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. > 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 ? > >> >> * 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. > > > -- > Shine bright, > (: Nav :) Best regards, Javier ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC [not found] ` <CAHfPSqAAWFtCQQrKBhLFuE2OuO_fwmUOhcOX9zKk8eMRMNSVvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-06-25 7:37 ` Javier Martinez Canillas @ 2014-06-25 17:00 ` Doug Anderson 1 sibling, 0 replies; 15+ messages in thread From: Doug Anderson @ 2014-06-25 17:00 UTC (permalink / raw) To: Naveen Krishna Ch Cc: Naveen Krishna Chatradhi, linux-samsung-soc, linux-iio, Kukjin Kim, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, cpgs ., devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lars-Peter Clausen, Tushar Behera Naveen, On Tue, Jun 24, 2014 at 10:04 PM, Naveen Krishna Ch <naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > 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 ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2014-06-25 17:00 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-24 12:19 [PATCH 0/4] hwmon: ntc_thermistor: prepose vendor prefix change Naveen Krishna Chatradhi [not found] ` <1403612356-23685-1-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 12:19 ` [PATCH 1/4] devicetree: bindings: Document murata vendor prefix Naveen Krishna Chatradhi [not found] ` <1403612356-23685-2-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 13:30 ` Mark Rutland 2014-06-24 13:38 ` Naveen Krishna Ch 2014-06-24 12:19 ` [PATCH 2/4] hwmon: ntc_thermistor: Use the manufacturer name properly Naveen Krishna Chatradhi [not found] ` <1403612356-23685-3-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 13:32 ` Mark Rutland 2014-06-24 13:40 ` Naveen Krishna Ch 2014-06-24 12:19 ` [PATCH 3/4] ARM: DTS: use new compatible string as per the documentation Naveen Krishna Chatradhi [not found] ` <1403612356-23685-4-git-send-email-ch.naveen-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2014-06-24 13:33 ` Mark Rutland 2014-06-24 13:41 ` Naveen Krishna Ch 2014-06-24 12:19 ` [PATCH 4/4] ARM: DTS: Add NTC thermistor nodes as child nodes to ADC Naveen Krishna Chatradhi 2014-06-24 21:54 ` Doug Anderson [not found] ` <CAD=FV=Wmi73S4c5TPUqnNyycQ5xX5SbYy_ES-cbbJF2Hr0tqvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-06-25 5:04 ` Naveen Krishna Ch [not found] ` <CAHfPSqAAWFtCQQrKBhLFuE2OuO_fwmUOhcOX9zKk8eMRMNSVvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-06-25 7:37 ` Javier Martinez Canillas 2014-06-25 17:00 ` Doug Anderson
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).