5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "poray,x5", "ralink,rt5350-soc";
13 compatible = "gpio-leds";
16 label = "x5:green:power";
17 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
21 label = "x5:green:20";
22 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
26 label = "x5:green:50";
27 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
31 label = "x5:green:80";
32 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys-polled";
44 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
56 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
58 linux,input-type = <EV_SW>;
63 compatible = "gpio-export";
67 gpio-export,name = "usb-mode";
68 gpio-export,output = <0>;
69 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <10000000>;
92 reg = <0x30000 0x10000>;
96 factory: partition@40000 {
98 reg = <0x40000 0x10000>;
104 reg = <0x50000 0x7b0000>;
110 state_default: pinctrl0 {
112 ralink,group = "i2c", "jtag", "uartf";
113 ralink,function = "gpio";
119 mtd-mac-address = <&factory 0x4>;
123 mediatek,portmap = <0x2f>;
124 mediatek,led_polarity = <1>;
128 ralink,mtd-eeprom = <&factory 0>;
129 ralink,led-polarity = <1>;