0c7e3b9f557dc47fdb80cd08be31ffaf421c67c8
[openwrt/staging/jogo.git] / target / linux / ramips / dts / DB-WRT01.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "planex,db-wrt01", "ralink,mt7620a-soc";
10 model = "Planex DB-WRT01";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 gpio-leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "db-wrt01:orange:power";
24 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 s1 {
33 label = "wps";
34 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38 };
39
40 &gpio1 {
41 status = "okay";
42 };
43
44 &spi0 {
45 status = "okay";
46
47 m25p80@0 {
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 spi-max-frequency = <10000000>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 label = "u-boot";
59 reg = <0x0 0x30000>;
60 read-only;
61 };
62
63 partition@30000 {
64 label = "u-boot-env";
65 reg = <0x30000 0x10000>;
66 read-only;
67 };
68
69 factory: partition@40000 {
70 label = "factory";
71 reg = <0x40000 0x10000>;
72 read-only;
73 };
74
75 partition@50000 {
76 label = "firmware";
77 reg = <0x50000 0x7b0000>;
78 };
79 };
80 };
81 };
82
83 &pinctrl {
84 state_default: pinctrl0 {
85 gpio {
86 ralink,group = "i2c", "spi refclk", "rgmii1";
87 ralink,function = "gpio";
88 };
89 };
90 };
91
92 &ethernet {
93 pinctrl-names = "default";
94 pinctrl-0 = <&ephy_pins>;
95 mtd-mac-address = <&factory 0x4>;
96 mediatek,portmap = "llllw";
97 };
98
99 &gsw {
100 mediatek,port4 = "ephy";
101 };
102
103 &wmac {
104 ralink,mtd-eeprom = <&factory 0>;
105 };
106
107 &pcie {
108 status = "okay";
109 };