diff --git a/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi b/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi index a28917bdcd0..9d58a32a658 100644 --- a/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi +++ b/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi @@ -5,6 +5,28 @@ */ / { + aliases { + led0 = &user_led; + sw0 = &user_bt; + }; + + leds { + compatible = "gpio-leds"; + user_led: led_0 { + label = "LED_0"; + gpios = <&gpio_prt13 7 GPIO_ACTIVE_HIGH>; + }; + }; + + gpio_keys { + compatible = "gpio-keys"; + + user_bt: button_0 { + label = "SW_0"; + gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + }; + }; + arduino_header: connector { compatible = "arduino-header-r3"; #gpio-cells = <2>; @@ -35,6 +57,30 @@ }; }; +&gpio_prt0 { + status = "okay"; +}; + +&gpio_prt5 { + status = "okay"; +}; + +&gpio_prt6 { + status = "okay"; +}; + +&gpio_prt9 { + status = "okay"; +}; + +&gpio_prt12 { + status = "okay"; +}; + +&gpio_prt13 { + status = "okay"; +}; + &spi6 { cs-gpios = <&gpio_prt12 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, <&gpio_prt13 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; diff --git a/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m0.dts b/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m0.dts index d9849b290bd..8f5176e2623 100644 --- a/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m0.dts +++ b/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m0.dts @@ -14,59 +14,16 @@ model = "Cypress PSoC6 BLE Pioneer Kit"; compatible = "cypress,cy8c6xx7_cm0p", "cypress,psoc6"; - aliases { - sw0 = &user_bt; - led0 = &user_led; - }; - chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; }; - - leds { - compatible = "gpio-leds"; - user_led: led_0 { - label = "LED_0"; - gpios = <&gpio_prt13 7 GPIO_ACTIVE_HIGH>; - }; - }; - - gpio_keys { - compatible = "gpio-keys"; - - user_bt: button_0 { - label = "SW_0"; - gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; - }; - }; }; &gpio_prt0 { - status = "okay"; interrupt-parent = <&intmux_ch20>; }; -&gpio_prt5 { - status = "okay"; -}; - -&gpio_prt6 { - status = "okay"; -}; - -&gpio_prt9 { - status = "okay"; -}; - -&gpio_prt12 { - status = "okay"; -}; - -&gpio_prt13 { - status = "okay"; -}; - &spi6 { status = "okay"; interrupt-parent = <&intmux_ch16>;