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