1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Samsung WAM250";
11 compatible = "samsung,wam250", "qca,ar9344";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 compatible = "gpio-leds";
42 function = LED_FUNCTION_LAN;
43 color = <LED_COLOR_ID_WHITE>;
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 function = LED_FUNCTION_POWER;
49 color = <LED_COLOR_ID_WHITE>;
50 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
51 default-state = "keep";
55 label = "white:repeater";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
60 function = LED_FUNCTION_WLAN;
61 color = <LED_COLOR_ID_WHITE>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
71 phy-handle = <&swphy0>;
73 nvmem-cells = <&macaddr_art_1002 1>;
74 nvmem-cell-names = "mac-address";
78 switch-phy-swap = <1>;
85 nvmem-cells = <&macaddr_art_1002 0>;
86 nvmem-cell-names = "mac-address";
91 line-name = "wam250:ext:lna0";
92 gpios = <19 GPIO_ACTIVE_HIGH>;
99 clock-frequency = <40000000>;
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <50000000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x000000 0x040000>;
123 label = "u-boot-env";
124 reg = <0x040000 0x010000>;
129 reg = <0x050000 0x020000>;
134 compatible = "denx,uimage";
136 reg = <0x070000 0xf80000>;
139 art: partition@ff0000 {
141 reg = <0xff0000 0x010000>;
145 compatible = "fixed-layout";
146 #address-cells = <1>;
149 macaddr_art_1002: macaddr@1002 {
150 compatible = "mac-base";
152 #nvmem-cell-cells = <1>;
172 mtd-cal-data = <&art 0x1000>;