mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 12:37:11 +08:00
LoongArch: dts: loongson-2k0500: Add nand controller support
The module is supported, enable it. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
committed by
maoxiaochuan
parent
5bbd95b4f6
commit
4bcf199a19
@@ -41,6 +41,25 @@
|
||||
};
|
||||
};
|
||||
|
||||
&apbdma0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
nand@0 {
|
||||
reg = <0>;
|
||||
label = "ls2k0500-nand";
|
||||
nand-use-soft-ecc-engine;
|
||||
nand-ecc-algo = "bch";
|
||||
nand-ecc-strength = <8>;
|
||||
nand-ecc-step-size = <512>;
|
||||
};
|
||||
};
|
||||
|
||||
&apbdma3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
clock-names = "ref_100m";
|
||||
};
|
||||
|
||||
dma-controller@1fe10c00 {
|
||||
apbdma0: dma-controller@1fe10c00 {
|
||||
compatible = "loongson,ls2k0500-apbdma", "loongson,ls2k1000-apbdma";
|
||||
reg = <0 0x1fe10c00 0 0x8>;
|
||||
interrupt-parent = <&eiointc>;
|
||||
@@ -172,6 +172,16 @@
|
||||
interrupts = <3>;
|
||||
};
|
||||
|
||||
nand: nand-controller@1ff58000 {
|
||||
compatible = "loongson,ls2k0500-nand-controller";
|
||||
reg = <0 0x1ff58000 0 0x24>,
|
||||
<0 0x1ff58040 0 0x4>;
|
||||
reg-names = "nand", "nand-dma";
|
||||
dmas = <&apbdma0 0>;
|
||||
dma-names = "rxtx";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
pwm@1ff5c000 {
|
||||
compatible = "loongson,ls2k0500-pwm", "loongson,ls7a-pwm";
|
||||
reg = <0x0 0x1ff5c000 0x0 0x10>;
|
||||
|
||||
Reference in New Issue
Block a user