FILE
st,tsc1641.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/hwmon/st,tsc1641.yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/hwmon/st,tsc1641.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: ST Microelectronics TSC1641 I2C power monitor 8 9maintainers: 10 - Igor Reznichenko <igor@reznichenko.net> 11 12description: | 13 TSC1641 is a 60 V, 16-bit high-precision power monitor with I2C and 14 MIPI I3C interface 15 16 Datasheets: 17 https://www.st.com/resource/en/datasheet/tsc1641.pdf 18 19properties: 20 compatible: 21 const: st,tsc1641 22 23 reg: 24 maxItems: 1 25 26 interrupts: 27 description: Optional alert interrupt. 28 maxItems: 1 29 30 shunt-resistor-micro-ohms: 31 description: Shunt resistor value in micro-ohms. Since device has internal 32 16-bit RSHUNT register with 10 uOhm LSB, the maximum value is capped at 33 655.35 mOhm. 34 minimum: 100 35 default: 1000 36 maximum: 655350 37 38 st,alert-polarity-active-high: 39 $ref: /schemas/types.yaml#/definitions/flag 40 description: Default value is 0 which configures the normal polarity of the 41 ALERT pin, being active low open-drain. Setting this to 1 configures the 42 polarity of the ALERT pin to be inverted and active high open-drain. 43 Specify this property to set the alert polarity to active-high. 44 45required: 46 - compatible 47 - reg 48 49additionalProperties: false 50 51examples: 52 - | 53 i2c { 54 #address-cells = <1>; 55 #size-cells = <0>; 56 57 power-sensor@40 { 58 compatible = "st,tsc1641"; 59 reg = <0x40>; 60 shunt-resistor-micro-ohms = <1000>; 61 st,alert-polarity-active-high; 62 }; 63 };
~/
Read-only file preview.