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";
23 color = <LED_COLOR_ID_GREEN>;
24 function = LED_FUNCTION_STATUS;
25 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
35 color = <LED_COLOR_ID_GREEN>;
36 function = LED_FUNCTION_USB;
37 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&xhci_ehci_port1>;
39 linux,default-trigger = "usbport";
44 compatible = "gpio-keys";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
54 compatible = "sff,sfp";
56 los-gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
57 mod-def0-gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
58 tx-disable-gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
59 maximum-power-milliwatt = <1000>;
62 reg_usb_vbus: regulator-usb {
63 compatible = "regulator-fixed";
64 regulator-name = "usb_vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&gpio 17 GPIO_ACTIVE_HIGH>;
71 reg_3p3v: regulator-3p3v {
72 compatible = "regulator-fixed";
73 regulator-name = "fixed-3.3V";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
83 groups = "uart2", "uart3", "jtag";
91 flash@0 { // GD25Q127CSIG
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <44000000>;
97 compatible = "fixed-partitions";
109 reg = <0x30000 0x10000>;
112 factory: partition@40000 {
114 reg = <0x40000 0x10000>;
118 compatible = "fixed-layout";
119 #address-cells = <1>;
122 eeprom_factory_0: eeprom@0 {
126 macaddr_factory_e000: macaddr@e000 {
130 macaddr_factory_e006: macaddr@e006 {
137 compatible = "denx,uimage";
139 reg = <0x50000 0xfb0000>;
144 reg = <0x30000 0x1000>;
151 // driver issue, bypass
154 gpios = <9 GPIO_ACTIVE_LOW>;
160 phy_sfp: ethernet-phy@0 {
167 nvmem-cells = <&macaddr_factory_e000>;
168 nvmem-cell-names = "mac-address";
174 phy-mode = "rgmii-rxid";
175 phy-handle = <&phy_sfp>;
177 nvmem-cells = <&macaddr_factory_e006>;
178 nvmem-cell-names = "mac-address";
206 vusb33-supply = <®_3p3v>;
207 vbus-supply = <®_usb_vbus>;
216 compatible = "mediatek,mt76";
217 reg = <0x0000 0 0 0 0>;
218 nvmem-cells = <&eeprom_factory_0>;
219 nvmem-cell-names = "eeprom";