ramips: dts: Unify naming of gpio-led nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AIR3GII.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "airlive,air3gii", "ralink,rt5350-soc";
10 model = "AirLive Air3GII";
11
12 leds {
13 compatible = "gpio-leds";
14
15 wlan {
16 label = "air3gii:green:wlan";
17 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
18 };
19
20 mobile {
21 label = "air3gii:green:mobile";
22 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
23 trigger-sources = <&ohci_port1>, <&ehci_port1>;
24 linux,default-trigger = "usbport";
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 wps {
33 label = "wps";
34 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38 };
39
40 &gpio0 {
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 compatible = "denx,uimage";
77 label = "firmware";
78 reg = <0x50000 0x3b0000>;
79 };
80 };
81 };
82 };
83
84 &pinctrl {
85 state_default: pinctrl0 {
86 gpio {
87 ralink,group = "i2c", "jtag", "uartf";
88 ralink,function = "gpio";
89 };
90 };
91 };
92
93 &ethernet {
94 mtd-mac-address = <&factory 0x4>;
95 };
96
97 &esw {
98 mediatek,portmap = <0x2f>;
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&factory 0>;
103 };