Path: blob/master/Documentation/devicetree/bindings/hwmon/adi,ltc4282.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/adi,ltc4282.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices LTC4282 I2C High Current Hot Swap Controller over I2C78maintainers:9- Nuno Sa <nuno.sa@analog.com>1011description: |12Analog Devices LTC4282 I2C High Current Hot Swap Controller over I2C.1314https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4282.pdf1516properties:17compatible:18enum:19- adi,ltc42822021reg:22maxItems: 12324vdd-supply: true2526clocks:27maxItems: 12829'#clock-cells':30const: 03132adi,rsense-nano-ohms:33description: Value of the sense resistor.3435adi,vin-mode-microvolt:36description:37Selects operating range for the Undervoltage, Overvoltage and Foldback38pins. Also for the ADC. Should be set to the nominal input voltage.39enum: [3300000, 5000000, 12000000, 24000000]40default: 120000004142adi,fet-bad-timeout-ms:43description:44From the moment a FET bad conditions is present, this property selects the45wait time/timeout for a FET-bad fault to be signaled. Setting this to 0,46disables FET bad faults to be reported.47default: 25548maximum: 2554950adi,overvoltage-dividers:51description: |52Select which dividers to use for VDD Overvoltage detection. Note that53when the internal dividers are used the threshold is referenced to VDD.54The percentages in the datasheet are misleading since the actual values55to look for are in the "Absolute Maximum Ratings" table in the56"Comparator Inputs" section. In there there's a line for each of the 5%,5710% and 15% settings with the actual min, typical and max tolerances.58$ref: /schemas/types.yaml#/definitions/string59enum: [external, vdd_5_percent, vdd_10_percent, vdd_15_percent]60default: external6162adi,undervoltage-dividers:63description: |64Select which dividers to use for VDD Overvoltage detection. Note that65when the internal dividers are used the threshold is referenced to VDD.66The percentages in the datasheet are misleading since the actual values67to look for are in the "Absolute Maximum Ratings" table in the68"Comparator Inputs" section. In there there's a line for each of the 5%,6910% and 15% settings with the actual min, typical and max tolerances.70$ref: /schemas/types.yaml#/definitions/string71enum: [external, vdd_5_percent, vdd_10_percent, vdd_15_percent]72default: external7374adi,current-limit-sense-microvolt:75description:76The current limit sense voltage of the chip is adjustable between7712.5mV and 34.4mV in 3.1mV steps. This effectively limits the current78on the load.79enum: [12500, 15625, 18750, 21875, 25000, 28125, 31250, 34375]80default: 250008182adi,overcurrent-retry:83description:84If set, enables the chip to auto-retry 256 timer cycles after an85Overcurrent fault.86type: boolean8788adi,overvoltage-retry-disable:89description:90If set, disables the chip to auto-retry 50ms after an Overvoltage fault.91It's enabled by default.92type: boolean9394adi,undervoltage-retry-disable:95description:96If set, disables the chip to auto-retry 50ms after an Undervoltage fault.97It's enabled by default.98type: boolean99100adi,fault-log-enable:101description:102If set, enables the FAULT_LOG and ADC_ALERT_LOG registers to be written103to the EEPROM when a fault bit transitions high and hence, will be104available after a power cycle (the chip loads the contents of105the EE_FAULT_LOG register - the one in EEPROM - into FAULT_LOG at boot).106type: boolean107108adi,gpio1-mode:109description: Defines the function of the Pin. It can indicate that power is110good (PULL the pin low when power is not good) or that power is bad (Go111into high-z when power is not good).112$ref: /schemas/types.yaml#/definitions/string113enum: [power_bad, power_good]114default: power_good115116adi,gpio2-mode:117description: Defines the function of the Pin. It can be set as the input for118the ADC or indicating that the MOSFET is in stress (dissipating power).119$ref: /schemas/types.yaml#/definitions/string120enum: [adc_input, stress_fet]121default: adc_input122123adi,gpio3-monitor-enable:124description: If set, gpio3 is set as input for the ADC instead of gpio2.125type: boolean126127allOf:128- if:129required:130- adi,gpio3-monitor-enable131then:132properties:133adi,gpio2-mode:134const: stress_fet135136required:137- compatible138- reg139- adi,rsense-nano-ohms140141additionalProperties: false142143examples:144- |145i2c {146#address-cells = <1>;147#size-cells = <0>;148149hwmon@50 {150compatible = "adi,ltc4282";151reg = <0x50>;152adi,rsense-nano-ohms = <500>;153154adi,gpio1-mode = "power_good";155adi,gpio2-mode = "adc_input";156};157};158...159160161