boards: arm: cy8ckit_062_ble: Move shared to common

Move shared resources from m0 to common.  This enable shared hardware
definition between the two cpu cores.

Signed-off-by: Gerson Fernando Budke <gerson.budke@atl-electronics.com>
This commit is contained in:
Gerson Fernando Budke 2021-06-23 20:08:18 -03:00 committed by Anas Nashif
commit fe505d3d5e
2 changed files with 46 additions and 43 deletions

View file

@ -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)>;

View file

@ -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>;