-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: shields: add spi support to mikroe weather click shield
Added support for the SPI interface which is availble on the shield if the jumper configurations are changed. Signed-off-by: Ian Morris <[email protected]>
- Loading branch information
1 parent
318492b
commit 38b77fb
Showing
5 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
boards/shields/mikroe_weather_click/mikroe_weather_click.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
/* | ||
* Copyright (c) 2024 Common Ground Electronics | ||
* Copyright (c) 2024 Ian Morris | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&mikrobus_i2c { | ||
status = "okay"; | ||
|
||
bme280_mikroe_weather_click: bme280@76 { | ||
compatible = "bosch,bme280"; | ||
reg = <0x76>; | ||
}; | ||
}; | ||
/* | ||
* This file is intentionally empty. Please refer to shield documentation for | ||
* instructions on how to use this shield. | ||
*/ |
14 changes: 14 additions & 0 deletions
14
boards/shields/mikroe_weather_click/mikroe_weather_click_i2c.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) 2024 Common Ground Electronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&mikrobus_i2c { | ||
status = "okay"; | ||
|
||
bme280_mikroe_weather_click: bme280@76 { | ||
compatible = "bosch,bme280"; | ||
reg = <0x76>; | ||
}; | ||
}; |
17 changes: 17 additions & 0 deletions
17
boards/shields/mikroe_weather_click/mikroe_weather_click_spi.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright (c) 2024 Ian Morris | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&mikrobus_spi { | ||
status = "okay"; | ||
cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>; | ||
|
||
bme280_mikroe_weather_click: bme280@0 { | ||
status = "okay"; | ||
compatible = "bosch,bme280"; | ||
spi-max-frequency = <1000000>; | ||
reg = <0>; | ||
}; | ||
}; |