1 // SPDX-License-Identifier: GPL-2.0-or-later
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
9 compatible = "snr,snr-cpe-me1", "mediatek,mt7621-soc";
10 model = "SNR-CPE-ME1";
13 label-mac-device = &gmac1;
16 led-failsafe = &led_vpn;
17 led-running = &led_green;
18 led-upgrade = &led_sys;
22 compatible = "gpio-leds";
24 led_usb: led-0 { // USB Activity
25 color = <LED_COLOR_ID_GREEN>;
26 function = LED_FUNCTION_USB;
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>; // [JTAG] JTDO
30 led_vpn: led-1 { // VPN Activity
31 color = <LED_COLOR_ID_GREEN>;
32 function = LED_FUNCTION_INDICATOR;
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>; // [JTAG] JTCLK
36 led_sys: led-2 { // System config
37 color = <LED_COLOR_ID_GREEN>;
38 function = LED_FUNCTION_STATUS;
39 gpios = <&gpio 3 GPIO_ACTIVE_LOW>; // [I2C] I2C_SD
43 led_green: led-3 { // ? LED
44 color = <LED_COLOR_ID_GREEN>;
45 function = LED_FUNCTION_HEARTBEAT;
46 gpios = <&gpio 15 GPIO_ACTIVE_LOW>; // [JTAG] JTMS
51 compatible = "gpio-keys";
54 label = "Reset Button";
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>; // [JTAG] JTDI
56 linux,code = <KEY_RESTART>;
60 reg_usb_vbus: regulator {
61 compatible = "regulator-fixed";
62 regulator-name = "usb_vbus";
63 regulator-min-microvolt = <5000000>;
64 regulator-max-microvolt = <5000000>;
65 gpio = <&gpio 17 GPIO_ACTIVE_HIGH>;
69 reg_3p3v: regulator-3p3v {
70 compatible = "regulator-fixed";
71 regulator-name = "fixed-3.3V";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
80 nvmem-cells = <&macaddr_factory_e000>;
81 nvmem-cell-names = "mac-address";
87 phy-handle = <ðphy4>;
89 nvmem-cells = <&macaddr_factory_e006>;
90 nvmem-cell-names = "mac-address";
94 ethphy4: ethernet-phy@4 {
105 compatible = "mediatek,mt76";
106 reg = <0x0000 0 0 0 0>;
107 nvmem-cells = <&eeprom_factory_0>;
108 nvmem-cell-names = "eeprom";
109 ieee80211-freq-limit = <2400000 2500000>;
115 compatible = "mediatek,mt76";
116 reg = <0x0000 0 0 0 0>;
117 nvmem-cells = <&eeprom_factory_8000>;
118 nvmem-cell-names = "eeprom";
119 ieee80211-freq-limit = <5000000 6000000>;
126 flash@0 { // GD25Q128CSIG
127 compatible = "jedec,spi-nor";
129 spi-max-frequency = <44000000>; // 44 MHz
132 compatible = "fixed-partitions";
133 #address-cells = <1>;
137 label = "Bootloader";
144 reg = <0x30000 0x10000>;
148 factory: partition@40000 {
150 reg = <0x40000 0x10000>;
154 compatible = "fixed-layout";
155 #address-cells = <1>;
158 eeprom_factory_0: eeprom@0 {
162 eeprom_factory_8000: eeprom@8000 {
163 reg = <0x8000 0x200>;
166 macaddr_factory_e000: macaddr@e000 {
170 macaddr_factory_e006: macaddr@e006 {
177 compatible = "openwrt,uimage", "denx,uimage";
179 reg = <0x50000 0xfb0000>;
184 reg = <0x30000 0x1000>;
192 groups = "i2c", "jtag";
222 vbus-supply = <®_usb_vbus>;
223 vusb33-supply = <®_3p3v>;