stm32/l1: enable spi peripherals
STM32L1 uses the same spi controller as STM32F1 so we can just set the right addresses and enable them. We also need to add the fixup names and to correctly include the header for ST LL HAL. Signed-off-by: Karl Palsson <karlp@etactica.com>
This commit is contained in:
parent
1c9840c420
commit
d46c1a0c98
3 changed files with 40 additions and 0 deletions
|
@ -72,6 +72,28 @@
|
|||
label= "I2C_2";
|
||||
};
|
||||
|
||||
spi1: spi@40013000 {
|
||||
compatible = "st,stm32-spi";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x40013000 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00001000>;
|
||||
interrupts = <35 0>;
|
||||
status = "disabled";
|
||||
label = "SPI_1";
|
||||
};
|
||||
|
||||
spi2: spi@40003800 {
|
||||
compatible = "st,stm32-spi";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x40003800 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00004000>;
|
||||
interrupts = <36 0>;
|
||||
status = "disabled";
|
||||
label = "SPI_2";
|
||||
};
|
||||
|
||||
usart1: serial@40013800 {
|
||||
compatible = "st,stm32-usart", "st,stm32-uart";
|
||||
reg = <0x40013800 0x400>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue