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";
17 compatible = "gpio-leds";
20 label = "k2g:blue:status";
21 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
25 label = "k2g:yellow:status";
26 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 label = "k2g:red:status";
31 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
36 compatible = "gpio-keys-polled";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
55 compatible = "jedec,spi-nor";
57 spi-max-frequency = <24000000>;
60 compatible = "fixed-partitions";
70 reg = <0x30000 0x10000>;
74 factory: factory@40000 {
75 reg = <0x40000 0x10000>;
79 permanent_config@50000 {
80 reg = <0x50000 0x50000>;
85 reg = <0xa0000 0x760000>;
92 state_default: pinctrl0 {
94 ralink,group = "i2c", "uartf";
95 ralink,function = "gpio";
101 pinctrl-names = "default";
102 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
103 mtd-mac-address = <&factory 0x28>;
104 mediatek,portmap = "llllw";
108 phy-handle = <&phy5>;
115 phy5: ethernet-phy@5 {
127 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x8000>;
130 ieee80211-freq-limit = <5000000 6000000>;
136 ralink,mtd-eeprom = <&factory 0>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&pa_pins>;