9f0cecdb9b8d8b9b0e3e4734d1b52e8558c62e2f
[openwrt/staging/hauke.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 compatible = "nvmem-cells";
35 label = "factory";
36 reg = <0x40000 0x10000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39 read-only;
40
41 eeprom_factory_0: eeprom@0 {
42 reg = <0x0 0x200>;
43 };
44
45 macaddr_factory_4: macaddr@4 {
46 reg = <0x4 0x6>;
47 };
48 };
49
50 partition@50000 {
51 compatible = "denx,uimage";
52 label = "firmware";
53 reg = <0x50000 0x7b0000>;
54 };
55 };
56 };
57 };
58
59 &state_default {
60 gpio {
61 groups = "i2c", "jtag", "uartf";
62 function = "gpio";
63 };
64 };
65
66 &ethernet {
67 nvmem-cells = <&macaddr_factory_4>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &esw {
72 mediatek,portmap = <0x2f>;
73 };
74
75 &wmac {
76 nvmem-cells = <&eeprom_factory_0>;
77 nvmem-cell-names = "eeprom";
78 };