3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "phicomm,k2g", "ralink,mt7620a-soc";
10 model = "Phicomm K2G";
14 led-failsafe = &led_blue;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
21 compatible = "gpio-leds";
24 label = "k2g:blue:status";
25 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
29 label = "k2g:yellow:status";
30 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
34 label = "k2g:red:status";
35 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
40 compatible = "gpio-keys-polled";
45 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <24000000>;
60 compatible = "fixed-partitions";
71 reg = <0x30000 0x10000>;
76 factory: partition@40000 {
77 reg = <0x40000 0x10000>;
83 reg = <0x50000 0x50000>;
84 label = "permanent_config";
89 compatible = "denx,uimage";
90 reg = <0xa0000 0x760000>;
98 state_default: pinctrl0 {
100 ralink,group = "i2c", "uartf";
101 ralink,function = "gpio";
107 pinctrl-names = "default";
108 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
109 mtd-mac-address = <&factory 0x28>;
110 mediatek,portmap = "llllw";
114 phy-handle = <&phy5>;
121 phy5: ethernet-phy@5 {
134 reg = <0x0000 0 0 0 0>;
135 mediatek,mtd-eeprom = <&factory 0x8000>;
136 ieee80211-freq-limit = <5000000 6000000>;
141 ralink,mtd-eeprom = <&factory 0>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&pa_pins>;