]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/mt7623n-rfb-nand.dts
Import DTS files from Linux 4.18
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / mt7623n-rfb-nand.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2017 MediaTek Inc.
4  * Author: John Crispin <john@phrozen.org>
5  *
6  */
7
8 /dts-v1/;
9 #include "mt7623n-rfb.dtsi"
10
11 / {
12         model = "MediaTek MT7623N NAND reference board";
13         compatible = "mediatek,mt7623n-rfb-nand", "mediatek,mt7623";
14 };
15
16 &bch {
17         status = "okay";
18 };
19
20 &nandc {
21         status = "okay";
22         pinctrl-names = "default";
23         pinctrl-0 = <&nand_pins_default>;
24
25         nand@0 {
26                 reg = <0>;
27                 spare_per_sector = <64>;
28                 nand-ecc-mode = "hw";
29                 nand-ecc-strength = <12>;
30                 nand-ecc-step-size = <1024>;
31
32                 partitions {
33                         compatible = "fixed-partitions";
34                         #address-cells = <1>;
35                         #size-cells = <1>;
36
37                         partition@0 {
38                                 label = "preloader";
39                                 reg = <0x0 0x40000>;
40                         };
41
42                         partition@40000 {
43                                 label = "uboot";
44                                 reg = <0x40000 0x80000>;
45                         };
46
47                         partition@c0000 {
48                                 label = "uboot-env";
49                                 reg = <0xC0000 0x40000>;
50                         };
51
52                         partition@140000 {
53                                 label = "bootimg";
54                                 reg = <0x140000 0x2000000>;
55                         };
56
57                         partition@2140000 {
58                                 label = "recovery";
59                                 reg = <0x2140000 0x2000000>;
60                         };
61
62                         partition@4140000 {
63                                 label = "rootfs";
64                                 reg = <0x4140000 0x1000000>;
65                         };
66
67                         partition@5140000 {
68                                 label = "usrdata";
69                                 reg = <0x5140000 0x1000000>;
70                         };
71                 };
72         };
73 };