drivers: sensors: Add driver for LM35

Add a driver implementation for the LM35 ADC temperature sensor

Signed-off-by: Renato Soma <renatoys08@gmail.com>
This commit is contained in:
Renato Soma 2024-02-14 14:31:00 -03:00 committed by Fabio Baltieri
commit da7b65735e
6 changed files with 147 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# SPDX-License-Identifier: Apache-2.0
description: LM35 Digital Temperature Sensor
compatible: "lm35"
include: sensor-device.yaml
properties:
io-channels:
required: true
description: |
ADC channel that will perform measurement
resolution:
type: int
default: 12
description: |
ADC resolution to be used for the channel. Defaults to 12 bits
as it's the most common for adc based drivers.