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