arm64: dts/bindings: Add support for BeagleBadge
Subsystems (2)
v3 cover arm64: dts/bindings: Add support for BeagleBadge
Hi,
BeagleBoard.org BeagleBadge[1] is a compact, affordable open source hardware [2] single board computer based on the Texas Instruments AM62L3 SoC designed for IoT and embedded applications. Add base support for the same.
SD boot:
This patch series adds:
- Device tree bindings update for am62l3-badge
- Device tree source for BeagleBadge board
- Defconfig: drivers for BeagleBadge
Changelog since v2:
DTS:
- PWM period: 255ns -> 10000000ns
- vdd_3v3 vin-supply: vsys_out -> vcc_3v3_main
- MCP23S18 reset muxmode: 4 -> 7
- Typo: FUEL_GUAGE_BATLOW -> FUEL_GAUGE_BATLOW
- sdhci2: Remove #address-cells & #size-cells
Defconfig:
- Move config options as per make savedefconfig
V2
V1
Patch series depends on:
[0] https://beagleboard.org/
[1] https://www.beagleboard.org/boards/beaglebadge
[2] https://github.com/beagleboard/BeagleBadge/blob/main/design/BeagleBadge_RevA_V0.7_SCH_251107.pdf
Judith Mendez (3):
dt-bindings: arm: ti: Add am62l3-beaglebadge
arm64: dts: ti: Add k3-am62l3-beaglebadge
arm64: defconfig: Enable drivers for BeagleBadge
.../devicetree/bindings/arm/ti/k3.yaml | 1 + arch/arm64/boot/dts/ti/Makefile | 1 + .../boot/dts/ti/k3-am62l3-beaglebadge.dts | 700 ++++++++++++++++++ arch/arm64/configs/defconfig | 5 + 4 files changed, 707 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts
Signature · 1 line
2.54.0
PATCH v3 1/3 dt-bindings: arm: ti: Add am62l3-beaglebadge
This board is based on ti,am62l3.
https://beagleboard.org
https://github.com/beagleboard/BeagleBadge
---
Changelog:
- no change
--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +1 -0
@@ -40,6 +40,7 @@ properties: - description: K3 AM62L3 SoC and Boards items: - enum: + - beagle,am62l3-beaglebadge - ti,am62l3-evm - const: ti,am62l3
Signature · 1 line
2.54.0
Re: [PATCH v3 1/3] dt-bindings: arm: ti: Add am62l3-beaglebadge
Quoted 3 lines · Judith Mendez
This board is based on ti,am62l3.
Drop, it's just vendor website.
Quoted 1 line
Missing blank line. Please follow standard patch format.
Maybe that was supposed to be tag?
Best regards,
Krzysztof
PATCH v3 2/3 arm64: dts: ti: Add k3-am62l3-beaglebadge
In reply to Judith MendezBeagleBoard.org BeagleBadge is a compact, affordable open source hardware single board computer based on the Texas Instruments AM62L3 SoC designed for IoT and embedded applications with low power consumption. Expansion is provided over open standards based headers including QWIIC and GPIO interfaces.
https://beagleboard.org
https://github.com/beagleboard/BeagleBadge
---
Changelog:
- PWM period: 255ns -> 10000000ns
- vdd_3v3 vin-supply: vsys_out -> vcc_3v3_main
- MCP23S18 reset muxmode: 4 -> 7
- Typo: FUEL_GUAGE_BATLOW -> FUEL_GAUGE_BATLOW
- sdhci2: Remove #address-cells & #size-cells
--- arch/arm64/boot/dts/ti/Makefile | 1 + .../boot/dts/ti/k3-am62l3-beaglebadge.dts | 700 ++++++++++++++++++ 2 files changed, 701 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts
arch/arm64/boot/dts/ti/Makefile +1 -0
@@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62d2-evm.dtb # Boards with AM62Lx SoCs dtb-$(CONFIG_ARCH_K3) += k3-am62l3-evm.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am62l3-beaglebadge.dtb # Boards with AM62Px SoC dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +700 -0
700 lines not on this page · raw message
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH v3 2/3] arm64: dts: ti: Add k3-am62l3-beaglebadge
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] The `microchip,spi-present-mask` property is specified as an 8-bit value, which will cause the…
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The microchip,spi-present-mask property is specified as an 8-bit value, which will cause the mcp23s18 driver probe to fail.
- [High] Missing bootph-all property on &wkup_i2c0 and its PMIC child node tps65214.
- [Low] Unnecessary inclusion of DT binding header files.
--
commit 14331975158856c05618604ffa3aca84008b3237
Author: Judith Mendez <[email protected]>
arm64: dts: ti: Add k3-am62l3-beaglebadge
This commit adds the device tree for the BeagleBoard.org BeagleBadge, a compact single board computer based on the TI AM62L3 SoC. It provides initial support including GPIOs, LEDs, regulators, and other peripherals.
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +4
-0@@ -0,0 +1,700 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * https://www.beagleboard.org/boards/beaglebadge + *
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts line 14
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +10
-0+ * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/leds/common.h> +#include <dt-bindings/net/ti-dp83867.h> +#include <dt-bindings/thermal/thermal.h>
Are these last two includes necessary?
It doesn't look like there are any DP83867 Ethernet PHY nodes in this device tree to use the networking macros.
Also, the thermal zone trip point uses a raw string literal for the type rather than the standard macros defined in thermal.h.
[ ... ]
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts line 514
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +8
-0+&wkup_i2c0 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + status = "okay"; + + tps65214: pmic@30 { + compatible = "ti,tps65214";
Will U-Boot SPL drop the I2C bus and PMIC from its device tree, failing to configure essential SoC voltages like VDD_CORE, VDD_1V8, and VDD_LPDDR4?
While the associated pinmux group wkup_i2c0_pins_default correctly specifies bootph-all, both the wkup_i2c0 controller node and the PMIC child node do not.
Could this prevent the board from booting?
[ ... ]
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +5
-0+&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pins_default>; + status = "okay"; +
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts line 692
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +10
-0+ mcp23s18: gpio@0 { + compatible = "microchip,mcp23s18"; + reg = <0>; + spi-max-frequency = <10000000>; + gpio-controller; + #gpio-cells = <2>; + reset-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&mcp23s18_reset_pins_default>; + microchip,spi-present-mask = /bits/ 8 <0x01>;
Will the mcp23s18 driver probe fail here because of the 8-bit mask value?
The driver in drivers/pinctrl/pinctrl-mcp23s08_spi.c attempts to read this using device_property_read_u32(), which expects a property of at least 4 bytes.
Reading a 1-byte property will cause the underlying of_property_read_variable_u32_array() to return -EOVERFLOW, which could completely disable the GPIO expander and its dependent peripherals.
Quoted 2 lines
arch/arm64/boot/dts/ti/k3-am62l3-beaglebadge.dts new file +2
-0+ }; +};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
PATCH v3 3/3 arm64: defconfig: Enable drivers for BeagleBadge
In reply to Judith MendezEnable drivers used on BeagleBadge[1]:
- LED PWM Multicolor driver as a module
- MCP SPI IO Expander driver as a module
- Seven Segment display GPIO driver as module
- Temperature Sensor driver as a module
[1] https://github.com/beagleboard/BeagleBadge
---
Changelog:
- Move config options as per make savedefconfig
--- arch/arm64/configs/defconfig | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/configs/defconfig +5 -0
@@ -634,6 +634,7 @@ CONFIG_PINCTRL_BRCMSTB=y CONFIG_PINCTRL_BCM2712=y CONFIG_PINCTRL_DA9062=m CONFIG_PINCTRL_MAX77620=y +CONFIG_PINCTRL_MCP23S08=m CONFIG_PINCTRL_RK805=m CONFIG_PINCTRL_SINGLE=y CONFIG_PINCTRL_SX150X=m
@@ -766,6 +767,7 @@ CONFIG_SENSORS_LM90=m CONFIG_SENSORS_PWM_FAN=m CONFIG_SENSORS_RASPBERRYPI_HWMON=m CONFIG_SENSORS_SL28CPLD=m +CONFIG_SENSORS_SHT4x=m CONFIG_SENSORS_AMC6821=m CONFIG_SENSORS_INA2XX=m CONFIG_SENSORS_INA3221=m
@@ -955,6 +957,8 @@ CONFIG_VIDEO_IMX412=m CONFIG_VIDEO_OV5640=m CONFIG_VIDEO_OV5645=m CONFIG_VIDEO_S5KJN1=m +CONFIG_AUXDISPLAY=y +CONFIG_SEG_LED_GPIO=m CONFIG_DRM=m CONFIG_DRM_I2C_NXP_TDA998X=m CONFIG_DRM_HDLCD=m
@@ -1332,6 +1336,7 @@ CONFIG_LEDS_GPIO=y CONFIG_LEDS_PWM=y CONFIG_LEDS_SYSCON=y CONFIG_LEDS_QCOM_FLASH=m +CONFIG_LEDS_PWM_MULTICOLOR=m CONFIG_LEDS_QCOM_LPG=m CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_DISK=y
Signature · 1 line
2.54.0