mediatek: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7622-buffalo-wsr-2533dhp2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7622-buffalo-wsr.dtsi"
5
6 / {
7 model = "Buffalo WSR-2533DHP2";
8 compatible = "buffalo,wsr-2533dhp2", "mediatek,mt7622";
9
10 aliases {
11 label-mac-device = &gmac0;
12 };
13
14 memory {
15 reg = <0 0x40000000 0 0x0F000000>;
16 };
17
18 rtkgsw: rtkgsw@0 {
19 compatible = "mediatek,rtk-gsw";
20 mediatek,ethsys = <&ethsys>;
21 mediatek,mdio = <&mdio>;
22 mediatek,reset-pin = <&pio 54 GPIO_ACTIVE_HIGH>;
23 };
24 };
25
26 &pio {
27 /* Parallel nand is shared pin with eMMC */
28 parallel_nand_pins: parallel-nand-pins {
29 mux {
30 function = "flash";
31 groups = "par_nand";
32 };
33
34 conf-cmd-dat {
35 pins = "NCEB", "NWEB", "NREB",
36 "NDL4", "NDL5", "NDL6",
37 "NDL7", "NRB", "NCLE",
38 "NALE", "NDL0", "NDL1",
39 "NDL2", "NDL3";
40 input-enable;
41 drive-strength = <8>;
42 bias-pull-up;
43 };
44 };
45 };
46
47 &gmac0 {
48 nvmem-cells = <&macaddr_factory_4 (-1)>;
49 nvmem-cell-names = "mac-address";
50 };
51
52 &nandc {
53 pinctrl-names = "default";
54 pinctrl-0 = <&parallel_nand_pins>;
55 status = "okay";
56
57 nand@0 {
58 reg = <0>;
59 nand-ecc-mode = "hw";
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "Preloader";
68 reg = <0x0 0x80000>;
69 read-only;
70 };
71
72 partition@80000 {
73 label = "ATF";
74 reg = <0x80000 0x40000>;
75 read-only;
76 };
77
78 partition@c0000 {
79 label = "Bootloader";
80 reg = <0xc0000 0x80000>;
81 read-only;
82 };
83
84 partition@140000 {
85 label = "Config";
86 reg = <0x140000 0x80000>;
87 };
88
89 factory: partition@1c0000 {
90 label = "factory";
91 reg = <0x1c0000 0x40000>;
92 read-only;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 macaddr_factory_4: macaddr@4 {
100 compatible = "mac-base";
101 reg = <0x4 0x6>;
102 #nvmem-cell-cells = <1>;
103 };
104 };
105 };
106
107 partition@200000 {
108 compatible = "brcm,trx";
109 brcm,trx-magic = <0x32504844>;
110 label = "firmware";
111 reg = <0x200000 0x3a00000>;
112 };
113
114 partition@3C00000 {
115 label = "Kernel2";
116 reg = <0x3c00000 0x3a00000>;
117 };
118
119 partition@7600000 {
120 label = "glbcfg";
121 reg = <0x7600000 0x200000>;
122 read-only;
123 };
124
125 partition@7800000 {
126 label = "board_data";
127 reg = <0x7800000 0x200000>;
128 read-only;
129 };
130 };
131 };
132 };