Skip to content

Commit

Permalink
add k230 reboot reset
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianxin <[email protected]>
  • Loading branch information
wangjianxin-canaan committed Jul 18, 2024
1 parent 60ecd92 commit 80cbe0d
Show file tree
Hide file tree
Showing 6 changed files with 570 additions and 142 deletions.
2 changes: 2 additions & 0 deletions arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
cap-sd-highspeed;
rx_delay_line = <0x0d>;
tx_delay_line = <0xb0>;
clocks = <&sd0_cclk_gate>,<&sd0_cclk_gate>;
clock-names = "core", "bus";
};
&mmc_sd1{
status = "okay";
Expand Down
15 changes: 14 additions & 1 deletion arch/riscv/boot/dts/canaan/k230.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,22 @@
g-tx-fifo-size = <512 1024 64 64 64 64>;
status = "disabled";
};
mmc_sd0: sdhci0@91580000 {
compatible = "canaan,k230-dw-mshc";
reg = <0x0 0x91580000 0x0 0x1000>;
interrupts = <142 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "sdhci0irq";
clocks = <&dummy_sd>,<&dummy_sd>;
clock-names = "core", "bus";
max-frequency = <200000000>;
bus-width = <8>;
sdhci,auto-cmd12;
dma-noncoherent;
status = "disabled";
};

mmc_sd1: sdhci1@91581000 {
compatible = "kendryte,k230-dw-mshc";
compatible = "canaan,k230-dw-mshc";
reg = <0x0 0x91581000 0x0 0x1000>;
interrupts = <144 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "sdhci1irq";
Expand Down
Loading

0 comments on commit 80cbe0d

Please sign in to comment.