5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "poray,x5", "ralink,rt5350-soc";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "x5:green:power";
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
28 label = "x5:green:20";
29 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
33 label = "x5:green:50";
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
38 label = "x5:green:80";
39 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys-polled";
49 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
63 linux,input-type = <EV_SW>;
68 compatible = "gpio-export";
72 gpio-export,name = "usb-mode";
73 gpio-export,output = <0>;
74 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
88 compatible = "fixed-partitions";
100 reg = <0x30000 0x10000>;
104 factory: partition@40000 {
106 reg = <0x40000 0x10000>;
111 compatible = "denx,uimage";
113 reg = <0x50000 0x7b0000>;
120 state_default: pinctrl0 {
122 ralink,group = "i2c", "jtag", "uartf";
123 ralink,function = "gpio";
129 mtd-mac-address = <&factory 0x4>;
133 mediatek,portmap = <0x2f>;
134 mediatek,led_polarity = <1>;
138 ralink,mtd-eeprom = <&factory 0>;
139 ralink,led-polarity = <1>;