Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devicetree: Add grove connector definition for m5stack_core2
Basic pinout definition. Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
- Loading branch information
Martin Kiepfer
committed
Sep 8, 2023
1 parent
96bb7eb
commit 87afcd0
Showing
3 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2023 Joel Guittet | ||
* Copyright (c) 2023 Martin Kiepfer | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
grove_header: grove_header { | ||
compatible = "grove-header"; | ||
#gpio-cells = <2>; | ||
gpio-map-mask = <0xffffffff 0xffffffc0>; | ||
gpio-map-pass-thru = <0 0x3f>; | ||
gpio-map = <0 0 &gpio1 1 0>, /* D0/SCL/RX */ | ||
<1 0 &gpio1 0 0>; /* D1/SDA/TX */ | ||
}; | ||
}; | ||
|
||
grove_i2c: &i2c1 {}; | ||
grove_uart: &uart1 {}; |
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