Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/mxicy,nand-ecc-engine.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Macronix NAND ECC engine device tree bindings
0008 
0009 maintainers:
0010   - Miquel Raynal <miquel.raynal@bootlin.com>
0011 
0012 properties:
0013   compatible:
0014     const: mxicy,nand-ecc-engine-rev3
0015 
0016   reg:
0017     maxItems: 1
0018 
0019   clocks:
0020     maxItems: 1
0021 
0022   interrupts:
0023     maxItems: 1
0024 
0025 required:
0026   - compatible
0027   - reg
0028 
0029 additionalProperties: false
0030 
0031 examples:
0032   - |
0033     /* External configuration */
0034     spi_controller0: spi@43c30000 {
0035         compatible = "mxicy,mx25f0a-spi";
0036         reg = <0x43c30000 0x10000>, <0xa0000000 0x4000000>;
0037         reg-names = "regs", "dirmap";
0038         clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
0039         clock-names = "send_clk", "send_dly_clk", "ps_clk";
0040         #address-cells = <1>;
0041         #size-cells = <0>;
0042 
0043         flash@0 {
0044             compatible = "spi-nand";
0045             reg = <0>;
0046             nand-ecc-engine = <&ecc_engine0>;
0047         };
0048     };
0049 
0050     ecc_engine0: ecc@43c40000 {
0051         compatible = "mxicy,nand-ecc-engine-rev3";
0052         reg = <0x43c40000 0x10000>;
0053     };
0054 
0055   - |
0056     /* Pipelined configuration */
0057     spi_controller1: spi@43c30000 {
0058         compatible = "mxicy,mx25f0a-spi";
0059         reg = <0x43c30000 0x10000>, <0xa0000000 0x4000000>;
0060         reg-names = "regs", "dirmap";
0061         clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
0062         clock-names = "send_clk", "send_dly_clk", "ps_clk";
0063         #address-cells = <1>;
0064         #size-cells = <0>;
0065         nand-ecc-engine = <&ecc_engine1>;
0066 
0067         flash@0 {
0068             compatible = "spi-nand";
0069             reg = <0>;
0070             nand-ecc-engine = <&spi_controller1>;
0071         };
0072     };
0073 
0074     ecc_engine1: ecc@43c40000 {
0075         compatible = "mxicy,nand-ecc-engine-rev3";
0076         reg = <0x43c40000 0x10000>;
0077     };