83bea9a796
DTS property attributes are (by default) not required. Explicitly specifying `required: false` is redundant. Perhaps a warning to that effect would be useful. Signed-off-by: Chris Friedt <cfriedt@meta.com>
24 lines
444 B
YAML
24 lines
444 B
YAML
# Copyright (c) 2021 G-Technologies Sdn. Bhd.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: Winsen MHZ-19B CO2 Sensor
|
|
|
|
compatible: "winsen,mhz19b"
|
|
|
|
include: [sensor-device.yaml, uart-device.yaml]
|
|
|
|
properties:
|
|
maximum-range:
|
|
type: int
|
|
required: true
|
|
description: CO2 detection range.
|
|
enum:
|
|
- 2000
|
|
- 5000
|
|
- 10000
|
|
|
|
abc-on:
|
|
type: boolean
|
|
description: |
|
|
Enable ABC self-calibration function
|