ramips: dts: Unify naming of gpio-led nodes
[openwrt/openwrt.git] / target / linux / ramips / dts / AWAPN2403.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asiarf,awapn2403", "ralink,rt3052-soc";
10 model = "AsiaRF AWAPN2403";
11
12 aliases {
13 led-boot = &led_wps;
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 };
18
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_wps: wps {
24 label = "awapn2403:green:wps";
25 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
26 };
27 };
28
29 keys {
30 compatible = "gpio-keys-polled";
31 poll-interval = <20>;
32
33 reset {
34 label = "reset";
35 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39 };
40
41 &spi0 {
42 status = "okay";
43
44 m25p80@0 {
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 spi-max-frequency = <10000000>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x30000>;
57 read-only;
58 };
59
60 partition@30000 {
61 label = "u-boot-env";
62 reg = <0x30000 0x10000>;
63 read-only;
64 };
65
66 factory: partition@40000 {
67 label = "factory";
68 reg = <0x40000 0x10000>;
69 read-only;
70 };
71
72 partition@50000 {
73 compatible = "denx,uimage";
74 label = "firmware";
75 reg = <0x50000 0x3b0000>;
76 };
77 };
78 };
79 };
80
81 &pinctrl {
82 state_default: pinctrl0 {
83 gpio {
84 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
85 ralink,function = "gpio";
86 };
87 };
88 };
89
90 &esw {
91 mediatek,portmap = <0x3e>;
92 };
93
94 &wmac {
95 ralink,mtd-eeprom = <&factory 0>;
96 };