hwmon: (ads1015) Add devicetree documentation
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/1 hwmon: (ads1015) Add devicetree documentation
---
Changes since v1:
- removed sysfs from description
- explain channels
Documentation/devicetree/bindings/i2c/ads1015.txt | 29 +++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/ads1015.txt
Documentation/devicetree/bindings/i2c/ads1015.txt new file +29 -0
@@ -0,0 +1,29 @@ +ADS1015 (I2C) + +This device is a 12-bit A-D converter with 4 inputs. + +The inputs can be used single ended or in certain differential combinations. + +For configuration all possible combinations are mapped to 8 channels: +0: Voltage over AIN0 and AIN1. +1: Voltage over AIN0 and AIN3. +2: Voltage over AIN1 and AIN3. +3: Voltage over AIN2 and AIN3. +4: Voltage over AIN0 and GND. +5: Voltage over AIN1 and GND. +6: Voltage over AIN2 and GND. +7: Voltage over AIN3 and GND. + +Optional properties: + + - exported-channels : exported_channels is a bitmask that specifies which + channels should be accessable by the user. + +Example: +ads1015@49 { + compatible = "ti,ads1015"; + reg = <0x49>; + exported-channels = <0x14>; +}; + +In this example only channel 2 and 4 would be accessable by the user.
Signature · 1 line
1.5.6.5
Quoted 26 lines · Dirk Eibach
Signed-off-by Dirk Eibach <[email protected]>---
Changes since v1:
- removed sysfs from description
- explain channelsDocumentation/devicetree/bindings/i2c/ads1015.txt | 29 +++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/ads1015.txtDocumentation/devicetree/bindings/i2c/ads1015.txt new file +10
-0@@ -0,0 +1,29 @@ +ADS1015 (I2C) + +This device is a 12-bit A-D converter with 4 inputs. + +The inputs can be used single ended or in certain differential combinations. + +For configuration all possible combinations are mapped to 8 channels: +0: Voltage over AIN0 and AIN1. +1: Voltage over AIN0 and AIN3. +2: Voltage over AIN1 and AIN3.
Documentation/devicetree/bindings/i2c/ads1015.txt line 20
Quoted 10 lines
Documentation/devicetree/bindings/i2c/ads1015.txt new file +10
-0+3: Voltage over AIN2 and AIN3. +4: Voltage over AIN0 and GND. +5: Voltage over AIN1 and GND. +6: Voltage over AIN2 and GND. +7: Voltage over AIN3 and GND. + +Optional properties: + + - exported-channels : exported_channels is a bitmask that specifies which + channels should be accessable by the user.
"accessable" doesn't exist as an English word.
Documentation/devicetree/bindings/i2c/ads1015.txt line 29
Quoted 9 lines
Documentation/devicetree/bindings/i2c/ads1015.txt new file +9
-0+ +Example: +ads1015@49 { + compatible = "ti,ads1015"; + reg = <0x49>; + exported-channels = <0x14>; +}; + +In this example only channel 2 and 4 would be accessable by the user.
Ditto.
Signature · 1 line
Jean Delvare
Documentation/devicetree/bindings/i2c/ads1015.txt
Quoted 15 lines · Dirk Eibach
Signed-off-by Dirk Eibach <[email protected]>---
Changes since v1:
- removed sysfs from description
- explain channelsDocumentation/devicetree/bindings/i2c/ads1015.txt | 29 +++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/ads1015.txtDocumentation/devicetree/bindings/i2c/ads1015.txt new file +0
-0
While this device is on an i2c bus, it is a hwmon device. Similar to hwmon drivers, the documentation makes more sense in Documentation/devicetree/bindings/hwmon/ti-ads1015.txt
Quoted 7 lines
Documentation/devicetree/bindings/i2c/ads1015.txt new file +6
-0@@ -0,0 +1,29 @@ +ADS1015 (I2C) + +This device is a 12-bit A-D converter with 4 inputs. + +The inputs can be used single ended or in certain differential combinations. +
Documentation/devicetree/bindings/i2c/ads1015.txt line 16
Quoted 10 lines
Documentation/devicetree/bindings/i2c/ads1015.txt new file +10
-0+For configuration all possible combinations are mapped to 8 channels: +0: Voltage over AIN0 and AIN1. +1: Voltage over AIN0 and AIN3. +2: Voltage over AIN1 and AIN3. +3: Voltage over AIN2 and AIN3. +4: Voltage over AIN0 and GND. +5: Voltage over AIN1 and GND. +6: Voltage over AIN2 and GND. +7: Voltage over AIN3 and GND. +
Required properties:
- compatible : must be "ti,ads1015"
Quoted 21 lines
Documentation/devicetree/bindings/i2c/ads1015.txt new file +13
-0+Optional properties: + + - exported-channels : exported_channels is a bitmask that specifies which + channels should be accessable by the user. + +Example: +ads1015@49 { + compatible = "ti,ads1015"; + reg = <0x49>; + exported-channels = <0x14>; +}; + +In this example only channel 2 and 4 would be accessable by the user.Signature · 7 lines
1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/