08ece57b9e
move DT_DRV_COMPAT to bmm150.h. so that can be decide which interface to use. define struct bmm150_bus_io interface for bmm150_i2c.c and bmm150_spi.c in bmm150.h. redefined bus operation interface in bmm150.c, this allow the driver to decide which interface to use during construction. Signed-off-by: Weiwei Guo <guoweiwei@syriusrobotics.com>
11 lines
295 B
YAML
11 lines
295 B
YAML
# Copyright (c) 2019, Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: |
|
|
Bosch BMM150 Geomagnetic sensor. See more info at:
|
|
https://www.bosch-sensortec.com/bst/products/all_products/bmm150
|
|
|
|
compatible: "bosch,bmm150"
|
|
|
|
include: ["i2c-device.yaml", "bosch,bmm150.yaml"]
|