4bfeb951e5a921a788f99c9b31e34b35c72a53ef
[openwrt/openwrt.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 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60 };
61 };
62
63 &spi0 {
64 status = "okay";
65
66 m25p80@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <10000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 label = "firmware";
96 reg = <0x50000 0x3b0000>;
97 };
98 };
99 };
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 gpio {
105 ralink,group = "i2c", "jtag", "uartf";
106 ralink,function = "gpio";
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0x28>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&rgmii_pins &mdio_pins>;
115 };
116
117 &esw {
118 mediatek,portmap = <0x2f>;
119 };
120
121 &wmac {
122 ralink,mtd-eeprom = <&factory 0>;
123 };