projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
abc17bf
)
ramips: convert mtd-mac-address to nvmem implementation
author
Ansuel Smith
<ansuelsmth@gmail.com>
Fri, 2 Apr 2021 21:50:02 +0000
(23:50 +0200)
committer
Petr Štetiar
<ynezz@true.cz>
Mon, 19 Jul 2021 12:51:22 +0000
(14:51 +0200)
Define nvmem-cells and convert mtd-mac-address to nvmem implementation.
The conversion is done with an automated script.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
319 files changed:
target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_hnet_c108.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_iptime.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zte_q7.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_adslr_g7.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_afoundry_ew1200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_asus_rt-n56u-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_cudy_wr1300.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_cudy_wr2100.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_edimax_re23s.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_firefly_firewrt.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_iptime_a8004t.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_jcg_q20.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_jcg_y2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_linksys_re6500.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_mqmaker_witi.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_mtc_wr1201.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_netgear_wac104.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_netis_wf2881.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_phicomm_k2p.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_planex_vr500.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_sercomm_na502.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_thunder_timecloud.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_totolink_a7000r.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_totolink_x5000r.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_youhua_wr1200js.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_youku_yk-l2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_zyxel_wap6805.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_duzun_dm06.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_iptime.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_minew_g1-c.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_netgear_r6120.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tama_w06.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_8devices_carambola.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_huawei_d105.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_netcore_nw718.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_tenda_w150m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_accton_wr6202.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_poray_ip2202.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_allnet_all5002.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_omnima_hpm.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_allnet_all5003.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_m3.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_x5.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_x8.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
patch
|
blob
|
history
diff --git
a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
index ba251c265639fc68716aee52b6e051dc54d7cb92..1142746c7afea5ae64997c9d404f2b36542c4f7e 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
+++ b/
target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
@@
-103,7
+103,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-111,3
+112,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
index 752a940cd8688bcb316973989f843d075c93c81a..19b6d5fdfbadeafc0137614ca5b5ade4e96c1d51 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
+++ b/
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
@@
-55,7
+55,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-148,3
+149,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
index 0991ae844751e744353e3d8525e2f637e3553f40..09afc018e8d28ab3bc936686a035214e87553ad7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
+++ b/
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
@@
-126,7
+126,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&gpio1 {
};
&gpio1 {
@@
-209,3
+210,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
index ca58d780f41144b3b2807f329979ebff49c5664b..a90f9b2775d932aa79c7dbb19495c1b66cb9bdfd 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
+++ b/
target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
@@
-103,7
+103,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&gpio1 {
};
&gpio1 {
@@
-178,3
+179,13
@@
&wmac {
status = "disabled";
};
&wmac {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
index 423b4edc6b1fb5c773ef3f0e14fe20e18e860a6f..f61843095d555f2152ce67d3d8f080dd5c2ebe54 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
@@
-122,7
+122,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-134,3
+135,13
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
index fc2b74db2a78b14a8ea98ffd1fdd18e229499f82..b95a428656e6d72f4246de7103fa34f9c9b45e56 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
+++ b/
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
@@
-117,7
+117,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-144,3
+145,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
index 93a09f99c3e1ed259bddce8f03e378d45a1e47a9..f71545815d62ae5dd7cd0bcf2c3f9231439ccc9f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
+++ b/
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
@@
-139,7
+139,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-173,3
+174,13
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
index 95152bc41a2565a57d9a2f9a8f9a9932c2586c43..7c8caa5066bb7bae996c2094a7d332e88c249a6c 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
+++ b/
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
@@
-139,7
+139,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-149,3
+150,13
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
index 226967763bcc61e2e1b1d003340ee786b02b1f9b..d943e3abef7d86bb2fee6e9fe08f11667a03615a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
+++ b/
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
@@
-139,7
+139,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-159,3
+160,13
@@
ralink,mtd-eeprom = <&factory 0x8000>;
};
};
ralink,mtd-eeprom = <&factory 0x8000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
index b1a50bb7116cdf45c6c7a72c6bee09c371fd295f..3174b98bbf8876a7308474cc71e4d53fa644dbed 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
@@
-127,7
+127,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-141,7
+142,8
@@
pinctrl-0 = <&pa_pins>;
ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-0 = <&pa_pins>;
ralink,mtd-eeprom = <&factory 0x0>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
};
&pcie {
@@
-153,7
+155,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
index 0c9f56875ecf455bec0c0c8e0274b51ad7083d78..68b733cade28ba924fc177fb212979aa8ca5f726 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
@@
-168,7
+168,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-176,3
+177,13
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
index 5b8d883dd591c330d6ecd805644960a2c60043a3..2b8ad2759c4c81338f7afe68a68c917cd16d96b4 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
@@
-114,7
+114,8
@@
&pcie0 {
mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>;
&pcie0 {
mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&config 0xe490>;
+ nvmem-cells = <&macaddr_config_e490>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe05d>;
};
mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe05d>;
};
@@
-126,3
+127,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e490: macaddr@e490 {
+ reg = <0xe490 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
index 2e755b66205d966eff811ab39af511442f39c5dc..c63a85dd88435eeb7f6b68ff1cf2eedba8dbc97f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
@@
-142,7
+142,8
@@
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&config 0xe496>;
+ nvmem-cells = <&macaddr_config_e496>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe083>;
mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe083>;
@@
-188,3
+189,13
@@
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e496: macaddr@e496 {
+ reg = <0xe496 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
index eec4969ff378419a1c366b4e08048aa2ef39a0f4..711f9f7c9a322fcb17b282016fc7f943af70a5a8 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
@@
-140,7
+140,8
@@
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&config 0xe4a8>;
+ nvmem-cells = <&macaddr_config_e4a8>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>;
led {
mac-address-increment = <(2)>;
led {
@@
-176,3
+177,13
@@
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <2>;
};
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <2>;
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e4a8: macaddr@e4a8 {
+ reg = <0xe4a8 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
index eed57f7f6843242b4ad87666729084f8b1d09f61..e80719a4e78d73dac1ed8d16205632eccf85d39f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
@@
-175,7
+175,8
@@
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
mediatek,mtd-eeprom = <&config 0xe08e>;
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
mediatek,mtd-eeprom = <&config 0xe08e>;
- mtd-mac-address = <&config 0xe50e>;
+ nvmem-cells = <&macaddr_config_e50e>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
@@
-186,3
+187,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e50e: macaddr@e50e {
+ reg = <0xe50e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
index 03a4c96f6baba26606fba96c2c904298aa732534..cc902888baec5a1b8deee1e291a080c56496f94f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
+++ b/
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
@@
-132,7
+132,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
mediatek,portmap = "wllll";
@@
-204,3
+205,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
index 986b047e4775bae5637f1188d414d7616270e37a..bc73c197c0dfba1e53677a7a2b83e91934e92067 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
+++ b/
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
@@
-124,7
+124,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
mediatek,portmap = "wllll";
@@
-196,3
+197,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
index 6060fd99a6539782491f2b36341080adced94ad4..1d77c27f5f37960ec8231afeb8f4516e27503b1d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
@@
-153,7
+153,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
phy-reset-duration = <30>;
phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
phy-reset-duration = <30>;
@@
-218,3
+219,13
@@
mediatek,2ghz = <0>;
};
};
mediatek,2ghz = <0>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
index ea895ac6eab5121192e752569f5924b1d96ee321..267525a0fcebbd5bfa1e4d417a9b3615bd968178 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
+++ b/
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
@@
-134,7
+134,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
- mtd-mac-address = <&iNIC_rf 0x4>;
+ nvmem-cells = <&macaddr_iNIC_rf_4>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-193,3
+194,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&iNIC_rf {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_iNIC_rf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts
b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts
index 373205e725483f907ce373e8d158ffb8ed68871c..69ddea589b989d3ab7c4688cbf1a2e41cff6d879 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
+++ b/
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
@@
-117,7
+117,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@4 {
status = "okay";
port@4 {
status = "okay";
@@
-165,3
+166,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
index 545e11a83f75267bd93f4a679f1e66c1340e748e..9c9b3d3bf9fcf5868ca1ccc04993dd9dbc143332 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
+++ b/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
@@
-127,7
+127,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4000>;
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-142,3
+143,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
index 575566c5fa6430b11817de86074b07833427dd13..70d0827ed2bbe23975b541ff316237c681174396 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
+++ b/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
@@
-118,7
+118,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4000>;
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-133,3
+134,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
index 75823787bfb2f772aebf5424c41c01ae7ec34ccd..9ee19686b760d9ec1d5c14b7744da06447822077 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
+++ b/
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
@@
-122,7
+122,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4000>;
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-148,3
+149,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
index 7d807bff4bbfeb082e7c69ba8be7ce1fb5cbaf3b..10c9958e0a6e5a32cfc90d2770453b0822ddf735 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
+++ b/
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
@@
-120,7
+120,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@4 {
status = "okay";
port@4 {
status = "okay";
@@
-182,3
+183,13
@@
&uart {
status = "okay";
};
&uart {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
index d77df2158c7bb053fbafb2b1ac4c328ef56a79fa..6222efcca5235e4a0eafc547e98b70eb561ee00d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
+++ b/
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
@@
-72,7
+72,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
mediatek,portmap = "llllw";
@@
-109,3
+110,13
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
index 42a59f285b0cd741e1f23dd787b6b1205dc25ba9..4c24857df1d1025fb8cc3cb13d626187c1abd94b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
@@
-85,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-104,3
+105,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_hnet_c108.dts
b/target/linux/ramips/dts/mt7620a_hnet_c108.dts
index 4035139ed169a79760266fd26253742994c8d0f2..4c241a84de7092c636161068e90b83e95d76cd75 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_hnet_c108.dts
+++ b/
target/linux/ramips/dts/mt7620a_hnet_c108.dts
@@
-136,7
+136,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-153,3
+154,13
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
index d59b481a612787f8a315a74623cc4641a18c9c27..5eca06fcb93cc9e92db4d6e4862627029885ba4e 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
+++ b/
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
@@
-139,7
+139,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-210,3
+211,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
index e29431dc8d285757ea5279a4e0d3890e0ed4838d..9997e5cecf399d74b4e6711e5b05d5cd958e93a8 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
+++ b/
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
@@
-147,7
+147,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-188,3
+189,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_iptime.dtsi
b/target/linux/ramips/dts/mt7620a_iptime.dtsi
index c7c90ca722c9ce403ac0e7c55ecfcaa860e695fe..3e2378aa60b3fbc76f9ad99f114e396414803581 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_iptime.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_iptime.dtsi
@@
-49,7
+49,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&uboot 0x1fc20>;
+ nvmem-cells = <&macaddr_uboot_1fc20>;
+ nvmem-cell-names = "mac-address";
};
&ehci {
};
&ehci {
@@
-84,3
+85,13
@@
ralink,mtd-eeprom = <&uboot 0x1f400>;
};
ralink,mtd-eeprom = <&uboot 0x1f400>;
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
index 218dd7a761dd48cf360eeef714050de1ba9f4c3e..87e6222c534e8f2ef3ae469e172d06b6bb919b4b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
+++ b/
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
@@
-96,7
+96,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-109,3
+110,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
index 2f882b3b5040f1e1ed2aa8c48bb54ab740b41288..1966e4cffd1e8e49198189c61848a4f3ad4e1304 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
+++ b/
target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
@@
-140,7
+140,8
@@
&pcie0 {
mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>;
&pcie0 {
mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&config 0xe07e>;
+ nvmem-cells = <&macaddr_config_e07e>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe08a>;
};
mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe08a>;
};
@@
-152,3
+153,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e07e: macaddr@e07e {
+ reg = <0xe07e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
b/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
index 9e0b817163350600e8da769b29d67a94bd3407ef..5368f939a2b6ea7ea104b2daccb35775c2e48eb9 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
+++ b/
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
@@
-90,7
+90,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
mediatek,portmap = "wllll";
@@
-168,3
+169,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
index 2bea987b4236e97f412a4f43a58d28b6fabaa5fb..bff117b729519663ef019ed29dd8fe08b716a702 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
+++ b/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
@@
-53,7
+53,18
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
index 0544550bf9d6e91cb065244352a856f56fde4a9e..2b59351bd89e839b4bb607cbf14d52e37d35cee1 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
+++ b/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
@@
-79,7
+79,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
mediatek,portmap = "wllll";
@@
-114,3
+115,13
@@
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts
b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts
index c38ea8082ca8f6b458b0723563bac1665d136488..862f28e399f556b4ba0b3667df5a5f4548fba881 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
+++ b/
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
@@
-101,7
+101,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-151,3
+152,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
index 4307d51424a01ac221cd93666cdbd978a38c5dd6..ceecafa0669849fa35e73d18145ea0602f5cea4a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
+++ b/
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
@@
-80,7
+80,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-95,3
+96,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
index 11e8f7fce6b24efbc28c716ed1e6015e96c23939..6884bf7943af86de1f0f4ac3f26ab7da21a69bf8 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
@@
-137,7
+137,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-150,3
+151,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_netis_wf2770.dts
b/target/linux/ramips/dts/mt7620a_netis_wf2770.dts
index f83904886566071448abc925f45c71a2ee034502..2a0e52cee261e869ee1495bb6e39cf7f9ed51477 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
+++ b/
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
@@
-99,7
+99,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-162,3
+163,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
index 7dabbed9ba46048d922e980d703a61778d5539de..a691f4203fef53723e00a3f59dac9538a8296262 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
+++ b/
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
@@
-98,7
+98,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-118,3
+119,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
index a153520e2f70163835b12572b20f4c2b707e467b..fd6cc7f82b082cd62b7526ba27ea7a0189c9673d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
@@
-23,7
+23,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
mediatek,portmap = "llllw";
@@
-47,3
+48,13
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
index 27c4ec31dc4e565f97ae1db0e1b55559a546b5fe..4e123c32bde5c0eae9a8ef5cb02b2365afa50159 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
@@
-99,7
+99,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-119,3
+120,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
index d5aa15949812b21752f383a99c1bc7de7f8def7c..3a9a57d90b6821ca3490a0d518263a09017ff056 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
@@
-14,7
+14,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-23,3
+24,13
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
index 4143d5e4d6180126e09ebce67498c3060535666c..916479c252eff9a541459cbb51d893f4da499ad7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
@@
-14,5
+14,16
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
index 3edc41ac0d9df4129a504a6ae582359e4754470b..e095401c4e6a9caad09355698ecf9b6e08982dbd 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
@@
-117,7
+117,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-137,3
+138,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
index 8f8f173de3f0ce116c34ea0b7ec93328db557ac8..7d875c24fcb0a05b0b82c47a876055f5b5c70629 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
@@
-89,7
+89,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-97,3
+98,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
index e1c5568ed8273bfccfb7a2c694519f1dad28338c..bfa4dac6f1ba6f640633e5b3b08f7e2c7ffd10ef 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
@@
-109,7
+109,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-128,3
+129,13
@@
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
index 5459886a3a6c1952e506be49fb340ba1bf9d5daf..ab53f678f5cda810bd9b99ad477b8f4d1017a269 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
@@
-129,7
+129,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-137,3
+138,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
index 457d4fd552c08e922a8d9a5983bf426abf49b3c9..6fc95214a299516120df276e76ad07747f9b76c1 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
@@
-134,7
+134,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-153,3
+154,13
@@
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
index 6cff557fcd0842afc922f0611e87490cca093d4a..6b1edabc1ab7fc61b4931ff9d5b6c78effedff9a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
+++ b/
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
@@
-140,7
+140,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-173,3
+174,13
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
index cfd55ea2218b5a38fac6ef34b4a3ba63e800ae74..63643927d51f078d9300a8f06aa432151508b38a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
@@
-130,7
+130,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
port@5 {
status = "okay";
@@
-164,7
+165,8
@@
&wmac {
ralink,mtd-eeprom = <&radio 0x0>;
&wmac {
ralink,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
};
&ehci {
};
&ehci {
@@
-183,7
+185,18
@@
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
index 89f48dc7d31e6d5427376e1e04ffe06ec58e58c4..2248da5b102e0752d73d358beff7248973ea9342 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
@@
-72,11
+72,23
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&wifi {
mac-address-increment = <(-2)>;
};
&wifi {
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
index c4fb98c4676c9302a8396bb9bd2155ced4c6f5df..ba9bf1db99adfee3ee50a3ee9eaa2d163447d479 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
@@
-53,10
+53,22
@@
};
&wmac {
};
&wmac {
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
};
&wifi {
};
&wifi {
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
index 8de87caecc071a642a4f98ea5d44b1c19b44e200..db92af7e371e72373e4d871ec9411f7c0d920e61 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
@@
-72,11
+72,23
@@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-2)>;
};
&wifi {
mac-address-increment = <(-2)>;
};
&wifi {
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
index 4212a70dc34aaeea0079f1e08aca430bd42bd2ee..1222ff2fcd5c1bc89231d9db9ba65b639397c578 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
@@
-167,7
+167,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
};
&ehci {
};
&ehci {
@@
-192,3
+193,13
@@
mediatek,mtd-eeprom = <&radio 0x8000>;
};
};
mediatek,mtd-eeprom = <&radio 0x8000>;
};
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
b/target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
index d2fb891433c192789a4ba820f2cb49362298ff04..743d1e8db6646002a9bb771428f2907597acc57f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
@@
-92,7
+92,8
@@
ðernet {
pinctrl-names = "default";
ðernet {
pinctrl-names = "default";
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-120,3
+121,13
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
b/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
index 7b3025e8b48ae48cef131084b4f3f697d01e6be0..e6d9b8576d98d7042dd0e7e361713e5273228c84 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
@@
-72,12
+72,14
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
ralink,mtd-eeprom = <&radio 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
};
&pcie {
@@
-88,8
+90,19
@@
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&uboot 0x1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
index 27fd2e2450d850dc390fbf1413c95f17f553b83e..b0522de7d0ce1fb126fb0babb6154e0990271259 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
+++ b/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
@@
-97,7
+97,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
mediatek,portmap = "llllw";
@@
-135,3
+136,13
@@
ralink,mtd-eeprom = <&factory 0x0>;
};
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
index bfec806c125a1209ba1f1ef3639f9514541ee99b..ce617198ce9f8dd6df20ea13606aaa0210d8bd44 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
+++ b/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
@@
-163,7
+163,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
mediatek,portmap = "llllw";
@@
-209,3
+210,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
index 11b1aa38d6cffa114519a377db365744013e3206..49ef40827b39a82f74a753938eb2668dbb4a8c1b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
+++ b/
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
@@
-121,7
+121,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-150,3
+151,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
b/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
index db9bacefe8dc8b17320d5025f27cc15f85e88852..937a41d54b785403e79af8a2332ee2c4bf648dd2 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
@@
-105,7
+105,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-125,3
+126,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
index 347c246e2e19c3eb82f346f9451b453bba7f3114..96ef110bdac425c08408967670a05ced9d55c7b2 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
+++ b/
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
@@
-136,7
+136,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-144,3
+145,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
index 28ae7c3f98b992ef92f17e2007e67c62387298e2..6fcda971a6930340943a559bd8be73045c09ab65 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
+++ b/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
@@
-98,7
+98,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-127,3
+128,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
index 91bbd4a0449643a779a9a5a5711c37c57da2c2ea..cdbdfbd38c25c99bfb0ba5f8090cd03c1a5baba2 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
@@
-87,7
+87,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-100,3
+101,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_zte_q7.dts
b/target/linux/ramips/dts/mt7620a_zte_q7.dts
index 550f750c5a418f3108406e8f2cab51d004cee112..c2dc1110082dcc5f815ff9ed1bd154b2a1a92d36 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zte_q7.dts
+++ b/
target/linux/ramips/dts/mt7620a_zte_q7.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-111,3
+112,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
index 1a5ff2d0dfc3e5125136e7d56f7fd97d6bf591a6..a79578aa0150b199503c0001665f3142b5219d07 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
+++ b/
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
@@
-137,7
+137,8
@@
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@4 {
status = "okay";
port@4 {
status = "okay";
@@
-172,3
+173,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
index 24a8779b27a821c023231b570fd2fb46cce4f2c0..be1f9ee02687db2b7d0b054a510a6fa220ae2e79 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
+++ b/
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
@@
-106,7
+106,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-121,3
+122,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
index ce51ff89b3efe1b43670f00761b595abbcb493c4..ee68ebb2d27da3b12c881076afe091f0b31d4076 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
+++ b/
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
@@
-119,7
+119,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-134,3
+135,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
index 26803c0c2ad6f62b364fb6767a9c78d33fc5b0e0..4ecd3204c6111b84787616001fc148b6e2b165e3 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
+++ b/
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
@@
-95,7
+95,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-110,3
+111,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
index c458f8724f602167850e852ce7b65019fc2a8ba3..b87e5a3530e522b35ddb6143ff57e5b0577a68c7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
+++ b/
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
@@
-101,7
+101,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-114,3
+115,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
index 19d2f63694f5cda0fec982a348762d6f358d8560..9d66b191cb21d76551e8f2319f75aa2351e6abbb 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
+++ b/
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
@@
-112,7
+112,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-127,3
+128,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
index 7d6d80038c76eeb4a2de10ceb64aab8472c6f54c..14e328842b34155315c7673d6014ec901488395f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
+++ b/
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
@@
-96,7
+96,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-109,3
+110,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
index 1186b83f064ab2a329952989a3f752bade0e7f14..1e8fe0d833e96a3ee9abd967035bfa8928d8a035 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
+++ b/
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
@@
-107,7
+107,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-122,3
+123,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
index eba7fabff62302da165970d10d5341fbd3d29e54..5a30dee05f3700501c78e3d938fac2d56174137f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
+++ b/
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
@@
-107,7
+107,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-122,3
+123,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
b/target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
index 6f5be57ec7704880f7eff66335d53581a8c93002..1fe2cbaabc525472b65690a2454b3bf2e9880f0f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
+++ b/
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
@@
-66,7
+66,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-81,3
+82,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
b/target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
index 20ff2dbd1c3db91e900e47da72e0d8b8965e01bb..cd9e6cacce7e1b0be4587dd17caf8c13419bc26a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
+++ b/
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
@@
-123,7
+123,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-136,3
+137,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
index 97ed206f56d1f61dc169814a0666a730f074d3d3..88a968d33b983d0ae0985ab61aa068b8d0a989df 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
+++ b/
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
@@
-75,7
+75,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-90,3
+91,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
index 144591d48a620fd5eba9ec7db6108a515301a0cb..4ab1b818108ec785d2e498109a6ec039ed227b12 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
+++ b/
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
@@
-76,7
+76,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-91,3
+92,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
index 6d018b9e589c3f4867fef4b16a899e98f65e7352..8a3e96ff26671385a67b7684bdb5c353773f57cc 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
@@
-99,7
+99,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-114,3
+115,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
index b29c0341405b17d52bd661a9e55e43d964f4e422..69d5474bf65ba59cd81ccc6ff3eb2832f197d873 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
@@
-107,7
+107,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-122,3
+123,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
index fe1799885a48d7bc2f709aba7714b51f38d3b84e..7c92f45e7b0c66143d049faa581e5250e8e8634f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
@@
-92,7
+92,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-107,3
+108,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
index af3ac4b00966539c59bcc55ab0247728f700b175..2ac2415736f42271f22ec79620a1ad6d1bf8078e 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
@@
-106,7
+106,8
@@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-121,3
+122,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
index 4e5c68ef3fcc819b23f1d096198be0fb12b28589..917a1934bd3c667ef1c885e71581a79b3aa3be57 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
+++ b/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
@@
-130,7
+130,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "wllll";
};
mediatek,portmap = "wllll";
};
@@
-146,3
+147,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
index e43f1357dde139785f3d5f6b53e9ea3964366971..9cea6ad667c3d4a8dd6b35d9cfcf16dabb8e1ac0 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
+++ b/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
@@
-130,7
+130,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
@@
-146,3
+147,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_adslr_g7.dts
b/target/linux/ramips/dts/mt7621_adslr_g7.dts
index 84c0d3b282852466ba272a18166d845c01e73389..95f2ac3a20b7a0946485a0d0f2e774517653ccc0 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_adslr_g7.dts
+++ b/
target/linux/ramips/dts/mt7621_adslr_g7.dts
@@
-101,7
+101,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe00c>;
+ nvmem-cells = <&macaddr_factory_e00c>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-129,7
+130,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe00c>;
+ nvmem-cells = <&macaddr_factory_e00c>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-141,3
+143,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e00c: macaddr@e00c {
+ reg = <0xe00c 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts
b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts
index 0a4971d06c8ae7a83ab257867def0c16ee454f80..2ed9f716ab748b4b2af66e4edf81064a26d3ad81 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_afoundry_ew1200.dts
+++ b/
target/linux/ramips/dts/mt7621_afoundry_ew1200.dts
@@
-106,7
+106,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-134,7
+135,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-146,3
+148,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
b/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
index e457dfcdbea5f42e5cfbc8780e2ca575da2827fc..8c6fdab04f8089a8ac1a761db65376523b355615 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
+++ b/
target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
@@
-148,7
+148,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-176,7
+177,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-257,3
+259,17
@@
&uartlite3 {
status = "okay";
};
&uartlite3 {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts
b/target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts
index 0e66057fa59f3a550489a2533b58533e9eb5bca5..8af4d2cc082b21ff3c528f6ef763ec6d6e99f7a6 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts
+++ b/
target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts
@@
-17,8
+17,19
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
};
mac-address-increment = <1>;
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts
b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts
index 4088b8137dc1456f9611637ba8556cc34ce3facd..4900e8db66c4b75fc0122082cf083a51a07662b7 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts
+++ b/
target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts
@@
-12,7
+12,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
@@
-27,3
+28,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
index b011c7ae2aed69de7246904258651f7774429507..bea0b79df5eb95cd74ff8759d67285a0e4bff5ce 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
+++ b/
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
@@
-100,7
+100,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&state_default {
};
&state_default {
@@
-109,3
+110,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts
b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts
index 78f5584b4c56486b6b0d3de9c8a23056c2856e37..2c6b3f53e6b80c3289d586cd30a855e2a9971034 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts
+++ b/
target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts
@@
-130,7
+130,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-138,7
+139,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-169,3
+171,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
index b5e8655cb9b2a9043007a9d46fdcab568986c841..0ccc3c7ecc5fe71bbcb88cc633e8e373e5fcde57 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
+++ b/
target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
@@
-131,7
+131,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-169,3
+170,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_asus_rt-n56u-b1.dts
b/target/linux/ramips/dts/mt7621_asus_rt-n56u-b1.dts
index b78e594ffda79ce2d874a696d6227413ca809205..63ab424b881c4a67bbddbf0673285eb654dbb2a5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_asus_rt-n56u-b1.dts
+++ b/
target/linux/ramips/dts/mt7621_asus_rt-n56u-b1.dts
@@
-140,7
+140,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x8004>;
+ nvmem-cells = <&macaddr_factory_8004>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-168,7
+169,8
@@
wan: port@4 {
status = "okay";
label = "wan";
wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-179,3
+181,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
index 9244c8368b398ec80ab268fe69d1f6e708d41949..789edca6dfa87e4f1bb1126ad29599d7549ecb89 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
+++ b/
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
@@
-164,7
+164,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
@@
-229,3
+230,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
index 7392b1d7c1090d428ac8e225dcbe241c4dc8d21a..5d20b6e28a8d7e6c4ceab9540c170c67de4cf78a 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
+++ b/
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
@@
-173,7
+173,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-208,3
+209,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_cudy_wr1300.dts
b/target/linux/ramips/dts/mt7621_cudy_wr1300.dts
index e943c040695d771ef32937296353f1b203d72661..3fd67c967a234cc7f6bbd48b5a7b9e0f0d9d09a5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_cudy_wr1300.dts
+++ b/
target/linux/ramips/dts/mt7621_cudy_wr1300.dts
@@
-127,7
+127,8
@@
compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
- mtd-mac-address = <&bdinfo 0xde00>;
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
led {
ieee80211-freq-limit = <2400000 2500000>;
led {
@@
-141,7
+142,8
@@
compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
- mtd-mac-address = <&bdinfo 0xde00>;
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
@@
-153,7
+155,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&bdinfo 0xde00>;
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-181,7
+184,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&bdinfo 0xde00>;
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-193,3
+197,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&bdinfo {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_bdinfo_de00: macaddr@de00 {
+ reg = <0xde00 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_cudy_wr2100.dts
b/target/linux/ramips/dts/mt7621_cudy_wr2100.dts
index 692c94da555f5f0814de2213fbf7b61b473d1882..21d03322a75e1228594f4b14fb5b018011b52b2d 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_cudy_wr2100.dts
+++ b/
target/linux/ramips/dts/mt7621_cudy_wr2100.dts
@@
-78,7
+78,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&bdinfo 0xde00>;
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
};
&pcie {
@@
-194,8
+195,19
@@
status = "okay";
label = "wan";
status = "okay";
label = "wan";
- mtd-mac-address = <&bdinfo 0xde00>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_bdinfo_de00>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
};
};
};
};
};
};
+
+&bdinfo {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_bdinfo_de00: macaddr@de00 {
+ reg = <0xde00 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
index 5622855f487cba95c1b4213cd55a5f7eabc5c39e..c04fe9e245daa45bf2a0a787ce9489495278c3ce 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
+++ b/
target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
@@
-149,7
+149,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-177,7
+178,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-188,3
+190,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
index 2fcdce5f19bbb320cbd5264e8a4f062b46c4cf0c..d30e4d19536b6dacb9fbec5e693ce54c99110985 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
+++ b/
target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
@@
-175,7
+175,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-203,7
+204,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-214,3
+216,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts
b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts
index fd11768ce6485ac9052febbd97d157622996ea24..82ba8cf3f70c1ae7152e4a4af6a9141c993bb4f3 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts
+++ b/
target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts
@@
-17,11
+17,23
@@
};
&wifi0 {
};
&wifi0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&wifi1 {
mac-address-increment = <1>;
};
&wifi1 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
mac-address-increment = <2>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts
b/target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts
index b19f70f7c95f1be4506bb433a264ff39c53ff863..14a79cef513c10df6e7e21ad1089295bfeaee956 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts
+++ b/
target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts
@@
-24,11
+24,23
@@
};
&wifi0 {
};
&wifi0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&wifi1 {
mac-address-increment = <1>;
};
&wifi1 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
mac-address-increment = <2>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts
b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts
index a4d72876abcabe5d8e284b5d46bc5415ef81d100..a90856c0b6449761b89136e32f34a4398e15f275 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts
+++ b/
target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts
@@
-24,11
+24,23
@@
};
&wifi0 {
};
&wifi0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
&wifi1 {
mac-address-increment = <1>;
};
&wifi1 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
mac-address-increment = <2>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
index f843f628013df3c9b680674ee482ab30775b0589..26f142dcffd2f14cb14d90c28fb7023dc9caae72 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
+++ b/
target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
@@
-109,7
+109,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&radio 0x4>;
+ nvmem-cells = <&macaddr_radio_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-170,3
+171,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&radio {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_radio_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi
b/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi
index a54b2be4f061c0c7b3a593810cba68fcc16d5af3..a1550cfb40190c69596791008e6ffa7e29a248cf 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi
+++ b/
target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi
@@
-152,7
+152,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-180,7
+181,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-191,3
+193,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_edimax_re23s.dts
b/target/linux/ramips/dts/mt7621_edimax_re23s.dts
index 9b9657344601f98084f9f280c759a7293884fe12..1a3181e4e39dd9a9cc9063930734579a34e68922 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_edimax_re23s.dts
+++ b/
target/linux/ramips/dts/mt7621_edimax_re23s.dts
@@
-137,7
+137,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x8004>;
+ nvmem-cells = <&macaddr_factory_8004>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-159,3
+160,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
index 3f3bae43f168a1edaddbb11a0c0f3c71c0646c76..f9a6c375c2a6952a9a0310181d5e2ff1b34a290f 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
+++ b/
target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
@@
-118,7
+118,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-160,3
+161,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
index f8ea5dbbbfac7403686a2efe110e4350ed5c1a18..8e87fd06bc6e645fdf216918ac07ddb70130ff9d 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
+++ b/
target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
@@
-67,7
+67,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-75,7
+76,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-168,7
+170,8
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-176,3
+179,17
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts
b/target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts
index becd2a9f9deaecff78dbcbc2458bdd6b06e653b5..97e0ab2956e8e3d329309ab5632d01d80a789761 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts
+++ b/
target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts
@@
-8,11
+8,13
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xfff4>;
+ nvmem-cells = <&macaddr_factory_fff4>;
+ nvmem-cell-names = "mac-address";
};
&wan {
};
&wan {
- mtd-mac-address = <&factory 0xfffa>;
+ nvmem-cells = <&macaddr_factory_fffa>;
+ nvmem-cell-names = "mac-address";
};
&partitions {
};
&partitions {
@@
-48,6
+50,25
@@
};
&wifi {
};
&wifi {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_fff4: macaddr@fff4 {
+ reg = <0xfff4 0x6>;
+ };
+
+ macaddr_factory_fffa: macaddr@fffa {
+ reg = <0xfffa 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
b/target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
index 5cc8ff27f67ad34b274348a472faff1a825fb4d9..dfc58c1ff603a5db0eabad9a1da5e3be81ef08f6 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
+++ b/
target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
@@
-8,11
+8,13
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&wan {
};
&wan {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
&partitions {
};
&partitions {
@@
-48,6
+50,21
@@
};
&wifi {
};
&wifi {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
b/target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
index 642724da10c8b9ef9df3bd37e9008c3ed98590fc..547d1b1641007e1bd5424fd9796404a7a1b035ac 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
+++ b/
target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
@@
-3,11
+3,13
@@
#include "mt7621_elecom_wrc-gs.dtsi"
&gmac0 {
#include "mt7621_elecom_wrc-gs.dtsi"
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&wan {
};
&wan {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
&state_default {
};
&state_default {
@@
-44,3
+46,17
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts
b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts
index 96893265708811eb6f2777b3470c3def5bc6d0e6..9da515f017b7432a25c7e578249ccc419a8596f7 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_firefly_firewrt.dts
+++ b/
target/linux/ramips/dts/mt7621_firefly_firewrt.dts
@@
-105,7
+105,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-133,7
+134,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-145,3
+147,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts
b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts
index f0152e8db3c1909b7b3ca85c3e0dc7ba9257f034..4f652b90bb2989d2b999272014ffee508cad853b 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts
+++ b/
target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts
@@
-107,7
+107,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-130,7
+131,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-142,3
+144,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
index 629a9a243942b74b40f4f94bbbe81fc883c5404b..8c1d2788c14f764eeda8dd1984b05c2fb1aef804 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
+++ b/
target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
@@
-115,7
+115,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4000>;
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
@@
-134,7
+135,8
@@
wan: port@4 {
status = "okay";
label = "wan";
wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4000>;
+ nvmem-cells = <&macaddr_factory_4000>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-149,3
+151,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
index c218521c03cf5bcdfc56fdafd5137615fff52710..db760381a45aeb2fc87636d271d91d6487ee90bb 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
+++ b/
target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
@@
-100,7
+100,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-123,3
+124,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
index 613524d1da5f48895e63cc8671e8d2c8eb86365d..a3ef3a01043caa81647219908de70a3908742d07 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
+++ b/
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
@@
-110,7
+110,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-133,3
+134,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
index c549bbb5183521d722a31f313dca73b733d3ea4d..cc6446b75c849fc3c31f7e699a7b63ca679f95d5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
+++ b/
target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
@@
-128,7
+128,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&iNIC_rf 0x4>;
+ nvmem-cells = <&macaddr_iNIC_rf_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-136,7
+137,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
@@
-191,3
+193,23
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&iNIC_rf {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_iNIC_rf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
b/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
index 055c1abde0cf1b05503d45b5024dfc46f89a953a..b63b4783b8d3a9ed09f59934c57bfb874ef222d9 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
+++ b/
target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
@@
-127,7
+127,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x1e000>;
+ nvmem-cells = <&macaddr_factory_1e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-135,7
+136,8
@@
wan: port@0 {
status = "okay";
label = "wan";
wan: port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x1e006>;
+ nvmem-cells = <&macaddr_factory_1e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-194,3
+196,17
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_1e000: macaddr@1e000 {
+ reg = <0x1e000 0x6>;
+ };
+
+ macaddr_factory_1e006: macaddr@1e006 {
+ reg = <0x1e006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
index 91f30f87216c924482df7362a63ecbddd37affe0..398a84117c1d7af01fb22883f88e6ba0552bb9c2 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
+++ b/
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
@@
-128,7
+128,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-136,7
+137,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
@@
-183,3
+185,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
index ff9e525ae28deab3957f0a04aa1be325affa6bfc..1dd3d77878012a4d2026f3ffc4601e91dc52bfbb 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
+++ b/
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
@@
-118,7
+118,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-126,7
+127,8
@@
wan: port@0 {
status = "okay";
label = "wan";
wan: port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-165,3
+167,17
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
index 0e808f6894103c28bb737635a7791cc0562a9b09..6af6bdce7a71bf3a6841d5fb92db3553e0a0c8f1 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
+++ b/
target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
@@
-120,7
+120,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-184,3
+185,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
index 4ebd980521fb62ae121a3c415ca5f76809f8f919..b3efe557e255b914dc1e7064e58a6e4312dcbf95 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
+++ b/
target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
@@
-111,7
+111,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&uboot 0x1fc20>;
+ nvmem-cells = <&macaddr_uboot_1fc20>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-119,7
+120,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&uboot 0x1fc40>;
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-165,3
+167,17
@@
ieee80211-freq-limit = <2400000 2500000>;
};
};
ieee80211-freq-limit = <2400000 2500000>;
};
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
+
+ macaddr_uboot_1fc40: macaddr@1fc40 {
+ reg = <0x1fc40 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_iptime_a8004t.dts
b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts
index df6aed664e781f63d70c167c9c153608c619d842..a00e921a4985774083c7aac60e9b575e19aa5df5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_iptime_a8004t.dts
+++ b/
target/linux/ramips/dts/mt7621_iptime_a8004t.dts
@@
-95,7
+95,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&uboot 0x1fc20>;
+ nvmem-cells = <&macaddr_uboot_1fc20>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-103,7
+104,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&uboot 0x1fc40>;
+ nvmem-cells = <&macaddr_uboot_1fc40>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-156,3
+158,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
+
+ macaddr_uboot_1fc40: macaddr@1fc40 {
+ reg = <0x1fc40 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
b/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
index ae312fcc524f25d2c37738d61fa1981fbaeca516..da832d6df56a8fcf3dcc267c96dea01d3f6408cc 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
+++ b/
target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
@@
-129,7
+129,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-156,7
+157,8
@@
wan: port@4 {
status = "okay";
label = "wan";
wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-167,3
+169,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_jcg_q20.dts
b/target/linux/ramips/dts/mt7621_jcg_q20.dts
index f0e829393ce182970934431ff11ac94e8a374150..c9bf648a31af454f2ce7f3798cf714e816110936 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_jcg_q20.dts
+++ b/
target/linux/ramips/dts/mt7621_jcg_q20.dts
@@
-144,7
+144,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x3fff4>;
+ nvmem-cells = <&macaddr_factory_3fff4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-152,7
+153,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x3fffa>;
+ nvmem-cells = <&macaddr_factory_3fffa>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-173,3
+175,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_3fff4: macaddr@3fff4 {
+ reg = <0x3fff4 0x6>;
+ };
+
+ macaddr_factory_3fffa: macaddr@3fffa {
+ reg = <0x3fffa 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_jcg_y2.dts
b/target/linux/ramips/dts/mt7621_jcg_y2.dts
index 06d6579aaa74cea3affd32b0f12f6bf4cfac9c90..5de6ba6d950b2023c33ad27b201a1f07511ec05c 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_jcg_y2.dts
+++ b/
target/linux/ramips/dts/mt7621_jcg_y2.dts
@@
-89,7
+89,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-117,7
+118,8
@@
wan: port@4 {
status = "okay";
label = "wan";
wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-128,3
+130,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
index fa269007204b1d7a89e563e29d98e5534674b521..ddd46befe650259f0a3fe80bed3e366f49c2e7c5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
+++ b/
target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
@@
-132,7
+132,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-150,7
+151,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-161,3
+163,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_linksys_re6500.dts
b/target/linux/ramips/dts/mt7621_linksys_re6500.dts
index 319d0d7fb2156efba58a47b18c19bc6db16f5a2a..680bc863cd4ce2f9fbd364ba9fca57f31dd0a866 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_linksys_re6500.dts
+++ b/
target/linux/ramips/dts/mt7621_linksys_re6500.dts
@@
-113,7
+113,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-143,3
+144,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
index ec9be40ce40dcec8cec7cdb5a9a7d58846d0a6b1..73dfbef27fcf74d7ceacd265e2c9547d57740dd7 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
+++ b/
target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
@@
-113,7
+113,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x5>;
+ nvmem-cells = <&macaddr_factory_5>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-141,7
+142,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x5>;
+ nvmem-cells = <&macaddr_factory_5>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-150,3
+152,13
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_5: macaddr@5 {
+ reg = <0x5 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts
b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts
index 130193c171cee4e51e1a40d95c7168ccd9d8c6f9..cb6310df18d162638a4c6080b04b7d00c404a21c 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_mqmaker_witi.dts
+++ b/
target/linux/ramips/dts/mt7621_mqmaker_witi.dts
@@
-80,7
+80,8
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
@@
-89,12
+90,14
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
ieee80211-freq-limit = <2400000 2500000>;
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
};
&gmac0 {
};
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-122,7
+125,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-134,3
+138,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts
b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts
index cfa0e6af241904b0e0660aed58a9dad96fffec09..b1b020b3a856b80fef98cebb3a53c500b1bd93f9 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_mtc_wr1201.dts
+++ b/
target/linux/ramips/dts/mt7621_mtc_wr1201.dts
@@
-99,7
+99,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-127,7
+128,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-173,3
+175,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts
b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts
index 0da8f6b30c70db99f955db676c178c6560e93b12..360bcbb77d46c7ee9b86e0d2630b43b12b083257 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
+++ b/
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
@@
-228,7
+228,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-246,3
+247,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi
b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi
index 3ed8bc55e952973b3dfe1e16ecc481a381cae79c..2be3f878692d2b927269343d32dd47e00ece3104 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi
+++ b/
target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi
@@
-162,7
+162,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-190,7
+191,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
@@
-258,3
+260,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
index 61cb522dfdbc0ab696c8cb639d904eba71dce217..c2dc98787114ddb59c3a980b9ee59e5e4a53e8d2 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
+++ b/
target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
@@
-96,7
+96,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-124,7
+125,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
@@
-186,3
+188,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_netgear_wac104.dts
b/target/linux/ramips/dts/mt7621_netgear_wac104.dts
index fbedeb26450c61c8900130686e6739d4337e40f9..61ab0574a7d0f2f34fd50f769e37bc9a4cf3bdbc 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_netgear_wac104.dts
+++ b/
target/linux/ramips/dts/mt7621_netgear_wac104.dts
@@
-61,7
+61,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&nand {
};
&nand {
@@
-164,3
+165,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_netis_wf2881.dts
b/target/linux/ramips/dts/mt7621_netis_wf2881.dts
index 7dfd133a4416e2b4f2f7f295501fb223e23e9a08..56a2647638cb023223633b585966fd4276370d9a 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_netis_wf2881.dts
+++ b/
target/linux/ramips/dts/mt7621_netis_wf2881.dts
@@
-122,7
+122,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-150,7
+151,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-161,3
+163,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts
index ec24c713ea9df3fdd35c49a5469e8e52b0aae3c9..a5060a1aee23a1dd4d317b94d262148fbe6d5d23 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_phicomm_k2p.dts
+++ b/
target/linux/ramips/dts/mt7621_phicomm_k2p.dts
@@
-103,7
+103,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-131,7
+132,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-142,3
+144,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_planex_vr500.dts
b/target/linux/ramips/dts/mt7621_planex_vr500.dts
index 5f8f190a918462ac5469b40e00b58bbf09719478..fb6a42166f599c1d6d4e9cc4bd2cbd352dda7569 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_planex_vr500.dts
+++ b/
target/linux/ramips/dts/mt7621_planex_vr500.dts
@@
-75,7
+75,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-103,7
+104,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-114,3
+116,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts
b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts
index 9561c97b7e69423148da18283dbfaf24309469f4..929c2a8f26516cc384318d95662c8a89af6e6f1e 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts
+++ b/
target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts
@@
-106,7
+106,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-134,7
+135,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-145,3
+147,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_sercomm_na502.dts
b/target/linux/ramips/dts/mt7621_sercomm_na502.dts
index af55d1058f6e0750b452b5d75c510e83f1b2ecd1..ee77e303624cd1b0dbe1e084efd1adfe28eff6a0 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_sercomm_na502.dts
+++ b/
target/linux/ramips/dts/mt7621_sercomm_na502.dts
@@
-96,7
+96,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&nand {
};
&nand {
@@
-170,8
+171,9
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
- mtd-mac-address = <&factory 0xe000>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
@@
-181,8
+183,9
@@
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
- mtd-mac-address = <&factory 0xe000>;
- mtd-mac-address-increment = <2>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
ieee80211-freq-limit = <2400000 2500000>;
};
};
@@
-210,3
+213,13
@@
&uartlite3 {
status = "okay";
};
&uartlite3 {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts
b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts
index 6ecf71895c36617134be8f5fa08ef3766ed30202..19eb11111dbc117175be2eac2455e3669b03eee5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts
+++ b/
target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts
@@
-102,7
+102,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-130,7
+131,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-142,3
+144,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
index 0386a3cdd22e44000274673587107819d002641a..51c1d868cbd1b0b202a0d88465fe2ae85af42cf9 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
+++ b/
target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
@@
-121,7
+121,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-149,7
+150,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-186,3
+188,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
b/target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
index ef0d48b8c4a4af81ca4f76ef0d7d1235d473c47b..6e5f5772be9a05be40679ac5bc4296c00bf26aec 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
+++ b/
target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
@@
-109,7
+109,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-117,7
+118,8
@@
wan_port: port@0 {
status = "okay";
label = "wan";
wan_port: port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-194,3
+196,17
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts
index fe11f4f4870da1b4b17eecb7c3ec9652b3af8d83..917a6beb512228e3b78452cb5539e0bf76cb195e 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_thunder_timecloud.dts
+++ b/
target/linux/ramips/dts/mt7621_thunder_timecloud.dts
@@
-94,7
+94,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-112,3
+113,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts
b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts
index 4b53e60cd583a3f88ab6a5534b0fe2a3921110cc..e817278728f20e418478472e738df6ef60bf4fd8 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_totolink_a7000r.dts
+++ b/
target/linux/ramips/dts/mt7621_totolink_a7000r.dts
@@
-100,7
+100,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-128,7
+129,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-140,3
+142,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
b/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
index ef491087ef1b53df40e141ad2c95882ab424c778..8066340c5debc9d88e3c3ff2dbcfbb2e5652711d 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_totolink_x5000r.dts
+++ b/
target/linux/ramips/dts/mt7621_totolink_x5000r.dts
@@
-97,7
+97,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-125,7
+126,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-136,3
+138,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
b/target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
index 7d38b7b0968df4e56666ff662bbbb54beea8211c..93ceeb08f4cfa6a67e1861ef8d17425a5b380e62 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
+++ b/
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
@@
-145,7
+145,8
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&config 0x8>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
ieee80211-freq-limit = <2400000 2500000>;
};
};
ieee80211-freq-limit = <2400000 2500000>;
};
};
@@
-155,8
+156,9
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&config 0x8>;
- mtd-mac-address-increment = <(-1)>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-1)>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
@@
-167,7
+169,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&config 0x8>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-175,8
+178,9
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&config 0x8>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
};
port@1 {
};
port@1 {
@@
-211,3
+215,13
@@
&xhci {
vbus-supply = <®_usb_vbus>;
};
&xhci {
vbus-supply = <®_usb_vbus>;
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
b/target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
index 76d9908fb94727eb979a47b99f398cf5b4ca0597..3cc738530cc48ac57f444fccba022048250f25e7 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
+++ b/
target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
@@
-134,8
+134,9
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&config 0x8>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
};
ieee80211-freq-limit = <2400000 2500000>;
};
};
@@
-145,14
+146,16
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&config 0x8>;
- mtd-mac-address-increment = <2>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
- mtd-mac-address = <&config 0x8>;
+ nvmem-cells = <&macaddr_config_8>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-183,3
+186,13
@@
};
};
};
};
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
b/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
index cf63e6b989ad8c026e4b7e36f5a7c3acee7560ed..b40448791abc3a4f1ae2b7ea34f51578dd7d9347 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
+++ b/
target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
@@
-137,7
+137,8
@@
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
@@
-146,13
+147,15
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
&gmac0 {
mac-address-increment = <1>;
};
};
&gmac0 {
- mtd-mac-address = <&info 0x8>;
+ nvmem-cells = <&macaddr_info_8>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-178,3
+181,13
@@
};
};
};
};
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
index 0a810b0195b99e7c93d92ed6032e24b121d6492d..3df4bc5d64fa103f42661f1d577accb10f6decb9 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
+++ b/
target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
@@
-130,7
+130,8
@@
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-140,13
+141,15
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
&gmac0 {
mac-address-increment = <2>;
};
};
&gmac0 {
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-164,3
+167,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_10008: macaddr@10008 {
+ reg = <0x10008 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
index 0ec83fa389b6b862f73f8c2cc3103c2c9e2acbfc..6cb6c0e460b5ca707d03baf1f7f23b1f2aa11dab 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
+++ b/
target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
@@
-148,7
+148,8
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
mac-address-increment = <1>;
ieee80211-freq-limit = <2400000 2500000>;
};
@@
-159,14
+160,16
@@
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
mac-address-increment = <2>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&gmac0 {
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-177,3
+180,13
@@
};
};
};
};
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_10008: macaddr@10008 {
+ reg = <0x10008 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
index 536180be104d867f3c36008c9f99e390e351a397..8f97ba3353a9d7cf985c3fefcd9df7b7f817add1 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
+++ b/
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
@@
-66,8
+66,19
@@
label = "eth5";
phy-handle = <&ephy7>;
phy-mode = "rgmii-rxid";
label = "eth5";
phy-handle = <&ephy7>;
phy-mode = "rgmii-rxid";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <5>;
};
};
};
mac-address-increment = <5>;
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_22: macaddr@22 {
+ reg = <0x22 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
index b92dc8f3f06672d0bfae4d63178ae5cf74a7a1e2..e968c4e6850d5cc9fae7abbadbe82f06b8eb336a 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
+++ b/
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
@@
-20,7
+20,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
label = "dsa";
};
label = "dsa";
};
@@
-34,28
+35,32
@@
port@1 {
status = "okay";
label = "eth1";
port@1 {
status = "okay";
label = "eth1";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
port@2 {
status = "okay";
label = "eth2";
mac-address-increment = <1>;
};
port@2 {
status = "okay";
label = "eth2";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
port@3 {
status = "okay";
label = "eth3";
mac-address-increment = <2>;
};
port@3 {
status = "okay";
label = "eth3";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <3>;
};
port@4 {
status = "okay";
label = "eth4";
mac-address-increment = <3>;
};
port@4 {
status = "okay";
label = "eth4";
- mtd-mac-address = <&factory 0x22>;
+ nvmem-cells = <&macaddr_factory_22>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <4>;
};
};
mac-address-increment = <4>;
};
};
@@
-141,3
+146,13
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_22: macaddr@22 {
+ reg = <0x22 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
b/target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
index d374fd3ddead759c6737a01731f8e0c8c22ddb0f..1265a921232fd60b7f5a746b9c898f564169c63e 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
+++ b/
target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
@@
-74,11
+74,27
@@
};
&wlan_2g {
};
&wlan_2g {
- mtd-mac-address = <&eeprom 0x0>;
+ nvmem-cells = <&macaddr_eeprom_0>;
+ nvmem-cell-names = "mac-address";
};
&wlan_5g {
mediatek,mtd-eeprom = <&factory 0x20000>;
};
&wlan_5g {
mediatek,mtd-eeprom = <&factory 0x20000>;
- mtd-mac-address = <&eeprom 0x6>;
+ nvmem-cells = <&macaddr_eeprom_6>;
+ nvmem-cell-names = "mac-address";
ieee80211-freq-limit = <5000000 6000000>;
};
ieee80211-freq-limit = <5000000 6000000>;
};
+
+&eeprom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_eeprom_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_eeprom_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
b/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
index 04f656d0f6c599c8e52c96a3ac9725ba5daafcc4..252ade4854feef1096826624d119e871fa31e521 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
+++ b/
target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
@@
-138,7
+138,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-166,7
+167,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-181,3
+183,17
@@
&uartlite2 {
status = "okay";
};
&uartlite2 {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
index ffa86a4810b322cf63f479e287f7f78276d8a5ae..06b301ba0be514066a0905e5dbc1d0857a1da45a 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
+++ b/
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
@@
-98,7
+98,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-125,7
+126,8
@@
wan: port@4 {
status = "okay";
label = "wan";
wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-136,3
+138,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
index 803bf5cf2407f9a3a0d55701105ac36742a2632f..af6181b6d01c38131ac7cbb15a0eab03b296a77f 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
+++ b/
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
@@
-119,7
+119,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-127,7
+128,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-147,3
+149,17
@@
&xhci {
status = "disabled";
};
&xhci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts
b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts
index e8f3a50dbeccb0c73741d762c1046d7450f84326..e9bd6e1cab35cfef062a64f5cd889ff35754ba62 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts
+++ b/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts
@@
-176,7
+176,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-199,7
+200,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-210,3
+212,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts
b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts
index 40ea6625d4a3577de0e3904e688fd8206317b737..1a19579208b01dcf5314cfd2bbcf48a79dc0f859 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts
+++ b/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts
@@
-86,7
+86,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-94,7
+95,8
@@
port@1 {
status = "okay";
label = "wan";
port@1 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
port@2 {
};
port@2 {
@@
-115,3
+117,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-4.dts
b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-4.dts
index 18cbe0c013f126f3f2eb1fb0e3579300d2f466ef..67a44dad117f4d482709ca4c5a01d4724fb8b0f2 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4.dts
+++ b/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4.dts
@@
-65,7
+65,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-83,7
+84,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-94,3
+96,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
index cc5abf09b6b20882a4c6a97202a9b437d5bd9a6d..4c469a2836fa27a6d4e8ee8b6de18d3925d06e62 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
+++ b/
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
@@
-131,7
+131,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-149,7
+150,8
@@
wan: port@4 {
status = "okay";
label = "wan";
wan: port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-160,3
+162,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
b/target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
index 7e6b3afcdf008dc6506bd09b207ec64770a59bbf..7faf9b3e89ac5b53ae4aa8ede930a04c8face70c 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
+++ b/
target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
@@
-25,7
+25,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-33,7
+34,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@2 {
};
port@2 {
@@
-59,3
+61,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts
b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts
index ee1a452fa99b12b74b4d92aa8200177a44a393de..c1f10ac55ead817a2757c6599f40276f254d75d2 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts
+++ b/
target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts
@@
-85,7
+85,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-113,7
+114,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-125,3
+127,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
index afee235ac7da00fceb6d8bb40f6a57fbafd8f872..6e04f9a49346cae509323450261ee1ec9a5dc878 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
+++ b/
target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
@@
-153,7
+153,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-181,7
+182,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-193,3
+195,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts
b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts
index a77d13c71c1d86099b81582789f32c2fc39ab181..6813a2cf05c061e33efd4a9afc0393665def70f5 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_youhua_wr1200js.dts
+++ b/
target/linux/ramips/dts/mt7621_youhua_wr1200js.dts
@@
-125,7
+125,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-133,7
+134,8
@@
port@0 {
status = "okay";
label = "wan";
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
port@1 {
};
port@1 {
@@
-164,3
+166,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts
b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts
index 627188873d08a6126a427ce7d2ee79e6fcc0df30..19ba7c08de34e30fe60d533fb1397b2eca35c069 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_youku_yk-l2.dts
+++ b/
target/linux/ramips/dts/mt7621_youku_yk-l2.dts
@@
-133,7
+133,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-161,7
+162,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-172,3
+174,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
index cd71166f4d8bd6348b6a0e2d2e0d038ac6e4851f..80166158b29da1ca145f5dc59ecd100479565381 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
+++ b/
target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
@@
-74,7
+74,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-102,7
+103,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-130,3
+132,17
@@
&sdhci {
status = "okay";
};
&sdhci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
index 10e08cd3d054b86acda744c0ece36a2e12e3f402..b156b12fc8e01f13068cac3978145a57ca75d6fd 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
+++ b/
target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
@@
-96,7
+96,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-124,7
+125,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe006>;
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
};
};
};
};
};
};
@@
-135,3
+137,17
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
index b1fbf5393133cc41c88a4248b746b499a355e0fa..e33fac8db10788a72a72e2cfbd3569e288838e64 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
+++ b/
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
@@
-107,7
+107,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-135,7
+136,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-147,3
+149,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
index 2fe855abd559829ad207bf8bb52ef27beddc3571..87f9e2243c86e7b79f48c5e9f08e20b5f41a64e8 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
+++ b/
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
@@
-111,7
+111,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-139,7
+140,8
@@
port@4 {
status = "okay";
label = "wan";
port@4 {
status = "okay";
label = "wan";
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
mac-address-increment = <1>;
};
};
@@
-151,3
+153,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
b/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
index ef3306caa7aad0d1466397920a5fecba3342470e..2a0bc6f8fd0d2d1ac14e773bc4d2fea3e540e379 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
+++ b/
target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
@@
-144,7
+144,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
};
&switch0 {
@@
-162,3
+163,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts
b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts
index 0596dc71d677d79a094b8498c4059d0544acc45f..a46723664099267257b08f3b1925f5a48552d253 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_zyxel_wap6805.dts
+++ b/
target/linux/ramips/dts/mt7621_zyxel_wap6805.dts
@@
-128,7
+128,8
@@
};
&gmac0 {
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&gmac1 {
};
&gmac1 {
@@
-171,3
+172,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
index d4f6a093d42bd8eabf96ed3c2a1a2a6883c2e46b..2e01b974a8a2e33fa3075fabc75b5a782e72cb11 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
+++ b/
target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
@@
-58,7
+58,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&ohci {
};
&ohci {
@@
-130,3
+131,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
index 239bb08230cffdfb7c3fa4d2e4c2a84afda67e70..3a2de12f6a875f74a8a515b91c52a57b44768e3d 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
@@
-90,7
+90,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-119,3
+120,13
@@
&ohci {
status = "disabled";
};
&ohci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
index adc998860003fa809a086ecdf23178860c0fd760..5a2962a31550a4800fd4edcd83049bb030f45083 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
+++ b/
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
@@
-134,9
+134,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x2f>;
};
};
&esw {
mediatek,portmap = <0x2f>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
index e5c52322b66de3a3e242405ba879a8bd69ea483f..5a0aeaf5f251913618885804d0cc71ae85456beb 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
+++ b/
target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
@@
-152,10
+152,21
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&sdhci {
status = "okay";
mediatek,cd-high;
};
};
&sdhci {
status = "okay";
mediatek,cd-high;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_duzun_dm06.dts
b/target/linux/ramips/dts/mt7628an_duzun_dm06.dts
index f0d3dcb62ad227b737346d0e3cb856f4323a8b1d..b9a105b0e3bae3e9b40d8cf497a1f91df88ce707 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_duzun_dm06.dts
+++ b/
target/linux/ramips/dts/mt7628an_duzun_dm06.dts
@@
-66,7
+66,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-129,3
+130,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
b/target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
index aa60b8a2c66b5ae308c17c62a9b0b2ade553d572..e4b5f31ada85b9957a5ae35616c9572d4266882f 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
+++ b/
target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
@@
-132,7
+132,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&ohci {
};
&ohci {
@@
-162,3
+163,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
index c5e0c2e02b2251bbe71aa09c4039415ed8da63d8..e0445c61dd02411344e1b79b0d523abd2eda8498 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
+++ b/
target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
@@
-81,7
+81,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-131,3
+132,13
@@
&uart1 {
status = "okay";
};
&uart1 {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
index 738968d1f9f67688d18260b2d359c72bda6f98a6..6e3f64632dd5cdb10d9bd5b94331105e4c7d9826 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
@@
-53,7
+53,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-102,3
+103,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
b/target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
index 2ef042292554a2b52b77c91f45eaad3eda27c7eb..945f680618930b324e8b8b41ac84f937888b3cac 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
+++ b/
target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
@@
-116,9
+116,20
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
};
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
index 87dff72c401dbdbe45793a90fa7c63d01dd4f1d1..97acb3ff3f57393b8ffd9ac2628d274b1ecdb6ea 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
+++ b/
target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
@@
-82,9
+82,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
};
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
b/target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
index 969488e4167970e6b856521ddbe682acf59b8687..8e07dff0f14841f7cfa2730f5afee7fa4d2d8c41 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
+++ b/
target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
@@
-103,7
+103,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-113,3
+114,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts
b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts
index 326c412b0e24ee681b53bcff4e098002f40b313e..08bdcd73adab1bf4f2edb0e4f50324ac95dfb129 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts
+++ b/
target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts
@@
-43,7
+43,8
@@
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
ieee80211-freq-limit = <5000000 6000000>;
led {
ieee80211-freq-limit = <5000000 6000000>;
led {
@@
-52,3
+53,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
b/target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
index 7bd394c3464cfe0b469f2f7dde70b4f5d3b9ee97..dcdf0cddc77312f2c8af6d2c5df80d7bd09a8e0a 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
@@
-90,9
+90,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
};
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_iptime.dtsi
b/target/linux/ramips/dts/mt7628an_iptime.dtsi
index 8a33c37f7aad265cc59076aa72a0d41fe3d40192..bc8965ca277fe22c343b678f9b3f05931da4cad4 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_iptime.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_iptime.dtsi
@@
-85,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&uboot 0x1fc20>;
+ nvmem-cells = <&macaddr_uboot_1fc20>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
};
&pcie {
@@
-104,3
+105,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
index 3fd173914e970d1c94cbe3a1ae1a73c2b1ff4b0a..8e73767dc283a65d1aaa1fab1b80f22f984e33b9 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
@@
-112,7
+112,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&sdhci {
};
&sdhci {
@@
-123,3
+124,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
index cbec8c9d406685c00f449e6744ed3ad781327f0c..7beda75806e64c0ab763ff422a5e0e7bbb1085b6 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
+++ b/
target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
@@
-147,7
+147,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&sdhci {
};
&sdhci {
@@
-158,3
+159,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
index 7aa678a1adb3d9f3975c23e5659e06333aee8254..f79d2d2641daca0ab361aa228e2bfc1921370bd5 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
+++ b/
target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
@@
-75,7
+75,8
@@
ðernet {
pinctrl-names = "default";
ðernet {
pinctrl-names = "default";
- mtd-mac-address = <&factory 0xd>;
+ nvmem-cells = <&macaddr_factory_d>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-98,3
+99,13
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_d: macaddr@d {
+ reg = <0xd 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_minew_g1-c.dts
b/target/linux/ramips/dts/mt7628an_minew_g1-c.dts
index 12cf47f5a798e7b579f0c73d0003823019ecbf6b..e741d2182c0a9defd9833263d2fd37bf59ea3e4e 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_minew_g1-c.dts
+++ b/
target/linux/ramips/dts/mt7628an_minew_g1-c.dts
@@
-125,7
+125,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-140,3
+141,13
@@
status = "okay";
mediatek,cd-high;
};
status = "okay";
mediatek,cd-high;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts
b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts
index c70db4989bdde9be9ca5c7c2c4df1e0170ddce69..02a22b7495dbddf1732c9265c83307db87619d57 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_netgear_r6120.dts
+++ b/
target/linux/ramips/dts/mt7628an_netgear_r6120.dts
@@
-44,6
+44,17
@@
};
&wifi5 {
};
&wifi5 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(2)>;
};
mac-address-increment = <(2)>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
index c3d7da2f090924064875f7b9b98eede592767de1..f811466c16f0eb684e722ec36544ec6e0d2c2a61 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
@@
-99,7
+99,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&pcie {
};
&pcie {
@@
-113,3
+114,13
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
index b6d2df47563db0ab00e1e0552ed61008f5b123ac..d4de7fe6a478a8b2b4546352415cd617c73f0c19 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
@@
-152,7
+152,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&sdhci {
};
&sdhci {
@@
-163,3
+164,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
index 63c4901ec252cc5d8eb3c6286f849d0dd023ddab..bf5fbcc64efd85e78afaa563b30a7bb6faf1f340 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
+++ b/
target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
@@
-87,9
+87,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
};
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
index 859568b1c12dda31a657ccfa8fd5aded0b500dc6..4775f8f0762d2f33bbb67b12351f7d6c02665663 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
+++ b/
target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
@@
-185,5
+185,16
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
index 6e1cb396b8942c1ad7ac7106fbcaf5178d525293..4ceccde06d5a8f84b75e3dd3573adac8de5eec65 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
+++ b/
target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
@@
-47,7
+47,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
};
&wmac {
@@
-97,3
+98,13
@@
&uart1 {
status = "okay";
};
&uart1 {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tama_w06.dts
b/target/linux/ramips/dts/mt7628an_tama_w06.dts
index 2be5f3fc88928fcfd57b502c067697687cdcdecf..def722832dadb044eaf7a35fab314de8a2887bee 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tama_w06.dts
+++ b/
target/linux/ramips/dts/mt7628an_tama_w06.dts
@@
-38,7
+38,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&state_default {
};
&state_default {
@@
-97,3
+98,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
index ab5fdd32469e21c02b8d15e09cfe1839f5d0cf33..ef60f01002308f744aa978abdfffbb303f907430 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
+++ b/
target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
@@
-110,7
+110,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&spi0 {
};
&spi0 {
@@
-152,3
+153,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
b/target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
index b6ce7b1f562dd2a54932f393c889b1bec7ef5a76..bbd66e113cc1e4e99efea787c7d6ef826b860a34 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
@@
-74,14
+74,26
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mediatek,mtd-eeprom = <&radio 0x0>;
};
ðernet {
mediatek,mtd-eeprom = <&radio 0x0>;
};
ðernet {
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x3e>;
};
};
&esw {
mediatek,portmap = <0x3e>;
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
b/target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
index 2faf8a87fe0cee81af5b33989e5f0f3e2876acf4..8372f057cd68e34d2e1ff68b5ed7a976d2ec3d96 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
@@
-55,10
+55,22
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
mediatek,mtd-eeprom = <&factory 0x20000>;
};
ðernet {
mediatek,mtd-eeprom = <&factory 0x20000>;
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
index 55f39db68043f39b117db56e27d58885106ea30c..c2c6e922b76d5bb682443a1c34f619caba882de8 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
@@
-101,7
+101,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
index 38879d70e69a9463a37e38409f7b88c6966b090f..4f5faf2ee0ce1269fb2b503bc96946fe68000a5a 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
@@
-96,7
+96,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
index bb13bac8c8e90062c395cfa06d7c1fb36c8e8534..8fc2334ae260645e44c3d34b88a8e4f5bfa5a121 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
@@
-96,7
+96,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
index 34170547a4e8a6cfdc0a767c905718bd2f89df72..2a6963ab1cb7359f459e83cb8079e9daaf54e108 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
@@
-94,7
+94,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
index 633950f287f4a5b9d51685b67d9245dec5de628d..d221a5c7c88016e009926e3747381631f0e2e493 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
@@
-130,14
+130,16
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&config 0x2008>;
+ nvmem-cells = <&macaddr_config_2008>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
status = "okay";
mediatek,mtd-eeprom = <&radio 0x0>;
};
&wmac {
status = "okay";
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&config 0x2008>;
+ nvmem-cells = <&macaddr_config_2008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
@@
-150,7
+152,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&config 0x2008>;
+ nvmem-cells = <&macaddr_config_2008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_2008: macaddr@2008 {
+ reg = <0x2008 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
index 300ea3bb297344173a7584fd45e0937647c1d194..6ac3730194a064bb990556493e4e047e2954b248 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
@@
-127,7
+127,8
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
@@
-136,10
+137,22
@@
status = "okay";
mediatek,mtd-eeprom = <&radio 0x0>;
status = "okay";
mediatek,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
ðernet {
mac-address-increment = <1>;
};
ðernet {
- mtd-mac-address = <&config 0x10008>;
+ nvmem-cells = <&macaddr_config_10008>;
+ nvmem-cell-names = "mac-address";
+};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_10008: macaddr@10008 {
+ reg = <0x10008 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
index 5bc12758d4ef2158c1847d305858f66adb807758..496f8db2ca0dcd88bbd694f9b5b8bcef3e37a25c 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
@@
-123,10
+123,22
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
mediatek,mtd-eeprom = <&factory 0x20000>;
};
ðernet {
mediatek,mtd-eeprom = <&factory 0x20000>;
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
index a142be78703e03f82ec31223e3e390220b873ba6..1dfb89d52851f7028e1bf1da52b47b33b9f714f4 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
@@
-83,9
+83,21
@@
};
&wmac {
};
&wmac {
- mtd-mac-address = <&factory 0x1f100>;
+ nvmem-cells = <&macaddr_factory_1f100>;
+ nvmem-cell-names = "mac-address";
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x1f100>;
+ nvmem-cells = <&macaddr_factory_1f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_1f100: macaddr@1f100 {
+ reg = <0x1f100 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
index 7ab19632e8c576bc23774179038e59d20fd0aeaa..408f12aeaede2d8ac4a9e0aa94f83a62783422bc 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
@@
-83,9
+83,21
@@
};
&wmac {
};
&wmac {
- mtd-mac-address = <&factory 0x1f100>;
+ nvmem-cells = <&macaddr_factory_1f100>;
+ nvmem-cell-names = "mac-address";
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x1f100>;
+ nvmem-cells = <&macaddr_factory_1f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_1f100: macaddr@1f100 {
+ reg = <0x1f100 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
index bce34045c6e0cbec6c8ea943e02e46fdf647c7bb..2141abc4423ac0b980bee83bcbe0bc3d9f772cc1 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
@@
-49,5
+49,16
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
index 1f8f7f4babc88f579a6a45fa38a201807365b576..ad65152a95fb126172679befafbaf21a5989e13b 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
@@
-88,11
+88,13
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-105,3
+107,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
index a1a83bf2377434e61526d2f92c51ddcbe64cb02a..9f1d667070508342153b7fe3dd9d33813e477943 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
@@
-100,11
+100,13
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-125,3
+127,13
@@
output-high;
};
};
output-high;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
index d3558547b8eec3c8a0ff7fb2122fbea3e59464b1..fe10600cb9179926965d8b15dc41f93d304b798e 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
+++ b/
target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
@@
-92,7
+92,18
@@
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x28000>;
ieee80211-freq-limit = <5000000 6000000>;
- mtd-mac-address = <&factory 0xf100>;
+ nvmem-cells = <&macaddr_factory_f100>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
index 9cea8b43f3bf478403223fc08cc23cedc3bbe7d2..eb74c2ae51156b9f0fd72d8c0b11d84542e97e40 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
+++ b/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
@@
-117,9
+117,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x2f>;
};
};
&esw {
mediatek,portmap = <0x2f>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
index d6d418f1b9f91c31ec3ad139bf54900b9078e43e..b12e1f71066e656e2ad8e13ea9c79e0961e13dd9 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
+++ b/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
@@
-112,9
+112,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x2f>;
};
};
&esw {
mediatek,portmap = <0x2f>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
index b5f8ff03a80d610220d24e0920a409e2fa6c9ebd..5e19e331c88e05c3e9781ac27750a94493f5e330 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
+++ b/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
@@
-116,7
+116,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-134,3
+135,13
@@
&ohci {
status = "disabled";
};
&ohci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
index d7238e17c68146166ef9fa4fbb9a081381f3c668..96633c062ed91a394779f4479507decf5fb705dc 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
+++ b/
target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
@@
-146,7
+146,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-164,3
+165,13
@@
&ohci {
status = "disabled";
};
&ohci {
status = "disabled";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
index 1246651204420d5d76a99f1f0aa2d26458e32550..a25f4d8d2855b3254c472755c80727589666f192 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
+++ b/
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
@@
-143,7
+143,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-159,3
+160,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
index a3330fb2ebd9760a1dbfc37663538ae9f0d0d16a..7158101ab7024dea7e731406cc84da965514e1b8 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
@@
-70,7
+70,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-88,3
+89,13
@@
&wmac {
status = "okay";
};
&wmac {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
index ff562cbff40985366bb19a6a3368bb259556f2a0..626b36366d833f089bfb67c8a764bc0cba9a0999 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
+++ b/
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
@@
-35,7
+35,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
@@
-43,3
+44,13
@@
mediatek,portmap = <0x3e>;
mediatek,portdisable = <0x2a>;
};
mediatek,portmap = <0x3e>;
mediatek,portdisable = <0x2a>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts
b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts
index 4389a9daf4c9b08f352afd7c665ffaf10578ef4a..e3aae273a9ac6a217c8f820baac5e7cbd21bea80 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts
+++ b/
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts
@@
-38,10
+38,21
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x3d>;
mediatek,portdisable = <0x29>;
};
};
&esw {
mediatek,portmap = <0x3d>;
mediatek,portdisable = <0x29>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
index ae6a72ebc3f726c95c2e4b102364cee7592d8d15..37f409eee9fb9ba5e180fb082935b07d33b77365 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
+++ b/
target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
@@
-74,7
+74,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&spi0 {
};
&spi0 {
@@
-115,3
+116,13
@@
};
};
};
};
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
index ac2a01eabaf833309c7d852bc850082e2a3dfd38..fef199ac34af1935515be4a64080b1a0fd4fcfd6 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
+++ b/
target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
@@
-105,9
+105,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
mediatek,portmap = <0x2f>;
};
};
&esw {
mediatek,portmap = <0x2f>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
index 5e92cd2126133d6a7bf4e47fbd7f9c9578ed06d8..f3650dc6ae7b44a1b2a4abda7ad9555387552d11 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
+++ b/
target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
@@
-168,7
+168,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-197,3
+198,13
@@
function = "gpio";
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
index 9d78ca142c31f1cc65491e3d52664cda54d3b353..52d56466106d6c90aa03341eacfabf4655569448 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
+++ b/
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
@@
-85,7
+85,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x2004>;
+ nvmem-cells = <&macaddr_factory_2004>;
+ nvmem-cell-names = "mac-address";
port@0 {
phy-handle = <&phy0>;
port@0 {
phy-handle = <&phy0>;
@@
-106,3
+107,13
@@
status = "okay";
ralink,mtd-eeprom = <&factory 0x2000>;
};
status = "okay";
ralink,mtd-eeprom = <&factory 0x2000>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2004: macaddr@2004 {
+ reg = <0x2004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
index 7038fc6590b45455ff43fb3cf777507a6168c508..bb3795aafac80d3ea8f6d4630adae67915213117 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
+++ b/
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
@@
-95,7
+95,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
phy-handle = <&phy0>;
port@0 {
phy-handle = <&phy0>;
@@
-116,3
+117,13
@@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
};
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts
b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts
index 4b832faaf1bce9353b6cec939231dc127a736152..3bf3e21a4702ac47084025b1507f4382466f4d11 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
+++ b/
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
@@
-95,7
+95,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
@@
-114,3
+115,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
index cbaa3e832f65a7f1a9d1516ed82d896eab197d51..59cc965f23d45756e8f13fbbfc66120397869d80 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
+++ b/
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
@@
-196,7
+196,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
@@
-235,3
+236,13
@@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
};
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
index a1f10ae45da38834abca2b71ec83d92a2833c5d5..1bab37fc5eac37e930b5d56986a92ca429990848 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
+++ b/
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
@@
-98,7
+98,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <100 1 1 1>;
port@0 {
mediatek,fixed-link = <100 1 1 1>;
@@
-117,3
+118,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
index cd9e918404f46d81be7631864186e59657fcdf2a..b3ada11220ae0f342c5bbc50e03f3f254db89433 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
+++ b/
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
@@
-116,7
+116,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
@@
-139,3
+140,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
index 3de9dc755c784da3c2f0074516a4a6c38dea234c..ff714d12730bf8b5a33a88c37f4dc8e7cec30556 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
+++ b/
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
@@
-120,7
+120,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x2004>;
+ nvmem-cells = <&macaddr_factory_2004>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
@@
-139,3
+140,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x2000>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x2000>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2004: macaddr@2004 {
+ reg = <0x2004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_8devices_carambola.dts
b/target/linux/ramips/dts/rt3050_8devices_carambola.dts
index 4ad23ff26da7a2e4552924ae89abf188f06f5900..820bbd3e99e37ec3838bde484f76e9c507c700a1 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_8devices_carambola.dts
+++ b/
target/linux/ramips/dts/rt3050_8devices_carambola.dts
@@
-63,7
+63,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-77,3
+78,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
index 44b2ad4185edef4f49b24fcbb0ac6ceb54fcecab..036d3105610555015484b32670c83d460feb705a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
+++ b/
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
@@
-94,7
+94,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-108,3
+109,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
index 0baa2feac9445e95ca47550345f8d94022bb7453..0d4d8f4cfd5560929f3d666917b2b5e070bbb765 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
@@
-73,7
+73,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&devconf 0x4>;
+ nvmem-cells = <&macaddr_devconf_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-83,3
+84,13
@@
&wmac {
ralink,mtd-eeprom = <&devconf 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&devconf 0x0>;
};
+
+&devconf {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devconf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
index 5c1975595fec7c4b68c5e6618654e46ee399a8c9..af6ebf00628f90adcc5763cd1b02a5524cc67ee7 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
@@
-79,7
+79,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&devconf 0x4>;
+ nvmem-cells = <&macaddr_devconf_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-89,3
+90,13
@@
&wmac {
ralink,mtd-eeprom = <&devconf 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&devconf 0x0>;
};
+
+&devconf {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devconf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
index cc6cd382460a94da0002f355cc64527ff6968e8d..2202cf3127d92ce0c7ce358475fea95f9592c269 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
@@
-94,7
+94,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-104,3
+105,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
index c2513c5dd53309656f8baf1ae0ba883becd00995..4b9add1fda56fc57f24c755c73d86767e38a92c3 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
@@
-99,7
+99,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-113,3
+114,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
index ff01fe2709baa340fe3a3c9be8fb6c2b8e7118a5..6620b1e858420dba628fcd44ce7c2ff7bfbafa24 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
@@
-96,7
+96,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-110,3
+111,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
index 7699dcaabbf2ee676b6a5bead5a5d038e17e321f..e1397d92f919211cf6278ddb56419694e77b4331 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
@@
-106,7
+106,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&devdata 0x4004>;
+ nvmem-cells = <&macaddr_devdata_4004>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-116,3
+117,13
@@
&wmac {
ralink,mtd-eeprom = <&devdata 0x4000>;
};
&wmac {
ralink,mtd-eeprom = <&devdata 0x4000>;
};
+
+&devdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
index 21f0a73212e1069effa07efc52e2f256f0501803..b0f734e4e06a88d9c573957d8099490cb254d2c5 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
@@
-106,7
+106,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&devdata 0x4004>;
+ nvmem-cells = <&macaddr_devdata_4004>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-116,3
+117,13
@@
&wmac {
ralink,mtd-eeprom = <&devdata 0x4000>;
};
&wmac {
ralink,mtd-eeprom = <&devdata 0x4000>;
};
+
+&devdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
index c134803f67070edf9863e297d8f651c7ff804c11..4580a070633093bae9051a8114d33fff1d6f6d31 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
@@
-111,7
+111,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-125,3
+126,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
index 07ff8bc9bc467ec3363e2c6f09548f352477bf8a..c8f3951384d504d0a8608f91cb7769bbd024a000 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
+++ b/
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
@@
-107,7
+107,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-121,3
+122,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
index f339b7ebe8bd9dad8a297c7ef63b36bb89c51518..3767afb4527c9b961329095dc368320da854d97a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
+++ b/
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
@@
-94,7
+94,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-108,3
+109,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_huawei_d105.dts
b/target/linux/ramips/dts/rt3050_huawei_d105.dts
index 2784b0c580c5243ad061f731df9341be61a142b2..05d3847e71e60309f5c004ea879089e1f47257f2 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_huawei_d105.dts
+++ b/
target/linux/ramips/dts/rt3050_huawei_d105.dts
@@
-87,7
+87,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-101,3
+102,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
index 581edc6dfcd7b161f8763add3a1953af8243d616..f449b0d0f8027a46ef9caf5947554d2679a6b2a6 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
+++ b/
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
@@
-83,7
+83,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-93,3
+94,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_netcore_nw718.dts
b/target/linux/ramips/dts/rt3050_netcore_nw718.dts
index 124a2ba13cdfb18c6081abadd0219ebc28100362..f9fda94ec0d744f15077d400976c3e8810d8e6a9 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_netcore_nw718.dts
+++ b/
target/linux/ramips/dts/rt3050_netcore_nw718.dts
@@
-101,7
+101,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-115,3
+116,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
index e4574919061b367f636a96928b9a269a48c2e81a..c00feb42889604de1c980451d8a5bdb8f75e4566 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
+++ b/
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
@@
-93,7
+93,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-107,3
+108,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
index 742edbb11da4fbcc31003060f0de95c61aa2473e..cfdb4d6b4b70257e2a2a86292a45a7e4f1b772ab 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
+++ b/
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
@@
-83,7
+83,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-97,3
+98,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_tenda_w150m.dts
b/target/linux/ramips/dts/rt3050_tenda_w150m.dts
index 2826993a9a4de0b877bfef8c709c03e367a21301..b921b7d1788de3e76f2a62acab37e210e9fb88ee 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_tenda_w150m.dts
+++ b/
target/linux/ramips/dts/rt3050_tenda_w150m.dts
@@
-111,7
+111,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-121,3
+122,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
index 7df592bebd1e71d47c1dd8da550e60389cab7cbc..36171ae591c05ca527af053f1625ece36ac6504d 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
+++ b/
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-101,3
+102,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_accton_wr6202.dts
b/target/linux/ramips/dts/rt3052_accton_wr6202.dts
index fac721cd7683aeb59333a9d033b98df7426270da..a1c179c286bc3164d71486475cb324919ded6c3f 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_accton_wr6202.dts
+++ b/
target/linux/ramips/dts/rt3052_accton_wr6202.dts
@@
-99,7
+99,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-113,3
+114,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
index d88df8ca25beb95388c379c24e8360f2df6225ff..97b37706fbdc32747f60d7eaa3119b18d0b1fd60 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
+++ b/
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
@@
-97,7
+97,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-111,3
+112,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
index 39afaa582e18942b76f91156b72bcb1e49f2394b..dffa5beefa762ab3088e80315c389c88f957d0be 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
+++ b/
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
@@
-89,7
+89,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-103,3
+104,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
index a67a839dccec970bb662a139201b5dcfc99fd53d..cbd586232e0dc87b4cba5466b52e2ab32df27644 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
+++ b/
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-105,3
+106,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
index 2d5f07746f6af7541d965a9617ad8608c94d7af0..ada957fc52887e8ed0ca35737ed1d7804b904825 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
+++ b/
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
@@
-108,7
+108,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-123,3
+124,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
index f58a519b117ef347bc73a4dcaa43810f45f4744e..c547c9df69a32ac67e70f0b4acc4863a4638ab3f 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
+++ b/
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
@@
-109,7
+109,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-123,3
+124,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
index a9db2882f3bdc9cfde8d25e3e66e5960b5d936f2..444a5af4f53fef0a4c4b6630e59c6edce3943b0f 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
+++ b/
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
@@
-115,7
+115,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&uboot 0x40004>;
+ nvmem-cells = <&macaddr_uboot_40004>;
+ nvmem-cell-names = "mac-address";
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
};
@@
-140,3
+141,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&uboot {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_40004: macaddr@40004 {
+ reg = <0x40004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
index ca6259d30399b3aebad0ed0abf8d67feae6a2692..5d61c757754605a7b8669314a888d3947a4a4872 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
+++ b/
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
@@
-113,7
+113,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-123,3
+124,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
index a2584e005e2615b743e0f52cdbb6d35fa0cb3e9d..e33a7ef5b5eb67b7ed0976259449732af8baf37d 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
+++ b/
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
@@
-118,7
+118,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&devdata 0x2e>;
+ nvmem-cells = <&macaddr_devdata_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-132,3
+133,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&devdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devdata_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
index 4566e7a16688c0ad0da750f7b54fba662034d057..4501a44c41ff10cc688bafd2eced9e66132237f4 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
+++ b/
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-101,3
+102,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
index 9d89c6e2f9ae92f354dcd5deb4159b5e144a9591..b9fb232aa121f55c19503572cff5d70324b981f6 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
+++ b/
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
@@
-99,7
+99,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-151,3
+152,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
index 6734f5b3369c34e21254e967e90872ac88bdcf71..9d5d4ceb1e96e90436135a209807d5cabeccd97b 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
+++ b/
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
@@
-80,7
+80,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-94,3
+95,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts
b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts
index 92ea59bc4c6cda2cfd4108e6de2d2fb84f5099e5..1cb19d018469e43b2ff1690d5abd1f4927b3457c 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
+++ b/
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
@@
-125,7
+125,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-139,3
+140,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
index 7b71af402fa4d717e3862655627d1118ef465f74..0641a4e796839f51dedac71351e07bc8c6677aa5 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
+++ b/
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
@@
-78,7
+78,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-88,3
+89,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
index 543144394f8d44a1b29d4137a0cefeda95ccb937..6573159985e40cdd10066e0daa6a82b2be01efd9 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
+++ b/
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
@@
-124,7
+124,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-134,3
+135,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
index e5d70bd803f088082d9361103e5a01bcdd318572..c65fc100d8cd612594933e3450850c6d6c93c7bf 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
+++ b/
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
@@
-137,9
+137,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts
b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts
index d3d5afe64b33bdd49211d5060d4b21cd1dcfa964..c72d9372a548c0853fb7ba5104e837176b72a298 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
+++ b/
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
@@
-75,7
+75,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-89,3
+90,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
index bc3dd5ee56b5eb8a1ee1bf3434c4906e66a18d4e..4399467b290af34774338ad1fd3b812403551f43 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
+++ b/
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
@@
-85,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-99,3
+100,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
index b17097cb4595a31df74dc892de9cb1eb442831a6..ec46584381c65153e5b6542f44d2819f3b3b278d 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
+++ b/
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
@@
-84,7
+84,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-98,3
+99,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
index ff199f890b25fe3816781b3f429903c57400c888..779443e70e2c90b480e429d31cbea414bacb6c83 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
+++ b/
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
@@
-108,7
+108,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-118,3
+119,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
index 7f660d61d5e1e5ab8fadf6efe177b00f50c598ee..7e6d47cc0214b3cc9d4847d90a812dda3e24c52a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
+++ b/
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
@@
-73,7
+73,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-87,3
+88,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_poray_ip2202.dts
b/target/linux/ramips/dts/rt3052_poray_ip2202.dts
index f3dab80073cc9dad934ead73bf3e81ea10915752..2f340c4c3108daf795c294433f0fae5147b0f529 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_poray_ip2202.dts
+++ b/
target/linux/ramips/dts/rt3052_poray_ip2202.dts
@@
-85,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-95,3
+96,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
index f4aa24ec5a29aea339a9186bbd62ce36c8f3a39e..13f1ae4e59d1fa0e08d7529214354e98a7ca9a1a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
+++ b/
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
@@
-102,7
+102,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
};
@@
-127,3
+128,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
index 89e6c9ed710b00b3d152e133c85e9c0e1b26465e..c897aac7c49b73f58786751be202d103c40db2da 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
+++ b/
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
@@
-86,7
+86,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-100,3
+101,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts
b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts
index dcebe64af424f004ba1af3bc06953ab314eb3b02..4ae42d71a58103ed15ffed2a68b28ce5a36ecb4a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
+++ b/
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
@@
-116,7
+116,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-130,3
+131,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
index f6c1b2d2b5ac94f0d776a723ddaa864f9ed1639f..8a60184959f21df5ba2fd414f47477c48bd4cc1f 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
+++ b/
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
@@
-85,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-95,3
+96,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
index d94da950293ab79e4d1c1fd79095143b88bfe19d..1067e5cf8b2a3b129b5a8976f8012e406a85e328 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
+++ b/
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
@@
-85,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-99,3
+100,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
index fc71437b48d7fbaa15b4d609dede43987fcafe65..211db1cbaba395cebee1a9e85fc2b034c45a4c1e 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
+++ b/
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
@@
-106,7
+106,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4004>;
+ nvmem-cells = <&macaddr_factory_4004>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-120,3
+121,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
index 2c00ca89456aa481c31f031a26c886401d86c248..735f59f06706a3a942a758b86a90eab990e98314 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
+++ b/
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
@@
-106,7
+106,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4004>;
+ nvmem-cells = <&macaddr_factory_4004>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-120,3
+121,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
index 6c65d34f166e4752b8a3ff064b79577e1880a8e0..c2f44ee5653620a77e0d11e04fcefc58c74d0eab 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
+++ b/
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
@@
-105,7
+105,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-119,3
+120,13
@@
&otg {
status = "okay";
};
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
index db4f8d4a31fc209e32616b16e647297c599d6cd6..c5990977dc572f94749e5ef228c5baa63f35d909 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
+++ b/
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-101,3
+102,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3352_allnet_all5002.dts
b/target/linux/ramips/dts/rt3352_allnet_all5002.dts
index 3aa132a727b3327b27810f5173a7d57b9cb4d365..28c677041a583e2db11832f63c10325ce9acc3d4 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_allnet_all5002.dts
+++ b/
target/linux/ramips/dts/rt3352_allnet_all5002.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-109,3
+110,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
index 2233c9018c856c9837c78a1d5eeb7bf2aa746ada..01393c2383b6bd51b7c52d0ecddc4f7e7493d20c 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
+++ b/
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
@@
-111,7
+111,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins &mdio_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins &mdio_pins>;
};
@@
-123,3
+124,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
index 50b762ce5a585188b6cd26694477d1680a453231..bb36279016473e96383ba0da446c4a902f331a20 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
+++ b/
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
@@
-88,7
+88,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins &mdio_pins>;
};
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins &mdio_pins>;
};
@@
-108,3
+109,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3352_zte_mf283plus.dts
b/target/linux/ramips/dts/rt3352_zte_mf283plus.dts
index a91d0e6ea9010374872e9344eefb345d4e8cff5b..b733d68586e24f982103bb27ab6be059c41d1161 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
+++ b/
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
@@
-111,7
+111,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-129,3
+130,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
index 84bb645c5afb50c85c87acf1d9a0cccc6e855fe5..8b7c47e88b57cea233203c8518961fd7b17cd74c 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
+++ b/
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
@@
-105,7
+105,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-123,3
+124,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
index 98426b86f06ca1319da747ccc816b56b41543a60..38191d2643a0aadd33dddb1ea8db6f831d1279ed 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
+++ b/
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
@@
-111,7
+111,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
@@
-145,3
+146,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts
b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts
index 23313759c7960897ea89edbef314e662dd6d9d1a..b02c6b692af8f64689768f27e3c4cbee81e01344 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
+++ b/
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
@@
-127,7
+127,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 0>;
port@0 {
mediatek,fixed-link = <1000 1 1 0>;
@@
-146,3
+147,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
index 56d9dc08948d930820de5a6f3421ceb4b057da39..fc3a5549f207225434257c833315d72b83ef39a0 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
+++ b/
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
@@
-139,7
+139,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&devdata 0xd>;
+ nvmem-cells = <&macaddr_devdata_d>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
@@
-173,3
+174,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&devdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devdata_d: macaddr@d {
+ reg = <0xd 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3662_omnima_hpm.dts
b/target/linux/ramips/dts/rt3662_omnima_hpm.dts
index c0f30ec6c772bf5df782970d7d52c91c5dc7c2b2..84ca468e3d2a5894ed5abd2bc72ff8be02acde38 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_omnima_hpm.dts
+++ b/
target/linux/ramips/dts/rt3662_omnima_hpm.dts
@@
-134,7
+134,8
@@
ðernet {
phy-handle = <&phy0>;
phy-mode = "rgmii";
ðernet {
phy-handle = <&phy0>;
phy-mode = "rgmii";
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
mdio-bus {
status = "okay";
mdio-bus {
status = "okay";
@@
-156,3
+157,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
index 6bed6f57bccc9e536d69d9e5df1dafb31110dbf9..fc437c1f62c860f9a3b6483e90225978a7cfe1fa 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
+++ b/
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
@@
-64,7
+64,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x8004>;
+ nvmem-cells = <&macaddr_factory_8004>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
port@0 {
mac-address-increment = <1>;
port@0 {
@@
-180,3
+181,13
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
index b5cae66732ed322318929bf1d5e42d9877340ec1..fe503289a3d6259d4b93fe154ef7dce8416f57ef 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
+++ b/
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
@@
-95,7
+95,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
phy-handle = <&phy0>;
port@0 {
phy-handle = <&phy0>;
@@
-116,6
+117,17
@@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
index 39fb3d1c78d4d22a4f531c891302bb6166584ded..26c8dfe2f295098a25d910e90285446732c8bfd4 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
+++ b/
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
@@
-95,7
+95,8
@@
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
phy-handle = <&phy0>;
port@0 {
phy-handle = <&phy0>;
@@
-142,6
+143,17
@@
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
status = "okay";
ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
mac-address-increment = <3>;
};
mac-address-increment = <3>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts
b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts
index 0a62c755e60d79529fe3fdfc06bae4710d1e1155..0082af958dc802e39172811b2adeb34e9e6f537e 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
+++ b/
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
@@
-83,7
+83,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-93,3
+94,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_allnet_all5003.dts
b/target/linux/ramips/dts/rt5350_allnet_all5003.dts
index 96dde0fbf1cb40d295e077cbf9df27f388287429..e4e0ef1b62a475b0320974f0133916e20b7a9cf6 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_allnet_all5003.dts
+++ b/
target/linux/ramips/dts/rt5350_allnet_all5003.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-101,3
+102,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
index 58a84073015592acd971102fb02ccf53ebc9f342..5b504bea650d6de0ce712dc61e842752637fba1a 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
@@
-94,7
+94,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-104,3
+105,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
index bcc02f3cda309519550d5da864c282062d58f5d1..62c68a3fc2a417fa2746509e015621a76039bf4a 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
@@
-94,7
+94,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-107,3
+108,13
@@
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&factory 0x0>;
};
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
index 7d9bb0e359e715094dbba851bca6ea13665ff1fa..5c5517ccb2931af9cc91079cd4af434ac7522b3b 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
@@
-116,7
+116,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-127,3
+128,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
index 5bd87190a54dc3408ac520fd2552b8331e7c6513..261346ce867d764a5578e8b987d2f8ce4f4c6fe2 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
@@
-94,7
+94,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&devdata 0x4004>;
+ nvmem-cells = <&macaddr_devdata_4004>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-108,3
+109,13
@@
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&devdata 0x4000>;
};
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&devdata 0x4000>;
};
+
+&devdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
index 48fb1d4ffd254defb57c655d6ba72bb053cb870a..a7fc4765b76befbe634044f7564fe2c8e2a23c9e 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
@@
-135,11
+135,23
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&config 0xe07e>;
+ nvmem-cells = <&macaddr_config_e07e>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
ralink,mtd-eeprom = <&config 0xe08a>;
ralink,led-polarity = <1>;
};
&wmac {
ralink,mtd-eeprom = <&config 0xe08a>;
ralink,led-polarity = <1>;
- mtd-mac-address = <&config 0xe07e>;
+ nvmem-cells = <&macaddr_config_e07e>;
+ nvmem-cell-names = "mac-address";
+};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e07e: macaddr@e07e {
+ reg = <0xe07e 0x6>;
+ };
};
};
diff --git
a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
index 3b1fdd4a8ef52a2d3b09f2470b83e75e139aad56..1b80382f6811595d468f08bc80e5872f989a0338 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
+++ b/
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
@@
-53,7
+53,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-63,3
+64,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
index 1386ec920b2fc5f0779ce9a8f4f8a46c05e15eaa..a246c22c21527194b89db4041504911f8dec4681 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
+++ b/
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
@@
-105,7
+105,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-115,3
+116,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
index f9365d5700d36c8a34216a60b6382df3e8f14899..710fd2d6be28b81a969a20d82e2ac1157c68022d 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
+++ b/
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
@@
-105,7
+105,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-116,3
+117,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
index 83b1fb2a6d0e4953dd45fb389ca8a96cc55c9cb2..7dc56673a0496de5cae34bd00a8d64dd195d1ebb 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
+++ b/
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
@@
-103,9
+103,20
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
index 543fda74b72d44d41dd9365774cb94560c69c930..387e4adfdc170ca99ea41d4e9d12413d06c06ad4 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
+++ b/
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
@@
-95,7
+95,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-106,3
+107,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts
b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts
index 8ab2a87304d4fedd0fa20e28e90058227c79c711..8df91594b7e02538678a2c7843078384cb1b1ed7 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
+++ b/
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
@@
-98,7
+98,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-108,3
+109,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
index 8a8e5a92e1332b5b4b796dd397e06a8cc5199155..2d5d86ee1bc0e9e8b43d6e87449431451b490dc8 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
+++ b/
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
@@
-60,7
+60,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-80,3
+81,13
@@
&uart {
status = "okay";
};
&uart {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
index 499b555da41b4c675769e51360420625b7cfd274..0e69cf8919c0609ae57faab46afc6f2a1e69d1b4 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
+++ b/
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
@@
-101,7
+101,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-111,3
+112,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
index d3d1ebe26fc93cf56e28e0abc7613fe482e40227..89a774a060a36ccc248ab858ad1162af21f3374c 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
+++ b/
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
@@
-91,7
+91,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-102,3
+103,13
@@
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_poray_m3.dts
b/target/linux/ramips/dts/rt5350_poray_m3.dts
index b6bad0ab77823c5142f364f44484986a408f1ee1..f02e7b024d3c9c37df574185c401cbc9f230f84a 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_m3.dts
+++ b/
target/linux/ramips/dts/rt5350_poray_m3.dts
@@
-90,7
+90,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-102,3
+103,13
@@
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_poray_x5.dts
b/target/linux/ramips/dts/rt5350_poray_x5.dts
index 9c00da82ed1639febeb8d011f3004382610a08c2..20e2a5257fa491b41cc2e7c5d3e025971e30110f 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_x5.dts
+++ b/
target/linux/ramips/dts/rt5350_poray_x5.dts
@@
-122,7
+122,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-134,3
+135,13
@@
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_poray_x8.dts
b/target/linux/ramips/dts/rt5350_poray_x8.dts
index b60bb99ee91181a87ca5bf8dcbdc97822a299563..e84f28f783c4d79794ca8fa15512597fcb40434e 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_x8.dts
+++ b/
target/linux/ramips/dts/rt5350_poray_x8.dts
@@
-83,7
+83,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-95,3
+96,13
@@
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
index 35ccee15848884907c30a8ed81c91b8a83a26f0f..19b6d78009effbef71fc26d7c93fbb97e9010bd1 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
+++ b/
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
@@
-101,7
+101,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-112,3
+113,13
@@
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
index 13d1a16741c260532ead20fbcf1ce03df1ddc205..a03f33f3fc129f4e02fa07263d11d4273284e987 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
+++ b/
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
@@
-104,7
+104,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-115,3
+116,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
index 089b85629b90920f754adac068b562470052a437..502ac60211b1dbd76cc04edc09348ccb72c7db04 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
+++ b/
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
@@
-106,7
+106,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-117,3
+118,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
index adb4034e8a5847e6041e397c4b0916f277d65472..911e3e44edf004817a4110784b5dfba8a8fb6567 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
+++ b/
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
@@
-53,7
+53,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-63,3
+64,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
index 2cb61011843e00f29ede4ca206f4cb395e24b184..12d41e305e5724415b0e969ff820fc98b8983782 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
+++ b/
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
@@
-130,7
+130,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-140,3
+141,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
index 0879c11206b97c8d2b587f238036d1087c2fc87a..4ff2d57f72966da93bb1fe8869ba824b2477055c 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
+++ b/
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
@@
-88,7
+88,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-98,3
+99,13
@@
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
b/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
index bc16e2c5c1a62b2746c45f45bbfd751abaf4a3bf..d044be395a8a0b95eb045e8e4ad4afe6aacd16ce 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
+++ b/
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
@@
-95,7
+95,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-107,3
+108,13
@@
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&factory 0x0>;
};
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};
diff --git
a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
index eb7d7ed46bb83cf20b81b37a05cb2051f5f66aa4..69a1759f36fda33c8257cc9ce49dfd85f7875d95 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
+++ b/
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
@@
-97,7
+97,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-110,3
+111,13
@@
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&factory 0x0>;
};
ralink,led-polarity = <1>;
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};