Skip to content

Commit

Permalink
riscv: dts: microchip: update peripherals in icicle kit device tree
Browse files Browse the repository at this point in the history
Assorted minor changes to the MPFS/Icicle kit device tree:

- enable mmuart4 instead of mmuart0
- remove sifive pdma
- split memory node to match updated fpga design
- move stdout path to serial1 to avoid collision with
        bootloader running on the e51

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
  • Loading branch information
Conor Dooley authored and Palmer Dabbelt committed Mar 10, 2022
1 parent c5094f3 commit 5b28df3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
23 changes: 16 additions & 7 deletions arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,36 @@
serial1 = &mmuart1;
serial2 = &mmuart2;
serial3 = &mmuart3;
serial4 = &mmuart4;
};

chosen {
stdout-path = "serial0:115200n8";
stdout-path = "serial1:115200n8";
};

cpus {
timebase-frequency = <RTCCLK_FREQ>;
};

memory@80000000 {
ddrc_cache_lo: memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x40000000>;
reg = <0x0 0x80000000 0x0 0x2e000000>;
clocks = <&clkcfg CLK_DDRC>;
status = "okay";
};

ddrc_cache_hi: memory@1000000000 {
device_type = "memory";
reg = <0x10 0x0 0x0 0x40000000>;
clocks = <&clkcfg CLK_DDRC>;
status = "okay";
};
};

&refclk {
clock-frequency = <600000000>;
};

&mmuart0 {
status = "okay";
};

&mmuart1 {
status = "okay";
};
Expand All @@ -55,6 +60,10 @@
status = "okay";
};

&mmuart4 {
status = "okay";
};

&mmc {
status = "okay";

Expand Down
23 changes: 13 additions & 10 deletions arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,6 @@
<&cpu4_intc 3>, <&cpu4_intc 7>;
};

dma@3000000 {
compatible = "sifive,fu540-c000-pdma";
reg = <0x0 0x3000000 0x0 0x8000>;
interrupt-parent = <&plic>;
interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>,
<30>;
#dma-cells = <1>;
};

plic: interrupt-controller@c000000 {
compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
reg = <0x0 0xc000000 0x0 0x4000000>;
Expand Down Expand Up @@ -213,7 +204,7 @@
interrupts = <90>;
current-speed = <115200>;
clocks = <&clkcfg CLK_MMUART0>;
status = "disabled";
status = "disabled"; /* Reserved for the HSS */
};

mmuart1: serial@20100000 {
Expand Down Expand Up @@ -252,6 +243,18 @@
status = "disabled";
};

mmuart4: serial@20106000 {
compatible = "ns16550a";
reg = <0x0 0x20106000 0x0 0x400>;
reg-io-width = <4>;
reg-shift = <2>;
interrupt-parent = <&plic>;
interrupts = <94>;
clocks = <&clkcfg CLK_MMUART4>;
current-speed = <115200>;
status = "disabled";
};

/* Common node entry for emmc/sd */
mmc: mmc@20008000 {
compatible = "microchip,mpfs-sd4hc", "cdns,sd4hc";
Expand Down

0 comments on commit 5b28df3

Please sign in to comment.