boards: arm: mps3: add pinctrl support for mps3 board

Adds initial pinctrl support to all arm mps3 board targets.

Signed-off-by: Samuel Chee <samche01@arm.com>
Signed-off-by: Sudan Landge <sudan.landge@arm.com>
This commit is contained in:
Samuel Chee 2025-02-19 17:01:04 +00:00 committed by Benjamin Cabé
commit 7b6993ffe8
13 changed files with 106 additions and 20 deletions

View file

@ -0,0 +1,68 @@
/*
* Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/pinctrl/arm-mps3-pinctrl.h>
&pinctrl {
/omit-if-no-ref/ uart3_default: uart3_default {
group1 {
pinmux = <UART3_TXD_EXP>;
};
group2 {
pinmux = <UART3_RXD_EXP>;
input-enable;
};
};
/omit-if-no-ref/ uart4_default: uart4_default {
group1 {
pinmux = <UART4_TXD_EXP>;
};
group2 {
pinmux = <UART4_RXD_EXP>;
input-enable;
};
};
/omit-if-no-ref/ spi3_default: spi3_default {
group1 {
pinmux = <SPI3_SS_EXP>, <SPI3_MOSI_EXP>,
<SPI3_SCK_EXP>;
};
group2 {
pinmux = <SPI3_MISO_EXP>;
input-enable;
};
};
/omit-if-no-ref/ spi4_default: spi4_default {
group1 {
pinmux = <SPI4_SS_EXP>, <SPI4_MOSI_EXP>, <SPI4_SCK_EXP>;
};
group2 {
pinmux = <SPI4_MISO_EXP>;
input-enable;
};
};
/omit-if-no-ref/ sbcon2_default: sbcon2_default {
group1 {
pinmux = <SBCON2_SDA_EXP>, <SBCON2_SCL_EXP>;
input-enable;
};
};
/omit-if-no-ref/ sbcon3_default: sbcon3_default {
group1 {
pinmux = <SBCON3_SDA_EXP>, <SBCON3_SCL_EXP>;
input-enable;
};
};
};

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -104,3 +104,4 @@
&nvic {
arm,num-irq-priority-bits = <3>;
};
#include "mps3-pinctrl.dtsi"

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2019-2021 Linaro Limited
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -85,6 +85,8 @@ spi_shield0: spi@9203000 {
clocks = <&sysclk>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&spi3_default>;
pinctrl-names = "default";
};
spi_shield1: spi@9204000 {
@ -95,6 +97,8 @@ spi_shield1: spi@9204000 {
clocks = <&sysclk>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&spi4_default>;
pinctrl-names = "default";
};
i2c_shield0: i2c@9205000 {
@ -103,6 +107,8 @@ i2c_shield0: i2c@9205000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x9205000 0x1000>;
pinctrl-0 = <&sbcon2_default>;
pinctrl-names = "default";
};
i2c_shield1: i2c@9206000 {
@ -111,6 +117,8 @@ i2c_shield1: i2c@9206000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x9206000 0x1000>;
pinctrl-0 = <&sbcon3_default>;
pinctrl-names = "default";
};
i2c_ddr4_eeprom: i2c@9208000 {
@ -183,6 +191,8 @@ uart3: uart@9306000 {
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
pinctrl-0 = <&uart3_default>;
pinctrl-names = "default";
};
uart4: uart@9307000 {
@ -192,6 +202,8 @@ uart4: uart@9307000 {
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
pinctrl-0 = <&uart4_default>;
pinctrl-names = "default";
};
uart5: uart@9308000 {
@ -203,3 +215,8 @@ uart5: uart@9308000 {
clocks = <&sysclk>;
current-speed = <115200>;
};
pinctrl: pinctrl {
compatible = "arm,mps3-pinctrl";
status = "okay";
};

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2018-2021 Linaro Limited
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -11,7 +11,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-an547";
@ -95,3 +94,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2018-2021 Linaro Limited
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -11,7 +11,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-an547";
@ -100,3 +99,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-an552";
@ -94,3 +93,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-an552";
@ -99,3 +98,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-fvp";
@ -94,3 +93,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-fvp";
@ -99,3 +98,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-an555";
@ -94,3 +93,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-an555";
@ -99,3 +98,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-fvp";
@ -94,3 +93,4 @@
};
};
};
#include "mps3_common.dtsi"

View file

@ -1,5 +1,5 @@
/*
* Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
* Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -10,7 +10,6 @@
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <mem.h>
#include "mps3_common.dtsi"
/ {
compatible = "arm,mps3-fvp";
@ -99,3 +98,4 @@
};
};
};
#include "mps3_common.dtsi"