From c032c6305dccaa74c6095fc27f382aaa7ce2730f Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Tue, 2 Apr 2024 20:26:46 +0200 Subject: [PATCH] boards: nxp: vmu_rt1170: Fix dts binding issues Fixs USDHC by setting PWR and CD gpio's correctly. Adds missing button from the GPS module. Co-authored-by: Peter van der Perk Signed-off-by: Benjamin Perseghetti --- boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi | 13 +++++++++++-- boards/nxp/vmu_rt1170/vmu_rt1170.dts | 17 ++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi b/boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi index d25bffa04c5..ac50cfa8b76 100644 --- a/boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi +++ b/boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi @@ -128,6 +128,11 @@ }; }; + pinmux_user: pinmux_user { + group0 { + pinmux = <&iomuxc_gpio_emc_b1_24_gpio_mux1_io24>; + }; + }; pinmux_flexspi1: pinmux_flexspi1 { group0 { @@ -346,11 +351,15 @@ input-enable; }; group1 { - pinmux = <&iomuxc_gpio_sd_b1_01_usdhc1_clk>, - <&iomuxc_gpio_ad_32_usdhc1_cd_b>; + pinmux = <&iomuxc_gpio_sd_b1_01_usdhc1_clk>; drive-strength = "high"; slew-rate = "fast"; }; + group2 { + pinmux = <&iomuxc_gpio_ad_32_usdhc1_cd_b>; + bias-pull-down; + input-enable; + }; }; }; diff --git a/boards/nxp/vmu_rt1170/vmu_rt1170.dts b/boards/nxp/vmu_rt1170/vmu_rt1170.dts index 265fedef389..dc60deb2e18 100644 --- a/boards/nxp/vmu_rt1170/vmu_rt1170.dts +++ b/boards/nxp/vmu_rt1170/vmu_rt1170.dts @@ -19,6 +19,7 @@ led1 = &red_led; watchdog0 = &wdog1; sdhc0 = &usdhc1; + sw0 = &arming_button; }; chosen { @@ -34,13 +35,13 @@ zephyr,code-partition = &slot0_partition; }; - /* This regulator controls VDD_3V3_SD_CARD onboard supply */ - reg-3v3-sdcard { - compatible = "regulator-fixed"; - regulator-name = "reg-3v3-sdcard"; - enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; - regulator-always-on; - status = "okay"; + /* This is the Button on the included GPS module for 10 pin JST-GH */ + buttons { + compatible = "gpio-keys"; + arming_button: button_0 { + label = "Arming Switch"; + gpios = <&gpio1 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; + }; }; /* This regulator controls VDD_5V_PERIPH onboard supply */ @@ -397,6 +398,8 @@ &usdhc1 { status = "okay"; + no-1-8-v; + pwr-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; sdmmc { compatible = "zephyr,sdmmc-disk"; status = "okay";