f19ef01d499d0b86a713c3807d0971c8e792d358
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / ar9344_tplink_cpe510.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9344.dtsi"
8
9 / {
10 aliases {
11 led-boot = &system;
12 led-failsafe = &system;
13 led-running = &system;
14 led-upgrade = &system;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 lan {
21 label = "tp-link:green:lan";
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 };
24
25 link1 {
26 label = "tp-link:green:link1";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 };
29
30 link2 {
31 label = "tp-link:green:link2";
32 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 };
34
35 link3 {
36 label = "tp-link:green:link3";
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 };
39
40 system: link4 {
41 label = "tp-link:green:link4";
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 debounce-interval = <60>;
53 };
54 };
55
56 };
57
58 &ref {
59 clock-frequency = <40000000>;
60 };
61
62 &uart {
63 status = "okay";
64 };
65
66 &spi {
67 num-cs = <1>;
68
69 status = "okay";
70
71 flash@0 {
72 compatible = "jedec,spi-nor";
73 reg = <0>;
74 spi-max-frequency = <25000000>;
75
76 partitions {
77 compatible = "fixed-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 uboot: partition@0 {
82 label = "u-boot";
83 reg = <0x000000 0x020000>;
84 read-only;
85 };
86
87 partition@20000 {
88 label = "partition-table";
89 reg = <0x020000 0x010000>;
90 read-only;
91 };
92
93 info: partition@30000 {
94 label = "info";
95 reg = <0x030000 0x010000>;
96 read-only;
97 };
98
99 partition@40000 {
100 label = "firmware";
101 reg = <0x040000 0x780000>;
102
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "kernel";
109 reg = <0x000000 0x200000>;
110 };
111
112 partition@200000 {
113 label = "rootfs";
114 reg = <0x200000 0x580000>;
115 };
116 };
117
118 partition@7c0000 {
119 label = "config";
120 reg = <0x7c0000 0x030000>;
121 read-only;
122 };
123
124 art: partition@7f0000 {
125 label = "art";
126 reg = <0x7f0000 0x010000>;
127 read-only;
128 };
129 };
130 };
131 };
132
133 &wmac {
134 status = "okay";
135
136 mtd-cal-data = <&art 0x1000>;
137 mtd-mac-address = <&info 0x08>;
138 };
139
140 &eth0 {
141 status = "okay";
142
143 mtd-mac-address = <&info 0x08>;
144
145 phy-mode = "mii";
146 phy-handle = <&swphy4>;
147 };
148
149 &eth1 {
150 status = "okay";
151 compatible = "syscon", "simple-mfd";
152 };