boards: arm: cy8ckit_062_ble: Add spi config
Create a common dtsi file to share peripherals between both CPU cores. The spi is the initial shared peripheral. Signed-off-by: Gerson Fernando Budke <gerson.budke@atl-electronics.com>
This commit is contained in:
parent
d999531f7f
commit
bb39e9fcb4
5 changed files with 25 additions and 3 deletions
12
boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi
Normal file
12
boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2021, ATL Electronics
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi6 {
|
||||
cs-gpios = <&gpio_prt12 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
||||
<&gpio_prt13 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||
|
||||
pinctrl-0 = <&p12_0_spi6_mosi &p12_1_spi6_miso &p12_2_spi6_clk>;
|
||||
};
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Cypress
|
||||
* Copyright (c) 2020, ATL Electronics
|
||||
* Copyright (c) 2020-2021, ATL Electronics
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -8,6 +8,7 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include <cypress/psoc6_cm0.dtsi>
|
||||
#include "cy8ckit_062_ble_common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Cypress PSoC6 BLE Pioneer Kit";
|
||||
|
@ -49,3 +50,8 @@
|
|||
&gpio_prt13 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi6 {
|
||||
status = "okay";
|
||||
interrupt-parent = <&intmux_ch16>;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2018, Cypress
|
||||
# Copyright (c) 2020, ATL Electronics
|
||||
# Copyright (c) 2020-2021, ATL Electronics
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
@ -17,3 +17,4 @@ toolchain:
|
|||
- xtools
|
||||
supported:
|
||||
- gpio
|
||||
- spi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Cypress
|
||||
* Copyright (c) 2020, ATL Electronics
|
||||
* Copyright (c) 2020-2021, ATL Electronics
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -8,6 +8,7 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include <cypress/psoc6_cm4.dtsi>
|
||||
#include "cy8ckit_062_ble_common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Cypress PSoC6 BLE Pioneer Kit";
|
||||
|
|
|
@ -103,6 +103,8 @@ The board configuration supports the following hardware features:
|
|||
+-----------+------------+-----------------------+
|
||||
| PINCTRL | on-chip | pin control |
|
||||
+-----------+------------+-----------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+-----------------------+
|
||||
| UART | on-chip | serial port-polling; |
|
||||
| | | serial port-interrupt |
|
||||
+-----------+------------+-----------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue