Convert pms7003 sensor driver to utilize device tree.
DTS would look something like the following for the pms7003:
uart {
pms7003: pms7003 {
status = "okay";
compatible = "plantower,pms7003";
label = "pms7003";
};
};
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
13 lines
336 B
YAML
13 lines
336 B
YAML
# Copyright (c) 2020, Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: |
|
|
Plantower PMS7003 air pollution sensor.
|
|
Air pollution sensor capable of measuring mass concentration of dust. See
|
|
more info at:
|
|
https://www.espruino.com/datasheets/PMS7003.pdf
|
|
|
|
compatible: "plantower,pms7003"
|
|
|
|
include: uart-device.yaml
|