diff --git a/dts/st/f1/stm32f103r(c-d-e)tx-pinctrl.dtsi b/dts/st/f1/stm32f103r(c-d-e)tx-pinctrl.dtsi index 3f8611970..52772bd06 100644 --- a/dts/st/f1/stm32f103r(c-d-e)tx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103r(c-d-e)tx-pinctrl.dtsi @@ -488,6 +488,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103r(c-d-e)yx-pinctrl.dtsi b/dts/st/f1/stm32f103r(c-d-e)yx-pinctrl.dtsi index e1912f25d..3f6db3840 100644 --- a/dts/st/f1/stm32f103r(c-d-e)yx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103r(c-d-e)yx-pinctrl.dtsi @@ -472,6 +472,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103r(f-g)tx-pinctrl.dtsi b/dts/st/f1/stm32f103r(f-g)tx-pinctrl.dtsi index 45a20b8a5..f456880c9 100644 --- a/dts/st/f1/stm32f103r(f-g)tx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103r(f-g)tx-pinctrl.dtsi @@ -488,6 +488,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103v(c-d-e)hx-pinctrl.dtsi b/dts/st/f1/stm32f103v(c-d-e)hx-pinctrl.dtsi index d2752861f..eb700c080 100644 --- a/dts/st/f1/stm32f103v(c-d-e)hx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103v(c-d-e)hx-pinctrl.dtsi @@ -612,6 +612,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103v(c-d-e)tx-pinctrl.dtsi b/dts/st/f1/stm32f103v(c-d-e)tx-pinctrl.dtsi index d2752861f..eb700c080 100644 --- a/dts/st/f1/stm32f103v(c-d-e)tx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103v(c-d-e)tx-pinctrl.dtsi @@ -612,6 +612,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103v(f-g)tx-pinctrl.dtsi b/dts/st/f1/stm32f103v(f-g)tx-pinctrl.dtsi index afbcf8707..3b9a29f93 100644 --- a/dts/st/f1/stm32f103v(f-g)tx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103v(f-g)tx-pinctrl.dtsi @@ -612,6 +612,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103z(c-d-e)hx-pinctrl.dtsi b/dts/st/f1/stm32f103z(c-d-e)hx-pinctrl.dtsi index 6a1e2ead3..8492466ea 100644 --- a/dts/st/f1/stm32f103z(c-d-e)hx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103z(c-d-e)hx-pinctrl.dtsi @@ -760,6 +760,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103z(c-d-e)tx-pinctrl.dtsi b/dts/st/f1/stm32f103z(c-d-e)tx-pinctrl.dtsi index 6a1e2ead3..8492466ea 100644 --- a/dts/st/f1/stm32f103z(c-d-e)tx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103z(c-d-e)tx-pinctrl.dtsi @@ -760,6 +760,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103z(f-g)hx-pinctrl.dtsi b/dts/st/f1/stm32f103z(f-g)hx-pinctrl.dtsi index b454dae9e..a61a70109 100644 --- a/dts/st/f1/stm32f103z(f-g)hx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103z(f-g)hx-pinctrl.dtsi @@ -760,6 +760,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/dts/st/f1/stm32f103z(f-g)tx-pinctrl.dtsi b/dts/st/f1/stm32f103z(f-g)tx-pinctrl.dtsi index b454dae9e..a61a70109 100644 --- a/dts/st/f1/stm32f103z(f-g)tx-pinctrl.dtsi +++ b/dts/st/f1/stm32f103z(f-g)tx-pinctrl.dtsi @@ -760,6 +760,58 @@ pinmux = ; }; + /* SDIO */ + + /omit-if-no-ref/ sdio_d4_pb8: sdio_d4_pb8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d5_pb9: sdio_d5_pb9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d6_pc6: sdio_d6_pc6 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d7_pc7: sdio_d7_pc7 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d0_pc8: sdio_d0_pc8 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d1_pc9: sdio_d1_pc9 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d2_pc10: sdio_d2_pc10 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_d3_pc11: sdio_d3_pc11 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_ck_pc12: sdio_ck_pc12 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + + /omit-if-no-ref/ sdio_cmd_pd2: sdio_cmd_pd2 { + pinmux = ; + slew-rate = "max-speed-50mhz"; + }; + /* SPI_MASTER_MISO */ /omit-if-no-ref/ spi1_miso_master_pa6: spi1_miso_master_pa6 { diff --git a/scripts/genpinctrl/stm32f1-pinctrl-config.yaml b/scripts/genpinctrl/stm32f1-pinctrl-config.yaml index 7398d9911..6ac032128 100644 --- a/scripts/genpinctrl/stm32f1-pinctrl-config.yaml +++ b/scripts/genpinctrl/stm32f1-pinctrl-config.yaml @@ -255,3 +255,8 @@ - name: USB match: "^USB_(?:DM)?(?:DP)?$" mode: input + +- name: SDIO + match: "^SDIO_(?:CK)?(?:CKIN)?(?:CDIR)?(?:CMD)?(?:D\\d+)?(?:D0DIR)?(?:D123DIR)?$" + mode: alternate + slew-rate: max-speed-50mhz