<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/lm75.c, branch linux-5.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-09-04T18:06:47Z</updated>
<entry>
<title>hwmon: (lm75) Aproximate sample times to data-sheet values</title>
<updated>2019-09-04T18:06:47Z</updated>
<author>
<name>Iker Perez del Palomar Sustatxa</name>
</author>
<published>2019-09-04T11:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35cd180485425dcab3f587fd67f21552505939ac'/>
<id>urn:sha1:35cd180485425dcab3f587fd67f21552505939ac</id>
<content type='text'>
Current sample time values are over estimated, this patches applies
values closer to the ones defined in the data-sheets.

Signed-off-by: Iker Perez del Palomar Sustatxa &lt;iker.perez@codethink.co.uk&gt;
[groeck: resolved conflicts; use default conversion times]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Add support for writing sampling period on PCT2075</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-08-09T02:28:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7a85cde90ed9f53a233e211d7cba99d10d1146b'/>
<id>urn:sha1:d7a85cde90ed9f53a233e211d7cba99d10d1146b</id>
<content type='text'>
For PCT7027, the sampling period is configured using a dedicated
register.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Add support for writing conversion time for TMP112</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-08-09T02:12:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cee04a013a4a4f7556b32bb6c33b3d6f1bd264c9'/>
<id>urn:sha1:cee04a013a4a4f7556b32bb6c33b3d6f1bd264c9</id>
<content type='text'>
TMP112 uses an uncommon method to write the conversion time: its
configuration register is 16 bit wide, and the conversion time is
configured in its second byte.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Move updating the sample interval to its own function</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-08-08T21:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=040b106ff8d6dcef5704f96ea84edfe28addb4a0'/>
<id>urn:sha1:040b106ff8d6dcef5704f96ea84edfe28addb4a0</id>
<content type='text'>
We'll need per-chip handling for updating the sample interval.
To prepare for it, separate the code implementing it into its own
function.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Support configuring the sample time for various chips</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2019-08-08T19:53:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7db0db3f6cced88af881520dd993c5b0044a7760'/>
<id>urn:sha1:7db0db3f6cced88af881520dd993c5b0044a7760</id>
<content type='text'>
The conversion (sample) time is configurable for several chips supported
by the lm75 driver. With the necessary infrastructure in place, enable
this support for all chips using the configuration register for this
purpose.

DS1775:
	Conversion time:	187.5, 375, 750, 1500 ms
	Sensor resolution: 	9, 10, 11, 12 bit
DS75, STDS75:
	Conversion time:	150, 300, 600, 1200 ms
	Sensor resolution: 	9, 10, 11, 12 bit
DS7505:
	Conversion time:	25, 50, 100, 200 ms
	Sensor resolution: 	9, 10, 11, 12 bit
MCP980[0123]:
	Conversion time:	75, 150, 300, 600 ms
	Sensor resolution: 	9, 10, 11, 12 bit
TMP100, TMP101:
	Conversion time:	75, 150, 300, 600 ms
	Sensor resolution: 	9, 10, 11, 12 bit
TMP75, TMP105, TMP175, TMP275:
	Conversion time:	38, 75, 150, 300 ms
	Sensor resolution: 	9, 10, 11, 12 bit

While doing this, it became obvious that the masks and values to set
the converion (sample) time is similar for all those chips, and that
other chips with configurable sample times will need separate code anyway.
For that reason, replace the sample_set_masks and sample_clr_mask
configuration parameters with a single array and with a constant.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Modularize lm75_write and make hwmon_chip writable</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Iker Perez del Palomar Sustatxa</name>
</author>
<published>2019-08-08T08:02:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4b5be3c1738076284a1fb5aecbe3c960c6d9bb71'/>
<id>urn:sha1:4b5be3c1738076284a1fb5aecbe3c960c6d9bb71</id>
<content type='text'>
* Create two separate functions to write into hwmon_temp and hwmon_chip.
* Call the functions from lm75_write.
* Make hwm_chip writable if the chip supports more than one sample time.

Signed-off-by: Iker Perez del Palomar Sustatxa &lt;iker.perez@codethink.co.uk&gt;
Link: https://lore.kernel.org/r/20190808080246.8371-5-iker.perez@codethink.co.uk
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Add new fields into lm75_params_</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Iker Perez del Palomar Sustatxa</name>
</author>
<published>2019-08-08T08:02:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f1a300f8abd11593f61c21a550c30144046124d'/>
<id>urn:sha1:7f1a300f8abd11593f61c21a550c30144046124d</id>
<content type='text'>
The new fields are included to prepare the driver for next patch. The
fields are:

* *resolutions: Stores all the supported resolutions by the device.
* num_sample_times: Stores the number of possible sample times.
* *sample_times: Stores all the possible sample times to be set.
* sample_set_masks: The set_masks for the possible sample times
* sample_clr_mask: Clear mask to set the default sample time.

Signed-off-by: Iker Perez del Palomar Sustatxa &lt;iker.perez@codethink.co.uk&gt;
Link: https://lore.kernel.org/r/20190808080246.8371-4-iker.perez@codethink.co.uk
[groeck: Minor structure documentation fixes]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Create function from code to write into registers</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Iker Perez del Palomar Sustatxa</name>
</author>
<published>2019-08-08T08:02:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58608cfee861788aaaf8c1de5c4250ac4151eafd'/>
<id>urn:sha1:58608cfee861788aaaf8c1de5c4250ac4151eafd</id>
<content type='text'>
Wrap the existing code to write configurations into registers in
a function.

Added error handling to the function.

Signed-off-by: Iker Perez del Palomar Sustatxa &lt;iker.perez@codethink.co.uk&gt;
Link: https://lore.kernel.org/r/20190808080246.8371-3-iker.perez@codethink.co.uk
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) Create structure to save all the configuration parameters.</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Iker Perez del Palomar Sustatxa</name>
</author>
<published>2019-08-08T08:02:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dcb12653875e7cd969a6a18346bc1ed24ffb893b'/>
<id>urn:sha1:dcb12653875e7cd969a6a18346bc1ed24ffb893b</id>
<content type='text'>
* Add to lm75_data kind field to store the kind of device the driver is
  working with.
* Add an structure to store the configuration parameters of all the
  supported devices.
* Delete resolution_limits from lm75_data and include them in the structure
  described above.
* Add a pointer to the configuration parameters structure to be used as a
  reference to obtain the parameters.
* Delete switch-case approach to get the device configuration parameters.
* The structure is cleaner and easier to maintain.

Signed-off-by: Iker Perez del Palomar Sustatxa &lt;iker.perez@codethink.co.uk&gt;
Link: https://lore.kernel.org/r/20190808080246.8371-2-iker.perez@codethink.co.uk
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (lm75) add support for PCT2075</title>
<updated>2019-09-03T19:47:17Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2019-07-11T12:45:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=557c7ffa2f283166fa863aaa415757f5f485aa62'/>
<id>urn:sha1:557c7ffa2f283166fa863aaa415757f5f485aa62</id>
<content type='text'>
The NXP PCT2075 is largely compatible with other chips already supported
by the LM75 driver. It uses an 11-bit resolution and defaults to 100 ms
sampling period. The datasheet is here:

  https://www.nxp.com/docs/en/data-sheet/PCT2075.pdf

Signed-off-by: Daniel Mack &lt;daniel@zonque.org&gt;
Link: https://lore.kernel.org/r/20190711124504.7580-2-daniel@zonque.org
[groeck: Documentation update]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
