ramips: update device tree source files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / CARAMBOLA.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "8devices,carambola", "ralink,rt3050-soc";
10 model = "8devices Carambola";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 cfi@1f000000 {
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
19 bank-width = <2>;
20 device-width = <2>;
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 label = "factory";
38 reg = <0x40000 0x10000>;
39 read-only;
40 };
41
42 partition@50000 {
43 label = "firmware";
44 reg = <0x50000 0x7b0000>;
45 };
46 };
47
48 i2c-gpio {
49 compatible = "i2c-gpio";
50 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
51 i2c-gpio,delay-us = <10>;
52 };
53 };
54
55 &pinctrl {
56 state_default: pinctrl0 {
57 gpio {
58 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
59 ralink,function = "gpio";
60 };
61 };
62 };
63
64 &ethernet {
65 mtd-mac-address = <&factory 0x28>;
66 };
67
68 &esw {
69 mediatek,portmap = <0x3f>;
70 };
71
72 &wmac {
73 ralink,mtd-eeprom = <&factory 0>;
74 };
75
76 &otg {
77 status = "okay";
78 };