-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Enabling SPI ports on some nucleos #6172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
54cff2b
f83582f
70b02bb
04b8505
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,4 +40,14 @@ config I2C_2 | |
|
|
||
| endif | ||
|
|
||
| if SPI | ||
|
|
||
| config SPI_1 | ||
| default y | ||
|
|
||
| config SPI_2 | ||
| default y | ||
|
|
||
| endif | ||
|
|
||
| endif # BOARD_NUCLEO_F030R8 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| */ | ||
|
|
||
| /dts-v1/; | ||
| #include <st/stm32f030.dtsi> | ||
| #include <st/stm32f030X8.dtsi> | ||
|
|
||
| / { | ||
| model = "STMicroelectronics STM32F030R8-NUCLEO board"; | ||
|
|
@@ -41,3 +41,11 @@ | |
| status = "ok"; | ||
| clock-frequency = <I2C_BITRATE_FAST>; | ||
| }; | ||
|
|
||
| &spi1 { | ||
| status = "ok"; | ||
| }; | ||
|
|
||
| &spi2 { | ||
|
||
| status = "ok"; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,3 +36,11 @@ | |
| pinctrl-0 = <&usart3_pins_a>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
|
|
||
| &spi1 { | ||
|
||
| status = "ok"; | ||
| }; | ||
|
|
||
| &spi2 { | ||
|
||
| status = "ok"; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* | ||
| * Copyright (c) 2018 Intel Corporation. | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include <st/stm32f030.dtsi> | ||
|
|
||
| / { | ||
| soc { | ||
| spi2: spi@40003800 { | ||
| compatible = "st,stm32-spi-fifo"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| reg = <0x40003800 0x400>; | ||
| interrupts = <26 3>; | ||
| status = "disabled"; | ||
| label = "SPI_2"; | ||
| }; | ||
| }; | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* | ||
| * Copyright (c) 2018 Intel Corporation. | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include <st/stm32f030.dtsi> | ||
|
|
||
| / { | ||
| soc { | ||
| spi2: spi@40003800 { | ||
| compatible = "st,stm32-spi-fifo"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| reg = <0x40003800 0x400>; | ||
| interrupts = <26 3>; | ||
| status = "disabled"; | ||
| label = "SPI_2"; | ||
| }; | ||
| }; | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also enable SPI_1 port in board's Kconfig.defconfig.