[PATCH] w1: w1_therm: Fix conversion result for negative temperatures

2021-01-21 Thread Ivan Zaentsev
Marciniak Signed-off-by: Ivan Zaentsev --- drivers/w1/slaves/w1_therm.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/w1/slaves/w1_therm.c b/drivers/w1/slaves/w1_therm.c index 3712b1e6dc71..976eea28f268 100644 --- a/drivers/w1/slaves/w1_therm.c

[PATCH v2] ARM: mxs: Add serial number support for i.MX23, i.MX28 SoCs

2020-11-16 Thread Ivan Zaentsev
ue in sec. 35.9.3. The unique id is reported in /sys/devices/soc0/serial_number and in /proc/cpuinfo Signed-off-by: Ivan Zaentsev Suggested-by: Evgeny Boger --- Changes in v2: 1. Sort #includes aphabetically. 2. Use tabs instead of spaces for indent. 3. Remove unnecessary newline. arch/arm/mac

[PATCH] w1: w1_therm: Rename conflicting sysfs attribute 'eeprom' to 'eeprom_cmd'

2020-11-11 Thread Ivan Zaentsev
therm.c to 'eeprom_cmd'. Reported-by: Mauro Carvalho Chehab Suggested-by: Greg Kroah-Hartman Link: https://lore.kernel.org/lkml/20201029152845.6bbb3...@coco.lan/ Signed-off-by: Ivan Zaentsev --- Documentation/ABI/testing/sysfs-driver-w1_therm | 2 +- Documentation/w1/slaves/w1_therm.rst

[PATCH] ARM: mxs: Add serial number support for i.MX23, i.MX28 SoCs

2020-11-10 Thread Ivan Zaentsev
ue in sec. 35.9.3. The unique id is reported in /sys/devices/soc0/serial_number and in /proc/cpuinfo Signed-off-by: Ivan Zaentsev Suggested-by: Evgeny Boger --- arch/arm/mach-mxs/mach-mxs.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-mxs/mach-mxs.c b

[PATCH] docs: w1: w1_therm: Fix broken xref, mistakes, clarify text

2020-10-07 Thread Ivan Zaentsev
sysfs attribute names are mixed with the same normal text terms. Use ReST to distinguish. Fix typos and mistakes. Signed-off-by: Ivan Zaentsev --- .../ABI/testing/sysfs-driver-w1_therm | 6 +- Documentation/w1/slaves/w1_therm.rst | 83 +-- 2 files changed, 43

Re: [PATCH 2/2] w1: w1_therm: Add support for GXCAS GX20MH01 device.

2020-10-07 Thread Ivan Zaentsev
Tuesday, October 6, 2020, 4:19:15 PM, Mauro Carvalho Chehab wrote: >> diff --git a/Documentation/w1/slaves/w1_therm.rst >> b/Documentation/w1/slaves/w1_therm.rst >> index f1148181f53e..00376501a5ef 100644 >> --- a/Documentation/w1/slaves/w1_therm.rst >> +++ b/Documentation/w1/slaves/w1_therm.rst

[PATCH 2/2] w1: w1_therm: Add support for GXCAS GX20MH01 device.

2020-09-04 Thread Ivan Zaentsev
GX20MH01 device shares family number 0x28 with DS18B20. The device is generally compatible with DS18B20. Added are the lowest 2^-5, 2^-6 temperature bits in Config register; R2 bit in Config register enabling 13 and 14 bit resolutions. It is powered up in 14 bit mode. Signed-off-by: Ivan Zaentsev

[PATCH 1/2] w1: w1_therm: Add sysfs entries to control conversion time and driver features

2020-09-04 Thread Ivan Zaentsev
er the conversion start and wait for 1's. In parasite power mode this feature is not available. There are some clones of DS18B20 with fixed 12 bit resolution. Make the driver verify the resolution by reading back the device after resolution change. Signed-off-by: Ivan Zaentse