1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/leds/common.h>
9 model = "Edgecore EAP111";
10 compatible = "edgecore,eap111", "mediatek,mt7981";
14 led-boot = &led_green;
15 led-failsafe = &led_green;
16 led-running = &led_green;
17 led-upgrade = &led_green;
21 bootargs-override = "console=ttyS0,115200n8";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-leds";
38 led_green: led-green {
39 gpios = <&pio 9 GPIO_ACTIVE_HIGH>;
40 color = <LED_COLOR_ID_GREEN>;
41 function = LED_FUNCTION_INDICATOR;
44 led_orange: led-orange {
45 gpios = <&pio 34 GPIO_ACTIVE_HIGH>;
46 color = <LED_COLOR_ID_ORANGE>;
47 function = LED_FUNCTION_INDICATOR;
51 gpios = <&pio 35 GPIO_ACTIVE_HIGH>;
52 color = <LED_COLOR_ID_BLUE>;
53 function = LED_FUNCTION_INDICATOR;
67 spi0_flash_pins: spi0-pins {
70 groups = "spi0", "spi0_wp_hold";
76 pinctrl-names = "default";
77 pinctrl-0 = <&spi0_flash_pins>;
88 compatible = "spi-nand";
90 spi-max-frequency = <52000000>;
93 spi-cal-mode = "read-data";
94 spi-cal-datalen = <7>;
95 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
96 spi-cal-addrlen = <5>;
97 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
99 spi-tx-bus-width = <4>;
100 spi-rx-bus-width = <4>;
102 mediatek,bmt-max-ratio = <1>;
103 mediatek,bmt-max-reserved-blocks = <64>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
112 reg = <0x00000 0x100000>;
117 label = "u-boot-env";
118 reg = <0x100000 0x80000>;
123 reg = <0x180000 0x200000>;
127 compatible = "fixed-layout";
128 #address-cells = <1>;
131 eeprom_factory: eeprom@0 {
135 macaddr_wan: macaddr@2a {
139 macaddr_lan: macaddr@24 {
147 reg = <0x380000 0x200000>;
153 reg = <0x580000 0x4000000>;
154 compatible = "linux,ubi";
161 reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
162 reset-delay-us = <10000>;
163 reset-post-delay-us = <10000>;
165 en8801sc: ethernet-phy@24 {
167 compatible = "ethernet-phy-id03a2.9471";
173 pinctrl-names = "default";
174 pinctrl-0 = <&mdio_pins>;
178 compatible = "mediatek,eth-mac";
181 phy-handle = <&en8801sc>;
182 managed = "in-band-status";
183 nvmem-cells = <&macaddr_lan>;
184 nvmem-cell-names = "mac-address";
188 compatible = "mediatek,eth-mac";
191 phy-handle = <&int_gbe_phy>;
192 nvmem-cells = <&macaddr_wan>;
193 nvmem-cell-names = "mac-address";
198 nvmem-cells = <&eeprom_factory>;
199 nvmem-cell-names = "eeprom";