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

Move dt-binding for BME680 out of trivial-devices.yaml and extend it by adding the missing supplies. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com> Link: https://patch.msgid.link/20241202192341.33187-2-vassilisamir@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/chemical/bosch,bme680.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Bosch BME680 Gas sensor
|
|
|
|
maintainers:
|
|
- Vasileios Amoiridis <vassilisamir@gmail.com>
|
|
|
|
description: >
|
|
BME680 is a gas sensor which combines relative humidity, barometric pressure,
|
|
ambient temperature and gas (VOC - Volatile Organic Compounds) measurements.
|
|
|
|
https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf
|
|
|
|
properties:
|
|
compatible:
|
|
const: bosch,bme680
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
vdd-supply: true
|
|
vddio-supply: true
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
allOf:
|
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
co2-sensor@77 {
|
|
compatible = "bosch,bme680";
|
|
reg = <0x77>;
|
|
vddio-supply = <&vddio>;
|
|
vdd-supply = <&vdd>;
|
|
};
|
|
};
|
|
- |
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
co2-sensor@0 {
|
|
compatible = "bosch,bme680";
|
|
reg = <0>;
|
|
spi-max-frequency = <500000>;
|
|
vddio-supply = <&vddio>;
|
|
vdd-supply = <&vdd>;
|
|
};
|
|
};
|