ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_samsung_wam250.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "Samsung WAM250";
11 compatible = "samsung,wam250", "qca,ar9344";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29
30 wps {
31 label = "wps";
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 lan {
42 function = LED_FUNCTION_LAN;
43 color = <LED_COLOR_ID_WHITE>;
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 };
46
47 led_power: power {
48 function = LED_FUNCTION_POWER;
49 color = <LED_COLOR_ID_WHITE>;
50 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
51 default-state = "keep";
52 };
53
54 repeater {
55 label = "white:repeater";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 };
58
59 wlan {
60 function = LED_FUNCTION_WLAN;
61 color = <LED_COLOR_ID_WHITE>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
64 };
65 };
66 };
67
68 &eth0 {
69 status = "okay";
70
71 phy-handle = <&swphy0>;
72
73 nvmem-cells = <&macaddr_art_1002 1>;
74 nvmem-cell-names = "mac-address";
75
76 gmac-config {
77 device = <&gmac>;
78 switch-phy-swap = <1>;
79 };
80 };
81
82 &eth1 {
83 status = "okay";
84
85 nvmem-cells = <&macaddr_art_1002 0>;
86 nvmem-cell-names = "mac-address";
87 };
88
89 &gpio {
90 lna0 {
91 line-name = "wam250:ext:lna0";
92 gpios = <19 GPIO_ACTIVE_HIGH>;
93 output-high;
94 gpio-hog;
95 };
96 };
97
98 &ref {
99 clock-frequency = <40000000>;
100 };
101
102 &spi {
103 status = "okay";
104
105 flash@0 {
106 compatible = "jedec,spi-nor";
107 reg = <0>;
108 spi-max-frequency = <50000000>;
109 m25p,fast-read;
110
111 partitions {
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 partition@0 {
117 label = "u-boot";
118 reg = <0x000000 0x040000>;
119 read-only;
120 };
121
122 partition@40000 {
123 label = "u-boot-env";
124 reg = <0x040000 0x010000>;
125 };
126
127 partition@50000 {
128 label = "nvram";
129 reg = <0x050000 0x020000>;
130 read-only;
131 };
132
133 partition@70000 {
134 compatible = "denx,uimage";
135 label = "firmware";
136 reg = <0x070000 0xf80000>;
137 };
138
139 art: partition@ff0000 {
140 label = "art";
141 reg = <0xff0000 0x010000>;
142 read-only;
143
144 nvmem-layout {
145 compatible = "fixed-layout";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 macaddr_art_1002: macaddr@1002 {
150 compatible = "mac-base";
151 reg = <0x1002 0x6>;
152 #nvmem-cell-cells = <1>;
153 };
154 };
155 };
156 };
157 };
158 };
159
160 &usb {
161 status = "okay";
162 };
163
164 &usb_phy {
165 status = "okay";
166 };
167
168
169 &wmac {
170 status = "okay";
171
172 mtd-cal-data = <&art 0x1000>;
173 };