diff --git a/boards/arm/sam4e_xpro/sam4e_xpro-pinctrl.dtsi b/boards/arm/sam4e_xpro/sam4e_xpro-pinctrl.dtsi index fb19be497ca6a3..0bce2fe8dbce55 100644 --- a/boards/arm/sam4e_xpro/sam4e_xpro-pinctrl.dtsi +++ b/boards/arm/sam4e_xpro/sam4e_xpro-pinctrl.dtsi @@ -39,6 +39,24 @@ }; }; + gpio_keys_default: gpio_keys_default { + group1 { + pinmux = ; + bias-pull-up; + }; + }; + + hsmci_default: hsmci_default { + group1 { + pinmux = , + , + , + , + , + ; + }; + }; + mdio_default: mdio_default { group1 { pinmux = , @@ -46,6 +64,13 @@ }; }; + pwm0_default: pwm0_default { + group1 { + pinmux = , + ; + }; + }; + spi0_default: spi0_default { group1 { pinmux = , @@ -87,23 +112,4 @@ ; }; }; - - pwm0_default: pwm0_default { - group1 { - pinmux = , - ; - }; - }; - - hsmci_default: hsmci_default { - group1 { - pinmux = , - , - , - , - , - ; - }; - }; - }; diff --git a/boards/arm/sam4e_xpro/sam4e_xpro.dts b/boards/arm/sam4e_xpro/sam4e_xpro.dts index ddd73d0faeffb1..c14a972fda8a87 100644 --- a/boards/arm/sam4e_xpro/sam4e_xpro.dts +++ b/boards/arm/sam4e_xpro/sam4e_xpro.dts @@ -41,6 +41,10 @@ gpio_keys { compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + user_button: button_1 { label = "User Button"; gpios = <&pioa 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; diff --git a/boards/arm/sam4s_xplained/sam4s_xplained-pinctrl.dtsi b/boards/arm/sam4s_xplained/sam4s_xplained-pinctrl.dtsi index 703e04ca5e125c..0cc6a065969cbb 100644 --- a/boards/arm/sam4s_xplained/sam4s_xplained-pinctrl.dtsi +++ b/boards/arm/sam4s_xplained/sam4s_xplained-pinctrl.dtsi @@ -1,46 +1,25 @@ /* - * Copyright (c) 2022, Gerson Fernando Budke + * Copyright (c) 2022-2023, Gerson Fernando Budke * SPDX-License-Identifier: Apache-2.0 */ #include &pinctrl { - spi0_default: spi0_default { + adc0_default: adc0_default { group1 { - pinmux = , - , - , - , - ; + pinmux = , + ; }; }; - twi0_default: twi0_default { + gpio_keys_default: gpio_keys_default { group1 { - pinmux = , - ; + pinmux = ; + bias-pull-up; }; }; - uart0_default: uart0_default { - group1 { - pinmux = , - ; - }; - }; - uart1_default: uart1_default { - group1 { - pinmux = , - ; - }; - }; - usart1_default: usart1_default { - group1 { - pinmux = , - ; - }; - }; pwm0_default: pwm0_default { group1 { pinmux = , @@ -48,12 +27,7 @@ ; }; }; - adc0_default: adc0_default { - group1 { - pinmux = , - ; - }; - }; + smc_default: smc_default { group1 { pinmux = , @@ -89,4 +63,40 @@ ; }; }; + + spi0_default: spi0_default { + group1 { + pinmux = , + , + , + , + ; + }; + }; + + twi0_default: twi0_default { + group1 { + pinmux = , + ; + }; + }; + + uart0_default: uart0_default { + group1 { + pinmux = , + ; + }; + }; + uart1_default: uart1_default { + group1 { + pinmux = , + ; + }; + }; + usart1_default: usart1_default { + group1 { + pinmux = , + ; + }; + }; }; diff --git a/boards/arm/sam4s_xplained/sam4s_xplained.dts b/boards/arm/sam4s_xplained/sam4s_xplained.dts index 2e06d08aaded90..f5cb00c6e10c57 100644 --- a/boards/arm/sam4s_xplained/sam4s_xplained.dts +++ b/boards/arm/sam4s_xplained/sam4s_xplained.dts @@ -1,5 +1,7 @@ /* * Copyright (c) Justin Watson 2017 + * Copyright (c) 2020-2023 Gerson Fernando Budke + * * SPDX-License-Identifier: Apache-2.0 */ @@ -58,6 +60,10 @@ gpio_keys { compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + user_button: button_1 { label = "User Button"; gpios = <&pioa 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; diff --git a/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi b/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi index 93dc9b1f356840..450064cac8fbff 100644 --- a/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi +++ b/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi @@ -2,7 +2,7 @@ * Copyright (c) 2017 Piotr Mienkowski * Copyright (c) 2017 Justin Watson * Copyright (c) 2020 Stephanos Ioannidis - * Copyright (c) 2020 Gerson Fernando Budke + * Copyright (c) 2020-2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -39,6 +39,9 @@ gpio_keys { compatible = "gpio-keys"; + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + /* The switch is labeled SW300 in the schematic, and labeled * SW0 on the board, and labeld SW1 User Button on docs */ diff --git a/boards/arm/sam_e70_xplained/sam_e70_xplained-pinctrl.dtsi b/boards/arm/sam_e70_xplained/sam_e70_xplained-pinctrl.dtsi index 2007cbe95b830d..812638c79cc9f6 100644 --- a/boards/arm/sam_e70_xplained/sam_e70_xplained-pinctrl.dtsi +++ b/boards/arm/sam_e70_xplained/sam_e70_xplained-pinctrl.dtsi @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Gerson Fernando Budke + * Copyright (c) 2022-2023, Gerson Fernando Budke * SPDX-License-Identifier: Apache-2.0 */ @@ -13,7 +13,6 @@ ; }; }; - afec1_default: afec1_default { /* ADCH - J504 */ group1 { pinmux = ; @@ -40,6 +39,13 @@ }; }; + gpio_keys_default: gpio_keys_default { + group1 { + pinmux = ; + bias-pull-up; + }; + }; + mdio_default: mdio_default { group1 { pinmux = , diff --git a/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi b/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi index 9864c7ae50a1f1..e49ae872734ca5 100644 --- a/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi +++ b/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi @@ -2,7 +2,7 @@ * Copyright (c) 2017 Piotr Mienkowski * Copyright (c) 2017 Justin Watson * Copyright (c) 2020 Stephanos Ioannidis - * Copyright (c) 2019-2022 Gerson Fernando Budke + * Copyright (c) 2019-2023 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -54,6 +54,9 @@ gpio_keys { compatible = "gpio-keys"; + pinctrl-0 = <&gpio_keys_default>; + pinctrl-names = "default"; + /* The switch is labeled SW300/301 in the schematic, and * labeled SW0 on the board, and labeled ERASE User Button * on docs diff --git a/boards/arm/sam_v71_xult/sam_v71_xult-pinctrl.dtsi b/boards/arm/sam_v71_xult/sam_v71_xult-pinctrl.dtsi index fa7d49227439ee..1f023736669ddc 100644 --- a/boards/arm/sam_v71_xult/sam_v71_xult-pinctrl.dtsi +++ b/boards/arm/sam_v71_xult/sam_v71_xult-pinctrl.dtsi @@ -12,7 +12,6 @@ ; }; }; - afec1_default: afec1_default { group1 { pinmux = , @@ -40,6 +39,13 @@ }; }; + gpio_keys_default: gpio_keys_default { + group1 { + pinmux = ; + bias-pull-up; + }; + }; + mdio_default: mdio_default { group1 { pinmux = ,