Fresh pull from upstream
[librecmc/librecmc.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         cfi@1f000000 {
14                 compatible = "cfi-flash";
15                 reg = <0x1f000000 0x800000>;
16                 bank-width = <2>;
17                 device-width = <2>;
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                         label = "firmware";
41                         reg = <0x50000 0x7b0000>;
42                 };
43         };
44
45         i2c-gpio {
46                 compatible = "i2c-gpio";
47                 gpios = <&gpio0 1 0 &gpio0 2 0>;
48                 i2c-gpio,delay-us = <10>;
49         };
50 };
51
52 &pinctrl {
53         state_default: pinctrl0 {
54                 gpio {
55                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
56                         ralink,function = "gpio";
57                 };
58         };
59 };
60
61 &ethernet {
62         mtd-mac-address = <&factory 0x28>;
63 };
64
65 &esw {
66         mediatek,portmap = <0x3f>;
67 };
68
69 &wmac {
70         ralink,mtd-eeprom = <&factory 0>;
71 };
72
73 &otg {
74         status = "okay";
75 };