ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / TL-WR840NV5.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc";
10 model = "TP-Link TL-WR840N v5";
11
12 aliases {
13 led-status = &led_power_green;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x4000000>;
23 };
24
25 gpio-keys-polled {
26 compatible = "gpio-keys-polled";
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 };
34 };
35 /* LED used is dual-color,dual lead LED */
36 gpio-leds {
37 compatible = "gpio-leds";
38
39 led_power_green: power {
40 label = "tl-wr840n-v5:green:power";
41 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
42 };
43
44 orange {
45 label = "tl-wr840n-v5:orange:power";
46 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
47 };
48 };
49 };
50
51 &spi0 {
52 status = "okay";
53
54 m25p80@0 {
55 #address-cells = <1>;
56 #size-cells = <1>;
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <10000000>;
60 m25p,chunked-io = <32>;
61
62 partition@0 {
63 label = "boot";
64 reg = <0x0 0x20000>;
65 read-only;
66 };
67
68 partition@20000 {
69 label = "firmware";
70 reg = <0x20000 0x3d0000>;
71 };
72
73 factory: partition@3f0000 {
74 label = "factory";
75 reg = <0x3f0000 0x10000>;
76 read-only;
77 };
78 };
79 };
80
81 &ehci {
82 status = "disabled";
83 };
84
85 &ohci {
86 status = "disabled";
87 };
88
89 &wmac {
90 status = "okay";
91 mtd-mac-address = <&factory 0xf100>;
92 mediatek,mtd-eeprom = <&factory 0x10000>;
93 };
94
95 &ethernet {
96 mtd-mac-address = <&factory 0xf100>;
97 mediatek,portmap = "wllll";
98 };
99
100 &pinctrl {
101 state_default: pinctrl0 {
102 gpio {
103 ralink,group = "p0led_an", "p2led_an", "perst";
104 ralink,function = "gpio";
105 };
106 };
107 };