5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "omnima,hpm", "ralink,rt3883-soc";
13 led-status = &led_status;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-keys-polled";
24 poll-interval = <100>;
28 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
37 label = "hpm:orange:power";
38 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
42 label = "hpm:green:status";
43 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
47 label = "hpm:green:eth";
48 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
52 label = "hpm:red:eth";
53 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
57 label = "hpm:green:wifi";
58 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
62 label = "hpm:red:wifi";
63 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-export";
70 /* gpio 12 and 13 handle the OC input */
73 gpio-export,name = "usb0";
74 gpio-export,output = <1>;
75 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
79 gpio-export,name = "usb1";
80 gpio-export,output = <1>;
81 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
90 compatible = "jedec,spi-nor";
91 spi-max-frequency = <25000000>;
97 reg = <0x0 0x0030000>;
103 reg = <0x00030000 0x00010000>;
108 factory: partition@40000 {
109 reg = <0x00040000 0x00010000>;
115 reg = <0x00050000 0x00fb0000>;
122 state_default: pinctrl0 {
124 ralink,group = "i2c", "jtag", "uartf";
125 ralink,function = "gpio";
131 phy-handle = <&phy0>;
133 mtd-mac-address = <&factory 0x28>;
138 phy0: ethernet-phy@4 {
145 ralink,mtd-eeprom = <&factory 0>;