5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "omnima,hpm", "ralink,rt3883-soc";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
24 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
33 label = "hpm:orange:power";
34 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
38 label = "hpm:green:status";
39 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
43 label = "hpm:green:eth";
44 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
48 label = "hpm:red:eth";
49 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
53 label = "hpm:green:wifi";
54 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
58 label = "hpm:red:wifi";
59 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-export";
66 /* gpio 12 and 13 handle the OC input */
69 gpio-export,name = "usb0";
70 gpio-export,output = <1>;
71 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
75 gpio-export,name = "usb1";
76 gpio-export,output = <1>;
77 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
86 compatible = "jedec,spi-nor";
87 spi-max-frequency = <25000000>;
93 reg = <0x0 0x0030000>;
99 reg = <0x00030000 0x00010000>;
104 factory: partition@40000 {
105 reg = <0x00040000 0x00010000>;
111 reg = <0x00050000 0x00fb0000>;
118 state_default: pinctrl0 {
120 ralink,group = "i2c", "jtag", "uartf";
121 ralink,function = "gpio";
127 phy-handle = <&phy0>;
129 mtd-mac-address = <&factory 0x28>;
134 phy0: ethernet-phy@4 {
141 ralink,mtd-eeprom = <&factory 0>;