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:
parent
ac8570f7c8
commit
fe505d3d5e
2 changed files with 46 additions and 43 deletions
|
@ -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 {
|
arduino_header: connector {
|
||||||
compatible = "arduino-header-r3";
|
compatible = "arduino-header-r3";
|
||||||
#gpio-cells = <2>;
|
#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 {
|
&spi6 {
|
||||||
cs-gpios = <&gpio_prt12 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
cs-gpios = <&gpio_prt12 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
||||||
<&gpio_prt13 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
<&gpio_prt13 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||||
|
|
|
@ -14,59 +14,16 @@
|
||||||
model = "Cypress PSoC6 BLE Pioneer Kit";
|
model = "Cypress PSoC6 BLE Pioneer Kit";
|
||||||
compatible = "cypress,cy8c6xx7_cm0p", "cypress,psoc6";
|
compatible = "cypress,cy8c6xx7_cm0p", "cypress,psoc6";
|
||||||
|
|
||||||
aliases {
|
|
||||||
sw0 = &user_bt;
|
|
||||||
led0 = &user_led;
|
|
||||||
};
|
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
zephyr,sram = &sram0;
|
zephyr,sram = &sram0;
|
||||||
zephyr,flash = &flash0;
|
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 {
|
&gpio_prt0 {
|
||||||
status = "okay";
|
|
||||||
interrupt-parent = <&intmux_ch20>;
|
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 {
|
&spi6 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
interrupt-parent = <&intmux_ch16>;
|
interrupt-parent = <&intmux_ch16>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue