AW: [PATCH 1/2] hwmon: (lm75) Fix AS6200 setup and alarm handling

<[email protected]>
Newsgroups dev.linux.lists.sashiko,org.kernel.vger.linux-hwmon
Message-ID <[email protected]>
> Von: Guenter Roeck <[email protected]> Im Auftrag von Guenter Roeck
> Gesendet: Samstag, 2. Mai 2026 16:45
> An: [email protected]; Markus Stockhausen <[email protected]>
> Cc: [email protected]
> Betreff: Re: [PATCH 1/2] hwmon: (lm75) Fix AS6200 setup and alarm handling
> 
> ...
> Either case, I ended up ordering an evaluation board for as6200 and samples
> for TMP112, so we'll see how this works for real once I get that.

Looking at this again that is a good idea. device_params says 8 bit sampling (aka 
2 consecutive bits = 1) is in bits 6/7

	[as6200] = {
		.config_reg_16bits = true,
		.set_mask = 0x10C0,	/* 8 sample/s, 4 CF */

	[tmp112] = {
		.config_reg_16bits = true,
		.set_mask = 0x60C0,	/* 12-bit mode, 8 samples / second */

But lm75_update_interval() uses bits 14/15.

	case tmp112:
	case as6200:
		err = regmap_update_bits(data->regmap, LM75_REG_CONF,
					 0xc000, (3 - index) << 14);

This confuses me and maybe the bot ...

Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.