771d4ec9c7403be3a681443dcad2e3ae75cef36a
[openwrt.git] / target / linux / ramips / dts / CARAMBOLA.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "CARAMBOLA", "ralink,rt3050-soc";
7         model = "8devices Carambola";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         pinctrl {
14                 state_default: pinctrl0 {
15                         gpio {
16                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
17                                 ralink,function = "gpio";
18                         };
19                 };
20         };
21
22         cfi@1f000000 {
23                 compatible = "cfi-flash";
24                 reg = <0x1f000000 0x800000>;
25                 bank-width = <2>;
26                 device-width = <2>;
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29
30                 partition@0 {
31                         label = "u-boot";
32                         reg = <0x0 0x30000>;
33                         read-only;
34                 };
35
36                 partition@30000 {
37                         label = "u-boot-env";
38                         reg = <0x30000 0x10000>;
39                         read-only;
40                 };
41
42                 factory: partition@40000 {
43                         label = "factory";
44                         reg = <0x40000 0x10000>;
45                         read-only;
46                 };
47
48                 partition@50000 {
49                         label = "firmware";
50                         reg = <0x50000 0x7b0000>;
51                 };
52         };
53
54         ethernet@10100000 {
55                 mtd-mac-address = <&factory 0x28>;
56         };
57
58         esw@10110000 {
59                 mediatek,portmap = <0x3f>;
60         };
61
62         wmac@10180000 {
63                 ralink,mtd-eeprom = <&factory 0>;
64         };
65
66         otg@101c0000 {
67                 status = "okay";
68         };
69
70         i2c-gpio {
71                 compatible = "i2c-gpio";
72                 gpios = <&gpio0 1 0 &gpio0 2 0>;
73                 i2c-gpio,delay-us = <10>;
74         };
75 };