ramips: drop remaining m25p,chunked-io from DTS
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr841n-v14.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "tplink,tl-wr841n-v14", "mediatek,mt7628an-soc";
11 model = "TP-Link TL-WR841N v14";
12
13 aliases {
14 led-boot = &led_wlan;
15 led-failsafe = &led_wlan;
16 led-upgrade = &led_wlan;
17
18 led-wlan = &led_wlan;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 reset {
29 label = "reset";
30 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 lan {
39 label = "tl-wr841n-v14:green:lan";
40 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
41 };
42
43 wan_green {
44 label = "tl-wr841n-v14:green:wan";
45 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
46 };
47
48 led_wlan: wlan {
49 label = "tl-wr841n-v14:green:wlan";
50 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
52 };
53
54 wan_orange {
55 label = "tl-wr841n-v14:orange:wan";
56 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <10000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "boot";
76 reg = <0x0 0x10000>;
77 read-only;
78 };
79
80 partition@10000 {
81 compatible = "tplink,firmware";
82 label = "firmware";
83 reg = <0x10000 0x3e0000>;
84 };
85
86 factory: partition@3f0000 {
87 label = "factory";
88 reg = <0x3f0000 0x10000>;
89 read-only;
90 };
91 };
92 };
93 };
94
95 &ehci {
96 status = "disabled";
97 };
98
99 &ohci {
100 status = "disabled";
101 };
102
103 &wmac {
104 status = "okay";
105
106 mtd-mac-address = <&factory 0xf100>;
107 };
108
109 &ethernet {
110 mtd-mac-address = <&factory 0xf100>;
111 };
112
113 &esw {
114 mediatek,portmap = <0x3e>;
115 };
116
117 &state_default {
118 gpio {
119 groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", "p0led_an", "wdt";
120 function = "gpio";
121 };
122 };
123
124 &gpio {
125 led_wlan_enable {
126 gpio-hog;
127 gpios = <43 GPIO_ACTIVE_HIGH>;
128 output-high;
129 };
130 };