ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_hiwifi_hc5861.dts
1 #include "mt7620a_hiwifi_hc5x61.dtsi"
2
3 / {
4 compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc";
5 model = "HiWiFi HC5861";
6
7 aliases {
8 led-boot = &led_system;
9 led-failsafe = &led_system;
10 led-running = &led_system;
11 led-upgrade = &led_system;
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 led_system: system {
18 label = "blue:system";
19 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
20 };
21
22 wlan2g {
23 label = "blue:wlan2g";
24 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
25 linux,default-trigger = "phy1tpt";
26 };
27
28 internet {
29 label = "blue:internet";
30 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan5g {
34 label = "blue:wlan5g";
35 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 turbo {
40 label = "blue:turbo";
41 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 gpio_export {
46 compatible = "gpio-export";
47 #size-cells = <0>;
48
49 usbpower {
50 gpio-export,name = "usbpower";
51 gpio-export,output = <0>;
52 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 };
54
55 sdpower {
56 gpio-export,name = "sdpower";
57 gpio-export,output = <0>;
58 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &ehci {
64 status = "okay";
65 };
66
67 &ohci {
68 status = "okay";
69 };
70
71 &ethernet {
72 pinctrl-names = "default";
73 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
74
75 nvmem-cells = <&macaddr_factory_4>;
76 nvmem-cell-names = "mac-address";
77
78 mediatek,portmap = "llllw";
79
80 port@5 {
81 status = "okay";
82 phy-handle = <&phy5>;
83 phy-mode = "rgmii";
84 };
85
86 mdio-bus {
87 status = "okay";
88
89 phy5: ethernet-phy@5 {
90 reg = <5>;
91 phy-mode = "rgmii";
92 };
93 };
94 };
95
96 &pcie {
97 status = "okay";
98 };
99
100 &pcie0 {
101 wifi@0,0 {
102 compatible = "pci14c3,7662";
103 reg = <0x0000 0 0 0 0>;
104 mediatek,mtd-eeprom = <&factory 0x8000>;
105 ieee80211-freq-limit = <5000000 6000000>;
106 };
107 };
108
109 &wmac {
110 pinctrl-names = "default";
111 pinctrl-0 = <&pa_pins>;
112 };
113
114 &factory {
115 compatible = "nvmem-cells";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 macaddr_factory_4: macaddr@4 {
120 reg = <0x4 0x6>;
121 };
122 };