5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "phicomm,k2p", "mediatek,mt7621-soc";
10 model = "Phicomm K2P";
13 device_type = "memory";
14 reg = <0x0 0x8000000>;
18 bootargs = "console=ttyS0,57600";
22 compatible = "gpio-leds";
25 label = "k2p:red:status";
26 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
30 label = "k2p:yellow:status";
31 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
35 label = "k2p:blue:status";
36 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
48 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
60 compatible = "jedec,spi-nor";
62 spi-max-frequency = <10000000>;
63 m25p,chunked-io = <32>;
73 reg = <0x30000 0x10000>;
77 factory: partition@40000 {
79 reg = <0x40000 0x10000>;
84 label = "permanent_config";
85 reg = <0x50000 0x50000>;
91 reg = <0xa0000 0xf60000>;
101 reg = <0x0000 0 0 0 0>;
103 mediatek,mtd-eeprom = <&factory 0x0>;
109 mtd-mac-address = <&factory 0xe006>;
113 state_default: pinctrl0 {
115 ralink,group = "i2c", "jtag";
116 ralink,function = "gpio";