mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00: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:
parent
8400291e28
commit
32121e1584
4 changed files with 34 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
serial3 = &uart3;
|
||||
serial4 = &uart4;
|
||||
serial5 = &uart5;
|
||||
spi0 = &spi0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -52,6 +53,10 @@
|
|||
clock-frequency = <198000000>;
|
||||
};
|
||||
|
||||
&spi_clk {
|
||||
clock-frequency = <396000000>;
|
||||
};
|
||||
|
||||
&uart_sclk {
|
||||
clock-frequency = <100000000>;
|
||||
};
|
||||
|
@ -79,3 +84,7 @@
|
|||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -33,6 +33,10 @@
|
|||
clock-frequency = <198000000>;
|
||||
};
|
||||
|
||||
&spi_clk {
|
||||
clock-frequency = <396000000>;
|
||||
};
|
||||
|
||||
&uart_sclk {
|
||||
clock-frequency = <100000000>;
|
||||
};
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
serial3 = &uart3;
|
||||
serial4 = &uart4;
|
||||
serial5 = &uart5;
|
||||
spi0 = &spi0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -30,3 +31,7 @@
|
|||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -221,6 +221,12 @@
|
|||
#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 @@
|
|||
<&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>;
|
||||
|
|
Loading…
Add table
Reference in a new issue