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