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";
13 led-status = &led_blue;
18 compatible = "gpio-leds";
21 label = "k2g:blue:status";
22 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
26 label = "k2g:yellow:status";
27 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
31 label = "k2g:red:status";
32 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
37 compatible = "gpio-keys-polled";
42 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
52 compatible = "jedec,spi-nor";
54 spi-max-frequency = <24000000>;
57 compatible = "fixed-partitions";
68 reg = <0x30000 0x10000>;
73 factory: partition@40000 {
74 reg = <0x40000 0x10000>;
80 reg = <0x50000 0x50000>;
81 label = "permanent_config";
86 reg = <0xa0000 0x760000>;
94 state_default: pinctrl0 {
96 ralink,group = "i2c", "uartf";
97 ralink,function = "gpio";
103 pinctrl-names = "default";
104 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
105 mtd-mac-address = <&factory 0x28>;
106 mediatek,portmap = "llllw";
110 phy-handle = <&phy5>;
117 phy5: ethernet-phy@5 {
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x8000>;
132 ieee80211-freq-limit = <5000000 6000000>;
137 ralink,mtd-eeprom = <&factory 0>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&pa_pins>;