Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
6c62ea0
drivers: pinctrl: stm32: initial version
gmarull Sep 6, 2021
3eebb21
drivers: serial: stm32: use new pinctrl API
gmarull Sep 7, 2021
a1a08b5
boards: arm: stm32: enable pinctrl driver
gmarull Sep 30, 2021
32479e9
boards: arm: stm32: add pinctrl state name for UART peripheral
gmarull Sep 7, 2021
f6eb197
drivers/adc: stm32: use new pinctrl API
erwango Nov 5, 2021
fe8254e
boards: arm: stm32: add pinctrl state name for ADC peripheral
erwango Nov 5, 2021
3c8dc24
drivers/can: stm32: use new pinctrl API
erwango Nov 5, 2021
096a899
boards: arm: stm32: add pinctrl state name for CAN peripheral
erwango Nov 5, 2021
6e44ca5
drivers/fdcan: stm32: use new pinctrl API
erwango Nov 5, 2021
18101b2
boards: arm: stm32: add pinctrl state name for FDCAN peripheral
erwango Nov 5, 2021
e8c2a8b
drivers/dac: stm32: use new pinctrl API
erwango Nov 5, 2021
8219d68
boards: arm: stm32: add pinctrl state name for DAC peripheral
erwango Nov 5, 2021
47d89b3
drivers/disk: sdmmc: stm32: use new pinctrl API
erwango Nov 5, 2021
feb6704
boards: arm: stm32: add pinctrl state name for SDMMC peripheral
erwango Nov 5, 2021
775b006
drivers/ethernet: stm32_hal: use new pinctrl API
erwango Nov 5, 2021
376864c
boards: arm: stm32: add pinctrl state name for ethernet peripheral
erwango Nov 5, 2021
4faf267
drivers/ethernet: dwmac_stm32h7x: use new pinctrl API
erwango Nov 8, 2021
87c1aae
drivers/flash: qspi stm32: use new pinctrl API
erwango Nov 8, 2021
c64fd24
boards: arm: stm32: add pinctrl state name for QSPI peripheral
erwango Nov 8, 2021
120f02d
boards: nucleo_f446ze: Remove QSPI node definition
erwango Nov 8, 2021
4bc9ceb
boards: arm: stm32: add pinctrl state name for I2C peripheral
erwango Nov 8, 2021
915aa37
drivers/i2c: stm32: use new pinctrl API
erwango Nov 8, 2021
9015eeb
boards: arm: stm32: add pinctrl state name for I2S peripheral
erwango Nov 8, 2021
4072700
drivers/i2s: stm32: use new pinctrl API
erwango Nov 8, 2021
b4ac565
drivers/memc: stm32: use new pinctrl API
erwango Nov 8, 2021
5b183b9
boards: arm: stm32: add pinctrl state name for FMC peripheral
erwango Nov 8, 2021
10bbd3e
drivers/spi: stm32: use new pinctrl API
erwango Nov 8, 2021
124903e
boards: arm: stm32: add pinctrl state name for SPI peripheral
erwango Nov 8, 2021
faf3b03
drivers/usb/device: stm32: use new pinctrl API
erwango Nov 8, 2021
4ea5f4b
boards: arm: stm32: add pinctrl state name for USB peripheral
erwango Nov 8, 2021
0ad3af3
boards: stm32: Remove use of CONFIG_PINMUX
erwango Nov 8, 2021
c1e8b88
drivers/pwm: stm32: Select PINMUX
erwango Nov 15, 2021
9a0f473
include/drivers: pinctrl: Provide an API for devices using custom reg
erwango Nov 10, 2021
3ab5d0e
drivers/pwm: stm32: use new pinctrl API
erwango Nov 8, 2021
6c2242b
tests/drivers/pinctrl: Update for CUSTOM_REG API
erwango Nov 18, 2021
104fa6c
boards: arm: stm32: add pinctrl state name for PWM peripheral
erwango Nov 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions boards/arm/96b_aerocore2/96b_aerocore2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,35 @@

&usart1 {
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&usart2 {
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&usart3 {
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&uart7 {
pinctrl-0 = <&uart7_tx_pe8 &uart7_rx_pe7>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&uart8 {
pinctrl-0 = <&uart8_tx_pe1 &uart8_rx_pe0>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
Expand All @@ -97,6 +102,7 @@
&spi1 {
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
&spi1_miso_pa6 &spi1_mosi_pa7>;
pinctrl-names = "default";
status = "okay";
};

Expand All @@ -105,11 +111,13 @@
&spi2 {
pinctrl-0 = <&spi2_nss_pb12 &spi2_sck_pb13
&spi2_miso_pb14 &spi2_mosi_pb15>;
pinctrl-names = "default";
status = "okay";
};

&spi3 {
pinctrl-0 = <&spi3_sck_pc10 &spi3_miso_pc11 &spi3_mosi_pc12>;
pinctrl-names = "default";
status = "okay";
};

Expand All @@ -118,17 +126,20 @@
&spi4 {
pinctrl-0 = <&spi4_nss_pe11 &spi4_sck_pe12
&spi4_miso_pe13 &spi4_mosi_pe14>;
pinctrl-names = "default";
status = "okay";
};

&i2c2 {
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

zephyr_udc0: &usbotg_fs {
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
pinctrl-names = "default";
status = "okay";
};

Expand All @@ -141,6 +152,7 @@ zephyr_udc0: &usbotg_fs {
&tim4_ch2_pd13
&tim4_ch3_pd14
&tim4_ch4_pd15>;
pinctrl-names = "default";
};
};

Expand All @@ -153,12 +165,14 @@ zephyr_udc0: &usbotg_fs {
&tim5_ch2_pa1
&tim5_ch3_pa2
&tim5_ch4_pa3>;
pinctrl-names = "default";
};
};

&adc1 {
pinctrl-0 = <&adc1_in10_pc0 &adc1_in11_pc1
&adc1_in12_pc2 &adc1_in13_pc3>;
pinctrl-names = "default";
status = "okay";
};

Expand Down
6 changes: 3 additions & 3 deletions boards/arm/96b_aerocore2/96b_aerocore2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# enable pinmux
CONFIG_PINMUX=y

# enable GPIO
CONFIG_GPIO=y

# Enable Clocks
CONFIG_CLOCK_CONTROL=y

# enable pin controller
CONFIG_PINCTRL=y
7 changes: 7 additions & 0 deletions boards/arm/96b_argonkey/96b_argonkey.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@

&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
Expand All @@ -80,6 +81,7 @@
&spi1 {
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
&spi1_miso_pa6 &spi1_mosi_pa7>;
pinctrl-names = "default";
status = "okay";
};

Expand All @@ -88,6 +90,7 @@
&spi2 {
pinctrl-0 = <&spi2_nss_pb12 &spi2_sck_pb13
&spi2_miso_pb14 &spi2_mosi_pb15>;
pinctrl-names = "default";
status = "okay";

/* ST Microelectronics LSM6DSL accel/gyro sensor */
Expand All @@ -107,6 +110,7 @@
&i2s5 {
status = "okay";
pinctrl-0 = <&i2s5_ck_pb0 &i2s5_sd_pb8>;
pinctrl-names = "default";

mp34dt05@0 {
compatible = "st,mpxxdtyy";
Expand All @@ -117,12 +121,14 @@

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c2 {
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb9>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;

Expand All @@ -148,6 +154,7 @@

&i2c3 {
pinctrl-0 = <&i2c3_scl_pa8 &i2c3_sda_pb4>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;

Expand Down
6 changes: 3 additions & 3 deletions boards/arm/96b_argonkey/96b_argonkey_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ CONFIG_HW_STACK_PROTECTION=y
# enable uart driver
CONFIG_SERIAL=y

# enable pinmux
CONFIG_PINMUX=y

# enable GPIO
CONFIG_GPIO=y

Expand All @@ -24,3 +21,6 @@ CONFIG_CLOCK_CONTROL=y
# console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# enable pin controller
CONFIG_PINCTRL=y
2 changes: 2 additions & 0 deletions boards/arm/96b_avenger96/96b_avenger96.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@

&uart4 {
pinctrl-0 = <&uart4_tx_pd1 &uart4_rx_pb2>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&uart7 {
pinctrl-0 = <&uart7_tx_pe8 &uart7_rx_pe7>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};
6 changes: 3 additions & 3 deletions boards/arm/96b_avenger96/96b_avenger96_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# pin mux configuration
CONFIG_PINMUX=y

# clock configuration
CONFIG_CLOCK_CONTROL=y

Expand All @@ -27,3 +24,6 @@ CONFIG_RAM_CONSOLE_BUFFER_SIZE=1024

# uart console (overrides remote proc console)
CONFIG_UART_CONSOLE=n

# enable pin controller
CONFIG_PINCTRL=y
8 changes: 8 additions & 0 deletions boards/arm/96b_carbon/96b_carbon.dts
Original file line number Diff line number Diff line change
Expand Up @@ -77,30 +77,35 @@

&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&usart2 {
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&usart6 {
pinctrl-0 = <&usart6_tx_pc6 &usart6_rx_pc7>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c2 {
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb3>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};
Expand All @@ -110,6 +115,7 @@

pinctrl-0 = <&spi1_miso_pa6 &spi1_mosi_pa7
&spi1_sck_pa5 &spi1_nss_pa4>;
pinctrl-names = "default";

/* Nordic nRF51822-QFAC */
bt-hci@0 {
Expand All @@ -125,11 +131,13 @@
&spi2 {
pinctrl-0 = <&spi2_nss_pb12 &spi2_sck_pb13
&spi2_miso_pb14 &spi2_mosi_pb15>;
pinctrl-names = "default";
status = "okay";
};

zephyr_udc0: &usbotg_fs {
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
pinctrl-names = "default";
status = "okay";
};

Expand Down
6 changes: 3 additions & 3 deletions boards/arm/96b_carbon/96b_carbon_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# enable pinmux
CONFIG_PINMUX=y

# enable GPIO
CONFIG_GPIO=y

# Enable Clocks
CONFIG_CLOCK_CONTROL=y

# enable pin controller
CONFIG_PINCTRL=y
5 changes: 5 additions & 0 deletions boards/arm/96b_neonkey/96b_neonkey.dts
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,28 @@

&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
current-speed = <115200>;
status = "okay";
};

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c2 {
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb3>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

&i2c3 {
pinctrl-0 = <&i2c3_scl_pa8 &i2c3_sda_pb4>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;

Expand All @@ -109,6 +113,7 @@
&spi1 {
pinctrl-0 = <&spi1_nss_pa4 &spi1_sck_pa5
&spi1_miso_pa6 &spi1_mosi_pa7>;
pinctrl-names = "default";
status = "okay";
};

Expand Down
6 changes: 3 additions & 3 deletions boards/arm/96b_neonkey/96b_neonkey_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ CONFIG_HW_STACK_PROTECTION=y
# enable uart driver
CONFIG_SERIAL=y

# enable pinmux
CONFIG_PINMUX=y

# enable GPIO
CONFIG_GPIO=y

Expand All @@ -24,3 +21,6 @@ CONFIG_CLOCK_CONTROL=y
# console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# enable pin controller
CONFIG_PINCTRL=y
Loading