Lines Matching +full:nand +full:- +full:ecc +full:- +full:engine

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/spi/mediatek,spi-mtk-snfi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: SPI-NAND flash controller for MediaTek ARM SoCs
10 - Chuanhong Guo <gch981213@gmail.com>
13 The Mediatek SPI-NAND flash controller is an extended version of
14 the Mediatek NAND flash controller. It can perform standard SPI
15 instructions with one continuous write and one read for up-to 0xa0
16 bytes. It also supports typical SPI-NAND page cache operations
17 in single, dual or quad IO mode with pipelined ECC encoding/decoding
18 using the accompanying ECC engine. There should be only one spi
24 - mediatek,mt7622-snand
25 - mediatek,mt7629-snand
26 - mediatek,mt7986-snand
30 - description: core registers
34 - description: NFI interrupt
40 clock-names:
44 nand-ecc-engine:
45 description: device-tree node of the accompanying ECC engine.
48 mediatek,rx-latch-latency-ns:
52 - compatible
53 - reg
54 - interrupts
55 - clocks
56 - clock-names
57 - nand-ecc-engine
60 - $ref: /schemas/spi/spi-controller.yaml#
61 - if:
65 - mediatek,mt7622-snand
66 - mediatek,mt7629-snand
71 - description: clock used for the controller
72 - description: clock used for the SPI bus
73 clock-names:
75 - const: nfi_clk
76 - const: pad_clk
78 - if:
82 - mediatek,mt7986-snand
87 - description: clock used for the controller
88 - description: clock used for the SPI bus
89 - description: clock used for the AHB bus
90 clock-names:
92 - const: nfi_clk
93 - const: pad_clk
94 - const: nfi_hclk
99 - |
100 #include <dt-bindings/interrupt-controller/irq.h>
101 #include <dt-bindings/interrupt-controller/arm-gic.h>
102 #include <dt-bindings/clock/mt7622-clk.h>
104 #address-cells = <2>;
105 #size-cells = <2>;
107 compatible = "mediatek,mt7622-snand";
111 clock-names = "nfi_clk", "pad_clk";
112 nand-ecc-engine = <&bch>;
113 #address-cells = <1>;
114 #size-cells = <0>;
117 compatible = "spi-nand";
119 spi-tx-bus-width = <4>;
120 spi-rx-bus-width = <4>;
121 nand-ecc-engine = <&snfi>;