1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/rockchip,nand-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip SoCs NAND FLASH Controller (NFC)
10 - $ref: "nand-controller.yaml#"
13 - Heiko Stuebner <heiko@sntech.de>
18 - const: rockchip,px30-nfc
19 - const: rockchip,rk2928-nfc
20 - const: rockchip,rv1108-nfc
22 - const: rockchip,rk3036-nfc
23 - const: rockchip,rk2928-nfc
25 - const: rockchip,rk3308-nfc
26 - const: rockchip,rv1108-nfc
37 - description: Bus Clock
38 - description: Module Clock
70 enum: [16, 24, 40, 60, 70]
72 The ECC configurations that can be supported are as follows.
73 NFC v600 ECC 16, 24, 40, 60
74 RK2928, RK3066, RK3188
76 NFC v622 ECC 16, 24, 40, 60
82 NFC v900 ECC 16, 40, 60, 70
89 $ref: /schemas/types.yaml#/definitions/uint32
93 The NFC driver need this information to select ECC
94 algorithms supported by the boot ROM.
95 Only used in combination with 'nand-is-boot-medium'.
97 rockchip,boot-ecc-strength:
98 enum: [16, 24, 40, 60, 70]
99 $ref: /schemas/types.yaml#/definitions/uint32
101 If specified it indicates that a different BCH/ECC setting is
102 supported by the boot ROM.
104 RK2928, RK3066, RK3188
106 NFC v622 ECC 16, 24, 40, 60
115 Only used in combination with 'nand-is-boot-medium'.
124 unevaluatedProperties: false
128 #include <dt-bindings/clock/rk3308-cru.h>
129 #include <dt-bindings/interrupt-controller/arm-gic.h>
130 nfc: nand-controller@ff4b0000 {
131 compatible = "rockchip,rk3308-nfc",
132 "rockchip,rv1108-nfc";
133 reg = <0xff4b0000 0x4000>;
134 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
135 clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>;
136 clock-names = "ahb", "nfc";
137 assigned-clocks = <&clks SCLK_NANDC>;
138 assigned-clock-rates = <150000000>;
140 pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_csn0
141 &flash_rdn &flash_rdy &flash_wrn>;
142 pinctrl-names = "default";
144 #address-cells = <1>;
150 nand-bus-width = <8>;
151 nand-ecc-mode = "hw";
152 nand-ecc-step-size = <1024>;
153 nand-ecc-strength = <16>;
155 rockchip,boot-blks = <8>;
156 rockchip,boot-ecc-strength = <16>;