ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / rt5350_wansview_ncs601w.dts
1 #include "rt5350.dtsi"
2
3 / {
4 compatible = "wansview,ncs601w", "ralink,rt5350-soc";
5 model = "Wansview NCS601W";
6 };
7
8 &spi0 {
9 status = "okay";
10
11 flash@0 {
12 compatible = "jedec,spi-nor";
13 reg = <0>;
14 spi-max-frequency = <10000000>;
15
16 partitions {
17 compatible = "fixed-partitions";
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "u-boot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 compatible = "denx,uimage";
41 label = "firmware";
42 reg = <0x50000 0x7b0000>;
43 };
44 };
45 };
46 };
47
48 &state_default {
49 gpio {
50 groups = "i2c", "jtag", "uartf";
51 function = "gpio";
52 };
53 };
54
55 &ethernet {
56 nvmem-cells = <&macaddr_factory_4>;
57 nvmem-cell-names = "mac-address";
58 };
59
60 &esw {
61 mediatek,portmap = <0x2f>;
62 };
63
64 &wmac {
65 ralink,mtd-eeprom = <&factory 0x0>;
66 };
67
68 &factory {
69 compatible = "nvmem-cells";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 macaddr_factory_4: macaddr@4 {
74 reg = <0x4 0x6>;
75 };
76 };