mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 20:30:41 +00:00

sps30 has gained support for serial communication so add example to the binding file. While at it remove reg property from list of required properties because it's no-op in case of serial communication. Signed-off-by: Tomasz Duszynski <tomasz.duszynski@octakon.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
47 lines
819 B
YAML
47 lines
819 B
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/chemical/sensirion,sps30.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Sensirion SPS30 particulate matter sensor
|
|
|
|
maintainers:
|
|
- Tomasz Duszynski <tduszyns@gmail.com>
|
|
|
|
description: |
|
|
Air pollution sensor capable of measuring mass concentration of dust
|
|
particles.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- sensirion,sps30
|
|
reg:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
air-pollution-sensor@69 {
|
|
compatible = "sensirion,sps30";
|
|
reg = <0x69>;
|
|
};
|
|
};
|
|
- |
|
|
serial {
|
|
air-pollution-sensor {
|
|
compatible = "sensirion,sps30";
|
|
};
|
|
};
|
|
|
|
...
|