8f71cc5bf10ad68629c15b6688b64c3980ae6b9c
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_unbranded_a5-v11.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "unbranded,a5-v11", "ralink,rt5350-soc";
8 model = "Unbranded A5-V11";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &ethernet;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 system {
22 label = "blue:system";
23 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
24 };
25
26 led_power: power {
27 label = "red:power";
28 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 keys {
33 compatible = "gpio-keys-polled";
34 poll-interval = <20>;
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42
43 gpio_export {
44 compatible = "gpio-export";
45 #size-cells = <0>;
46
47 usb {
48 gpio-export,name = "usb";
49 gpio-export,output = <1>;
50 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
51 };
52
53 root_hub {
54 gpio-export,name = "root_hub";
55 gpio-export,output = <1>;
56 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <10000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 factory: partition@40000 {
87 compatible = "nvmem-cells";
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 #address-cells = <1>;
91 #size-cells = <1>;
92 read-only;
93
94 eeprom_factory_0: eeprom@0 {
95 reg = <0x0 0x200>;
96 };
97
98 macaddr_factory_4: macaddr@4 {
99 reg = <0x4 0x6>;
100 };
101 };
102
103 partition@50000 {
104 compatible = "denx,uimage";
105 label = "firmware";
106 reg = <0x50000 0x3b0000>;
107 };
108 };
109 };
110 };
111
112 &state_default {
113 gpio {
114 groups = "i2c", "jtag", "uartf", "led";
115 function = "gpio";
116 };
117 };
118
119 &ethernet {
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
122 };
123
124 &esw {
125 mediatek,portmap = <0x1>;
126 mediatek,portdisable = <0x3e>;
127 };
128
129 &wmac {
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
132 };