ramips: dts: Unify naming of gpio-led nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WMR-300.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
10 model = "Buffalo WMR-300";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 aoss1 {
23 label = "wmr-300:red:aoss";
24 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
25 };
26
27 aoss2 {
28 label = "wmr-300:green:aoss";
29 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
30 };
31
32 led_status: status {
33 label = "wmr-300:green:status";
34 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys-polled";
40 poll-interval = <20>;
41
42 reset {
43 label = "reset";
44 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47
48 aoss {
49 label = "aoss";
50 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 };
53 };
54 };
55
56 &gpio2 {
57 status = "okay";
58 };
59
60 &spi0 {
61 status = "okay";
62
63 m25p80@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0x7b0000>;
95 };
96 };
97 };
98 };
99
100 &ethernet {
101 mtd-mac-address = <&factory 0x4>;
102 mediatek,portmap = "wllll";
103 };
104
105 &wmac {
106 ralink,mtd-eeprom = <&factory 0>;
107 };
108
109 &pinctrl {
110 state_default: pinctrl0 {
111 default {
112 ralink,group = "i2c", "ephy";
113 ralink,function = "gpio";
114 };
115 };
116 };