5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "poray,x5", "ralink,rt5350-soc";
13 led-status = &led_power;
17 compatible = "gpio-leds";
20 label = "x5:green:power";
21 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 label = "x5:green:20";
26 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
30 label = "x5:green:50";
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
35 label = "x5:green:80";
36 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
48 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
60 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
62 linux,input-type = <EV_SW>;
67 compatible = "gpio-export";
71 gpio-export,name = "usb-mode";
72 gpio-export,output = <0>;
73 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <10000000>;
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
108 reg = <0x50000 0x7b0000>;
114 state_default: pinctrl0 {
116 ralink,group = "i2c", "jtag", "uartf";
117 ralink,function = "gpio";
123 mtd-mac-address = <&factory 0x4>;
127 mediatek,portmap = <0x2f>;
128 mediatek,led_polarity = <1>;
132 ralink,mtd-eeprom = <&factory 0>;
133 ralink,led-polarity = <1>;