ramips: use consistent naming scheme for LEDs
[openwrt.git] / target / linux / ramips / dts / AIR3GII.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "AIR3GII", "ralink,rt5350-soc";
7         model = "AirLive Air3GII";
8
9         palmbus@10000000 {
10                 gpio0: gpio@600 {
11                         status = "okay";
12                 };
13
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 #address-cells = <1>;
19                                 #size-cells = <1>;
20                                 compatible = "en25q32b";
21                                 reg = <0 0>;
22                                 linux,modalias = "m25p80", "en25q32b";
23                                 spi-max-frequency = <10000000>;
24
25                                 partition@0 {
26                                         label = "u-boot";
27                                         reg = <0x0 0x30000>;
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         label = "u-boot-env";
33                                         reg = <0x30000 0x10000>;
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         label = "factory";
39                                         reg = <0x40000 0x10000>;
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         label = "firmware";
45                                         reg = <0x50000 0x3b0000>;
46                                 };
47                         };
48                 };
49         };
50
51         pinctrl {
52                 state_default: pinctrl0 {
53                         gpio {
54                                 ralink,group = "i2c", "jtag", "uartf";
55                                 ralink,function = "gpio";
56                         };
57                 };
58         };
59
60         ethernet@10100000 {
61                 mtd-mac-address = <&factory 0x4>;
62         };
63
64         esw@10110000 {
65                 ralink,portmap = <0x2f>;
66         };
67
68         wmac@10180000 {
69                 ralink,mtd-eeprom = <&factory 0>;
70         };
71
72         gpio-leds {
73                 compatible = "gpio-leds";
74
75                 wlan {
76                         label = "air3gii:green:wlan";
77                         gpios = <&gpio0 8 0>;
78                 };
79
80                 mobile {
81                         label = "air3gii:green:mobile";
82                         gpios = <&gpio0 9 1>;
83                 };
84         };
85
86         gpio-keys-polled {
87                 compatible = "gpio-keys-polled";
88                 #address-cells = <1>;
89                 #size-cells = <0>;
90                 poll-interval = <20>;
91
92                 wps {
93                         label = "wps";
94                         gpios = <&gpio0 7 1>;
95                         linux,code = <0x211>;
96                 };
97         };
98 };