ramips: consolidate Netgear devices for mt7628
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_netgear_r6120.dts
1 /dts-v1/;
2
3 #include "mt7628an_netgear_r6xxx.dtsi"
4
5 / {
6 compatible = "netgear,r6120", "mediatek,mt7628an-soc";
7 model = "Netgear R6120";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 label-mac-device = &ethernet;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 lan {
21 label = "r6120:green:lan";
22 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
23 };
24
25 led_power: power {
26 label = "r6120:green:power";
27 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
28 };
29
30 wlan2g_green {
31 label = "r6120:green:wlan2g";
32 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 wlan2g_orange {
37 label = "r6120:orange:wlan2g";
38 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
39 };
40
41 wan_green {
42 label = "r6120:green:wan";
43 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
44 };
45
46 wan_orange {
47 label = "r6120:orange:wan";
48 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
49 };
50 };
51
52 usb-regulator {
53 compatible = "regulator-fixed";
54
55 regulator-name = "USB-power";
56 gpio = <&gpio 45 GPIO_ACTIVE_HIGH>;
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
59 enable-active-high;
60
61 regulator-always-on;
62 };
63 };
64
65 &state_default {
66 gpio {
67 groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an",
68 "p4led_an", "wdt", "wled_an", "uart1";
69 function = "gpio";
70 };
71 };
72
73 &partitions {
74 partition@90000 {
75 compatible = "denx,uimage";
76 label = "firmware";
77 reg = <0x90000 0xf60000>;
78 };
79
80 partition@ff0000 {
81 label = "reserved";
82 reg = <0xff0000 0x10000>;
83 read-only;
84 };
85 };
86
87 &wifi5 {
88 mtd-mac-address = <&factory 0x4>;
89 mtd-mac-address-increment = <(2)>;
90 };