1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "ALFA Network AP121F";
11 compatible = "alfa-network,ap121f", "qca,ar9331";
14 label-mac-device = &wmac;
16 led-failsafe = &led_vpn;
17 led-upgrade = &led_vpn;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
38 compatible = "gpio-leds";
41 label = "ap121f:green:lan";
42 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 label = "ap121f:green:vpn";
47 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
51 label = "ap121f:green:wlan";
52 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "phy0tpt";
61 mtd-mac-address = <&art 0x0>;
65 switch-phy-addr-swap = <0>;
66 switch-phy-swap = <0>;
73 compatible = "syscon", "simple-mfd";
86 compatible = "jedec,spi-nor";
88 spi-max-frequency = <25000000>;
91 compatible = "fixed-partitions";
97 reg = <0x000000 0x030000>;
102 label = "u-boot-env";
103 reg = <0x030000 0x010000>;
106 art: partition@40000 {
108 reg = <0x040000 0x010000>;
113 compatible = "denx,uimage";
115 reg = <0x050000 0xfb0000>;
137 mtd-cal-data = <&art 0x1000>;