diff options
Diffstat (limited to 'zephyr/dts/bindings')
6 files changed, 57 insertions, 4 deletions
diff --git a/zephyr/dts/bindings/temp/temp-3v0-22k6-47k-4050b.yaml b/zephyr/dts/bindings/temp/temp-3v0-22k6-47k-4050b.yaml index b2a3c4c88a..09390a3656 100644 --- a/zephyr/dts/bindings/temp/temp-3v0-22k6-47k-4050b.yaml +++ b/zephyr/dts/bindings/temp/temp-3v0-22k6-47k-4050b.yaml @@ -7,3 +7,9 @@ description: Thermistor 3v0-22k6-47k-4050b compatible: "temp-3v0-22k6-47k-4050b" include: [temp_sensor.yaml, thermistor.yaml] + +properties: + get-temp-func: + enum: + - get_temp_3v0_22k6_47k_4050b + default: get_temp_3v0_22k6_47k_4050b diff --git a/zephyr/dts/bindings/temp/temp-3v3-13k7-47k-4050b.yaml b/zephyr/dts/bindings/temp/temp-3v3-13k7-47k-4050b.yaml index 7928fcd54a..76b6dfaa30 100644 --- a/zephyr/dts/bindings/temp/temp-3v3-13k7-47k-4050b.yaml +++ b/zephyr/dts/bindings/temp/temp-3v3-13k7-47k-4050b.yaml @@ -7,3 +7,9 @@ description: Thermistor 3v3-13k7-47k-4050b compatible: "temp-3v3-13k7-47k-4050b" include: [temp_sensor.yaml, thermistor.yaml] + +properties: + get-temp-func: + enum: + - get_temp_3v3_13k7_47k_4050b + default: get_temp_3v3_13k7_47k_4050b diff --git a/zephyr/dts/bindings/temp/temp-3v3-30k9-47k-4050b.yaml b/zephyr/dts/bindings/temp/temp-3v3-30k9-47k-4050b.yaml index d8745e7abd..4d45a0eb51 100644 --- a/zephyr/dts/bindings/temp/temp-3v3-30k9-47k-4050b.yaml +++ b/zephyr/dts/bindings/temp/temp-3v3-30k9-47k-4050b.yaml @@ -7,3 +7,9 @@ description: Thermistor 3v3-30k9-47k-4050b compatible: "temp-3v3-30k9-47k-4050b" include: [temp_sensor.yaml, thermistor.yaml] + +properties: + get-temp-func: + enum: + - get_temp_3v3_30k9_47k_4050b + default: get_temp_3v3_30k9_47k_4050b diff --git a/zephyr/dts/bindings/temp/temp-3v3-51k1-47k-4050b.yaml b/zephyr/dts/bindings/temp/temp-3v3-51k1-47k-4050b.yaml index da53437c01..0b8343f909 100644 --- a/zephyr/dts/bindings/temp/temp-3v3-51k1-47k-4050b.yaml +++ b/zephyr/dts/bindings/temp/temp-3v3-51k1-47k-4050b.yaml @@ -7,3 +7,9 @@ description: Thermistor 3v3-51k1-47k-4050b compatible: "temp-3v3-51k1-47k-4050b" include: [temp_sensor.yaml, thermistor.yaml] + +properties: + get-temp-func: + enum: + - get_temp_3v3_51k1_47k_4050b + default: get_temp_3v3_51k1_47k_4050b diff --git a/zephyr/dts/bindings/temp/temp_sensor.yaml b/zephyr/dts/bindings/temp/temp_sensor.yaml index b96e9c3262..753cfab967 100644 --- a/zephyr/dts/bindings/temp/temp_sensor.yaml +++ b/zephyr/dts/bindings/temp/temp_sensor.yaml @@ -14,6 +14,17 @@ properties: Human-readable string describing the device (used as device_get_binding() argument) + enum-name: + type: string + required: true + description: + Enum values used in the source code to refer to the temperature sensors + enum: + - TEMP_SENSOR_CHARGER + - TEMP_SENSOR_DDR_SOC + - TEMP_SENSOR_FAN + - TEMP_SENSOR_PP3300_REGULATOR + temp_fan_off: required: false type: int diff --git a/zephyr/dts/bindings/temp/thermistor.yaml b/zephyr/dts/bindings/temp/thermistor.yaml index 80503ce4df..66a07de945 100644 --- a/zephyr/dts/bindings/temp/thermistor.yaml +++ b/zephyr/dts/bindings/temp/thermistor.yaml @@ -5,7 +5,25 @@ # Common properties for thermistors properties: - adc: - required: true - type: phandle - description: named-adc child node connected to the thermistor + adc: + required: true + type: phandle + description: named-adc child node connected to the thermistor + + get-temp-func: + type: string + required: false + description: > + Name of the board-provided function which reads the temperature. If you + have different values and need to add a new function, you can add that + here. + + The name is get_temp_<v>_<rs>_<rn>_<b>: + + v: voltage of resistor-divider circuit + rs: value of the resistor that is in series with the thermistor + rn: nominal resistance of thermistor at 25C + b: B value for temperature range 25C to 100C + + See https://www.electronics-tutorials.ws/io/thermistors.html for more + information. |