ramips: convert mtd-mac-address to nvmem implementation
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 2 Apr 2021 21:50:02 +0000 (23:50 +0200)
committerPetr Š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
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts
target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
target/linux/ramips/dts/mt7620a_hnet_c108.dts
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
target/linux/ramips/dts/mt7620a_iptime.dtsi
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
target/linux/ramips/dts/mt7620a_zte_q7.dts
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
target/linux/ramips/dts/mt7621_adslr_g7.dts
target/linux/ramips/dts/mt7621_afoundry_ew1200.dts
target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts
target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts
target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts
target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi
target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts
target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi
target/linux/ramips/dts/mt7621_asus_rt-n56u-b1.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
target/linux/ramips/dts/mt7621_cudy_wr1300.dts
target/linux/ramips/dts/mt7621_cudy_wr2100.dts
target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts
target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts
target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts
target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts
target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi
target/linux/ramips/dts/mt7621_edimax_re23s.dts
target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts
target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts
target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
target/linux/ramips/dts/mt7621_firefly_firewrt.dts
target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts
target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts
target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts
target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts
target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts
target/linux/ramips/dts/mt7621_iptime_a8004t.dts
target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts
target/linux/ramips/dts/mt7621_jcg_q20.dts
target/linux/ramips/dts/mt7621_jcg_y2.dts
target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
target/linux/ramips/dts/mt7621_linksys_re6500.dts
target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts
target/linux/ramips/dts/mt7621_mqmaker_witi.dts
target/linux/ramips/dts/mt7621_mtc_wr1201.dts
target/linux/ramips/dts/mt7621_netgear_ex6150.dts
target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi
target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
target/linux/ramips/dts/mt7621_netgear_wac104.dts
target/linux/ramips/dts/mt7621_netis_wf2881.dts
target/linux/ramips/dts/mt7621_phicomm_k2p.dts
target/linux/ramips/dts/mt7621_planex_vr500.dts
target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts
target/linux/ramips/dts/mt7621_sercomm_na502.dts
target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts
target/linux/ramips/dts/mt7621_telco-electronics_x1.dts
target/linux/ramips/dts/mt7621_tenbay_t-mb5eu-v01.dts
target/linux/ramips/dts/mt7621_thunder_timecloud.dts
target/linux/ramips/dts/mt7621_totolink_a7000r.dts
target/linux/ramips/dts/mt7621_totolink_x5000r.dts
target/linux/ramips/dts/mt7621_tplink_archer-c6u-v1.dts
target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi
target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
target/linux/ramips/dts/mt7621_tplink_re350-v1.dts
target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts
target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3-pro.dts
target/linux/ramips/dts/mt7621_xiaomi_mi-router-3g.dts
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4.dts
target/linux/ramips/dts/mt7621_xiaomi_mi-router-4a-3g-v2.dtsi
target/linux/ramips/dts/mt7621_xiaomi_router-ac2100.dtsi
target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts
target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts
target/linux/ramips/dts/mt7621_youhua_wr1200js.dts
target/linux/ramips/dts/mt7621_youku_yk-l2.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts
target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi
target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
target/linux/ramips/dts/mt7621_zyxel_wap6805.dts
target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
target/linux/ramips/dts/mt7628an_duzun_dm06.dts
target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
target/linux/ramips/dts/mt7628an_hak5_wifi-pineapple-mk7.dts
target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts
target/linux/ramips/dts/mt7628an_hilink_hlk-7688a.dts
target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts
target/linux/ramips/dts/mt7628an_hiwifi_hc5x61a.dtsi
target/linux/ramips/dts/mt7628an_iptime.dtsi
target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi
target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts
target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts
target/linux/ramips/dts/mt7628an_minew_g1-c.dts
target/linux/ramips/dts/mt7628an_netgear_r6120.dts
target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi
target/linux/ramips/dts/mt7628an_onion_omega2.dtsi
target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts
target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts
target/linux/ramips/dts/mt7628an_skylab_skw92a.dts
target/linux/ramips/dts/mt7628an_tama_w06.dts
target/linux/ramips/dts/mt7628an_totolink_lr1200.dts
target/linux/ramips/dts/mt7628an_tplink_8m-split-uboot.dtsi
target/linux/ramips/dts/mt7628an_tplink_8m.dtsi
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
target/linux/ramips/dts/mt7628an_tplink_re200.dtsi
target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts
target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts
target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts
target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts
target/linux/ramips/dts/mt7628an_wavlink_wl-wn578a2.dts
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts
target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts
target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts
target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
target/linux/ramips/dts/rt3050_8devices_carambola.dts
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
target/linux/ramips/dts/rt3050_huawei_d105.dts
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
target/linux/ramips/dts/rt3050_netcore_nw718.dts
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
target/linux/ramips/dts/rt3050_tenda_w150m.dts
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
target/linux/ramips/dts/rt3052_accton_wr6202.dts
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
target/linux/ramips/dts/rt3052_poray_ip2202.dts
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
target/linux/ramips/dts/rt3352_allnet_all5002.dts
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
target/linux/ramips/dts/rt3662_omnima_hpm.dts
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
target/linux/ramips/dts/rt5350_allnet_all5003.dts
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
target/linux/ramips/dts/rt5350_poray_m3.dts
target/linux/ramips/dts/rt5350_poray_x5.dts
target/linux/ramips/dts/rt5350_poray_x8.dts
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts

index ba251c265639fc68716aee52b6e051dc54d7cb92..1142746c7afea5ae64997c9d404f2b36542c4f7e 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 752a940cd8688bcb316973989f843d075c93c81a..19b6d5fdfbadeafc0137614ca5b5ade4e96c1d51 100644 (file)
@@ -55,7 +55,8 @@
        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";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 0991ae844751e744353e3d8525e2f637e3553f40..09afc018e8d28ab3bc936686a035214e87553ad7 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gpio1 {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index ca58d780f41144b3b2807f329979ebff49c5664b..a90f9b2775d932aa79c7dbb19495c1b66cb9bdfd 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gpio1 {
 &wmac {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 423b4edc6b1fb5c773ef3f0e14fe20e18e860a6f..f61843095d555f2152ce67d3d8f080dd5c2ebe54 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
 &pcie {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index fc2b74db2a78b14a8ea98ffd1fdd18e229499f82..b95a428656e6d72f4246de7103fa34f9c9b45e56 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 93a09f99c3e1ed259bddce8f03e378d45a1e47a9..f71545815d62ae5dd7cd0bcf2c3f9231439ccc9f 100644 (file)
        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";
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 95152bc41a2565a57d9a2f9a8f9a9932c2586c43..7c8caa5066bb7bae996c2094a7d332e88c249a6c 100644 (file)
        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";
 };
        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>;
+       };
+};
index 226967763bcc61e2e1b1d003340ee786b02b1f9b..d943e3abef7d86bb2fee6e9fe08f11667a03615a 100644 (file)
        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";
 };
                ralink,mtd-eeprom = <&factory 0x8000>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index b1a50bb7116cdf45c6c7a72c6bee09c371fd295f..3174b98bbf8876a7308474cc71e4d53fa644dbed 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
        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 {
                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>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 0c9f56875ecf455bec0c0c8e0274b51ad7083d78..68b733cade28ba924fc177fb212979aa8ca5f726 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        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>;
+       };
+};
index 5b8d883dd591c330d6ecd805644960a2c60043a3..2b8ad2759c4c81338f7afe68a68c917cd16d96b4 100644 (file)
 &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>;
        };
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_e490: macaddr@e490 {
+               reg = <0xe490 0x6>;
+       };
+};
index 2e755b66205d966eff811ab39af511442f39c5dc..c63a85dd88435eeb7f6b68ff1cf2eedba8dbc97f 100644 (file)
 &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>;
 
        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>;
+       };
+};
index eec4969ff378419a1c366b4e08048aa2ef39a0f4..711f9f7c9a322fcb17b282016fc7f943af70a5a8 100644 (file)
        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 {
        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>;
+       };
+};
index eed57f7f6843242b4ad87666729084f8b1d09f61..e80719a4e78d73dac1ed8d16205632eccf85d39f 100644 (file)
                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>;
        };
 };
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_e50e: macaddr@e50e {
+               reg = <0xe50e 0x6>;
+       };
+};
index 03a4c96f6baba26606fba96c2c904298aa732534..cc902888baec5a1b8deee1e291a080c56496f94f 100644 (file)
        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";
 
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 986b047e4775bae5637f1188d414d7616270e37a..bc73c197c0dfba1e53677a7a2b83e91934e92067 100644 (file)
        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";
 
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 6060fd99a6539782491f2b36341080adced94ad4..1d77c27f5f37960ec8231afeb8f4516e27503b1d 100644 (file)
        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>;
                mediatek,2ghz = <0>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index ea895ac6eab5121192e752569f5924b1d96ee321..267525a0fcebbd5bfa1e4d417a9b3615bd968178 100644 (file)
        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";
 &ohci {
        status = "okay";
 };
+
+&iNIC_rf {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_iNIC_rf_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 373205e725483f907ce373e8d158ffb8ed68871c..69ddea589b989d3ab7c4688cbf1a2e41cff6d879 100644 (file)
        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";
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 545e11a83f75267bd93f4a679f1e66c1340e748e..9c9b3d3bf9fcf5868ca1ccc04993dd9dbc143332 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
+       };
+};
index 575566c5fa6430b11817de86074b07833427dd13..70d0827ed2bbe23975b541ff316237c681174396 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
+       };
+};
index 75823787bfb2f772aebf5424c41c01ae7ec34ccd..9ee19686b760d9ec1d5c14b7744da06447822077 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
+       };
+};
index 7d807bff4bbfeb082e7c69ba8be7ce1fb5cbaf3b..10c9958e0a6e5a32cfc90d2770453b0822ddf735 100644 (file)
        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";
 &uart {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index d77df2158c7bb053fbafb2b1ac4c328ef56a79fa..6222efcca5235e4a0eafc547e98b70eb561ee00d 100644 (file)
@@ -72,7 +72,8 @@
        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";
 
        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>;
+       };
+};
index 42a59f285b0cd741e1f23dd787b6b1205dc25ba9..4c24857df1d1025fb8cc3cb13d626187c1abd94b 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 4035139ed169a79760266fd26253742994c8d0f2..4c241a84de7092c636161068e90b83e95d76cd75 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
 &pcie {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index d59b481a612787f8a315a74623cc4641a18c9c27..5eca06fcb93cc9e92db4d6e4862627029885ba4e 100644 (file)
        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";
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index e29431dc8d285757ea5279a4e0d3890e0ed4838d..9997e5cecf399d74b4e6711e5b05d5cd958e93a8 100644 (file)
        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";
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index c7c90ca722c9ce403ac0e7c55ecfcaa860e695fe..3e2378aa60b3fbc76f9ad99f114e396414803581 100644 (file)
@@ -49,7 +49,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x1fc20>;
+       nvmem-cells = <&macaddr_uboot_1fc20>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ehci {
 
        ralink,mtd-eeprom = <&uboot 0x1f400>;
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc20: macaddr@1fc20 {
+               reg = <0x1fc20 0x6>;
+       };
+};
index 218dd7a761dd48cf360eeef714050de1ba9f4c3e..87e6222c534e8f2ef3ae469e172d06b6bb919b4b 100644 (file)
@@ -96,7 +96,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 2f882b3b5040f1e1ed2aa8c48bb54ab740b41288..1966e4cffd1e8e49198189c61848a4f3ad4e1304 100644 (file)
 &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>;
        };
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_e07e: macaddr@e07e {
+               reg = <0xe07e 0x6>;
+       };
+};
index 9e0b817163350600e8da769b29d67a94bd3407ef..5368f939a2b6ea7ea104b2daccb35775c2e48eb9 100644 (file)
@@ -90,7 +90,8 @@
        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";
 
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 2bea987b4236e97f412a4f43a58d28b6fabaa5fb..bff117b729519663ef019ed29dd8fe08b716a702 100644 (file)
        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";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 0544550bf9d6e91cb065244352a856f56fde4a9e..2b59351bd89e839b4bb607cbf14d52e37d35cee1 100644 (file)
@@ -79,7 +79,8 @@
        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,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>;
+       };
+};
index c38ea8082ca8f6b458b0723563bac1665d136488..862f28e399f556b4ba0b3667df5a5f4548fba881 100644 (file)
        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";
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 4307d51424a01ac221cd93666cdbd978a38c5dd6..ceecafa0669849fa35e73d18145ea0602f5cea4a 100644 (file)
@@ -80,7 +80,8 @@
        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";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 11e8f7fce6b24efbc28c716ed1e6015e96c23939..6884bf7943af86de1f0f4ac3f26ab7da21a69bf8 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index f83904886566071448abc925f45c71a2ee034502..2a0e52cee261e869ee1495bb6e39cf7f9ed51477 100644 (file)
@@ -99,7 +99,8 @@
        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";
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 7dabbed9ba46048d922e980d703a61778d5539de..a691f4203fef53723e00a3f59dac9538a8296262 100644 (file)
@@ -98,7 +98,8 @@
        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";
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index a153520e2f70163835b12572b20f4c2b707e467b..fd6cc7f82b082cd62b7526ba27ea7a0189c9673d 100644 (file)
@@ -23,7 +23,8 @@
        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";
 
        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>;
+       };
+};
index 27c4ec31dc4e565f97ae1db0e1b55559a546b5fe..4e123c32bde5c0eae9a8ef5cb02b2365afa50159 100644 (file)
@@ -99,7 +99,8 @@
        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";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index d5aa15949812b21752f383a99c1bc7de7f8def7c..3a9a57d90b6821ca3490a0d518263a09017ff056 100644 (file)
@@ -14,7 +14,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
        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>;
+       };
+};
index 4143d5e4d6180126e09ebce67498c3060535666c..916479c252eff9a541459cbb51d893f4da499ad7 100644 (file)
 };
 
 &ethernet {
-       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>;
+       };
 };
index 3edc41ac0d9df4129a504a6ae582359e4754470b..e095401c4e6a9caad09355698ecf9b6e08982dbd 100644 (file)
        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";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 8f8f173de3f0ce116c34ea0b7ec93328db557ac8..7d875c24fcb0a05b0b82c47a876055f5b5c70629 100644 (file)
@@ -89,7 +89,8 @@
        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";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index e1c5568ed8273bfccfb7a2c694519f1dad28338c..bfa4dac6f1ba6f640633e5b3b08f7e2c7ffd10ef 100644 (file)
        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,mtd-eeprom = <&factory 0x8000>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 5459886a3a6c1952e506be49fb340ba1bf9d5daf..ab53f678f5cda810bd9b99ad477b8f4d1017a269 100644 (file)
        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";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 457d4fd552c08e922a8d9a5983bf426abf49b3c9..6fc95214a299516120df276e76ad07747f9b76c1 100644 (file)
        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,mtd-eeprom = <&factory 0x8000>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 6cff557fcd0842afc922f0611e87490cca093d4a..6b1edabc1ab7fc61b4931ff9d5b6c78effedff9a 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
 &pcie {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index cfd55ea2218b5a38fac6ef34b4a3ba63e800ae74..63643927d51f078d9300a8f06aa432151508b38a 100644 (file)
        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";
 
 &wmac {
        ralink,mtd-eeprom = <&radio 0x0>;
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ehci {
        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)>;
        };
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 89f48dc7d31e6d5427376e1e04ffe06ec58e58c4..2248da5b102e0752d73d358beff7248973ea9342 100644 (file)
        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 {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index c4fb98c4676c9302a8396bb9bd2155ced4c6f5df..ba9bf1db99adfee3ee50a3ee9eaa2d163447d479 100644 (file)
 };
 
 &wmac {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wifi {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 8de87caecc071a642a4f98ea5d44b1c19b44e200..db92af7e371e72373e4d871ec9411f7c0d920e61 100644 (file)
        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 {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 4212a70dc34aaeea0079f1e08aca430bd42bd2ee..1222ff2fcd5c1bc89231d9db9ba65b639397c578 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ehci {
                mediatek,mtd-eeprom = <&radio 0x8000>;
        };
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index d2fb891433c192789a4ba820f2cb49362298ff04..743d1e8db6646002a9bb771428f2907597acc57f 100644 (file)
@@ -92,7 +92,8 @@
 &ethernet {
        pinctrl-names = "default";
 
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 7b3025e8b48ae48cef131084b4f3f697d01e6be0..e6d9b8576d98d7042dd0e7e361713e5273228c84 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        ralink,mtd-eeprom = <&radio 0x0>;
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
        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>;
        };
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
+};
index 27fd2e2450d850dc390fbf1413c95f17f553b83e..b0522de7d0ce1fb126fb0babb6154e0990271259 100644 (file)
@@ -97,7 +97,8 @@
        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";
 
 
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index bfec806c125a1209ba1f1ef3639f9514541ee99b..ce617198ce9f8dd6df20ea13606aaa0210d8bd44 100644 (file)
        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";
 
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 11b1aa38d6cffa114519a377db365744013e3206..49ef40827b39a82f74a753938eb2668dbb4a8c1b 100644 (file)
        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";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index db9bacefe8dc8b17320d5025f27cc15f85e88852..937a41d54b785403e79af8a2332ee2c4bf648dd2 100644 (file)
        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";
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 347c246e2e19c3eb82f346f9451b453bba7f3114..96ef110bdac425c08408967670a05ced9d55c7b2 100644 (file)
        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";
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 28ae7c3f98b992ef92f17e2007e67c62387298e2..6fcda971a6930340943a559bd8be73045c09ab65 100644 (file)
@@ -98,7 +98,8 @@
        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";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 91bbd4a0449643a779a9a5a5711c37c57da2c2ea..cdbdfbd38c25c99bfb0ba5f8090cd03c1a5baba2 100644 (file)
@@ -87,7 +87,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 550f750c5a418f3108406e8f2cab51d004cee112..c2dc1110082dcc5f815ff9ed1bd154b2a1a92d36 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 1a5ff2d0dfc3e5125136e7d56f7fd97d6bf591a6..a79578aa0150b199503c0001665f3142b5219d07 100644 (file)
        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";
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 24a8779b27a821c023231b570fd2fb46cce4f2c0..be1f9ee02687db2b7d0b054a510a6fa220ae2e79 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index ce51ff89b3efe1b43670f00761b595abbcb493c4..ee68ebb2d27da3b12c881076afe091f0b31d4076 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 26803c0c2ad6f62b364fb6767a9c78d33fc5b0e0..4ecd3204c6111b84787616001fc148b6e2b165e3 100644 (file)
@@ -95,7 +95,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index c458f8724f602167850e852ce7b65019fc2a8ba3..b87e5a3530e522b35ddb6143ff57e5b0577a68c7 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 19d2f63694f5cda0fec982a348762d6f358d8560..9d66b191cb21d76551e8f2319f75aa2351e6abbb 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 7d6d80038c76eeb4a2de10ceb64aab8472c6f54c..14e328842b34155315c7673d6014ec901488395f 100644 (file)
@@ -96,7 +96,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 1186b83f064ab2a329952989a3f752bade0e7f14..1e8fe0d833e96a3ee9abd967035bfa8928d8a035 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index eba7fabff62302da165970d10d5341fbd3d29e54..5a30dee05f3700501c78e3d938fac2d56174137f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 6f5be57ec7704880f7eff66335d53581a8c93002..1fe2cbaabc525472b65690a2454b3bf2e9880f0f 100644 (file)
@@ -66,7 +66,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 20ff2dbd1c3db91e900e47da72e0d8b8965e01bb..cd9e6cacce7e1b0be4587dd17caf8c13419bc26a 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 97ed206f56d1f61dc169814a0666a730f074d3d3..88a968d33b983d0ae0985ab61aa068b8d0a989df 100644 (file)
@@ -75,7 +75,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 144591d48a620fd5eba9ec7db6108a515301a0cb..4ab1b818108ec785d2e498109a6ec039ed227b12 100644 (file)
@@ -76,7 +76,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 6d018b9e589c3f4867fef4b16a899e98f65e7352..8a3e96ff26671385a67b7684bdb5c353773f57cc 100644 (file)
@@ -99,7 +99,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index b29c0341405b17d52bd661a9e55e43d964f4e422..69d5474bf65ba59cd81ccc6ff3eb2832f197d873 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index fe1799885a48d7bc2f709aba7714b51f38d3b84e..7c92f45e7b0c66143d049faa581e5250e8e8634f 100644 (file)
@@ -92,7 +92,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index af3ac4b00966539c59bcc55ab0247728f700b175..2ac2415736f42271f22ec79620a1ad6d1bf8078e 100644 (file)
        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";
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 4e5c68ef3fcc819b23f1d096198be0fb12b28589..917a1934bd3c667ef1c885e71581a79b3aa3be57 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "wllll";
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index e43f1357dde139785f3d5f6b53e9ea3964366971..9cea6ad667c3d4a8dd6b35d9cfcf16dabb8e1ac0 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        mediatek,portmap = "llllw";
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 84c0d3b282852466ba272a18166d845c01e73389..95f2ac3a20b7a0946485a0d0f2e774517653ccc0 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe00c>;
+       nvmem-cells = <&macaddr_factory_e00c>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e00c: macaddr@e00c {
+               reg = <0xe00c 0x6>;
+       };
+};
index 0a4971d06c8ae7a83ab257867def0c16ee454f80..2ed9f716ab748b4b2af66e4edf81064a26d3ad81 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index e457dfcdbea5f42e5cfbc8780e2ca575da2827fc..8c6fdab04f8089a8ac1a761db65376523b355615 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
 &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>;
+       };
+};
index 0e66057fa59f3a550489a2533b58533e9eb5bca5..8af4d2cc082b21ff3c528f6ef763ec6d6e99f7a6 100644 (file)
                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>;
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 4088b8137dc1456f9611637ba8556cc34ce3facd..4900e8db66c4b75fc0122082cf083a51a07662b7 100644 (file)
@@ -12,7 +12,8 @@
                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>;
                };
 
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index b011c7ae2aed69de7246904258651f7774429507..bea0b79df5eb95cd74ff8759d67285a0e4bff5ce 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &state_default {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 78f5584b4c56486b6b0d3de9c8a23056c2856e37..2c6b3f53e6b80c3289d586cd30a855e2a9971034 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                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>;
+       };
+};
index b5e8655cb9b2a9043007a9d46fdcab568986c841..0ccc3c7ecc5fe71bbcb88cc633e8e373e5fcde57 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index b78e594ffda79ce2d874a696d6227413ca809205..63ab424b881c4a67bbddbf0673285eb654dbb2a5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x8004>;
+       nvmem-cells = <&macaddr_factory_8004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x4>;
+                       nvmem-cells = <&macaddr_factory_4>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 9244c8368b398ec80ab268fe69d1f6e708d41949..789edca6dfa87e4f1bb1126ad29599d7549ecb89 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
 
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 7392b1d7c1090d428ac8e225dcbe241c4dc8d21a..5d20b6e28a8d7e6c4ceab9540c170c67de4cf78a 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index e943c040695d771ef32937296353f1b203d72661..3fd67c967a234cc7f6bbd48b5a7b9e0f0d9d09a5 100644 (file)
                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 {
                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>;
 
 };
 
 &gmac0 {
-       mtd-mac-address = <&bdinfo 0xde00>;
+       nvmem-cells = <&macaddr_bdinfo_de00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&bdinfo {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_bdinfo_de00: macaddr@de00 {
+               reg = <0xde00 0x6>;
+       };
+};
index 692c94da555f5f0814de2213fbf7b61b473d1882..21d03322a75e1228594f4b14fb5b018011b52b2d 100644 (file)
@@ -78,7 +78,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&bdinfo 0xde00>;
+       nvmem-cells = <&macaddr_bdinfo_de00>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
                        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>;
+       };
+};
index 5622855f487cba95c1b4213cd55a5f7eabc5c39e..c04fe9e245daa45bf2a0a787ce9489495278c3ce 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 2fcdce5f19bbb320cbd5264e8a4f062b46c4cf0c..d30e4d19536b6dacb9fbec5e693ce54c99110985 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index fd11768ce6485ac9052febbd97d157622996ea24..82ba8cf3f70c1ae7152e4a4af6a9141c993bb4f3 100644 (file)
 };
 
 &wifi0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
 &wifi1 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <2>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index b19f70f7c95f1be4506bb433a264ff39c53ff863..14a79cef513c10df6e7e21ad1089295bfeaee956 100644 (file)
 };
 
 &wifi0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
 &wifi1 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <2>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index a4d72876abcabe5d8e284b5d46bc5415ef81d100..a90856c0b6449761b89136e32f34a4398e15f275 100644 (file)
 };
 
 &wifi0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
 &wifi1 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <2>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index f843f628013df3c9b680674ee482ab30775b0589..26f142dcffd2f14cb14d90c28fb7023dc9caae72 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&radio 0x4>;
+       nvmem-cells = <&macaddr_radio_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&radio {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_radio_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index a54b2be4f061c0c7b3a593810cba68fcc16d5af3..a1550cfb40190c69596791008e6ffa7e29a248cf 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 9b9657344601f98084f9f280c759a7293884fe12..1a3181e4e39dd9a9cc9063930734579a34e68922 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x8004>;
+       nvmem-cells = <&macaddr_factory_8004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_8004: macaddr@8004 {
+               reg = <0x8004 0x6>;
+       };
+};
index 3f3bae43f168a1edaddbb11a0c0f3c71c0646c76..f9a6c375c2a6952a9a0310181d5e2ff1b34a290f 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index f8ea5dbbbfac7403686a2efe110e4350ed5c1a18..8e87fd06bc6e645fdf216918ac07ddb70130ff9d 100644 (file)
@@ -67,7 +67,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
@@ -75,7 +76,8 @@
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                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>;
        };
 };
 &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>;
+       };
+};
index becd2a9f9deaecff78dbcbc2458bdd6b06e653b5..97e0ab2956e8e3d329309ab5632d01d80a789761 100644 (file)
@@ -8,11 +8,13 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xfff4>;
+       nvmem-cells = <&macaddr_factory_fff4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wan {
-       mtd-mac-address = <&factory 0xfffa>;
+       nvmem-cells = <&macaddr_factory_fffa>;
+       nvmem-cell-names = "mac-address";
 };
 
 &partitions {
 };
 
 &wifi {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
        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>;
+       };
+};
index 5cc8ff27f67ad34b274348a472faff1a825fb4d9..dfc58c1ff603a5db0eabad9a1da5e3be81ef08f6 100644 (file)
@@ -8,11 +8,13 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wan {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };
 
 &partitions {
 };
 
 &wifi {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
        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>;
+       };
+};
index 642724da10c8b9ef9df3bd37e9008c3ed98590fc..547d1b1641007e1bd5424fd9796404a7a1b035ac 100644 (file)
@@ -3,11 +3,13 @@
 #include "mt7621_elecom_wrc-gs.dtsi"
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wan {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };
 
 &state_default {
                };
        };
 };
+
+&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>;
+       };
+};
index 96893265708811eb6f2777b3470c3def5bc6d0e6..9da515f017b7432a25c7e578249ccc419a8596f7 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index f0152e8db3c1909b7b3ca85c3e0dc7ba9257f034..4f652b90bb2989d2b999272014ffee508cad853b 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 629a9a243942b74b40f4f94bbbe81fc883c5404b..8c1d2788c14f764eeda8dd1984b05c2fb1aef804 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4000>;
+       nvmem-cells = <&macaddr_factory_4000>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x4000>;
+                       nvmem-cells = <&macaddr_factory_4000>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4000: macaddr@4000 {
+               reg = <0x4000 0x6>;
+       };
+};
index c218521c03cf5bcdfc56fdafd5137615fff52710..db760381a45aeb2fc87636d271d91d6487ee90bb 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 613524d1da5f48895e63cc8671e8d2c8eb86365d..a3ef3a01043caa81647219908de70a3908742d07 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index c549bbb5183521d722a31f313dca73b733d3ea4d..cc6446b75c849fc3c31f7e699a7b63ca679f95d5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&iNIC_rf 0x4>;
+       nvmem-cells = <&macaddr_iNIC_rf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
 
 &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>;
+       };
+};
index 055c1abde0cf1b05503d45b5024dfc46f89a953a..b63b4783b8d3a9ed09f59934c57bfb874ef222d9 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x1e000>;
+       nvmem-cells = <&macaddr_factory_1e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x1e006>;
+                       nvmem-cells = <&macaddr_factory_1e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
 &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>;
+       };
+};
index 91f30f87216c924482df7362a63ecbddd37affe0..398a84117c1d7af01fb22883f88e6ba0552bb9c2 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
 
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index ff9e525ae28deab3957f0a04aa1be325affa6bfc..1dd3d77878012a4d2026f3ffc4601e91dc52bfbb 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
 &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>;
+       };
+};
index 0e808f6894103c28bb737635a7791cc0562a9b09..6af6bdce7a71bf3a6841d5fb92db3553e0a0c8f1 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 4ebd980521fb62ae121a3c415ca5f76809f8f919..b3efe557e255b914dc1e7064e58a6e4312dcbf95 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&uboot 0x1fc20>;
+       nvmem-cells = <&macaddr_uboot_1fc20>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&uboot 0x1fc40>;
+                       nvmem-cells = <&macaddr_uboot_1fc40>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                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>;
+       };
+};
index df6aed664e781f63d70c167c9c153608c619d842..a00e921a4985774083c7aac60e9b575e19aa5df5 100644 (file)
@@ -95,7 +95,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&uboot 0x1fc20>;
+       nvmem-cells = <&macaddr_uboot_1fc20>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&uboot 0x1fc40>;
+                       nvmem-cells = <&macaddr_uboot_1fc40>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                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>;
+       };
+};
index ae312fcc524f25d2c37738d61fa1981fbaeca516..da832d6df56a8fcf3dcc267c96dea01d3f6408cc 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x4>;
+                       nvmem-cells = <&macaddr_factory_4>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index f0e829393ce182970934431ff11ac94e8a374150..c9bf648a31af454f2ce7f3798cf714e816110936 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x3fff4>;
+       nvmem-cells = <&macaddr_factory_3fff4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x3fffa>;
+                       nvmem-cells = <&macaddr_factory_3fffa>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                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>;
+       };
+};
index 06d6579aaa74cea3affd32b0f12f6bf4cfac9c90..5de6ba6d950b2023c33ad27b201a1f07511ec05c 100644 (file)
@@ -89,7 +89,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index fa269007204b1d7a89e563e29d98e5534674b521..ddd46befe650259f0a3fe80bed3e366f49c2e7c5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 319d0d7fb2156efba58a47b18c19bc6db16f5a2a..680bc863cd4ce2f9fbd364ba9fca57f31dd0a866 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index ec9be40ce40dcec8cec7cdb5a9a7d58846d0a6b1..73dfbef27fcf74d7ceacd265e2c9547d57740dd7 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x5>;
+       nvmem-cells = <&macaddr_factory_5>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
 &pcie {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_5: macaddr@5 {
+               reg = <0x5 0x6>;
+       };
+};
index 130193c171cee4e51e1a40d95c7168ccd9d8c6f9..cb6310df18d162638a4c6080b04b7d00c404a21c 100644 (file)
@@ -80,7 +80,8 @@
                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";
        };
 };
 
                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 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index cfa0e6af241904b0e0660aed58a9dad96fffec09..b1b020b3a856b80fef98cebb3a53c500b1bd93f9 100644 (file)
@@ -99,7 +99,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 0da8f6b30c70db99f955db676c178c6560e93b12..360bcbb77d46c7ee9b86e0d2630b43b12b083257 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 3ed8bc55e952973b3dfe1e16ecc481a381cae79c..2be3f878692d2b927269343d32dd47e00ece3104 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 61cb522dfdbc0ab696c8cb639d904eba71dce217..c2dc98787114ddb59c3a980b9ee59e5e4a53e8d2 100644 (file)
@@ -96,7 +96,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index fbedeb26450c61c8900130686e6739d4337e40f9..61ab0574a7d0f2f34fd50f769e37bc9a4cf3bdbc 100644 (file)
@@ -61,7 +61,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &nand {
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 7dfd133a4416e2b4f2f7f295501fb223e23e9a08..56a2647638cb023223633b585966fd4276370d9a 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index ec24c713ea9df3fdd35c49a5469e8e52b0aae3c9..a5060a1aee23a1dd4d317b94d262148fbe6d5d23 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 5f8f190a918462ac5469b40e00b58bbf09719478..fb6a42166f599c1d6d4e9cc4bd2cbd352dda7569 100644 (file)
@@ -75,7 +75,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 9561c97b7e69423148da18283dbfaf24309469f4..929c2a8f26516cc384318d95662c8a89af6e6f1e 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index af55d1058f6e0750b452b5d75c510e83f1b2ecd1..ee77e303624cd1b0dbe1e084efd1adfe28eff6a0 100644 (file)
@@ -96,7 +96,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &nand {
                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>;
        };
 };
                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>;
        };
 };
 &uartlite3 {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 6ecf71895c36617134be8f5fa08ef3766ed30202..19eb11111dbc117175be2eac2455e3669b03eee5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e006: macaddr@e006 {
+               reg = <0xe006 0x6>;
+       };
+};
index 0386a3cdd22e44000274673587107819d002641a..51c1d868cbd1b0b202a0d88465fe2ae85af42cf9 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e006: macaddr@e006 {
+               reg = <0xe006 0x6>;
+       };
+};
index ef0d48b8c4a4af81ca4f76ef0d7d1235d473c47b..6e5f5772be9a05be40679ac5bc4296c00bf26aec 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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 {
                };
        };
 };
+
+&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>;
+       };
+};
index fe11f4f4870da1b4b17eecb7c3ec9652b3af8d83..917a6beb512228e3b78452cb5539e0bf76cb195e 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 4b53e60cd583a3f88ab6a5534b0fe2a3921110cc..e817278728f20e418478472e738df6ef60bf4fd8 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index ef491087ef1b53df40e141ad2c95882ab424c778..8066340c5debc9d88e3c3ff2dbcfbb2e5652711d 100644 (file)
@@ -97,7 +97,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 7d38b7b0968df4e56666ff662bbbb54beea8211c..93ceeb08f4cfa6a67e1861ef8d17425a5b380e62 100644 (file)
                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>;
        };
 };
                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>;
        };
 };
 };
 
 &gmac0 {
-       mtd-mac-address = <&config 0x8>;
+       nvmem-cells = <&macaddr_config_8>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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 {
 &xhci {
        vbus-supply = <&reg_usb_vbus>;
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};
index 76d9908fb94727eb979a47b99f398cf5b4ca0597..3cc738530cc48ac57f444fccba022048250f25e7 100644 (file)
                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>;
        };
 };
                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 {
-       mtd-mac-address = <&config 0x8>;
+       nvmem-cells = <&macaddr_config_8>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                };
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};
index cf63e6b989ad8c026e4b7e36f5a7c3acee7560ed..b40448791abc3a4f1ae2b7ea34f51578dd7d9347 100644 (file)
        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";
        };
 };
 
                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 {
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                };
        };
 };
+
+&info {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_info_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
+};
index 0a810b0195b99e7c93d92ed6032e24b121d6492d..3df4bc5d64fa103f42661f1d577accb10f6decb9 100644 (file)
        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>;
        };
 };
                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 {
-       mtd-mac-address = <&config 0x10008>;
+       nvmem-cells = <&macaddr_config_10008>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_10008: macaddr@10008 {
+               reg = <0x10008 0x6>;
+       };
+};
index 0ec83fa389b6b862f73f8c2cc3103c2c9e2acbfc..6cb6c0e460b5ca707d03baf1f7f23b1f2aa11dab 100644 (file)
                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>;
        };
                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 {
-       mtd-mac-address = <&config 0x10008>;
+       nvmem-cells = <&macaddr_config_10008>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                };
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_10008: macaddr@10008 {
+               reg = <0x10008 0x6>;
+       };
+};
index 536180be104d867f3c36008c9f99e390e351a397..8f97ba3353a9d7cf985c3fefcd9df7b7f817add1 100644 (file)
                        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>;
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_22: macaddr@22 {
+               reg = <0x22 0x6>;
+       };
+};
index b92dc8f3f06672d0bfae4d63178ae5cf74a7a1e2..e968c4e6850d5cc9fae7abbadbe82f06b8eb336a 100644 (file)
@@ -20,7 +20,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x22>;
+       nvmem-cells = <&macaddr_factory_22>;
+       nvmem-cell-names = "mac-address";
        label = "dsa";
 };
 
                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";
-                       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";
-                       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";
-                       mtd-mac-address = <&factory 0x22>;
+                       nvmem-cells = <&macaddr_factory_22>;
+                       nvmem-cell-names = "mac-address";
                        mac-address-increment = <4>;
                };
        };
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_22: macaddr@22 {
+               reg = <0x22 0x6>;
+       };
+};
index d374fd3ddead759c6737a01731f8e0c8c22ddb0f..1265a921232fd60b7f5a746b9c898f564169c63e 100644 (file)
 };
 
 &wlan_2g {
-       mtd-mac-address = <&eeprom 0x0>;
+       nvmem-cells = <&macaddr_eeprom_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &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>;
 };
+
+&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>;
+       };
+};
index 04f656d0f6c599c8e52c96a3ac9725ba5daafcc4..252ade4854feef1096826624d119e871fa31e521 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
 &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>;
+       };
+};
index ffa86a4810b322cf63f479e287f7f78276d8a5ae..06b301ba0be514066a0905e5dbc1d0857a1da45a 100644 (file)
@@ -98,7 +98,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0x2e>;
+                       nvmem-cells = <&macaddr_factory_2e>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 803bf5cf2407f9a3a0d55701105ac36742a2632f..af6181b6d01c38131ac7cbb15a0eab03b296a77f 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
 &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>;
+       };
+};
index e8f3a50dbeccb0c73741d762c1046d7450f84326..e9bd6e1cab35cfef062a64f5cd889ff35754ba62 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe000>;
+                       nvmem-cells = <&macaddr_factory_e000>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 40ea6625d4a3577de0e3904e688fd8206317b737..1a19579208b01dcf5314cfd2bbcf48a79dc0f859 100644 (file)
@@ -86,7 +86,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe006>;
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
@@ -94,7 +95,8 @@
                port@1 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe000>;
+                       nvmem-cells = <&macaddr_factory_e000>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@2 {
                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>;
+       };
+};
index 18cbe0c013f126f3f2eb1fb0e3579300d2f466ef..67a44dad117f4d482709ca4c5a01d4724fb8b0f2 100644 (file)
@@ -65,7 +65,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
@@ -83,7 +84,8 @@
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index cc5abf09b6b20882a4c6a97202a9b437d5bd9a6d..4c469a2836fa27a6d4e8ee8b6de18d3925d06e62 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                wan: port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index 7e6b3afcdf008dc6506bd09b207ec64770a59bbf..7faf9b3e89ac5b53ae4aa8ede930a04c8face70c 100644 (file)
@@ -25,7 +25,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
@@ -33,7 +34,8 @@
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@2 {
                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>;
+       };
+};
index ee1a452fa99b12b74b4d92aa8200177a44a393de..c1f10ac55ead817a2757c6599f40276f254d75d2 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index afee235ac7da00fceb6d8bb40f6a57fbafd8f872..6e04f9a49346cae509323450261ee1ec9a5dc878 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index a77d13c71c1d86099b81582789f32c2fc39ab181..6813a2cf05c061e33efd4a9afc0393665def70f5 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
 
                port@1 {
                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>;
+       };
+};
index 627188873d08a6126a427ce7d2ee79e6fcc0df30..19ba7c08de34e30fe60d533fb1397b2eca35c069 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index cd71166f4d8bd6348b6a0e2d2e0d038ac6e4851f..80166158b29da1ca145f5dc59ecd100479565381 100644 (file)
@@ -74,7 +74,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
 &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>;
+       };
+};
index 10e08cd3d054b86acda744c0ece36a2e12e3f402..b156b12fc8e01f13068cac3978145a57ca75d6fd 100644 (file)
@@ -96,7 +96,8 @@
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                port@4 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
+                       nvmem-cells = <&macaddr_factory_e006>;
+                       nvmem-cell-names = "mac-address";
                };
        };
 };
                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>;
+       };
+};
index b1fbf5393133cc41c88a4248b746b499a355e0fa..e33fac8db10788a72a72e2cfbd3569e288838e64 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 2fe855abd559829ad207bf8bb52ef27beddc3571..87f9e2243c86e7b79f48c5e9f08e20b5f41a64e8 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                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>;
                };
        };
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index ef3306caa7aad0d1466397920a5fecba3342470e..2a0bc6f8fd0d2d1ac14e773bc4d2fea3e540e379 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index 0596dc71d677d79a094b8498c4059d0544acc45f..a46723664099267257b08f3b1925f5a48552d253 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gmac1 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_e000: macaddr@e000 {
+               reg = <0xe000 0x6>;
+       };
+};
index d4f6a093d42bd8eabf96ed3c2a1a2a6883c2e46b..2e01b974a8a2e33fa3075fabc75b5a782e72cb11 100644 (file)
@@ -58,7 +58,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ohci {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 239bb08230cffdfb7c3fa4d2e4c2a84afda67e70..3a2de12f6a875f74a8a515b91c52a57b44768e3d 100644 (file)
@@ -90,7 +90,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index adc998860003fa809a086ecdf23178860c0fd760..5a2962a31550a4800fd4edcd83049bb030f45083 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x2f>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index e5c52322b66de3a3e242405ba879a8bd69ea483f..5a0aeaf5f251913618885804d0cc71ae85456beb 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &sdhci {
        status = "okay";
        mediatek,cd-high;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index f0d3dcb62ad227b737346d0e3cb856f4323a8b1d..b9a105b0e3bae3e9b40d8cf497a1f91df88ce707 100644 (file)
@@ -66,7 +66,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index aa60b8a2c66b5ae308c17c62a9b0b2ade553d572..e4b5f31ada85b9957a5ae35616c9572d4266882f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ohci {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index c5e0c2e02b2251bbe71aa09c4039415ed8da63d8..e0445c61dd02411344e1b79b0d523abd2eda8498 100644 (file)
@@ -81,7 +81,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
 &uart1 {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 738968d1f9f67688d18260b2d359c72bda6f98a6..6e3f64632dd5cdb10d9bd5b94331105e4c7d9826 100644 (file)
@@ -53,7 +53,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 2ef042292554a2b52b77c91f45eaad3eda27c7eb..945f680618930b324e8b8b41ac84f937888b3cac 100644 (file)
 &ethernet {
        status = "okay";
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 87dff72c401dbdbe45793a90fa7c63d01dd4f1d1..97acb3ff3f57393b8ffd9ac2628d274b1ecdb6ea 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 969488e4167970e6b856521ddbe682acf59b8687..8e07dff0f14841f7cfa2730f5afee7fa4d2d8c41 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 326c412b0e24ee681b53bcff4e098002f40b313e..08bdcd73adab1bf4f2edb0e4f50324ac95dfb129 100644 (file)
@@ -43,7 +43,8 @@
        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 {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 7bd394c3464cfe0b469f2f7dde70b4f5d3b9ee97..dcdf0cddc77312f2c8af6d2c5df80d7bd09a8e0a 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 8a33c37f7aad265cc59076aa72a0d41fe3d40192..bc8965ca277fe22c343b678f9b3f05931da4cad4 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x1fc20>;
+       nvmem-cells = <&macaddr_uboot_1fc20>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
 &wmac {
        status = "okay";
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc20: macaddr@1fc20 {
+               reg = <0x1fc20 0x6>;
+       };
+};
index 3fd173914e970d1c94cbe3a1ae1a73c2b1ff4b0a..8e73767dc283a65d1aaa1fab1b80f22f984e33b9 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &sdhci {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index cbec8c9d406685c00f449e6744ed3ad781327f0c..7beda75806e64c0ab763ff422a5e0e7bbb1085b6 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &sdhci {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 7aa678a1adb3d9f3975c23e5659e06333aee8254..f79d2d2641daca0ab361aa228e2bfc1921370bd5 100644 (file)
@@ -75,7 +75,8 @@
 
 &ethernet {
        pinctrl-names = "default";
-       mtd-mac-address = <&factory 0xd>;
+       nvmem-cells = <&macaddr_factory_d>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_d: macaddr@d {
+               reg = <0xd 0x6>;
+       };
+};
index 12cf47f5a798e7b579f0c73d0003823019ecbf6b..e741d2182c0a9defd9833263d2fd37bf59ea3e4e 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        status = "okay";
        mediatek,cd-high;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index c70db4989bdde9be9ca5c7c2c4df1e0170ddce69..02a22b7495dbddf1732c9265c83307db87619d57 100644 (file)
 };
 
 &wifi5 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(2)>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index c3d7da2f090924064875f7b9b98eede592767de1..f811466c16f0eb684e722ec36544ec6e0d2c2a61 100644 (file)
@@ -99,7 +99,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie {
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index b6d2df47563db0ab00e1e0552ed61008f5b123ac..d4de7fe6a478a8b2b4546352415cd617c73f0c19 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &sdhci {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 63c4901ec252cc5d8eb3c6286f849d0dd023ddab..bf5fbcc64efd85e78afaa563b30a7bb6faf1f340 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 859568b1c12dda31a657ccfa8fd5aded0b500dc6..4775f8f0762d2f33bbb67b12351f7d6c02665663 100644 (file)
 };
 
 &ethernet {
-       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>;
+       };
 };
index 6e1cb396b8942c1ad7ac7106fbcaf5178d525293..4ceccde06d5a8f84b75e3dd3573adac8de5eec65 100644 (file)
@@ -47,7 +47,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
 &uart1 {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 2be5f3fc88928fcfd57b502c067697687cdcdecf..def722832dadb044eaf7a35fab314de8a2887bee 100644 (file)
@@ -38,7 +38,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &state_default {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index ab5fdd32469e21c02b8d15e09cfe1839f5d0cf33..ef60f01002308f744aa978abdfffbb303f907430 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &spi0 {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index b6ce7b1f562dd2a54932f393c889b1bec7ef5a76..bbd66e113cc1e4e99efea787c7d6ef826b860a34 100644 (file)
 
 &wmac {
        status = "okay";
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
        mediatek,mtd-eeprom = <&radio 0x0>;
 };
 
 &ethernet {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x3e>;
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 2faf8a87fe0cee81af5b33989e5f0f3e2876acf4..8372f057cd68e34d2e1ff68b5ed7a976d2ec3d96 100644 (file)
 
 &wmac {
        status = "okay";
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
        mediatek,mtd-eeprom = <&factory 0x20000>;
 };
 
 &ethernet {
-       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>;
+       };
 };
index 55f39db68043f39b117db56e27d58885106ea30c..c2c6e922b76d5bb682443a1c34f619caba882de8 100644 (file)
                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)>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 38879d70e69a9463a37e38409f7b88c6966b090f..4f5faf2ee0ce1269fb2b503bc96946fe68000a5a 100644 (file)
                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)>;
        };
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index bb13bac8c8e90062c395cfa06d7c1fb36c8e8534..8fc2334ae260645e44c3d34b88a8e4f5bfa5a121 100644 (file)
                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)>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 34170547a4e8a6cfdc0a767c905718bd2f89df72..2a6963ab1cb7359f459e83cb8079e9daaf54e108 100644 (file)
                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)>;
        };
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 633950f287f4a5b9d51685b67d9245dec5de628d..d221a5c7c88016e009926e3747381631f0e2e493 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&config 0x2008>;
+       nvmem-cells = <&macaddr_config_2008>;
+       nvmem-cell-names = "mac-address";
 };
 
 &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>;
 };
 
                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>;
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_2008: macaddr@2008 {
+               reg = <0x2008 0x6>;
+       };
+};
index 300ea3bb297344173a7584fd45e0937647c1d194..6ac3730194a064bb990556493e4e047e2954b248 100644 (file)
                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>;
        };
 };
        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>;
 };
 
 &ethernet {
-       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>;
+       };
 };
index 5bc12758d4ef2158c1847d305858f66adb807758..496f8db2ca0dcd88bbd694f9b5b8bcef3e37a25c 100644 (file)
 
 &wmac {
        status = "okay";
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
        mediatek,mtd-eeprom = <&factory 0x20000>;
 };
 
 &ethernet {
-       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>;
+       };
 };
index a142be78703e03f82ec31223e3e390220b873ba6..1dfb89d52851f7028e1bf1da52b47b33b9f714f4 100644 (file)
 };
 
 &wmac {
-       mtd-mac-address = <&factory 0x1f100>;
+       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       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>;
+       };
 };
index 7ab19632e8c576bc23774179038e59d20fd0aeaa..408f12aeaede2d8ac4a9e0aa94f83a62783422bc 100644 (file)
 };
 
 &wmac {
-       mtd-mac-address = <&factory 0x1f100>;
+       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       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>;
+       };
 };
index bce34045c6e0cbec6c8ea943e02e46fdf647c7bb..2141abc4423ac0b980bee83bcbe0bc3d9f772cc1 100644 (file)
 };
 
 &ethernet {
-       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>;
+       };
 };
index 1f8f7f4babc88f579a6a45fa38a201807365b576..ad65152a95fb126172679befafbaf21a5989e13b 100644 (file)
 
 &wmac {
        status = "okay";
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index a1a83bf2377434e61526d2f92c51ddcbe64cb02a..9f1d667070508342153b7fe3dd9d33813e477943 100644 (file)
 &wmac {
        status = "okay";
 
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0xf100>;
+       nvmem-cells = <&macaddr_factory_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
                output-high;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index d3558547b8eec3c8a0ff7fb2122fbea3e59464b1..fe10600cb9179926965d8b15dc41f93d304b798e 100644 (file)
                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)>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};
index 9cea8b43f3bf478403223fc08cc23cedc3bbe7d2..eb74c2ae51156b9f0fd72d8c0b11d84542e97e40 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x2f>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index d6d418f1b9f91c31ec3ad139bf54900b9078e43e..b12e1f71066e656e2ad8e13ea9c79e0961e13dd9 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x2f>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index b5f8ff03a80d610220d24e0920a409e2fa6c9ebd..5e19e331c88e05c3e9781ac27750a94493f5e330 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index d7238e17c68146166ef9fa4fbb9a081381f3c668..96633c062ed91a394779f4479507decf5fb705dc 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 1246651204420d5d76a99f1f0aa2d26458e32550..a25f4d8d2855b3254c472755c80727589666f192 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index a3330fb2ebd9760a1dbfc37663538ae9f0d0d16a..7158101ab7024dea7e731406cc84da965514e1b8 100644 (file)
@@ -70,7 +70,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index ff562cbff40985366bb19a6a3368bb259556f2a0..626b36366d833f089bfb67c8a764bc0cba9a0999 100644 (file)
@@ -35,7 +35,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
 
        mediatek,portmap = <0x3e>;
        mediatek,portdisable = <0x2a>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 4389a9daf4c9b08f352afd7c665ffaf10578ef4a..e3aae273a9ac6a217c8f820baac5e7cbd21bea80 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &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>;
+       };
+};
index ae6a72ebc3f726c95c2e4b102364cee7592d8d15..37f409eee9fb9ba5e180fb082935b07d33b77365 100644 (file)
@@ -74,7 +74,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &spi0 {
                };
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index ac2a01eabaf833309c7d852bc850082e2a3dfd38..fef199ac34af1935515be4a64080b1a0fd4fcfd6 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        mediatek,portmap = <0x2f>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 5e92cd2126133d6a7bf4e47fbd7f9c9578ed06d8..f3650dc6ae7b44a1b2a4abda7ad9555387552d11 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 9d78ca142c31f1cc65491e3d52664cda54d3b353..52d56466106d6c90aa03341eacfabf4655569448 100644 (file)
@@ -85,7 +85,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x2004>;
+       nvmem-cells = <&macaddr_factory_2004>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
        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>;
+       };
+};
index 7038fc6590b45455ff43fb3cf777507a6168c508..bb3795aafac80d3ea8f6d4630adae67915213117 100644 (file)
@@ -95,7 +95,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
        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>;
+       };
+};
index 4b832faaf1bce9353b6cec939231dc127a736152..3bf3e21a4702ac47084025b1507f4382466f4d11 100644 (file)
@@ -95,7 +95,8 @@
 
 &ethernet {
        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>;
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index cbaa3e832f65a7f1a9d1516ed82d896eab197d51..59cc965f23d45756e8f13fbbfc66120397869d80 100644 (file)
 
 &ethernet {
        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>;
        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>;
+       };
+};
index a1f10ae45da38834abca2b71ec83d92a2833c5d5..1bab37fc5eac37e930b5d56986a92ca429990848 100644 (file)
@@ -98,7 +98,8 @@
 
 &ethernet {
        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>;
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index cd9e918404f46d81be7631864186e59657fcdf2a..b3ada11220ae0f342c5bbc50e03f3f254db89433 100644 (file)
 
 &ethernet {
        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>;
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 3de9dc755c784da3c2f0074516a4a6c38dea234c..ff714d12730bf8b5a33a88c37f4dc8e7cec30556 100644 (file)
 
 &ethernet {
        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>;
 &wmac {
        ralink,mtd-eeprom = <&factory 0x2000>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2004: macaddr@2004 {
+               reg = <0x2004 0x6>;
+       };
+};
index 4ad23ff26da7a2e4552924ae89abf188f06f5900..820bbd3e99e37ec3838bde484f76e9c507c700a1 100644 (file)
@@ -63,7 +63,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 44b2ad4185edef4f49b24fcbb0ac6ceb54fcecab..036d3105610555015484b32670c83d460feb705a 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 0baa2feac9445e95ca47550345f8d94022bb7453..0d4d8f4cfd5560929f3d666917b2b5e070bbb765 100644 (file)
@@ -73,7 +73,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&devconf 0x4>;
+       nvmem-cells = <&macaddr_devconf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&devconf 0x0>;
 };
+
+&devconf {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devconf_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 5c1975595fec7c4b68c5e6618654e46ee399a8c9..af6ebf00628f90adcc5763cd1b02a5524cc67ee7 100644 (file)
@@ -79,7 +79,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&devconf 0x4>;
+       nvmem-cells = <&macaddr_devconf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&devconf 0x0>;
 };
+
+&devconf {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devconf_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index cc6cd382460a94da0002f355cc64527ff6968e8d..2202cf3127d92ce0c7ce358475fea95f9592c269 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index c2513c5dd53309656f8baf1ae0ba883becd00995..4b9add1fda56fc57f24c755c73d86767e38a92c3 100644 (file)
@@ -99,7 +99,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index ff01fe2709baa340fe3a3c9be8fb6c2b8e7118a5..6620b1e858420dba628fcd44ce7c2ff7bfbafa24 100644 (file)
@@ -96,7 +96,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 7699dcaabbf2ee676b6a5bead5a5d038e17e321f..e1397d92f919211cf6278ddb56419694e77b4331 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x4004>;
+       nvmem-cells = <&macaddr_devdata_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&devdata 0x4000>;
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_4004: macaddr@4004 {
+               reg = <0x4004 0x6>;
+       };
+};
index 21f0a73212e1069effa07efc52e2f256f0501803..b0f734e4e06a88d9c573957d8099490cb254d2c5 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x4004>;
+       nvmem-cells = <&macaddr_devdata_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&devdata 0x4000>;
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_4004: macaddr@4004 {
+               reg = <0x4004 0x6>;
+       };
+};
index c134803f67070edf9863e297d8f651c7ff804c11..4580a070633093bae9051a8114d33fff1d6f6d31 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 07ff8bc9bc467ec3363e2c6f09548f352477bf8a..c8f3951384d504d0a8608f91cb7769bbd024a000 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index f339b7ebe8bd9dad8a297c7ef63b36bb89c51518..3767afb4527c9b961329095dc368320da854d97a 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 2784b0c580c5243ad061f731df9341be61a142b2..05d3847e71e60309f5c004ea879089e1f47257f2 100644 (file)
@@ -87,7 +87,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 581edc6dfcd7b161f8763add3a1953af8243d616..f449b0d0f8027a46ef9caf5947554d2679a6b2a6 100644 (file)
@@ -83,7 +83,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 124a2ba13cdfb18c6081abadd0219ebc28100362..f9fda94ec0d744f15077d400976c3e8810d8e6a9 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index e4574919061b367f636a96928b9a269a48c2e81a..c00feb42889604de1c980451d8a5bdb8f75e4566 100644 (file)
@@ -93,7 +93,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 742edbb11da4fbcc31003060f0de95c61aa2473e..cfdb4d6b4b70257e2a2a86292a45a7e4f1b772ab 100644 (file)
@@ -83,7 +83,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 2826993a9a4de0b877bfef8c709c03e367a21301..b921b7d1788de3e76f2a62acab37e210e9fb88ee 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 7df592bebd1e71d47c1dd8da550e60389cab7cbc..36171ae591c05ca527af053f1625ece36ac6504d 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index fac721cd7683aeb59333a9d033b98df7426270da..a1c179c286bc3164d71486475cb324919ded6c3f 100644 (file)
@@ -99,7 +99,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index d88df8ca25beb95388c379c24e8360f2df6225ff..97b37706fbdc32747f60d7eaa3119b18d0b1fd60 100644 (file)
@@ -97,7 +97,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 39afaa582e18942b76f91156b72bcb1e49f2394b..dffa5beefa762ab3088e80315c389c88f957d0be 100644 (file)
@@ -89,7 +89,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index a67a839dccec970bb662a139201b5dcfc99fd53d..cbd586232e0dc87b4cba5466b52e2ab32df27644 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 2d5f07746f6af7541d965a9617ad8608c94d7af0..ada957fc52887e8ed0ca35737ed1d7804b904825 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index f58a519b117ef347bc73a4dcaa43810f45f4744e..c547c9df69a32ac67e70f0b4acc4863a4638ab3f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index a9db2882f3bdc9cfde8d25e3e66e5960b5d936f2..444a5af4f53fef0a4c4b6630e59c6edce3943b0f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x40004>;
+       nvmem-cells = <&macaddr_uboot_40004>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
 };
 &otg {
        status = "okay";
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_40004: macaddr@40004 {
+               reg = <0x40004 0x6>;
+       };
+};
index ca6259d30399b3aebad0ed0abf8d67feae6a2692..5d61c757754605a7b8669314a888d3947a4a4872 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index a2584e005e2615b743e0f52cdbb6d35fa0cb3e9d..e33a7ef5b5eb67b7ed0976259449732af8baf37d 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x2e>;
+       nvmem-cells = <&macaddr_devdata_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 4566e7a16688c0ad0da750f7b54fba662034d057..4501a44c41ff10cc688bafd2eced9e66132237f4 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 9d89c6e2f9ae92f354dcd5deb4159b5e144a9591..b9fb232aa121f55c19503572cff5d70324b981f6 100644 (file)
@@ -99,7 +99,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 6734f5b3369c34e21254e967e90872ac88bdcf71..9d5d4ceb1e96e90436135a209807d5cabeccd97b 100644 (file)
@@ -80,7 +80,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 92ea59bc4c6cda2cfd4108e6de2d2fb84f5099e5..1cb19d018469e43b2ff1690d5abd1f4927b3457c 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 7b71af402fa4d717e3862655627d1118ef465f74..0641a4e796839f51dedac71351e07bc8c6677aa5 100644 (file)
@@ -78,7 +78,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index 543144394f8d44a1b29d4137a0cefeda95ccb937..6573159985e40cdd10066e0daa6a82b2be01efd9 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       nvmem-cells = <&macaddr_factory_2e>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_2e: macaddr@2e {
+               reg = <0x2e 0x6>;
+       };
+};
index e5d70bd803f088082d9361103e5a01bcdd318572..c65fc100d8cd612594933e3450850c6d6c93c7bf 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index d3d5afe64b33bdd49211d5060d4b21cd1dcfa964..c72d9372a548c0853fb7ba5104e837176b72a298 100644 (file)
@@ -75,7 +75,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index bc3dd5ee56b5eb8a1ee1bf3434c4906e66a18d4e..4399467b290af34774338ad1fd3b812403551f43 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index b17097cb4595a31df74dc892de9cb1eb442831a6..ec46584381c65153e5b6542f44d2819f3b3b278d 100644 (file)
@@ -84,7 +84,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index ff199f890b25fe3816781b3f429903c57400c888..779443e70e2c90b480e429d31cbea414bacb6c83 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 7f660d61d5e1e5ab8fadf6efe177b00f50c598ee..7e6d47cc0214b3cc9d4847d90a812dda3e24c52a 100644 (file)
@@ -73,7 +73,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index f3dab80073cc9dad934ead73bf3e81ea10915752..2f340c4c3108daf795c294433f0fae5147b0f529 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index f4aa24ec5a29aea339a9186bbd62ce36c8f3a39e..13f1ae4e59d1fa0e08d7529214354e98a7ca9a1a 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
 };
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 89e6c9ed710b00b3d152e133c85e9c0e1b26465e..c897aac7c49b73f58786751be202d103c40db2da 100644 (file)
@@ -86,7 +86,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index dcebe64af424f004ba1af3bc06953ab314eb3b02..4ae42d71a58103ed15ffed2a68b28ce5a36ecb4a 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index f6c1b2d2b5ac94f0d776a723ddaa864f9ed1639f..8a60184959f21df5ba2fd414f47477c48bd4cc1f 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index d94da950293ab79e4d1c1fd79095143b88bfe19d..1067e5cf8b2a3b129b5a8976f8012e406a85e328 100644 (file)
@@ -85,7 +85,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index fc71437b48d7fbaa15b4d609dede43987fcafe65..211db1cbaba395cebee1a9e85fc2b034c45a4c1e 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4004>;
+       nvmem-cells = <&macaddr_factory_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4004: macaddr@4004 {
+               reg = <0x4004 0x6>;
+       };
+};
index 2c00ca89456aa481c31f031a26c886401d86c248..735f59f06706a3a942a758b86a90eab990e98314 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4004>;
+       nvmem-cells = <&macaddr_factory_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4004: macaddr@4004 {
+               reg = <0x4004 0x6>;
+       };
+};
index 6c65d34f166e4752b8a3ff064b79577e1880a8e0..c2f44ee5653620a77e0d11e04fcefc58c74d0eab 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &otg {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index db4f8d4a31fc209e32616b16e647297c599d6cd6..c5990977dc572f94749e5ef228c5baa63f35d909 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 3aa132a727b3327b27810f5173a7d57b9cb4d365..28c677041a583e2db11832f63c10325ce9acc3d4 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 2233c9018c856c9837c78a1d5eeb7bf2aa746ada..01393c2383b6bd51b7c52d0ecddc4f7e7493d20c 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins &mdio_pins>;
 };
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 50b762ce5a585188b6cd26694477d1680a453231..bb36279016473e96383ba0da446c4a902f331a20 100644 (file)
@@ -88,7 +88,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins &mdio_pins>;
 };
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index a91d0e6ea9010374872e9344eefb345d4e8cff5b..b733d68586e24f982103bb27ab6be059c41d1161 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 84bb645c5afb50c85c87acf1d9a0cccc6e855fe5..8b7c47e88b57cea233203c8518961fd7b17cd74c 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 98426b86f06ca1319da747ccc816b56b41543a60..38191d2643a0aadd33dddb1ea8db6f831d1279ed 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <1000 1 1 1>;
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 23313759c7960897ea89edbef314e662dd6d9d1a..b02c6b692af8f64689768f27e3c4cbee81e01344 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                mediatek,fixed-link = <1000 1 1 0>;
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 56d9dc08948d930820de5a6f3421ceb4b057da39..fc3a5549f207225434257c833315d72b83ef39a0 100644 (file)
 
 &ethernet {
        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>;
 &ohci {
        status = "okay";
 };
+
+&devdata {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devdata_d: macaddr@d {
+               reg = <0xd 0x6>;
+       };
+};
index c0f30ec6c772bf5df782970d7d52c91c5dc7c2b2..84ca468e3d2a5894ed5abd2bc72ff8be02acde38 100644 (file)
 &ethernet {
        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";
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 6bed6f57bccc9e536d69d9e5df1dafb31110dbf9..fc437c1f62c860f9a3b6483e90225978a7cfe1fa 100644 (file)
@@ -64,7 +64,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x8004>;
+       nvmem-cells = <&macaddr_factory_8004>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 
        port@0 {
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_8004: macaddr@8004 {
+               reg = <0x8004 0x6>;
+       };
+};
index b5cae66732ed322318929bf1d5e42d9877340ec1..fe503289a3d6259d4b93fe154ef7dce8416f57ef 100644 (file)
@@ -95,7 +95,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
        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>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 39fb3d1c78d4d22a4f531c891302bb6166584ded..26c8dfe2f295098a25d910e90285446732c8bfd4 100644 (file)
@@ -95,7 +95,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
        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>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 0a62c755e60d79529fe3fdfc06bae4710d1e1155..0082af958dc802e39172811b2adeb34e9e6f537e 100644 (file)
@@ -83,7 +83,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 96dde0fbf1cb40d295e077cbf9df27f388287429..e4e0ef1b62a475b0320974f0133916e20b7a9cf6 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 58a84073015592acd971102fb02ccf53ebc9f342..5b504bea650d6de0ce712dc61e842752637fba1a 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index bcc02f3cda309519550d5da864c282062d58f5d1..62c68a3fc2a417fa2746509e015621a76039bf4a 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index 7d9bb0e359e715094dbba851bca6ea13665ff1fa..5c5517ccb2931af9cc91079cd4af434ac7522b3b 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 5bd87190a54dc3408ac520fd2552b8331e7c6513..261346ce867d764a5578e8b987d2f8ce4f4c6fe2 100644 (file)
@@ -94,7 +94,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&devdata 0x4004>;
+       nvmem-cells = <&macaddr_devdata_4004>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index 48fb1d4ffd254defb57c655d6ba72bb053cb870a..a7fc4765b76befbe634044f7564fe2c8e2a23c9e 100644 (file)
 };
 
 &ethernet {
-       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>;
-       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>;
+       };
 };
index 3b1fdd4a8ef52a2d3b09f2470b83e75e139aad56..1b80382f6811595d468f08bc80e5872f989a0338 100644 (file)
@@ -53,7 +53,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 1386ec920b2fc5f0779ce9a8f4f8a46c05e15eaa..a246c22c21527194b89db4041504911f8dec4681 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index f9365d5700d36c8a34216a60b6382df3e8f14899..710fd2d6be28b81a969a20d82e2ac1157c68022d 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 83b1fb2a6d0e4953dd45fb389ca8a96cc55c9cb2..7dc56673a0496de5cae34bd00a8d64dd195d1ebb 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 543fda74b72d44d41dd9365774cb94560c69c930..387e4adfdc170ca99ea41d4e9d12413d06c06ad4 100644 (file)
@@ -95,7 +95,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 8ab2a87304d4fedd0fa20e28e90058227c79c711..8df91594b7e02538678a2c7843078384cb1b1ed7 100644 (file)
@@ -98,7 +98,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
+};
index 8a8e5a92e1332b5b4b796dd397e06a8cc5199155..2d5d86ee1bc0e9e8b43d6e87449431451b490dc8 100644 (file)
@@ -60,7 +60,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &uart {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 499b555da41b4c675769e51360420625b7cfd274..0e69cf8919c0609ae57faab46afc6f2a1e69d1b4 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index d3d1ebe26fc93cf56e28e0abc7613fe482e40227..89a774a060a36ccc248ab858ad1162af21f3374c 100644 (file)
@@ -91,7 +91,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index b6bad0ab77823c5142f364f44484986a408f1ee1..f02e7b024d3c9c37df574185c401cbc9f230f84a 100644 (file)
@@ -90,7 +90,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index 9c00da82ed1639febeb8d011f3004382610a08c2..20e2a5257fa491b41cc2e7c5d3e025971e30110f 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index b60bb99ee91181a87ca5bf8dcbdc97822a299563..e84f28f783c4d79794ca8fa15512597fcb40434e 100644 (file)
@@ -83,7 +83,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index 35ccee15848884907c30a8ed81c91b8a83a26f0f..19b6d78009effbef71fc26d7c93fbb97e9010bd1 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index 13d1a16741c260532ead20fbcf1ce03df1ddc205..a03f33f3fc129f4e02fa07263d11d4273284e987 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 089b85629b90920f754adac068b562470052a437..502ac60211b1dbd76cc04edc09348ccb72c7db04 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index adb4034e8a5847e6041e397c4b0916f277d65472..911e3e44edf004817a4110784b5dfba8a8fb6567 100644 (file)
@@ -53,7 +53,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 2cb61011843e00f29ede4ca206f4cb395e24b184..12d41e305e5724415b0e969ff820fc98b8983782 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index 0879c11206b97c8d2b587f238036d1087c2fc87a..4ff2d57f72966da93bb1fe8869ba824b2477055c 100644 (file)
@@ -88,7 +88,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};
index bc16e2c5c1a62b2746c45f45bbfd751abaf4a3bf..d044be395a8a0b95eb045e8e4ad4afe6aacd16ce 100644 (file)
@@ -95,7 +95,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};
index eb7d7ed46bb83cf20b81b37a05cb2051f5f66aa4..69a1759f36fda33c8257cc9ce49dfd85f7875d95 100644 (file)
@@ -97,7 +97,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        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>;
+       };
+};