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>
6 #include <dt-bindings/leds/common.h>
9 compatible = "snr,snr-cpe-me2-sfp", "mediatek,mt7621-soc";
10 model = "SNR-CPE-ME2-SFP";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
20 compatible = "gpio-leds";
24 color = <LED_COLOR_ID_GREEN>;
25 function = LED_FUNCTION_STATUS;
26 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
31 color = <LED_COLOR_ID_GREEN>;
32 function = LED_FUNCTION_STATUS;
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 color = <LED_COLOR_ID_GREEN>;
39 function = LED_FUNCTION_USB;
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 trigger-sources = <&xhci_ehci_port1>;
42 linux,default-trigger = "usbport";
47 compatible = "gpio-keys";
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 compatible = "sff,sfp";
59 los-gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
60 mod-def0-gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
61 tx-disable-gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
62 maximum-power-milliwatt = <1000>;
65 reg_usb_vbus: regulator-usb {
66 compatible = "regulator-fixed";
67 regulator-name = "usb_vbus";
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
70 gpio = <&gpio 17 GPIO_ACTIVE_HIGH>;
74 reg_3p3v: regulator-3p3v {
75 compatible = "regulator-fixed";
76 regulator-name = "fixed-3.3V";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
86 groups = "uart2", "uart3", "jtag";
94 flash@0 { // GD25Q127CSIG
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <44000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
112 reg = <0x30000 0x10000>;
115 factory: partition@40000 {
117 reg = <0x40000 0x10000>;
122 compatible = "denx,uimage";
124 reg = <0x50000 0xfb0000>;
129 reg = <0x30000 0x1000>;
136 // driver issue, bypass
139 gpios = <9 GPIO_ACTIVE_LOW>;
145 phy_sfp: ethernet-phy@0 {
152 nvmem-cells = <&macaddr_factory_e000>;
153 nvmem-cell-names = "mac-address";
159 phy-mode = "rgmii-rxid";
160 phy-handle = <&phy_sfp>;
162 nvmem-cells = <&macaddr_factory_e006>;
163 nvmem-cell-names = "mac-address";
191 vusb33-supply = <®_3p3v>;
192 vbus-supply = <®_usb_vbus>;
201 compatible = "mediatek,mt76";
202 reg = <0x0000 0 0 0 0>;
203 mediatek,mtd-eeprom = <&factory 0x0000>;
208 compatible = "nvmem-cells";
209 #address-cells = <1>;
212 macaddr_factory_e000: macaddr@e000 {
216 macaddr_factory_e006: macaddr@e006 {