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";
44 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
56 compatible = "jedec,spi-nor";
58 spi-max-frequency = <24000000>;
61 compatible = "fixed-partitions";
71 reg = <0x30000 0x10000>;
75 factory: factory@40000 {
76 reg = <0x40000 0x10000>;
80 permanent_config@50000 {
81 reg = <0x50000 0x50000>;
86 reg = <0xa0000 0x760000>;
93 state_default: pinctrl0 {
95 ralink,group = "i2c", "uartf";
96 ralink,function = "gpio";
102 pinctrl-names = "default";
103 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
104 mtd-mac-address = <&factory 0x28>;
105 mediatek,portmap = "llllw";
109 phy-handle = <&phy5>;
116 phy5: ethernet-phy@5 {
128 reg = <0x0000 0 0 0 0>;
130 mediatek,mtd-eeprom = <&factory 0x8000>;
131 ieee80211-freq-limit = <5000000 6000000>;
137 ralink,mtd-eeprom = <&factory 0>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&pa_pins>;