Documentation/hwmon/pcf8591.rst

Source file repositories/reference/linux-study-clean/Documentation/hwmon/pcf8591.rst

File Facts

System
Linux kernel
Corpus path
Documentation/hwmon/pcf8591.rst
Extension
.rst
Size
3214 bytes
Lines
99
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: documentation
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

Kernel driver pcf8591
=====================

Supported chips:

  * Philips/NXP PCF8591

    Prefix: 'pcf8591'

    Addresses scanned: none

    Datasheet: Publicly available at the NXP website

	       http://www.nxp.com/pip/PCF8591_6.html

Authors:
      - Aurelien Jarno <aurelien@aurel32.net>
      - valuable contributions by Jan M. Sendler <sendler@sendler.de>,
      - Jean Delvare <jdelvare@suse.de>


Description
-----------

The PCF8591 is an 8-bit A/D and D/A converter (4 analog inputs and one
analog output) for the I2C bus produced by Philips Semiconductors (now NXP).
It is designed to provide a byte I2C interface to up to 4 separate devices.

The PCF8591 has 4 analog inputs programmable as single-ended or
differential inputs:

- mode 0 : four single ended inputs
	Pins AIN0 to AIN3 are single ended inputs for channels 0 to 3

- mode 1 : three differential inputs
	Pins AIN3 is the common negative differential input
	Pins AIN0 to AIN2 are positive differential inputs for channels 0 to 2

- mode 2 : single ended and differential mixed
	Pins AIN0 and AIN1 are single ended inputs for channels 0 and 1
	Pins AIN2 is the positive differential input for channel 3
	Pins AIN3 is the negative differential input for channel 3

- mode 3 : two differential inputs
	Pins AIN0 is the positive differential input for channel 0
	Pins AIN1 is the negative differential input for channel 0
	Pins AIN2 is the positive differential input for channel 1
	Pins AIN3 is the negative differential input for channel 1

See the datasheet for details.

Module parameters
-----------------

* input_mode int

    Analog input mode:

	 - 0 = four single ended inputs
	 - 1 = three differential inputs
	 - 2 = single ended and differential mixed
	 - 3 = two differential inputs


Accessing PCF8591 via /sys interface
-------------------------------------

The PCF8591 is plainly impossible to detect! Thus the driver won't even
try. You have to explicitly instantiate the device at the relevant
address (in the interval [0x48..0x4f]) either through platform data, or

Annotation

Implementation Notes