[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250620045456.1151-3-liquancin.mereenamathai@in.bosch.com>
Date: Fri, 20 Jun 2025 10:24:55 +0530
From: <liquancin.mereenamathai@...bosch.com>
To: <linux-iio@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <jic23@...nel.org>,
<dlechner@...libre.com>, <nuno.sa@...log.com>, <andy@...nel.org>,
<vassilisamir@...il.com>, <marcelo.schmitt1@...il.com>,
<javier.carrasco.cruz@...il.com>, <Xu.Zhang@...bosch.com>,
<Maoting.Bian@...bosch.com>, <Liquancin.MereenaMathai@...bosch.com>,
Liquancin Mereena Mathai <liquancin.mereenamathai@...bosch.com>
Subject: [PATCH v1 2/2] dt-bindings: iio driver: Add BMP390 pressure sensor device tree binding
From: Liquancin Mereena Mathai <liquancin.mereenamathai@...bosch.com>
Signed-off-by: Liquancin Mereena Mathai <liquancin.mereenamathai@...bosch.com>
---
.../bindings/iio/pressure/bosch,bmp390.yaml | 65 +++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/pressure/bosch,bmp390.yaml
diff --git a/Documentation/devicetree/bindings/iio/pressure/bosch,bmp390.yaml b/Documentation/devicetree/bindings/iio/pressure/bosch,bmp390.yaml
new file mode 100644
index 000000000000..c36c7827a9d2
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/pressure/bosch,bmp390.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/pressure/bosch,bmp390.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Bosch Sensortec BMP390 Pressure Sensor
+
+maintainers:
+ - Liquancin Mereena Mathai <liquancin.mereenamathai@...bosch.com>
+
+description: |
+ This binding describes the Bosch Sensortec BMP390 pressure
+ iio sensors with an i2c and spi interface
+ Specifications about the sensor can be found at:
+ https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp390/
+
+properties:
+ compatible:
+ enum:
+ - bosch,bmp390
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ spi-max-frequency:
+ maximum: 10000000
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ bmp390@76 {
+ compatible = "bosch,bmp390";
+ reg = <0x76>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <7 0>;
+ };
+ };
+ - |
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi0_pins>;
+ bmp390@0 {
+ compatible = "bosch,bmp390";
+ reg = <0>;
+ spi-max-frequency = <10000000>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <7 0>;
+ };
+ };
+
--
2.20.1
Powered by blists - more mailing lists