3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "hilink,hlk-rm04", "ralink,rt5350-soc";
8 model = "HILINK HLK-RM04";
11 bootargs = "console=ttyS1,57600";
15 compatible = "gpio-export";
21 gpio-export,name = "hlk-rm04:gpio0";
22 gpio-export,direction_may_change = <1>;
23 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
27 gpio-export,name = "hlk-rm04:gpio1";
28 gpio-export,direction_may_change = <1>;
29 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
34 compatible = "gpio-keys-polled";
38 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
43 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <10000000>;
62 compatible = "fixed-partitions";
74 reg = <0x30000 0x10000>;
78 factory: partition@40000 {
80 reg = <0x40000 0x10000>;
84 compatible = "fixed-layout";
88 eeprom_factory_0: eeprom@0 {
92 macaddr_factory_4: macaddr@4 {
99 compatible = "denx,uimage";
101 reg = <0x50000 0x3b0000>;
109 groups = "i2c", "jtag";
115 function = "gpio uartf";
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
125 nvmem-cells = <&eeprom_factory_0>;
126 nvmem-cell-names = "eeprom";