ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.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
8 / {
9 model = "Samsung WAM250";
10 compatible = "samsung,wam250", "qca,ar9344";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wps";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 lan {
41 label = "white:lan";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 };
44
45 led_power: power {
46 label = "white:power";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 default-state = "keep";
49 };
50
51 repeater {
52 label = "white:repeater";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 };
55
56 wlan {
57 label = "white:wlan";
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy0tpt";
60 };
61 };
62 };
63
64 &eth0 {
65 status = "okay";
66
67 phy-handle = <&swphy0>;
68
69 mtd-mac-address = <&art 0x1002>;
70 mtd-mac-address-increment = <1>;
71
72 gmac-config {
73 device = <&gmac>;
74 switch-phy-swap = <1>;
75 };
76 };
77
78 &eth1 {
79 status = "okay";
80
81 mtd-mac-address = <&art 0x1002>;
82 };
83
84 &gpio {
85 lna0 {
86 line-name = "wam250:ext:lna0";
87 gpios = <19 GPIO_ACTIVE_HIGH>;
88 output-high;
89 gpio-hog;
90 };
91 };
92
93 &ref {
94 clock-frequency = <40000000>;
95 };
96
97 &spi {
98 status = "okay";
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <50000000>;
104 m25p,fast-read;
105
106 partitions {
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "u-boot";
113 reg = <0x000000 0x040000>;
114 read-only;
115 };
116
117 partition@40000 {
118 label = "u-boot-env";
119 reg = <0x040000 0x010000>;
120 };
121
122 partition@50000 {
123 label = "nvram";
124 reg = <0x050000 0x020000>;
125 read-only;
126 };
127
128 partition@70000 {
129 compatible = "denx,uimage";
130 label = "firmware";
131 reg = <0x070000 0xf80000>;
132 };
133
134 art: partition@ff0000 {
135 label = "art";
136 reg = <0xff0000 0x010000>;
137 read-only;
138 };
139 };
140 };
141 };
142
143 &uart {
144 status = "okay";
145 };
146
147
148 &usb {
149 status = "okay";
150 };
151
152 &usb_phy {
153 status = "okay";
154 };
155
156
157 &wmac {
158 status = "okay";
159
160 mtd-cal-data = <&art 0x1000>;
161 };