5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "hilink,hlk-rm04", "ralink,rt5350-soc";
10 model = "HILINK HLK-RM04";
13 device_type = "memory";
14 reg = <0x0 0x1000000>;
18 bootargs = "console=ttyS1,57600";
22 compatible = "gpio-export";
28 gpio-export,name = "hlk-rm04:gpio0";
29 gpio-export,direction_may_change = <1>;
30 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
34 gpio-export,name = "hlk-rm04:gpio1";
35 gpio-export,direction_may_change = <1>;
36 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
41 compatible = "gpio-keys-polled";
47 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
52 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <10000000>;
80 reg = <0x30000 0x10000>;
84 factory: partition@40000 {
86 reg = <0x40000 0x10000>;
92 reg = <0x50000 0x3b0000>;
98 state_default: pinctrl0 {
100 ralink,group = "i2c", "jtag";
101 ralink,function = "gpio";
105 ralink,group = "uartf";
106 ralink,function = "gpio uartf";
112 mtd-mac-address = <&factory 0x4>;
116 ralink,mtd-eeprom = <&factory 0>;