162306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../alarms
262306a36Sopenharmony_ciDate:		May 2020
362306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		(RW) read or write TH and TL (Temperature High an Low) alarms.
662306a36Sopenharmony_ci		Values shall be space separated and in the device range
762306a36Sopenharmony_ci		(typical -55 degC to 125 degC), if not values will be trimmed
862306a36Sopenharmony_ci		to device min/max capabilities. Values are integer as they are
962306a36Sopenharmony_ci		stored in a 8bit register in the device. Lowest value is
1062306a36Sopenharmony_ci		automatically put to TL. Once set, alarms could be search at
1162306a36Sopenharmony_ci		master level, refer to Documentation/w1/w1-generic.rst for
1262306a36Sopenharmony_ci		detailed information
1362306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
1462306a36Sopenharmony_ci		w1_term device
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../eeprom_cmd
1862306a36Sopenharmony_ciDate:		May 2020
1962306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
2062306a36Sopenharmony_ciDescription:
2162306a36Sopenharmony_ci		(WO) writing that file will either trigger a save of the
2262306a36Sopenharmony_ci		device data to its embedded EEPROM, either restore data
2362306a36Sopenharmony_ci		embedded in device EEPROM. Be aware that devices support
2462306a36Sopenharmony_ci		limited EEPROM writing cycles (typical 50k)
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci			* 'save': save device RAM to EEPROM
2762306a36Sopenharmony_ci			* 'restore': restore EEPROM data in device RAM
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
3062306a36Sopenharmony_ci		w1_term device
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../ext_power
3462306a36Sopenharmony_ciDate:		May 2020
3562306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
3662306a36Sopenharmony_ciDescription:
3762306a36Sopenharmony_ci		(RO) return the power status by asking the device
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci			* '0': device parasite powered
4062306a36Sopenharmony_ci			* '1': device externally powered
4162306a36Sopenharmony_ci			* '-xx': xx is kernel error when reading power status
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
4462306a36Sopenharmony_ci		w1_term device
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../resolution
4862306a36Sopenharmony_ciDate:		May 2020
4962306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
5062306a36Sopenharmony_ciDescription:
5162306a36Sopenharmony_ci		(RW) get or set the device resolution (on supported devices,
5262306a36Sopenharmony_ci		if not, this entry is not present). Note that the resolution
5362306a36Sopenharmony_ci		will be changed only in device RAM, so it will be cleared when
5462306a36Sopenharmony_ci		power is lost. Trigger a 'save' to EEPROM command to keep
5562306a36Sopenharmony_ci		values after power-on. Read or write are :
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci			* '9..14': device resolution in bit
5862306a36Sopenharmony_ci			  or resolution to set in bit
5962306a36Sopenharmony_ci			* '-xx': xx is kernel error when reading the resolution
6062306a36Sopenharmony_ci			* Anything else: do nothing
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci		Some DS18B20 clones are fixed in 12-bit resolution, so the
6362306a36Sopenharmony_ci		actual resolution is read back from the chip and verified. Error
6462306a36Sopenharmony_ci		is reported if the results differ.
6562306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
6662306a36Sopenharmony_ci		w1_term device
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../temperature
7062306a36Sopenharmony_ciDate:		May 2020
7162306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
7262306a36Sopenharmony_ciDescription:
7362306a36Sopenharmony_ci		(RO) return the temperature in 1/1000 degC.
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ci			* If a bulk read has been triggered, it will directly
7662306a36Sopenharmony_ci			  return the temperature computed when the bulk read
7762306a36Sopenharmony_ci			  occurred, if available. If not yet available, nothing
7862306a36Sopenharmony_ci			  is returned (a debug kernel message is sent), you
7962306a36Sopenharmony_ci			  should retry later on.
8062306a36Sopenharmony_ci			* If no bulk read has been triggered, it will trigger
8162306a36Sopenharmony_ci			  a conversion and send the result. Note that the
8262306a36Sopenharmony_ci			  conversion duration depend on the resolution (if
8362306a36Sopenharmony_ci			  device support this feature). It takes 94ms in 9bits
8462306a36Sopenharmony_ci			  resolution, 750ms for 12bits.
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
8762306a36Sopenharmony_ci		w1_term device
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../w1_slave
9162306a36Sopenharmony_ciDate:		May 2020
9262306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
9362306a36Sopenharmony_ciDescription:
9462306a36Sopenharmony_ci		(RW) return the temperature in 1/1000 degC.
9562306a36Sopenharmony_ci		*read*: return 2 lines with the hexa output data sent on the
9662306a36Sopenharmony_ci		bus, return the CRC check and temperature in 1/1000 degC
9762306a36Sopenharmony_ci		*write*:
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ci			* '0' : save the 2 or 3 bytes to the device EEPROM
10062306a36Sopenharmony_ci			  (i.e. TH, TL and config register)
10162306a36Sopenharmony_ci			* '9..14' : set the device resolution in RAM
10262306a36Sopenharmony_ci			  (if supported)
10362306a36Sopenharmony_ci			* Anything else: do nothing
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci		refer to Documentation/w1/slaves/w1_therm.rst for detailed
10662306a36Sopenharmony_ci		information.
10762306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
10862306a36Sopenharmony_ci		w1_term device
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/w1_bus_masterXX/therm_bulk_read
11262306a36Sopenharmony_ciDate:		May 2020
11362306a36Sopenharmony_ciContact:	Akira Shimahara <akira215corp@gmail.com>
11462306a36Sopenharmony_ciDescription:
11562306a36Sopenharmony_ci		(RW) trigger a bulk read conversion. read the status
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ci		*read*:
11862306a36Sopenharmony_ci			* '-1':
11962306a36Sopenharmony_ci				conversion in progress on at least 1 sensor
12062306a36Sopenharmony_ci			* '1' :
12162306a36Sopenharmony_ci				conversion complete but at least one sensor
12262306a36Sopenharmony_ci				value has not been read yet
12362306a36Sopenharmony_ci			* '0' :
12462306a36Sopenharmony_ci				no bulk operation. Reading temperature will
12562306a36Sopenharmony_ci				trigger a conversion on each device
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_ci		*write*:
12862306a36Sopenharmony_ci			'trigger': trigger a bulk read on all supporting
12962306a36Sopenharmony_ci			devices on the bus
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ci		Note that if a bulk read is sent but one sensor is not read
13262306a36Sopenharmony_ci		immediately, the next access to temperature on this device
13362306a36Sopenharmony_ci		will return the temperature measured at the time of issue
13462306a36Sopenharmony_ci		of the bulk read command (not the current temperature).
13562306a36Sopenharmony_ciUsers:		any user space application which wants to communicate with
13662306a36Sopenharmony_ci		w1_term device
13762306a36Sopenharmony_ci
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../conv_time
14062306a36Sopenharmony_ciDate:		July 2020
14162306a36Sopenharmony_ciContact:	Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
14262306a36Sopenharmony_ciDescription:
14362306a36Sopenharmony_ci		(RW) Get, set, or measure a temperature conversion time. The
14462306a36Sopenharmony_ci		setting remains active until a resolution change. Then it is
14562306a36Sopenharmony_ci		reset to default (datasheet) conversion time for a new
14662306a36Sopenharmony_ci		resolution.
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci		*read*:
14962306a36Sopenharmony_ci			Actual conversion time in milliseconds.
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ci		*write*:
15262306a36Sopenharmony_ci			* '0':
15362306a36Sopenharmony_ci			     Set the default conversion time from the datasheet.
15462306a36Sopenharmony_ci			* '1':
15562306a36Sopenharmony_ci			     Measure and set the conversion time. Make a single
15662306a36Sopenharmony_ci			     temperature conversion, measure an actual value.
15762306a36Sopenharmony_ci			     Increase it by 20% for temperature range. A new
15862306a36Sopenharmony_ci			     conversion time can be obtained by reading this
15962306a36Sopenharmony_ci			     same attribute.
16062306a36Sopenharmony_ci			* other positive value:
16162306a36Sopenharmony_ci			     Set the conversion time in milliseconds.
16262306a36Sopenharmony_ci
16362306a36Sopenharmony_ciUsers:		An application using the w1_term device
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ci
16662306a36Sopenharmony_ciWhat:		/sys/bus/w1/devices/.../features
16762306a36Sopenharmony_ciDate:		July 2020
16862306a36Sopenharmony_ciContact:	Ivan Zaentsev <ivan.zaentsev@wirenboard.ru>
16962306a36Sopenharmony_ciDescription:
17062306a36Sopenharmony_ci		(RW) Control optional driver settings.
17162306a36Sopenharmony_ci		Bit masks to read/write (bitwise OR):
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ci		== ============================================================
17462306a36Sopenharmony_ci                 1 Enable check for conversion success. If byte 6 of
17562306a36Sopenharmony_ci                   scratchpad memory is 0xC after conversion, and
17662306a36Sopenharmony_ci                   temperature reads 85.00 (powerup value) or 127.94
17762306a36Sopenharmony_ci                   (insufficient power) - return a conversion error.
17862306a36Sopenharmony_ci
17962306a36Sopenharmony_ci                2  Enable poll for conversion completion. Generate read cycles
18062306a36Sopenharmony_ci                   after the conversion start and wait for 1's. In parasite
18162306a36Sopenharmony_ci                   power mode this feature is not available.
18262306a36Sopenharmony_ci		== ============================================================
18362306a36Sopenharmony_ci
18462306a36Sopenharmony_ci		*read*:
18562306a36Sopenharmony_ci		    Currently selected features.
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ci		*write*:
18862306a36Sopenharmony_ci		    Select features.
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_ciUsers:		An application using the w1_term device
191