From 7f221d0d4202f110ad2f32b8a5801774d894a4c7 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Thu, 20 Nov 2025 12:50:33 +0530 Subject: [PATCH] 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 --- .../pocketbeagle_2_am6254_a53.overlay | 32 +++++++++++++++++++ variants/pocketbeagle_2_am6254_a53/variant.h | 7 ++++ 2 files changed, 39 insertions(+) create mode 100644 variants/pocketbeagle_2_am6254_a53/pocketbeagle_2_am6254_a53.overlay create mode 100644 variants/pocketbeagle_2_am6254_a53/variant.h diff --git a/variants/pocketbeagle_2_am6254_a53/pocketbeagle_2_am6254_a53.overlay b/variants/pocketbeagle_2_am6254_a53/pocketbeagle_2_am6254_a53.overlay new file mode 100644 index 000000000..ad7d041e6 --- /dev/null +++ b/variants/pocketbeagle_2_am6254_a53/pocketbeagle_2_am6254_a53.overlay @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 Ayush Singh + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + zephyr,user { + digital-pin-gpios = + <&main_gpio0 6 GPIO_ACTIVE_HIGH>, /* D0 - LED 1 */ + <&main_gpio0 5 GPIO_ACTIVE_HIGH>, /* D1 - LED 2 */ + <&main_gpio0 4 GPIO_ACTIVE_HIGH>, /* D2 - LED 3 */ + <&main_gpio0 3 GPIO_ACTIVE_HIGH>, /* D3 - LED 4 */ + <&main_gpio1 12 GPIO_ACTIVE_HIGH>, /* D4 - P1.04 */ + <&main_gpio0 50 GPIO_ACTIVE_HIGH>, /* D5 - P1.20 */ + <&main_gpio1 2 GPIO_ACTIVE_HIGH>, /* D6 - P1.34 */ + <&main_gpio0 53 GPIO_ACTIVE_HIGH>, /* D7 - P2.18 */ + <&main_gpio0 49 GPIO_ACTIVE_HIGH>, /* D8 - P2.20 */ + <&main_gpio0 63 GPIO_ACTIVE_HIGH>, /* D9 - P2.22 */ + <&main_gpio0 51 GPIO_ACTIVE_HIGH>, /* D10 - P2.24 */ + <&main_gpio0 52 GPIO_ACTIVE_HIGH>; /* D11 - P2.33 */ + + builtin-led-gpios = + <&main_gpio0 6 GPIO_ACTIVE_HIGH>, /* LED 1 */ + <&main_gpio0 5 GPIO_ACTIVE_HIGH>, /* LED 2 */ + <&main_gpio0 4 GPIO_ACTIVE_HIGH>, /* LED 3 */ + <&main_gpio0 3 GPIO_ACTIVE_HIGH>; /* LED 4 */ + + serials = <&main_uart0 &main_uart5>; + i2cs = <&main_i2c2 &main_i2c3>; + }; +}; diff --git a/variants/pocketbeagle_2_am6254_a53/variant.h b/variants/pocketbeagle_2_am6254_a53/variant.h new file mode 100644 index 000000000..31e6d5243 --- /dev/null +++ b/variants/pocketbeagle_2_am6254_a53/variant.h @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2025 Ayush Singh + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once