mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 07:08:21 -04:00
riscv: dts: thead: add basic spi node
created spi0 node with fixed clock. the spi0 node uses synopsis designware driver and has the following compatible "snps,dw-apb-ssi". the spi0 node is connected to a SPI NOR flash pad which is left unpopulated on the back side of the board. Acked-by: Drew Fustini <drew@pdp7.com> Signed-off-by: Kanak Shilledar <kanakshilledar@gmail.com> Signed-off-by: Drew Fustini <drew@pdp7.com>
This commit is contained in:
committed by
Drew Fustini
parent
8400291e28
commit
32121e1584
@@ -23,6 +23,7 @@ aliases {
|
||||
serial3 = &uart3;
|
||||
serial4 = &uart4;
|
||||
serial5 = &uart5;
|
||||
spi0 = &spi0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@@ -52,6 +53,10 @@ &sdhci_clk {
|
||||
clock-frequency = <198000000>;
|
||||
};
|
||||
|
||||
&spi_clk {
|
||||
clock-frequency = <396000000>;
|
||||
};
|
||||
|
||||
&uart_sclk {
|
||||
clock-frequency = <100000000>;
|
||||
};
|
||||
@@ -79,3 +84,7 @@ &sdio0 {
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -33,6 +33,10 @@ &sdhci_clk {
|
||||
clock-frequency = <198000000>;
|
||||
};
|
||||
|
||||
&spi_clk {
|
||||
clock-frequency = <396000000>;
|
||||
};
|
||||
|
||||
&uart_sclk {
|
||||
clock-frequency = <100000000>;
|
||||
};
|
||||
|
||||
@@ -20,6 +20,7 @@ aliases {
|
||||
serial3 = &uart3;
|
||||
serial4 = &uart4;
|
||||
serial5 = &uart5;
|
||||
spi0 = &spi0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@@ -30,3 +31,7 @@ chosen {
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -221,6 +221,12 @@ apb_clk: apb-clk-clock {
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
spi_clk: spi-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-output-names = "spi_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
uart_sclk: uart-sclk-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-output-names = "uart_sclk";
|
||||
@@ -264,6 +270,16 @@ clint: timer@ffdc000000 {
|
||||
<&cpu3_intc 3>, <&cpu3_intc 7>;
|
||||
};
|
||||
|
||||
spi0: spi@ffe700c000 {
|
||||
compatible = "thead,th1520-spi", "snps,dw-apb-ssi";
|
||||
reg = <0xff 0xe700c000 0x0 0x1000>;
|
||||
interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&spi_clk>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
uart0: serial@ffe7014000 {
|
||||
compatible = "snps,dw-apb-uart";
|
||||
reg = <0xff 0xe7014000 0x0 0x100>;
|
||||
|
||||
Reference in New Issue
Block a user