|
11 | 11 | model = "TRENDNET TEW-673GRU"; |
12 | 12 |
|
13 | 13 | aliases { |
| 14 | + label-mac-device = ð1; |
14 | 15 | led-boot = &led_wps; |
15 | 16 | led-failsafe = &led_wps; |
16 | 17 | led-running = &led_wps; |
|
97 | 98 | wifi@11,0 { |
98 | 99 | compatible = "pci168c,0029"; |
99 | 100 | reg = <0x8800 0 0 0 0>; |
100 | | - qca,no-eeprom; |
| 101 | + nvmem-cells = <&cal_caldata_1000>, <&macaddr_lan 0>; |
| 102 | + nvmem-cell-names = "calibration", "mac-address"; |
101 | 103 | }; |
102 | 104 |
|
103 | 105 | wifi@12,0 { |
104 | 106 | compatible = "pci168c,0029"; |
105 | 107 | reg = <0x9000 0 0 0 0>; |
106 | | - qca,no-eeprom; |
| 108 | + nvmem-cells = <&cal_caldata_5000>, <&macaddr_wan 1>; |
| 109 | + nvmem-cell-names = "calibration", "mac-address"; |
107 | 110 | }; |
108 | 111 | }; |
109 | 112 |
|
|
141 | 144 | label = "caldata"; |
142 | 145 | reg = <0x660000 0x010000>; |
143 | 146 | read-only; |
| 147 | + |
| 148 | + nvmem-layout { |
| 149 | + compatible = "fixed-layout"; |
| 150 | + #address-cells = <1>; |
| 151 | + #size-cells = <1>; |
| 152 | + |
| 153 | + cal_caldata_1000: calibration@1000 { |
| 154 | + reg = <0x1000 0xeb8>; |
| 155 | + }; |
| 156 | + |
| 157 | + cal_caldata_5000: calibration@5000 { |
| 158 | + reg = <0x5000 0xeb8>; |
| 159 | + }; |
| 160 | + |
| 161 | + macaddr_lan: macaddr@ffa0 { |
| 162 | + compatible = "mac-base"; |
| 163 | + reg = <0xffa0 0x11>; |
| 164 | + #nvmem-cell-cells = <1>; |
| 165 | + }; |
| 166 | + |
| 167 | + macaddr_wan: macaddr@ffb4 { |
| 168 | + compatible = "mac-base"; |
| 169 | + reg = <0xffb4 0x11>; |
| 170 | + #nvmem-cell-cells = <1>; |
| 171 | + }; |
| 172 | + }; |
144 | 173 | }; |
145 | 174 |
|
146 | 175 | fwconcat1: partition@670000 { |
|
156 | 185 |
|
157 | 186 | pll-data = <0x11110000 0x00001099 0x00991099>; |
158 | 187 |
|
| 188 | + nvmem-cells = <&macaddr_lan 0>; |
| 189 | + nvmem-cell-names = "mac-address"; |
| 190 | + |
159 | 191 | fixed-link { |
160 | 192 | speed = <1000>; |
161 | 193 | full-duplex; |
|
167 | 199 |
|
168 | 200 | pll-data = <0x11110000 0x00001099 0x00991099>; |
169 | 201 |
|
| 202 | + nvmem-cells = <&macaddr_wan 0>; |
| 203 | + nvmem-cell-names = "mac-address"; |
| 204 | + |
170 | 205 | phy-handle = <&phy4>; |
171 | 206 | }; |
0 commit comments