6b04cc550b03e5e34a203b01ff35fa6c19c88645
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / DIR-615-H1.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-615-h1", "ralink,rt3352-soc";
10 model = "D-Link DIR-615 H1";
11
12 aliases {
13 led-status = &led_status_green;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 status {
20 label = "dir-615-h1:amber:status";
21 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
22 };
23
24 led_status_green: status2 {
25 label = "dir-615-h1:green:status";
26 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
27 };
28
29 wan {
30 label = "dir-615-h1:amber:wan";
31 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
32 };
33
34 wan2 {
35 label = "dir-615-h1:green:wan";
36 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
37 };
38
39 wps {
40 label = "dir-615-h1:blue:wps";
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 gpio-keys-polled {
46 compatible = "gpio-keys-polled";
47 #address-cells = <1>;
48 #size-cells = <0>;
49 poll-interval = <20>;
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 wps {
58 label = "wps";
59 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62 };
63 };
64
65 &spi0 {
66 status = "okay";
67
68 m25p80@0 {
69 #address-cells = <1>;
70 #size-cells = <1>;
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "u-boot-env";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91 };
92
93 partition@50000 {
94 label = "firmware";
95 reg = <0x50000 0x3b0000>;
96 };
97 };
98 };
99
100 &pinctrl {
101 state_default: pinctrl0 {
102 gpio {
103 ralink,group = "i2c", "jtag", "uartf";
104 ralink,function = "gpio";
105 };
106 };
107 };
108
109 &ethernet {
110 mtd-mac-address = <&factory 0x28>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&rgmii_pins &mdio_pins>;
113 };
114
115 &esw {
116 mediatek,portmap = <0x2f>;
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&factory 0>;
121 };