Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

LoongArch: dts: loongson-2k1000: 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>

authored by

Binbin Zhou and committed by
Huacai Chen
92860256 4fd5ca0f

+34 -1
+22
arch/loongarch/boot/dts/loongson-2k1000-ref.dts
··· 48 48 }; 49 49 }; 50 50 51 + &apbdma0 { 52 + status = "okay"; 53 + }; 54 + 55 + &nand { 56 + status = "okay"; 57 + 58 + pinctrl-0 = <&nand_pins_default>; 59 + pinctrl-names = "default"; 60 + 61 + #address-cells = <1>; 62 + #size-cells = <0>; 63 + nand@0 { 64 + reg = <0>; 65 + label = "ls2k1000-nand"; 66 + nand-use-soft-ecc-engine; 67 + nand-ecc-algo = "bch"; 68 + nand-ecc-strength = <8>; 69 + nand-ecc-step-size = <512>; 70 + }; 71 + }; 72 + 51 73 &apbdma1 { 52 74 status = "okay"; 53 75 };
+12 -1
arch/loongarch/boot/dts/loongson-2k1000.dtsi
··· 248 248 #thermal-sensor-cells = <1>; 249 249 }; 250 250 251 - dma-controller@1fe00c00 { 251 + apbdma0: dma-controller@1fe00c00 { 252 252 compatible = "loongson,ls2k1000-apbdma"; 253 253 reg = <0x0 0x1fe00c00 0x0 0x8>; 254 254 interrupt-parent = <&liointc1>; ··· 361 361 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>; 362 362 clocks = <&clk LOONGSON2_APB_CLK>; 363 363 #pwm-cells = <3>; 364 + status = "disabled"; 365 + }; 366 + 367 + nand: nand-controller@1fe26000 { 368 + compatible = "loongson,ls2k1000-nand-controller"; 369 + reg = <0 0x1fe26000 0 0x24>, 370 + <0 0x1fe26040 0 0x4>, 371 + <0 0x1fe00438 0 0x8>; 372 + reg-names = "nand", "nand-dma", "dma-config"; 373 + dmas = <&apbdma0 0>; 374 + dma-names = "rxtx"; 364 375 status = "disabled"; 365 376 }; 366 377