1# 2# Copyright 2021 Grinn 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7description: | 8 TI INA237 Bidirectional Current and Power Monitor. 9 The <zephyr/dt-bindings/sensor/ina237.h> file should be included in the 10 DeviceTree and it provides macros that can be used for initializing the 11 configuration registers. 12 13compatible: "ti,ina237" 14 15include: ti,ina23x-common.yaml 16 17properties: 18 config: 19 type: int 20 deprecated: true 21 default: 0x0000 22 description: | 23 Value of the configuration register 24 e.g shunt voltage and bus voltage ADC conversion 25 times and averaging, operating mode for INA230 or 26 delay for initial ADC conversion, shunt full scale range 27 for INA237. 28 29 Deprecated, please use new properties instead. 30 31 adc-config: 32 type: int 33 deprecated: true 34 default: 0x0000 35 description: | 36 Value of the ADC configuration register (ADC conversion times, 37 averaging, operating mode and etc). 38 39 Deprecated, please use new properties instead. 40 41 alert-config: 42 type: int 43 description: Diag alert register, default matches the power-on reset value 44 45 adc-mode: 46 type: string 47 description: | 48 ADC channel conversion configuration. 49 Default is the power-on reset value. 50 default: "Temperature, bus, and shunt voltage continuous" 51 enum: 52 - "Shutdown single shot" 53 - "Bus Voltage single shot" 54 - "Shunt Voltage single shot" 55 - "Bus and Shunt Voltage single shot" 56 - "Temperature Single shot" 57 - "Temperature and bus voltage single shot" 58 - "Temperature and shunt voltage single shot" 59 - "Temperature, bus, and shunt voltage single shot" 60 - "Shutdown continuous" 61 - "Bus voltage continuous" 62 - "Shunt voltage continuous" 63 - "Bus and shunt voltage continuous" 64 - "Temperature continuous" 65 - "Temperature and bus voltage continuous" 66 - "Temperature and shunt voltage continuous" 67 - "Temperature, bus, and shunt voltage continuous" 68 69 vbus-conversion-time-us: 70 type: int 71 description: | 72 Vbus conversion time in microseconds. 73 Default is the power-on reset value. 74 default: 1052 75 enum: [50, 84, 150, 280, 540, 1052, 2074, 4120] 76 77 vshunt-conversion-time-us: 78 type: int 79 description: | 80 Vshunt conversion time in microseconds. 81 Default is the power-on reset value. 82 default: 1052 83 enum: [50, 84, 150, 280, 540, 1052, 2074, 4120] 84 85 temp-conversion-time-us: 86 type: int 87 description: | 88 Temperature conversion time in microseconds. 89 Default is the power-on reset value. 90 default: 1052 91 enum: [50, 84, 150, 280, 540, 1052, 2074, 4120] 92 93 avg-count: 94 type: int 95 description: | 96 Number of samples to average (applies to all inputs). 97 Default is the power-on reset value. 98 default: 1 99 enum: [1, 4, 16, 64, 128, 256, 512, 1024] 100 101 high-precision: 102 type: boolean 103 description: | 104 Enable high precision mode (4x the resolution). 105