treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / chemical / plantower,pms7003.yaml
blob19e53930ebf653bb7802bccdd81e29a8d9b191b5
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/chemical/plantower,pms7003.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Plantower PMS7003 air pollution sensor
9 maintainers:
10   - Tomasz Duszynski <tduszyns@gmail.com>
12 description: |
13   Air pollution sensor capable of measuring mass concentration of dust
14   particles.
16 properties:
17   compatible:
18     enum:
19       - plantower,pms1003
20       - plantower,pms3003
21       - plantower,pms5003
22       - plantower,pms6003
23       - plantower,pms7003
24       - plantower,pmsa003
26   vcc-supply:
27     description: regulator that provides power to the sensor
29   plantower,set-gpios:
30     description: GPIO connected to the SET line
31     maxItems: 1
33   reset-gpios:
34     description: GPIO connected to the RESET line
35     maxItems: 1
37 required:
38   - compatible
39   - vcc-supply
41 examples:
42   - |
43     serial {
44       air-pollution-sensor {
45         compatible = "plantower,pms7003";
46         vcc-supply = <&reg_vcc5v0>;
47       };
48     };
50 ...