Repository navigation
AM13E232 support #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
AM13E232 support #254
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ac78847
PEND: dts: ti: am13: create AM13E232N9 pinctrl dtsi
s-m33r e22584f
PEND: dts: arm: ti: am13: move common nodes to am13e2x.dtsi
s-m33r 97e4d83
PEND: dts: arm: ti: am13: add am13e232 SoC DTSI
s-m33r a7b3f86
PEND: soc: ti: am13: add AM13E232 Kconfig and MPU regions
s-m33r 32f01c4
PEND: boards: ti: add AM13E232 LaunchPad
s-m33r ae50232
PEND: tests: drivers: i2c: enable i2c_target_api test on lp_am13e232
s-m33r 19c4310
PEND: tests: drivers: spi: enable spi_loopback test on lp_am13e232
s-m33r 653be02
PEND: tests: drivers: uart: enable tests on lp_am13e232
s-m33r ab18661
PEND: dts: arm: ti: am13: am13e232: enable GPIO nodes
s-m33r d3153e0
PEND: boards: ti: lp_am13e232: enable GPIO
s-m33r c8bedc6
PEND: tests: drivers: gpio: gpio_basic_api: enable on lp_am13e232
s-m33r c192561
PEND: boards: ti: lp_am13e232: enable CRC
s-m33r 40c1ccd
PEND: boards: ti: lp_am13e232: enable watchdog0
s-m33r 731308b
PEND: boards: ti: lp_am13e232: enable CAN
s-m33r bb42086
PEND: tests: drivers: can: can_api: enable for lp_am13e232
s-m33r cae9558
PEND: include: dt-bindings: misc: ti_mspm_sysctl: AM13E232 XBAR PWREN…
s-m33r 150df9c
PEND: dts: arm: ti: am13: am13e232.dtsi: set XBAR PWREN bits
s-m33r 0fb6a59
PEND: tests: drivers: mux: mux_api: enable for lp_am13e232
s-m33r f7c9028
PEND: boards: ti: lp_am13e232: enable button and LEDs
s-m33r aa8728c
PEND: boards: ti: lp_am13e232: enable counter
s-m33r 08db887
PEND: tests: drivers: counter: counter_basic_api: enable lp_am13e232
s-m33r 0d84b7d
PEND: include: dt-bindings: misc: ti_mspm_sysctl: AM13E232 ECAP PWREN…
s-m33r 537f707
PEND: dts: arm: ti: am13: am13e232.dtsi: set ECAP PWREN bits
s-m33r 4725951
PEND: boards: ti: lp_am13e232: enable pwm
s-m33r e2ecf95
PEND: tests: drivers: pwm: pwm_loopback: enable lp_am13e232
s-m33r a7fa1ba
PEND: boards: ti: lp_am13e232: mention enabled features in board YAML
s-m33r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 @@ | ||
| # Copyright (c) 2026 Texas Instruments Incorporated | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_LP_AM13E232 | ||
| select SOC_AM13E232N9 |
This file contains hidden or 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,8 @@ | ||
| # Copyright (c) 2026 Texas Instruments Incorporated | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| if(NOT CONFIG_XIP) | ||
| board_runner_args(openocd "--use-elf") | ||
|
soumya-TI marked this conversation as resolved.
Resolved
|
||
| endif() | ||
|
|
||
| include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) | ||
This file contains hidden or 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,9 @@ | ||
| # Copyright (c) 2026 Texas Instruments Incorporated | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| board: | ||
| name: lp_am13e232 | ||
| full_name: AM13E232 Launchpad | ||
| vendor: ti | ||
| socs: | ||
| - name: am13e232n9 |
This file contains hidden or 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,176 @@ | ||
| /* | ||
| * Copyright (c) 2026 Texas Instruments Incorporated | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include <ti/am13/am13e232n9.dtsi> | ||
| #include <ti/am13/am13e232n9-pinctrl.dtsi> | ||
| #include <zephyr/dt-bindings/gpio/gpio.h> | ||
| #include <zephyr/dt-bindings/input/input-event-codes.h> | ||
| #include <zephyr/dt-bindings/mux/ti_am13e2_xbar_in.h> | ||
| #include <zephyr/dt-bindings/mux/ti_am13e2_xbar_out.h> | ||
|
|
||
| / { | ||
| model = "TI AM13E232 Launchpad"; | ||
| compatible = "ti,am13e232n9"; | ||
|
|
||
| chosen { | ||
| zephyr,sram = &sram0_3; | ||
| zephyr,flash = &flash0; | ||
| zephyr,crc = &crc; | ||
| zephyr,canbus = &mcan0; | ||
| zephyr,console = &unicomm4_uart; | ||
| zephyr,shell-uart = &unicomm4_uart; | ||
| }; | ||
|
|
||
| aliases { | ||
| watchdog0 = &wdt0; | ||
| led0 = &led0; | ||
| led1 = &led1; | ||
| sw0 = &btn_s2; | ||
| }; | ||
|
|
||
| keys { | ||
| compatible = "gpio-keys"; | ||
|
|
||
| btn_s2: btn_s2 { | ||
| gpios = <&gpiob 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
| label = "S2 Wake"; | ||
| zephyr,code = <INPUT_KEY_0>; | ||
| }; | ||
| }; | ||
|
|
||
| leds { | ||
| compatible = "gpio-leds"; | ||
|
|
||
| led0: led_0 { | ||
| gpios = <&gpiod 1 GPIO_ACTIVE_HIGH>; | ||
| label = "Green LED"; | ||
| }; | ||
|
|
||
| led1: led_1 { | ||
| gpios = <&gpiod 0 GPIO_ACTIVE_HIGH>; | ||
| label = "Red LED"; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &gpioa { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &gpiob { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &gpioc { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &gpiod { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &cpu0 { | ||
| clock-frequency = <DT_FREQ_M(200)>; | ||
| }; | ||
|
|
||
| &mclk { | ||
| clocks = <&hsclk>; | ||
| }; | ||
|
|
||
| &hsclk { | ||
| clocks = <&syspll>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &syspll { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &hfxt { | ||
| clock-frequency = <DT_FREQ_M(48)>; | ||
| ti,xtal-startup-delay-us = <500>; | ||
| }; | ||
|
|
||
| &wdt0 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &timg12_0 { | ||
| status = "okay"; | ||
|
|
||
| counterg12_0: counterg12_0 { | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
|
|
||
| &canclk { | ||
| clocks = <&syspll>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &mcan0 { | ||
| status = "okay"; | ||
| pinctrl-0 = <&mcan0_tx_pa12 &mcan0_rx_pa11>; | ||
| pinctrl-names = "default"; | ||
| ti,divider = <2>; | ||
| }; | ||
|
|
||
| &unicomm4 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &unicomm4_uart { | ||
| status = "okay"; | ||
| current-speed = <115200>; | ||
| pinctrl-0 = <&uc4_tx_sda_pico_pa0 &uc4_rx_scl_sclk_pa1>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
|
|
||
| &gpio_pb0 { | ||
| input-enable; | ||
| bias-pull-down; | ||
| }; | ||
|
|
||
| &gpio_pc15 { | ||
| input-enable; | ||
| bias-pull-down; | ||
| }; | ||
|
|
||
| &outputxbar8_pc14 { | ||
| bias-pull-down; | ||
| }; | ||
|
|
||
| &xbar1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &xbar2 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &ecap0 { | ||
| status = "okay"; | ||
| interrupts = <29 0>; | ||
| pinctrl-0 = <&outputxbar8_pc14>; | ||
| pinctrl-names = "default"; | ||
|
|
||
| /* ECAP0 -> OUTPUTXBAR8 (idx 7) -> G1SEL bit 4 -> PC14 */ | ||
| mux-states = <&xbar2 AM13E2_XBAR_OUT_CTRL(7, 1, 4) 1>; | ||
| mux-state-names = "output"; | ||
| }; | ||
|
|
||
| &ecap1 { | ||
| status = "okay"; | ||
| interrupts = <30 0>; | ||
| pinctrl-0 = <&gpio_pc15>; | ||
| pinctrl-names = "default"; | ||
|
|
||
| /* PC15 (GPIO79) -> INPUTXBAR1 -> ECAP1 ECCTL0.INPUTSEL (raw=1) */ | ||
| mux-states = <&xbar1 0 AM13E2_XBAR_IN_STATE(79, 1)>; | ||
| mux-state-names = "input"; | ||
| }; |
This file contains hidden or 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,22 @@ | ||
| identifier: lp_am13e232 | ||
| name: TI AM13E232 Launchpad | ||
| type: mcu | ||
| arch: arm | ||
| toolchain: | ||
| - zephyr | ||
| ram: 128 | ||
| flash: 512 | ||
| supported: | ||
| - aes | ||
| - can | ||
| - counter | ||
| - crc | ||
| - gpio | ||
| - i2c | ||
| - mux | ||
| - pinctrl | ||
| - pwm | ||
| - spi | ||
| - uart | ||
| - watchdog | ||
| vendor: ti |
This file contains hidden or 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,11 @@ | ||
| # Copyright (c) 2026 Texas Instruments Incorporated | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Enable UART driver | ||
| CONFIG_SERIAL=y | ||
|
|
||
| # Enable Console | ||
| CONFIG_CONSOLE=y | ||
| CONFIG_UART_CONSOLE=y | ||
|
|
||
| CONFIG_CLOCK_CONTROL=y |
This file contains hidden or 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,4 @@ | ||
| source [find interface/xds110.cfg] | ||
| adapter speed 10000 | ||
|
|
||
| source [find target/ti/am13e230x.cfg] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.