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";
46 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
65 compatible = "gpio-export";
69 gpio-export,name = "usb-mode";
70 gpio-export,output = <0>;
71 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <10000000>;
85 compatible = "fixed-partitions";
97 reg = <0x30000 0x10000>;
101 factory: partition@40000 {
103 reg = <0x40000 0x10000>;
109 reg = <0x50000 0x7b0000>;
116 state_default: pinctrl0 {
118 ralink,group = "i2c", "jtag", "uartf";
119 ralink,function = "gpio";
125 mtd-mac-address = <&factory 0x4>;
129 mediatek,portmap = <0x2f>;
130 mediatek,led_polarity = <1>;
134 ralink,mtd-eeprom = <&factory 0>;
135 ralink,led-polarity = <1>;