Browse Source
This patch adds support via dt compatible property.
Signed-off-by: Ivan Wagner <ivan.wagner@tecinvent.ch>
(cherry picked from commit b5adb4457c
)
backport-87871-to-v3.7-branch
8 changed files with 63 additions and 52 deletions
@ -1,12 +1,13 @@
@@ -1,12 +1,13 @@
|
||||
# MS5837 pressure sensor configuration options |
||||
|
||||
# Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu> |
||||
# Copyright (c) 2025 Ivan Wagner <ivan.wagner@tecinvent.ch> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config MS5837 |
||||
bool "MS5837 pressure and temperature sensor" |
||||
default y |
||||
depends on DT_HAS_MEAS_MS5837_ENABLED |
||||
depends on DT_HAS_MEAS_MS5837_02BA_ENABLED || DT_HAS_MEAS_MS5837_30BA_ENABLED |
||||
select I2C |
||||
help |
||||
Enable driver for MS5837 pressure and temperature sensor. |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2025, Ivan Wagner <ivan.wagner@tecinvent.ch> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
description: TE Connectivity MS5837-02BA digital pressure sensor |
||||
|
||||
compatible: "meas,ms5837-02ba" |
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml] |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2025, Ivan Wagner <ivan.wagner@tecinvent.ch> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
description: TE Connectivity MS5837-30BA digital pressure sensor |
||||
|
||||
compatible: "meas,ms5837-30ba" |
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml] |
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
# Copyright (c) 2018, Jan Van Winkel <jan.van_winkel@dxplore.eu> |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
description: TE Connectivity MS5837 digital pressure sensor |
||||
|
||||
compatible: "meas,ms5837" |
||||
|
||||
include: [sensor-device.yaml, i2c-device.yaml] |
Loading…
Reference in new issue