Skip to content

Commit b5166a9

Browse files
Ayush1325DhruvaG2000
authored andcommitted
variant: Add PocketBeagle 2 A53 rev A1 support
Only pins that are labeled as GPIO in schematics (and LED pins) are exposed as digital-pin-gpios. Other pins technically can be used as GPIOs, but require pinmuxing, and thus should not be part of the default setup. Signed-off-by: Ayush Singh <[email protected]>
1 parent 568d8d0 commit b5166a9

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Ayush Singh <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
digital-pin-gpios =
10+
<&main_gpio0 6 GPIO_ACTIVE_HIGH>, /* D0 - LED 1 */
11+
<&main_gpio0 5 GPIO_ACTIVE_HIGH>, /* D1 - LED 2 */
12+
<&main_gpio0 4 GPIO_ACTIVE_HIGH>, /* D2 - LED 3 */
13+
<&main_gpio0 3 GPIO_ACTIVE_HIGH>, /* D3 - LED 4 */
14+
<&main_gpio1 12 GPIO_ACTIVE_HIGH>, /* D4 - P1.04 */
15+
<&main_gpio0 50 GPIO_ACTIVE_HIGH>, /* D5 - P1.20 */
16+
<&main_gpio1 2 GPIO_ACTIVE_HIGH>, /* D6 - P1.34 */
17+
<&main_gpio0 53 GPIO_ACTIVE_HIGH>, /* D7 - P2.18 */
18+
<&main_gpio0 49 GPIO_ACTIVE_HIGH>, /* D8 - P2.20 */
19+
<&main_gpio0 63 GPIO_ACTIVE_HIGH>, /* D9 - P2.22 */
20+
<&main_gpio0 51 GPIO_ACTIVE_HIGH>, /* D10 - P2.24 */
21+
<&main_gpio0 52 GPIO_ACTIVE_HIGH>; /* D11 - P2.33 */
22+
23+
builtin-led-gpios =
24+
<&main_gpio0 6 GPIO_ACTIVE_HIGH>, /* LED 1 */
25+
<&main_gpio0 5 GPIO_ACTIVE_HIGH>, /* LED 2 */
26+
<&main_gpio0 4 GPIO_ACTIVE_HIGH>, /* LED 3 */
27+
<&main_gpio0 3 GPIO_ACTIVE_HIGH>; /* LED 4 */
28+
29+
serials = <&main_uart0 &main_uart5>;
30+
i2cs = <&main_i2c2 &main_i2c3>;
31+
};
32+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Ayush Singh <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#pragma once

0 commit comments

Comments
 (0)