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:
parent
f3c93e0302
commit
da7b65735e
6 changed files with 147 additions and 0 deletions
20
dts/bindings/sensor/lm35.yaml
Normal file
20
dts/bindings/sensor/lm35.yaml
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue