f3c2aedc96ecf5d367c6f36c189e8fc09d96e94f
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_olimex_rt5350f-olinuxino.dtsi
1 #include "rt5350.dtsi"
2
3 / {
4 compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
5
6 aliases {
7 serial1 = &uart;
8 };
9 };
10
11 &spi0 {
12 status = "okay";
13
14 flash@0 {
15 compatible = "jedec,spi-nor";
16 reg = <0>;
17 spi-max-frequency = <10000000>;
18
19 partitions {
20 compatible = "fixed-partitions";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "u-boot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "u-boot-env";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 factory: partition@40000 {
37 compatible = "nvmem-cells";
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 #address-cells = <1>;
41 #size-cells = <1>;
42 read-only;
43
44 eeprom_factory_0: eeprom@0 {
45 reg = <0x0 0x200>;
46 };
47
48 macaddr_factory_4: macaddr@4 {
49 reg = <0x4 0x6>;
50 };
51 };
52
53 partition@50000 {
54 compatible = "denx,uimage";
55 label = "firmware";
56 reg = <0x50000 0x7b0000>;
57 };
58 };
59 };
60 };
61
62 &state_default {
63 gpio {
64 groups = "jtag";
65 function = "gpio";
66 };
67 uartf_gpio {
68 groups = "uartf";
69 function = "gpio uartf";
70 };
71 };
72
73 &ethernet {
74 nvmem-cells = <&macaddr_factory_4>;
75 nvmem-cell-names = "mac-address";
76 };
77
78 &esw {
79 mediatek,portmap = <0x2f>;
80 mediatek,led_polarity = <0x17>;
81 };
82
83 &wmac {
84 ralink,led-polarity = <1>;
85 nvmem-cells = <&eeprom_factory_0>;
86 nvmem-cell-names = "eeprom";
87 };
88
89 &i2c {
90 status = "okay";
91 };
92
93 &uart {
94 status = "okay";
95 };