base-files: fix uid/gid auto-enumeration to avoid 16-bit limit
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_omnima_miniembplug.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "omnima,miniembplug", "ralink,rt5350-soc";
9 model = "Omnima MiniEMBPlug";
10
11 leds {
12 compatible = "gpio-leds";
13
14 wlan {
15 function = LED_FUNCTION_WLAN;
16 color = <LED_COLOR_ID_RED>;
17 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
18 };
19
20 mobile {
21 label = "green:mobile";
22 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23 trigger-sources = <&ohci_port1>, <&ehci_port1>;
24 linux,default-trigger = "usbport";
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 wps {
33 label = "wps";
34 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37
38 reset {
39 label = "reset";
40 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43
44 mode-one {
45 label = "mode1";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
48 };
49
50 mode-two {
51 label = "mode2";
52 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 };
55 };
56 };
57
58 &state_default {
59 gpio {
60 groups = "i2c", "jtag", "uartf";
61 function = "gpio";
62 };
63 };
64
65 &spi0 {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <10000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0 0x30000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x30000 0x10000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "factory";
92 reg = <0x40000 0x10000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 eeprom_factory_0: eeprom@0 {
101 reg = <0x0 0x200>;
102 };
103
104 macaddr_factory_4: macaddr@4 {
105 reg = <0x4 0x6>;
106 };
107 };
108 };
109
110 partition@50000 {
111 compatible = "denx,uimage";
112 label = "firmware";
113 reg = <0x50000 0x7b0000>;
114 };
115 };
116 };
117 };
118
119 &ethernet {
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
122 };
123
124 &esw {
125 mediatek,portmap = <0x2f>;
126 };
127
128 &wmac {
129 nvmem-cells = <&eeprom_factory_0>;
130 nvmem-cell-names = "eeprom";
131 };