projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f35ddef
)
ramips: convert rt2x00 EEPROM to NVMEM format
author
Shiji Yang
<yangshiji66@qq.com>
Mon, 2 Oct 2023 02:12:02 +0000
(10:12 +0800)
committer
Christian Marangi
<ansuelsmth@gmail.com>
Tue, 17 Oct 2023 10:07:26 +0000
(12:07 +0200)
This patch converts legacy Ralink SoCs and MT7620 WiFi calibration
data to NVMEM format. The EEPROM size is 0x200.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
211 files changed:
target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_asus_rp-n53.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_dlink_dir-806a-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_domywifi.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_br-6208ac-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_engenius_epg600.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_hnet_c108.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_humax_e2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_iptime.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netgear_ex2700.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netgear_wn3x00rp.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_sitecom_wlr-4100-v1-002.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_wevo_air-duo.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zte_q7.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_snr_cpe-w4n-mt.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zyxel_keenetic-lite-iii-a.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
patch
|
blob
|
history
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_8devices_carambola.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_huawei_d105.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_netcore_nw718.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_tenda_w150m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_accton_wr6202.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_prolink_pwh2004.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_allnet_all5002.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_engenius_esr600h.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_loewe_wmdr-143n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_omnima_hpm.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_7links_px-4885.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_allnet_all5003.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_belkin_f7c027.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_nixcore_x1.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_m3.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_m4.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_x5.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_poray_x8.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zyxel_keenetic-4g-b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
patch
|
blob
|
history
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
patch
|
blob
|
history
diff --git
a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
index 1142746c7afea5ae64997c9d404f2b36542c4f7e..7dd58b698f904cc99c65b89558529635c87fed08 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
+++ b/
target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts
@@
-73,9
+73,20
@@
};
factory: partition@30000 {
};
factory: partition@30000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x30000 0x10000>;
label = "factory";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-110,15
+121,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
index 19b6d5fdfbadeafc0137614ca5b5ade4e96c1d51..2b9434b2448a81bc27ca28cbe3b9aba0693d4c0a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
+++ b/
target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts
@@
-132,9
+132,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-147,15
+158,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
index 09afc018e8d28ab3bc936686a035214e87553ad7..becf5ba90cd7a9648b34868a93799eea1309bff1 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
+++ b/
target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts
@@
-189,9
+189,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-208,15
+219,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts
b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts
index 4c72c642724b00988e3a0ed250fe7cdd18f6e316..00fcb5ec42ebfd87216a07b4b9bb6ed265b5edf5 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_asus_rp-n53.dts
+++ b/
target/linux/ramips/dts/mt7620a_asus_rp-n53.dts
@@
-120,9
+120,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-143,7
+154,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-167,6
+179,7
@@
compatible = "pci1814,5592";
reg = <0x0000 0 0 0 0>;
ralink,2ghz = <0>;
compatible = "pci1814,5592";
reg = <0x0000 0 0 0 0>;
ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
index f61843095d555f2152ce67d3d8f080dd5c2ebe54..20dab4f09fdfb10ff1a3b2c6d2cfe6c6755be9b2 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi
@@
-79,9
+79,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-129,19
+140,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
status = "okay";
};
};
&pcie {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
index b95a428656e6d72f4246de7103fa34f9c9b45e56..8788d9d93b61a117ae2ae94ceb136fa2799ff5a6 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
+++ b/
target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts
@@
-82,9
+82,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-124,7
+135,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-145,13
+157,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
index f71545815d62ae5dd7cd0bcf2c3f9231439ccc9f..892bd73502bb3c07c35dbc4f65e910978e4eef44 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
+++ b/
target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts
@@
-114,9
+114,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-159,7
+170,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-174,13
+186,3
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
index 4b960da312b96590073f55c81b49b7a3dc99a9f0..6e48763fe01eec93d35d73decc2eaf5d3811fee2 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
+++ b/
target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts
@@
-114,9
+114,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-146,18
+157,9
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
index d943e3abef7d86bb2fee6e9fe08f11667a03615a..14900c432ad29505e2948c6cb080a062ed61cbb7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
+++ b/
target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts
@@
-114,9
+114,24
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-146,7
+161,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-157,16
+173,7
@@
wifi@0,0 {
compatible = "pci1814,5592";
reg = <0x0000 0 0 0 0>;
wifi@0,0 {
compatible = "pci1814,5592";
reg = <0x0000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
- };
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi
index d0113f55603b4282381cd302dc69a060144650aa..c25db1d9d8313d698b1f37a80babd21e392e65cf 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_cameo_810.dtsi
@@
-81,9
+81,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
factory5g: partition@50000 {
};
factory5g: partition@50000 {
@@
-141,10
+152,8
@@
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
-
- ralink,mtd-eeprom = <&factory 0x0>;
- nvmem-cells = <&macaddr_factory_28>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&pcie {
};
&pcie {
@@
-161,13
+170,3
@@
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
index 2884bfdb0460dc12c80b9880b7bc1cc1748726d0..f0d96f8a4351ff1c309128940cdfa75e25eaef61 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts
@@
-119,9
+119,20
@@
};
factory: partition@34000 {
};
factory: partition@34000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x34000 0x4000>;
label = "factory";
reg = <0x34000 0x4000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
nvram: partition@38000 {
};
nvram: partition@38000 {
@@
-173,18
+184,9
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_dlink_dir-806a-b1.dts
b/target/linux/ramips/dts/mt7620a_dlink_dir-806a-b1.dts
index b7fc063b7fb2668abd39e94b6ea4db3fdd74dde5..995255ee8adc070d5ed18174eb262c306e2805ed 100755
(executable)
--- a/
target/linux/ramips/dts/mt7620a_dlink_dir-806a-b1.dts
+++ b/
target/linux/ramips/dts/mt7620a_dlink_dir-806a-b1.dts
@@
-91,9
+91,24
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x40000 0x10000>;
label = "Factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-124,9
+139,8
@@
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
- ralink,mtd-eeprom = <&factory 0x0>;
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+ nvmem-cell-names = "eeprom", "mac-address";
mac-address-increment = <(-1)>;
};
mac-address-increment = <(-1)>;
};
@@
-149,17
+163,3
@@
};
};
};
};
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-
- macaddr_factory_8004: macaddr@8004 {
- reg = <0x8004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_domywifi.dtsi
b/target/linux/ramips/dts/mt7620a_domywifi.dtsi
index 9a96b0a2759ff9739d895be3a6fff194fa2c61cb..3336f9c6c519efa5f8e2ef98eed509fd227c6839 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_domywifi.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_domywifi.dtsi
@@
-114,9
+114,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-175,15
+186,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_br-6208ac-v2.dts
b/target/linux/ramips/dts/mt7620a_edimax_br-6208ac-v2.dts
index 5f1c01b35e9090634f7bfd8c8863bfd280a21bca..5a311ba895edfe5970a778163d710279a8dd8cfa 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_br-6208ac-v2.dts
+++ b/
target/linux/ramips/dts/mt7620a_edimax_br-6208ac-v2.dts
@@
-141,9
+141,24
@@
// Factory
factory: partition@40000 {
// Factory
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
// Cimage
};
// Cimage
@@
-187,7
+202,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-201,17
+217,3
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
index cc902888baec5a1b8deee1e291a080c56496f94f..8e2030a5072bbe34bcdf6ad30861d502f05ffd00 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
+++ b/
target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts
@@
-99,9
+99,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-183,7
+194,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-205,13
+217,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
index bc73c197c0dfba1e53677a7a2b83e91934e92067..ea8b8c9121cd447897107a06d542374dc97f420e 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
+++ b/
target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts
@@
-91,9
+91,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-175,7
+186,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-197,13
+209,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
index abac0208d0722b4263655e8c84504bc15b422833..d5db3958d80e9f37499bfbf6cbdaee625b2a2e5b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-174,9
+185,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&pcie {
};
&pcie {
@@
-193,13
+203,3
@@
mac-address-increment = <2>;
};
};
mac-address-increment = <2>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_engenius_epg600.dts
b/target/linux/ramips/dts/mt7620a_engenius_epg600.dts
index 311103f3e86e5242943b99cf3305c79cdd4005a4..bf4c4347deda0e02003bd005eb31b00c6a8a7773 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_engenius_epg600.dts
+++ b/
target/linux/ramips/dts/mt7620a_engenius_epg600.dts
@@
-116,15
+116,33
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
rf: partition@50000 {
};
rf: partition@50000 {
+ compatible = "nvmem-cells";
label = "rf";
reg = <0x50000 0x10000>;
label = "rf";
reg = <0x50000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_rf_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_rf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@60000 {
};
partition@60000 {
@@
-194,12
+212,14
@@
wifi@0,1,0 {
compatible = "pci1814,3091";
reg = <0x0 1 0 0 0>;
wifi@0,1,0 {
compatible = "pci1814,3091";
reg = <0x0 1 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
&wmac {
};
};
&wmac {
- ralink,mtd-eeprom = <&rf 0x0>;
+ nvmem-cells = <&eeprom_rf_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-216,13
+236,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&rf {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_rf_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts
index 267525a0fcebbd5bfa1e4d417a9b3615bd968178..37b06580824dbf1d7da688c3bfa503d7918549fe 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
+++ b/
target/linux/ramips/dts/mt7620a_engenius_esr600.dts
@@
-98,15
+98,33
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
iNIC_rf: partition@50000 {
};
iNIC_rf: partition@50000 {
+ compatible = "nvmem-cells";
label = "iNIC_rf";
reg = <0x50000 0x10000>;
label = "iNIC_rf";
reg = <0x50000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_iNIC_rf_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_iNIC_rf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@60000 {
};
partition@60000 {
@@
-179,12
+197,14
@@
wifi@0,0 {
compatible = "pci1814,5592";
reg = <0x0 0 0 0 0>;
wifi@0,0 {
compatible = "pci1814,5592";
reg = <0x0 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
&wmac {
};
};
&wmac {
- ralink,mtd-eeprom = <&iNIC_rf 0x0>;
+ nvmem-cells = <&eeprom_iNIC_rf_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-194,13
+214,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&iNIC_rf {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_iNIC_rf_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts
b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts
index 8f95204ad19deb3bee494508085a0a6be4423d20..ff6844060e996a6a540f853bdc1694c418e4e803 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
+++ b/
target/linux/ramips/dts/mt7620a_fon_fon2601.dts
@@
-77,9
+77,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-142,7
+153,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>, <&wled_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>, <&wled_pins>;
@@
-168,13
+180,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
index 9c9b3d3bf9fcf5868ca1ccc04993dd9dbc143332..939ced87c04bbd46f4672edce74d7d84cea7eaa4 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
+++ b/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts
@@
-95,9
+95,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-134,7
+145,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-143,13
+155,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4000: macaddr@4000 {
- reg = <0x4000 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
b/target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
index 70d0827ed2bbe23975b541ff316237c681174396..e261f1c4bb5e7d3809a0437457b2c2684a09bd82 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
+++ b/
target/linux/ramips/dts/mt7620a_glinet_gl-mt300n.dts
@@
-90,9
+90,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-125,7
+136,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-134,13
+146,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4000: macaddr@4000 {
- reg = <0x4000 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
b/target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
index 9ee19686b760d9ec1d5c14b7744da06447822077..869453fe750ec5e90a4f7aa534249bfd33e96e58 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
+++ b/
target/linux/ramips/dts/mt7620a_glinet_gl-mt750.dts
@@
-90,9
+90,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4000: macaddr@4000 {
+ reg = <0x4000 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-129,7
+140,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-149,13
+161,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4000: macaddr@4000 {
- reg = <0x4000 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
index 10c9958e0a6e5a32cfc90d2770453b0822ddf735..d2ff424bcfd773fa58e4b567f1085c7888efe8be 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
+++ b/
target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts
@@
-82,9
+82,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-156,7
+167,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-183,13
+195,3
@@
&uart {
status = "okay";
};
&uart {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
index 4c24857df1d1025fb8cc3cb13d626187c1abd94b..508d60f6b686729f15d6cf0fdf226ba708206578 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
@@
-52,9
+52,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-96,7
+107,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-105,13
+117,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_hnet_c108.dts
b/target/linux/ramips/dts/mt7620a_hnet_c108.dts
index 4c241a84de7092c636161068e90b83e95d76cd75..5f97eb61b1ce0ef2862ead4ea63dbc4618dcf8d4 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_hnet_c108.dts
+++ b/
target/linux/ramips/dts/mt7620a_hnet_c108.dts
@@
-109,9
+109,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-141,7
+152,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-154,13
+166,3
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_humax_e2.dts
b/target/linux/ramips/dts/mt7620a_humax_e2.dts
index 2a2ad9043d8dd46eb6362f35a6207650eb51e60f..92e4d58be7dca27408fb36475425cc0a01b9761b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_humax_e2.dts
+++ b/
target/linux/ramips/dts/mt7620a_humax_e2.dts
@@
-88,13
+88,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x30000>;
label = "factory";
reg = <0x40000 0x30000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
macaddr_factory_10007: macaddr@10007 {
reg = <0x10007 0x6>;
macaddr_factory_10007: macaddr@10007 {
reg = <0x10007 0x6>;
@@
-131,7
+134,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
diff --git
a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
index 5eca06fcb93cc9e92db4d6e4862627029885ba4e..eacfcc152f3db93e07c282964b602c9669551c4a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
+++ b/
target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts
@@
-91,9
+91,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x8000>;
label = "factory";
reg = <0x40000 0x8000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
iNIC_rf: partition@48000 {
};
iNIC_rf: partition@48000 {
@@
-209,15
+220,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
index 9997e5cecf399d74b4e6711e5b05d5cd958e93a8..d7ef17abbc203d3dd72a51a223ffe6cb496de797 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
+++ b/
target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts
@@
-105,9
+105,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x8000>;
label = "factory";
reg = <0x40000 0x8000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
iNIC_rf: partition@48000 {
};
iNIC_rf: partition@48000 {
@@
-187,15
+198,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_iptime.dtsi
b/target/linux/ramips/dts/mt7620a_iptime.dtsi
index 26727893715f18fd9aca2c7ad611bf7574f73af4..f5e33850ca1e5eb17585cc0713f5986a07e0b4cd 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_iptime.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_iptime.dtsi
@@
-29,9
+29,20
@@
#size-cells = <1>;
uboot: partition@0 {
#size-cells = <1>;
uboot: partition@0 {
+ compatible = "nvmem-cells";
label = "u-boot";
reg = <0x0 0x20000>;
label = "u-boot";
reg = <0x0 0x20000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_uboot_1f400: eeprom@1f400 {
+ reg = <0x1f400 0x200>;
+ };
+
+ macaddr_uboot_1fc20: macaddr@1fc20 {
+ reg = <0x1fc20 0x6>;
+ };
};
partition@20000 {
};
partition@20000 {
@@
-82,16
+93,6
@@
&wmac {
pinctrl-names = "default";
pinctrl-0 = <&wled_pins>;
&wmac {
pinctrl-names = "default";
pinctrl-0 = <&wled_pins>;
-
- ralink,mtd-eeprom = <&uboot 0x1f400>;
-};
-
-&uboot {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_uboot_1fc20: macaddr@1fc20 {
- reg = <0x1fc20 0x6>;
- };
+ nvmem-cells = <&eeprom_uboot_1f400>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
index 87e6222c534e8f2ef3ae469e172d06b6bb919b4b..fbd4f9ff47f8ede3b405ba6e092cc0276e8a8ae1 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
+++ b/
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
@@
-73,9
+73,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-101,7
+112,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-110,13
+122,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
b/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
index 5368f939a2b6ea7ea104b2daccb35775c2e48eb9..4c0ce75281ed11b0e77a72b431d0bbdd055fab85 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
+++ b/
target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts
@@
-65,9
+65,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-141,7
+152,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-169,13
+181,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
index bff117b729519663ef019ed29dd8fe08b716a702..24b79711c5e4af34d5f625d6d8aea4d57ae637f6 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
+++ b/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
@@
-58,13
+58,3
@@
mediatek,portmap = "llllw";
};
mediatek,portmap = "llllw";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi
b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi
index 5e834d291dc6b2a8fd433ce6c2bc9f3b0f93d0b6..0360cff26fc42b14e99fbeadc5fe72f78e1393c7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dtsi
@@
-55,9
+55,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-93,8
+104,8
@@
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
-
-
ralink,mtd-eeprom = <&factory 0x0>
;
+ nvmem-cells = <&eeprom_factory_0>;
+
nvmem-cell-names = "eeprom"
;
};
&state_default {
};
&state_default {
diff --git
a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
index 2b59351bd89e839b4bb607cbf14d52e37d35cee1..f1d2c8733711664242e62c89074be752c39b3c1c 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
+++ b/
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
@@
-115,13
+115,3
@@
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
mediatek,port4-gmac;
mediatek,ephy-base = /bits/ 8 <8>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts
b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts
index 862f28e399f556b4ba0b3667df5a5f4548fba881..221da9ec0f6a3163177e01e799d6b8f36e49d010 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
+++ b/
target/linux/ramips/dts/mt7620a_linksys_e1700.dts
@@
-76,9
+76,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-150,15
+161,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
b/target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
index ceecafa0669849fa35e73d18145ea0602f5cea4a..e260b5b8e8193214e32f3231261ff35347033b16 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
+++ b/
target/linux/ramips/dts/mt7620a_microduino_microwrt.dts
@@
-54,9
+54,20
@@
};
factory: partition@30000 {
};
factory: partition@30000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x30000 0x10000>;
label = "factory";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-87,7
+98,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-96,13
+108,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
b/target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
index e4f8c0f1fe8d04e3634fcc43ca7c47d75a16072c..cf2b1f6a65b0a16567e577011480f9faaaf08dde 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
+++ b/
target/linux/ramips/dts/mt7620a_netcore_nw5212.dts
@@
-100,6
+100,10
@@
#size-cells = <1>;
read-only;
#size-cells = <1>;
read-only;
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
@@
-136,5
+140,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts
b/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts
index e09d9c607b88661bf29f88e8c3b554b3b9c99ff6..e4d280e35ded53146b94d60113adf4af86ffae94 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netgear_ex2700.dts
+++ b/
target/linux/ramips/dts/mt7620a_netgear_ex2700.dts
@@
-112,9
+112,24
@@
};
art: partition@3f0000 {
};
art: partition@3f0000 {
+ compatible = "nvmem-cells";
label = "art";
reg = <0x3f0000 0x10000>;
label = "art";
reg = <0x3f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+
+ eeprom_art_1000: eeprom@1000 {
+ reg = <0x1000 0x200>;
+ };
};
};
};
};
};
};
@@
-126,10
+141,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&art 0x1000>;
-
- nvmem-cells = <&macaddr_art_6>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&state_default {
};
&state_default {
@@
-138,17
+151,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-
- macaddr_art_6: macaddr@6 {
- reg = <0x6 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
index 6884bf7943af86de1f0f4ac3f26ab7da21a69bf8..c6f95b4c77028fddecf2da499e07f68a76bc6bd4 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi
@@
-98,9
+98,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-142,7
+153,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-152,12
+164,3
@@
};
};
};
};
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_netgear_wn3x00rp.dtsi
b/target/linux/ramips/dts/mt7620a_netgear_wn3x00rp.dtsi
index 914d4e6bba408874951064fa5f501a88a96a91f4..23cfe9e11a804fe281a371aa66c55847744979bb 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netgear_wn3x00rp.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_netgear_wn3x00rp.dtsi
@@
-116,9
+116,24
@@
};
art: partition@7f0000 {
};
art: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "art";
reg = <0x7f0000 0x10000>;
label = "art";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+
+ eeprom_art_1000: eeprom@1000 {
+ reg = <0x1000 0x200>;
+ };
};
};
};
};
};
};
@@
-130,10
+145,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&art 0x1000>;
-
- nvmem-cells = <&macaddr_art_6>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&state_default {
};
&state_default {
@@
-142,17
+155,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-
- macaddr_art_6: macaddr@6 {
- reg = <0x6 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_netis_wf2770.dts
b/target/linux/ramips/dts/mt7620a_netis_wf2770.dts
index 2a0e52cee261e869ee1495bb6e39cf7f9ed51477..f768ac21141c41ec3f5bc6b1c7fc39ca97ec8d19 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
+++ b/
target/linux/ramips/dts/mt7620a_netis_wf2770.dts
@@
-74,9
+74,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-161,15
+172,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
index a691f4203fef53723e00a3f59dac9538a8296262..90ced171c163d6b18a97efee4a547162559de7d7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
+++ b/
target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts
@@
-73,9
+73,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-105,7
+116,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&sdhci {
};
&sdhci {
@@
-119,13
+131,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
b/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
index a8a900eac19e75377e2c5cc419b99a3253b56b66..e8aed7e2851626589efceb9abbf459369a9307b3 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
@@
-69,9
+69,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
};
};
};
};
};
@@
-102,15
+113,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
index fc4f1d6258546d2e4bf815cc34364c85b09dfec0..13230a9c43bd7c220374edddab8e1cc570f62e7e 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
+++ b/
target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts
@@
-74,9
+74,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-118,15
+129,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
index e095401c4e6a9caad09355698ecf9b6e08982dbd..a4c99d35c49cfa15dd2aa15a4db914f2f235d4e0 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-136,15
+147,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
index 7d875c24fcb0a05b0b82c47a876055f5b5c70629..a2238354b294ba8e96e577cbceb1b28e9078f14c 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts
@@
-64,9
+64,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-96,15
+107,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
index bfa4dac6f1ba6f640633e5b3b08f7e2c7ffd10ef..2f14d39ac1d2167e2fb4d0c007e8782d998d0a1f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts
@@
-84,9
+84,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-116,7
+127,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-129,13
+141,3
@@
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
index ab53f678f5cda810bd9b99ad477b8f4d1017a269..62ca8eddc09468b4be1bbdeb8f1ff788f9649add 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts
@@
-99,9
+99,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-136,15
+147,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
index 6fc95214a299516120df276e76ad07747f9b76c1..41ea54ba2d5a99ad392e4ffa4e795945e294861f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
+++ b/
target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts
@@
-104,9
+104,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-141,7
+152,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-154,13
+166,3
@@
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
mediatek,mtd-eeprom = <&factory 0x8000>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
index 6b1edabc1ab7fc61b4931ff9d5b6c78effedff9a..a9c75e187fbcec83ca9c4b6ca740737c6ec51301 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
+++ b/
target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
@@
-111,9
+111,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-147,7
+158,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-174,13
+186,3
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_sitecom_wlr-4100-v1-002.dts
b/target/linux/ramips/dts/mt7620a_sitecom_wlr-4100-v1-002.dts
index 614a6103b84a4a330e25be9c5a23f7ec4e899a20..3c7df99cffe28f371b1944bf59e5b01650a98179 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_sitecom_wlr-4100-v1-002.dts
+++ b/
target/linux/ramips/dts/mt7620a_sitecom_wlr-4100-v1-002.dts
@@
-103,9
+103,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-175,7
+186,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-184,13
+196,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
index 63643927d51f078d9300a8f06aa432151508b38a..4bce556de855c887b1e32f1274049c859645e730 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
@@
-106,9
+106,16
@@
};
rom: partition@7d0000 {
};
rom: partition@7d0000 {
+ compatible = "nvmem-cells";
label = "rom";
reg = <0x7d0000 0x10000>;
label = "rom";
reg = <0x7d0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
partition@7e0000 {
};
partition@7e0000 {
@@
-118,9
+125,16
@@
};
radio: partition@7f0000 {
};
radio: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
label = "radio";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
};
};
};
};
};
@@
-164,9
+178,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&radio 0x0>;
- nvmem-cells = <&macaddr_rom_f100>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&ehci {
};
&ehci {
@@
-190,13
+203,3
@@
mac-address-increment = <(-1)>;
};
};
mac-address-increment = <(-1)>;
};
};
-
-&rom {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_rom_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
index 1222ff2fcd5c1bc89231d9db9ba65b639397c578..47cbf9b243c9ab0c5f5969e2f0e8e479848df794 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
@@
-139,9
+139,16
@@
};
rom: partition@7d0000 {
};
rom: partition@7d0000 {
+ compatible = "nvmem-cells";
label = "rom";
reg = <0x7d0000 0x10000>;
label = "rom";
reg = <0x7d0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
partition@7e0000 {
};
partition@7e0000 {
@@
-151,9
+158,16
@@
};
radio: partition@7f0000 {
};
radio: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
label = "radio";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
};
};
};
};
};
@@
-180,7
+194,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&radio 0x0>;
+ nvmem-cells = <&eeprom_radio_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-193,13
+208,3
@@
mediatek,mtd-eeprom = <&radio 0x8000>;
};
};
mediatek,mtd-eeprom = <&radio 0x8000>;
};
};
-
-&rom {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_rom_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
b/target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
index 743d1e8db6646002a9bb771428f2907597acc57f..32a14a2b7502be660a3a4b3039db8f3f29087699 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_tplink_archer.dtsi
@@
-69,9
+69,16
@@
};
rom: partition@7d0000 {
};
rom: partition@7d0000 {
+ compatible = "nvmem-cells";
label = "rom";
reg = <0x7d0000 0x10000>;
label = "rom";
reg = <0x7d0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
+ };
};
partition@7e0000 {
};
partition@7e0000 {
@@
-81,9
+88,16
@@
};
radio: partition@7f0000 {
};
radio: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
label = "radio";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
};
};
};
};
};
@@
-107,7
+121,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&radio 0x0>;
+ nvmem-cells = <&eeprom_radio_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-121,13
+136,3
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
-
-&rom {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_rom_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
b/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
index e6d9b8576d98d7042dd0e7e361713e5273228c84..9e4e646020969eb060f9401f09f51cd162136bca 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi
@@
-45,9
+45,16
@@
#size-cells = <1>;
uboot: partition@0 {
#size-cells = <1>;
uboot: partition@0 {
+ compatible = "nvmem-cells";
label = "u-boot";
reg = <0x0 0x20000>;
label = "u-boot";
reg = <0x0 0x20000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ reg = <0x1fc00 0x6>;
+ };
};
partition@20000 {
};
partition@20000 {
@@
-63,9
+70,16
@@
};
radio: partition@7f0000 {
};
radio: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "radio";
reg = <0x7f0000 0x10000>;
label = "radio";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
};
};
};
};
};
@@
-77,9
+91,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&radio 0x0>;
- nvmem-cells = <&macaddr_uboot_1fc00>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&pcie {
};
&pcie {
@@
-96,13
+109,3
@@
ieee80211-freq-limit = <5000000 6000000>;
};
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
-
-&uboot {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_uboot_1fc00: macaddr@1fc00 {
- reg = <0x1fc00 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
index 9f58fb86ee83ceefabe0597d6790ca2a9eee893c..f1a05dac7839618390dc7433d13624751f7d2c6e 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
+++ b/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn530hg4.dts
@@
-72,9
+72,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-134,16
+145,6
@@
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
-
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
index bbb3e01add9673883d3d13fbf26952443b127ff1..5d07db9708a15bc5153ddca72af04f46b9677a3d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
+++ b/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn535k1.dts
@@
-93,13
+93,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
@@
-174,7
+177,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
diff --git
a/target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
b/target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
index ce617198ce9f8dd6df20ea13606aaa0210d8bd44..886de51dae015b16bdfdc464ac0cbf14e721013a 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
+++ b/
target/linux/ramips/dts/mt7620a_wavlink_wl-wn579x3.dts
@@
-121,9
+121,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-201,7
+212,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-210,13
+222,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_wevo_air-duo.dts
b/target/linux/ramips/dts/mt7620a_wevo_air-duo.dts
index 8f7458e976e7d67938c0bf89a4c01cbc5a292bcf..54fcb32c0baf3bdfd6d85423ca0c0aa536b3b1ab 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_wevo_air-duo.dts
+++ b/
target/linux/ramips/dts/mt7620a_wevo_air-duo.dts
@@
-82,13
+82,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
- read-only;
-
- compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
#address-cells = <1>;
#size-cells = <1>;
+ read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
@@
-197,6
+200,6
@@
&wmac {
pinctrl-names = "default";
pinctrl-0 = <&wled_pins>;
&wmac {
pinctrl-names = "default";
pinctrl-0 = <&wled_pins>;
-
-
ralink,mtd-eeprom = <&factory 0x0>
;
+ nvmem-cells = <&eeprom_factory_0>;
+
nvmem-cell-names = "eeprom"
;
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
index 95868c9be99f499a537f9d502c33d2802c6aeb70..b70a95d7769a4c21a7c55fadc7030c0686171d00 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
+++ b/
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts
@@
-98,9
+98,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-144,11
+155,11
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-169,13
+180,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
b/target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
index 5af7b343d9b4d63428a88bd4441d496dc08bc2e4..9e5227d848c7eae4aa2260d957e910ccd05713dd 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_youku_yk-l1.dtsi
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-113,8
+124,8
@@
};
&wmac {
};
&wmac {
-
ralink,mtd-eeprom = <&factory 0x
0>;
-
+
nvmem-cells = <&eeprom_factory_
0>;
+ nvmem-cell-names = "eeprom";
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
@@
-131,13
+142,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
b/target/linux/ramips/dts/mt7620a_yukai_bocco.dts
index 96ef110bdac425c08408967670a05ced9d55c7b2..89b5d0e76d8483673b3de9cedfd81b7ae5c81891 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
+++ b/
target/linux/ramips/dts/mt7620a_yukai_bocco.dts
@@
-103,9
+103,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-143,15
+154,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
index ceb348e1d24e6b4b3cf4ffb99188204060fe1b17..80c4f3640d85c885815881c7059188dd7c26a33b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
+++ b/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-105,11
+116,11
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
pinctrl-names = "default", "pa_gpio";
pinctrl-0 = <&pa_pins>;
pinctrl-1 = <&pa_gpio_pins>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pcie {
};
&pcie {
@@
-130,13
+141,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
index 57f3b4b7a6202415298c5dd01741e955bc7a8ee2..e2f5c28c707db30c6eb10e2adb932af04d62d3ae 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026.dtsi
@@
-53,9
+53,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-92,7
+103,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-101,13
+113,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi
b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi
index 27876fc1408b38691dcc1164f2e5624a6d79eed7..b57e58230c956878f771c6b3891c798c3b8e9a2b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi
+++ b/
target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi
@@
-75,9
+75,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-117,7
+128,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-130,13
+142,3
@@
&pcie {
status = "okay";
};
&pcie {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_zte_q7.dts
b/target/linux/ramips/dts/mt7620a_zte_q7.dts
index c2dc1110082dcc5f815ff9ed1bd154b2a1a92d36..38bd1a4475b2139505223ebb3f80e12ce10b3195 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zte_q7.dts
+++ b/
target/linux/ramips/dts/mt7620a_zte_q7.dts
@@
-69,9
+69,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-98,7
+109,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&sdhci {
};
&sdhci {
@@
-112,13
+124,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
index a79578aa0150b199503c0001665f3142b5219d07..0b93c4ff10d138b99abcae91139efe51fe053528 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
+++ b/
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
@@
-112,9
+112,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-163,7
+174,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-173,13
+185,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
index be1f9ee02687db2b7d0b054a510a6fa220ae2e79..44904d148e69ad0088f3ac582e4d31f0b40042a5 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
+++ b/
target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts
@@
-91,9
+91,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-113,7
+124,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-122,13
+134,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
index ee68ebb2d27da3b12c881076afe091f0b31d4076..eb366ec1715c9e952c73dbafb3dd7d6f1d82f28f 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
+++ b/
target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts
@@
-96,9
+96,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-126,7
+137,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-135,13
+147,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
index 4ecd3204c6111b84787616001fc148b6e2b165e3..8fbf66abc85af3122150d4e268d96383075bbc62 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
+++ b/
target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-102,7
+113,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-111,13
+123,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
index b87e5a3530e522b35ddb6143ff57e5b0577a68c7..6f1a78dc986dda18b3e8d8733a0ab795e8c07bd7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
+++ b/
target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts
@@
-86,9
+86,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-106,7
+117,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-115,13
+127,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
index 9d66b191cb21d76551e8f2319f75aa2351e6abbb..a5f240c4bab17cb9eef1a23ce8fed6eab365e738 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
+++ b/
target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts
@@
-83,9
+83,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-119,7
+130,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-128,13
+140,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
index 14e328842b34155315c7673d6014ec901488395f..215f96f462acc82f07ada0b08d55c0e373e6f1f1 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
+++ b/
target/linux/ramips/dts/mt7620n_kimax_u35wf.dts
@@
-73,9
+73,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-101,7
+112,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-110,13
+122,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
index 1e8fe0d833e96a3ee9abd967035bfa8928d8a035..5324d7dcf04462ef15bf601cd125d4ec18d18722 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
+++ b/
target/linux/ramips/dts/mt7620n_kingston_mlw221.dts
@@
-79,9
+79,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,7
+125,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-123,13
+135,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
index 5a30dee05f3700501c78e3d938fac2d56174137f..ecb0f194873912993d70fcc5c3ce563492a2e069 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
+++ b/
target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts
@@
-79,9
+79,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,7
+125,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-123,13
+135,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
b/target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
index 1fe2cbaabc525472b65690a2454b3bf2e9880f0f..ce14ec3e01e69ef3183e44c23c46d35f2b905c7b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
+++ b/
target/linux/ramips/dts/mt7620n_netgear_n300.dtsi
@@
-57,9
+57,20
@@
};
factory: partition@3f0000 {
};
factory: partition@3f0000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x3f0000 0x10000>;
label = "factory";
reg = <0x3f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
};
};
};
};
};
@@
-73,7
+84,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-82,13
+94,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
b/target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
index 09d70af4c71e1c2b76396cb71164cbe236b7b302..8d6792289cbe80006726da166cf27b38c120b1a2 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
+++ b/
target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
@@
-104,9
+104,16
@@
};
factory: partition@f60000 {
};
factory: partition@f60000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0xf60000 0x10000>;
label = "factory";
reg = <0xf60000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
board_data: partition@f70000 {
};
board_data: partition@f70000 {
@@
-187,9
+194,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
- nvmem-cells = <&macaddr_board_data_b0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_board_data_b0>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&state_default {
};
&state_default {
diff --git
a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
index 7f17f1957f8dfedec784fc70c353207bb2af0154..b6e6d9d263d466d52f837903db5bc92d3c427982 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
+++ b/
target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi
@@
-60,9
+60,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-86,7
+97,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-95,13
+107,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_snr_cpe-w4n-mt.dts
b/target/linux/ramips/dts/mt7620n_snr_cpe-w4n-mt.dts
index 97e604364290ea196d2d52ef85fa51e07806a30f..987869a0f3fb1646b98b2679e0dcb4f793813dd7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_snr_cpe-w4n-mt.dts
+++ b/
target/linux/ramips/dts/mt7620n_snr_cpe-w4n-mt.dts
@@
-91,9
+91,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "Factory";
reg = <0x40000 0x100000>;
label = "Factory";
reg = <0x40000 0x100000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-118,5
+125,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
b/target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
index cd9e6cacce7e1b0be4587dd17caf8c13419bc26a..180d91b2cb41762c965a75d6cd08d88b531d71d7 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
+++ b/
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-128,7
+139,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-137,13
+149,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
index 88a968d33b983d0ae0985ab61aa068b8d0a989df..0cd3c0b186c2dde2fbe00a2a86fcd157704b1c9d 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
+++ b/
target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts
@@
-60,9
+60,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-82,7
+93,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-91,13
+103,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
index 4ab1b818108ec785d2e498109a6ec039ed227b12..d0b4804c199e8fdcea5d9053f438925dd151dd41 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
+++ b/
target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts
@@
-53,9
+53,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-83,7
+94,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-92,13
+104,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
index 8a3e96ff26671385a67b7684bdb5c353773f57cc..9cece28fc03add7c0e2bc15def5ecbdfdcffb658 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts
@@
-76,9
+76,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-106,7
+117,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-115,13
+127,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
index 69d5474bf65ba59cd81ccc6ff3eb2832f197d873..59ae3e7a48b076a0206043ca58f7ebe5d8651003 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts
@@
-84,9
+84,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,7
+125,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-123,13
+135,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
index 7c92f45e7b0c66143d049faa581e5250e8e8634f..acf3501f90365991f150e7ed555102208ef82572 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts
@@
-77,9
+77,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-99,7
+110,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-108,13
+120,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
index 2ac2415736f42271f22ec79620a1ad6d1bf8078e..56a2b53871bd861327a53db861e1cc74f14bf227 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
+++ b/
target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts
@@
-80,9
+80,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-113,7
+124,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-122,13
+134,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-lite-iii-a.dts
b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-lite-iii-a.dts
index 0d1c4696d79472f557797f58e48e495541d3dd30..4c6e2a80bc923df8c0cbb3d367003905ef5cba71 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-lite-iii-a.dts
+++ b/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-lite-iii-a.dts
@@
-108,9
+108,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "RF-EEPROM";
reg = <0x40000 0x10000>;
label = "RF-EEPROM";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-140,5
+147,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
index 917a1934bd3c667ef1c885e71581a79b3aa3be57..94f8a650ae791b0c05e82231890cd7ac5a3e4aa9 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
+++ b/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
@@
-108,9
+108,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-137,7
+148,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-147,13
+159,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
index 9cea6ad667c3d4a8dd6b35d9cfcf16dabb8e1ac0..eb9ca6aba2b2aa0ef078fc5b3000200cc1ac71fe 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
+++ b/
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
@@
-108,9
+108,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-137,7
+148,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-147,13
+159,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
index 932c36c629163840386f2280fce6d418f6a2f1b1..b6db48a347ac973231d0f62e7bfa54cdab574ba6 100644
(file)
--- a/
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
+++ b/
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
@@
-144,6
+144,10
@@
reg = <0x0 0x400>;
};
reg = <0x0 0x400>;
};
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
@@
-172,7
+176,8
@@
&pcie0 {
rt5592@0,0 {
reg = <0x0000 0 0 0 0>;
&pcie0 {
rt5592@0,0 {
reg = <0x0000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
};
};
diff --git
a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
index 52d56466106d6c90aa03341eacfabf4655569448..23e4db3aec86e6c557db4849b3bca7177f8e6ab5 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
+++ b/
target/linux/ramips/dts/rt2880_airlink101_ar670w.dts
@@
-31,9
+31,20
@@
};
factory: partition@30000 {
};
factory: partition@30000 {
-
reg = <0x30000 0x10000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_2000: eeprom@2000 {
+ reg = <0x2000 0x200>;
+ };
+
+ macaddr_factory_2004: macaddr@2004 {
+ reg = <0x2004 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-105,15
+116,6
@@
&wmac {
status = "okay";
&wmac {
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>;
- };
+ nvmem-cells = <&eeprom_factory_2000>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
index bb3795aafac80d3ea8f6d4630adae67915213117..8f1c07008a507a23ed43e397a9bb7aabf96eb9b5 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
+++ b/
target/linux/ramips/dts/rt2880_airlink101_ar725w.dts
@@
-36,9
+36,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x40000 0x10000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-115,15
+126,6
@@
&wmac {
status = "okay";
&wmac {
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>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts
b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts
index 3bf3e21a4702ac47084025b1507f4382466f4d11..e7c5f276fa330e95ba95405148f96984b287fe3e 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
+++ b/
target/linux/ramips/dts/rt2880_asus_rt-n15.dts
@@
-40,9
+40,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-113,15
+124,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
index 59cc965f23d45756e8f13fbbfc66120397869d80..02c3f3c33515b27f28da7992b20175deb793fd6b 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
+++ b/
target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-234,15
+245,6
@@
&wmac {
status = "okay";
&wmac {
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>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
index 1bab37fc5eac37e930b5d56986a92ca429990848..e02296cd5ae76136dba8ecd45648eb435d34994f 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
+++ b/
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
@@
-40,9
+40,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-116,15
+127,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
index b3ada11220ae0f342c5bbc50e03f3f254db89433..4665878d4b24bbdf407af1f0aaa421618098de16 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
+++ b/
target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts
@@
-40,9
+40,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-138,15
+149,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
index ff714d12730bf8b5a33a88c37f4dc8e7cec30556..ade64b3f46c07b0bb3e0acb033dbe3ddf0867f81 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
+++ b/
target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts
@@
-32,9
+32,20
@@
};
factory: partition@30000 {
};
factory: partition@30000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x30000 0x10000>;
label = "factory";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_2000: eeprom@2000 {
+ reg = <0x2000 0x200>;
+ };
+
+ macaddr_factory_2004: macaddr@2004 {
+ reg = <0x2004 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-138,15
+149,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x2000>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_2004: macaddr@2004 {
- reg = <0x2004 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_2000>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts
b/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts
index 39045bf0267806ee6ba066ebabf7bbce7f30165a..5d518df2528e0f959b0f0c9696f2f44cdf45d89b 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts
+++ b/
target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts
@@
-37,9
+37,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x00040000 0x00010000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-80,5
+87,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_8devices_carambola.dts
b/target/linux/ramips/dts/rt3050_8devices_carambola.dts
index 820bbd3e99e37ec3838bde484f76e9c507c700a1..3aa148285a3dc7bbd1adaee51ce930cd12cabf4f 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_8devices_carambola.dts
+++ b/
target/linux/ramips/dts/rt3050_8devices_carambola.dts
@@
-35,9
+35,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-72,19
+83,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi
b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi
index 13933e335c3e14fcaed7872ca674fb5c85d3b3cb..f7ee55cec8fef150d4bbcbecf2edce774036683a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi
+++ b/
target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi
@@
-63,9
+63,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-94,15
+105,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts
b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts
index 52b8668be926dfb8dcaa986c2ca41a94f51b021d..913c29519a5c3aff0a1cc39ec5d32c033d91edd2 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts
+++ b/
target/linux/ramips/dts/rt3050_alphanetworks_asl26555-16m.dts
@@
-55,9
+55,20
@@
};
devdata: partition@ff0000 {
};
devdata: partition@ff0000 {
+ compatible = "nvmem-cells";
label = "devdata";
reg = <0xff0000 0x10000>;
label = "devdata";
reg = <0xff0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
};
};
};
};
};
@@
-67,13
+78,3
@@
nvmem-cells = <&macaddr_devdata_4004>;
nvmem-cell-names = "mac-address";
};
nvmem-cells = <&macaddr_devdata_4004>;
nvmem-cell-names = "mac-address";
};
-
-&devdata {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devdata_4004: macaddr@4004 {
- reg = <0x4004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts
b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts
index 4e03f7beb74ee8be5ee2f176b5a3113a011445e7..76ca0bf83b9fcc69611aec570c610d089e28ffda 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts
+++ b/
target/linux/ramips/dts/rt3050_alphanetworks_asl26555-8m.dts
@@
-25,9
+25,20
@@
};
devdata: partition@30000 {
};
devdata: partition@30000 {
+ compatible = "nvmem-cells";
label = "uboot-env";
reg = <0x30000 0x10000>;
label = "uboot-env";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-61,13
+72,3
@@
nvmem-cells = <&macaddr_devdata_4004>;
nvmem-cell-names = "mac-address";
};
nvmem-cells = <&macaddr_devdata_4004>;
nvmem-cell-names = "mac-address";
};
-
-&devdata {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devdata_4004: macaddr@4004 {
- reg = <0x4004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi
b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi
index 6cd75da68bf1300e9975dbd563b60fb24f171cd8..41985278632a0da8bad8c2265bdc74aa1f24eade 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi
+++ b/
target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi
@@
-89,7
+89,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x4000>;
+ nvmem-cells = <&eeprom_devdata_4000>;
+ nvmem-cell-names = "eeprom";
};
&otg {
};
&otg {
diff --git
a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
index 036d3105610555015484b32670c83d460feb705a..ecce4335ff0f84cfa3ca14f1482a4e84c3932f72 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
+++ b/
target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts
@@
-35,9
+35,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-103,19
+114,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
b/target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
index 0d4d8f4cfd5560929f3d666917b2b5e070bbb765..5817eae817464b3efc2f57cfe86a302fd234739b 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_rt-g32-b1.dts
@@
-51,9
+51,20
@@
};
devconf: partition@40000 {
};
devconf: partition@40000 {
+ compatible = "nvmem-cells";
label = "devconf";
reg = <0x40000 0x10000>;
label = "devconf";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devconf_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_devconf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-82,15
+93,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devconf 0x0>;
-};
-
-&devconf {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devconf_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_devconf_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
index af6ebf00628f90adcc5763cd1b02a5524cc67ee7..1154d205b76e1cf934b277f07267f10b3a348191 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts
@@
-38,9
+38,20
@@
};
devconf: partition@40000 {
};
devconf: partition@40000 {
+ compatible = "nvmem-cells";
label = "devconf";
reg = <0x40000 0x10000>;
label = "devconf";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devconf_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_devconf_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-88,15
+99,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devconf 0x0>;
-};
-
-&devconf {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devconf_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_devconf_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts
index 2202cf3127d92ce0c7ce358475fea95f9592c269..4f137115ec9e2e61caa470c78d806f51949795bc 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_wl-330n.dts
@@
-72,9
+72,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-103,15
+114,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
index 4b9add1fda56fc57f24c755c73d86767e38a92c3..27fe5ba23f14e11e3ee554f1926facd52eb35a02 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
+++ b/
target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts
@@
-77,9
+77,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-108,19
+119,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
index 6620b1e858420dba628fcd44ce7c2ff7bfbafa24..508f90801895acd86243826942799125defc0b33 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dcs-930.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-105,19
+116,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
index e1397d92f919211cf6278ddb56419694e77b4331..183dc17868d981a15d2253d738356f8e24393d1a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts
@@
-32,9
+32,20
@@
};
devdata: partition@30000 {
};
devdata: partition@30000 {
+ compatible = "nvmem-cells";
label = "devdata";
reg = <0x30000 0x10000>;
label = "devdata";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-115,15
+126,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x4000>;
-};
-
-&devdata {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devdata_4004: macaddr@4004 {
- reg = <0x4004 0x6>;
- };
+ nvmem-cells = <&eeprom_devdata_4000>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
index b0f734e4e06a88d9c573957d8099490cb254d2c5..bc3d5646a88611ed796df002a3bfa13289ae440a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts
@@
-32,9
+32,20
@@
};
devdata: partition@30000 {
};
devdata: partition@30000 {
+ compatible = "nvmem-cells";
label = "devdata";
reg = <0x30000 0x10000>;
label = "devdata";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
factory: partition@40000 {
};
factory: partition@40000 {
@@
-115,15
+126,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x4000>;
-};
-
-&devdata {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devdata_4004: macaddr@4004 {
- reg = <0x4004 0x6>;
- };
+ nvmem-cells = <&eeprom_devdata_4000>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
index e84c9d9cb78a6713e53eed2f8d4381880f1ab67f..4fe519780dc062253c42d682df2ef9a604c9a43a 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts
@@
-33,9
+33,16
@@
};
devdata: partition@30000 {
};
devdata: partition@30000 {
+ compatible = "nvmem-cells";
label = "devdata";
reg = <0x30000 0x10000>;
label = "devdata";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-105,7
+112,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x4000>;
+ nvmem-cells = <&eeprom_devdata_4000>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
diff --git
a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
index 4580a070633093bae9051a8114d33fff1d6f6d31..7b9b32838839ac5a4e0adece3e879a27c43e1649 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
+++ b/
target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-120,19
+131,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
index c8f3951384d504d0a8608f91cb7769bbd024a000..e6682cf9dc559932de31002f29a55a540d08033c 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
+++ b/
target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts
@@
-39,9
+39,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@3e0000 {
};
partition@3e0000 {
@@
-116,19
+127,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
index 3767afb4527c9b961329095dc368320da854d97a..5eee298d8e6b5dbf6c51a8a2f624bbc911ddfea6 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
+++ b/
target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
@@
-39,9
+39,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@3e0000 {
};
partition@3e0000 {
@@
-103,19
+114,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_huawei_d105.dts
b/target/linux/ramips/dts/rt3050_huawei_d105.dts
index 05d3847e71e60309f5c004ea879089e1f47257f2..4333ed0a224929fc70420e0a64d27e2e9a76ca5f 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_huawei_d105.dts
+++ b/
target/linux/ramips/dts/rt3050_huawei_d105.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-96,19
+107,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
index f449b0d0f8027a46ef9caf5947554d2679a6b2a6..384e1467c234303bc211f8ce97a2190ccd617291 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
+++ b/
target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts
@@
-68,9
+68,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-92,15
+103,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_netcore_nw718.dts
b/target/linux/ramips/dts/rt3050_netcore_nw718.dts
index f9fda94ec0d744f15077d400976c3e8810d8e6a9..810fb1a25800359633077aad882ab6a2c5a0cfb3 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_netcore_nw718.dts
+++ b/
target/linux/ramips/dts/rt3050_netcore_nw718.dts
@@
-79,9
+79,20
@@
};
factory: partition@50000 {
};
factory: partition@50000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x50000 0x10000>;
label = "factory";
reg = <0x50000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@60000 {
};
partition@60000 {
@@
-110,19
+121,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
index c00feb42889604de1c980451d8a5bdb8f75e4566..23d1546c8196f10960187f928f928548c6ac126b 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
+++ b/
target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-102,19
+113,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
index 6be2590a0cda2e33d3875b87c7cb1f29e2ffc49a..c8d51b3f02ab7a24fd4e2e881390da2b3eac7141 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
+++ b/
target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts
@@
-70,9
+70,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-101,19
+112,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3050_tenda_w150m.dts
b/target/linux/ramips/dts/rt3050_tenda_w150m.dts
index b921b7d1788de3e76f2a62acab37e210e9fb88ee..762043f423b5f865e95d3a88311a0654e6013f04 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_tenda_w150m.dts
+++ b/
target/linux/ramips/dts/rt3050_tenda_w150m.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-120,15
+131,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
index 36171ae591c05ca527af053f1625ece36ac6504d..ed1c05a6c9729bedd8a5cfcec66b56b18be41b43 100644
(file)
--- a/
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
+++ b/
target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,15
+111,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_accton_wr6202.dts
b/target/linux/ramips/dts/rt3052_accton_wr6202.dts
index a1c179c286bc3164d71486475cb324919ded6c3f..98b0e831aac3f000595130f0314685e523503268 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_accton_wr6202.dts
+++ b/
target/linux/ramips/dts/rt3052_accton_wr6202.dts
@@
-66,9
+66,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-108,19
+119,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
index 97b37706fbdc32747f60d7eaa3119b18d0b1fd60..33f5474f708144809b7d849f86610c6bed6bd556 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
+++ b/
target/linux/ramips/dts/rt3052_alfa-network_w502u.dts
@@
-42,9
+42,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-106,19
+117,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts
index dffa5beefa762ab3088e80315c389c88f957d0be..0f15ac4ea693fc66d8474d7901a4004cd3b3928c 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
+++ b/
target/linux/ramips/dts/rt3052_argus_atp-52b.dts
@@
-37,8
+37,19
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-98,19
+109,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
index 5d73043425b6c68e297a5c926c098b105d8030f6..9550029cca285b0dbb7bca7e25bae9e2203c1120 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
+++ b/
target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts
@@
-61,9
+61,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-87,5
+94,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
index cbd586232e0dc87b4cba5466b52e2ab32df27644..97a8dda2419171928d3bd04ac822eaed6352bfb5 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
+++ b/
target/linux/ramips/dts/rt3052_asus_rt-n13u.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,19
+111,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
index ada957fc52887e8ed0ca35737ed1d7804b904825..bee541885a8e19fe0b4a8135585b8cd1e4ba08f6 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
+++ b/
target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-118,19
+129,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
index c547c9df69a32ac67e70f0b4acc4863a4638ab3f..57d070b833d6af85af070d293c10da4656fa339a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
+++ b/
target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-118,19
+129,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
index 444a5af4f53fef0a4c4b6630e59c6edce3943b0f..55eba3bc0a590d71af1c7aab993343b6102486cc 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
+++ b/
target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts
@@
-26,9
+26,20
@@
#size-cells = <1>;
uboot: partition@0 {
#size-cells = <1>;
uboot: partition@0 {
+ compatible = "nvmem-cells";
label = "uboot";
reg = <0x0 0x50000>;
label = "uboot";
reg = <0x0 0x50000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_uboot_40000: eeprom@40000 {
+ reg = <0x40000 0x200>;
+ };
+
+ macaddr_uboot_40004: macaddr@40004 {
+ reg = <0x40004 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-135,19
+146,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&uboot 0x40000>;
+ nvmem-cells = <&eeprom_uboot_40000>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&uboot {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_uboot_40004: macaddr@40004 {
- reg = <0x40004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
index 5d61c757754605a7b8669314a888d3947a4a4872..0ff041da3338a32be786364cade39c4b56d591ce 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
+++ b/
target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts
@@
-37,9
+37,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-122,15
+133,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
index e33a7ef5b5eb67b7ed0976259449732af8baf37d..9902e0b5b5799090f24df65878ed9d1ed217f89a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
+++ b/
target/linux/ramips/dts/rt3052_dlink_dap-1350.dts
@@
-36,9
+36,20
@@
};
devdata: partition@30000 {
};
devdata: partition@30000 {
+ compatible = "nvmem-cells";
label = "devdata";
reg = <0x30000 0x10000>;
label = "devdata";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_devdata_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-127,19
+138,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x0>;
+ nvmem-cells = <&eeprom_devdata_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&devdata {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devdata_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
index 4501a44c41ff10cc688bafd2eced9e66132237f4..889a276e2b3c5e0853ad1935c062a580cc41d65b 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
+++ b/
target/linux/ramips/dts/rt3052_engenius_esr-9753.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,15
+111,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
index b9fb232aa121f55c19503572cff5d70324b981f6..d77284e16396d968f02dcb5537eee946b6996ad0 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
+++ b/
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-146,19
+157,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
index 9d5d4ceb1e96e90436135a209807d5cabeccd97b..27506604a5496b7cc22788b20c85c878d97c6585 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
+++ b/
target/linux/ramips/dts/rt3052_hauppauge_broadway.dts
@@
-31,9
+31,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-89,19
+100,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts
b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts
index 1cb19d018469e43b2ff1690d5abd1f4927b3457c..2018062143f671038d4a97500c1fe36c465da101 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
+++ b/
target/linux/ramips/dts/rt3052_huawei_hg255d.dts
@@
-38,9
+38,20
@@
};
factory: partition@60000 {
};
factory: partition@60000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x60000 0x20000>;
label = "factory";
reg = <0x60000 0x20000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@80000 {
};
partition@80000 {
@@
-134,19
+145,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
index 0641a4e796839f51dedac71351e07bc8c6677aa5..fff1f2b0b584c1cf101a77bba827c92c15e3fbf6 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
+++ b/
target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-87,15
+98,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
index 6573159985e40cdd10066e0daa6a82b2be01efd9..8b92d79672f3b616ab53a82e7e47ec5a79d35fdc 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
+++ b/
target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-133,15
+144,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_2e: macaddr@2e {
- reg = <0x2e 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts
b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts
index 245f01c79777b0ec0ed78c83f92332858a4b8c87..d5ab080ed51290862204c05ed6fac505b0ed0466 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts
+++ b/
target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts
@@
-38,9
+38,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,7
+121,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
};
&otg {
diff --git
a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
index c65fc100d8cd612594933e3450850c6d6c93c7bf..5842515e7a5b336163c7ae1de6d1032ad09a0edb 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
+++ b/
target/linux/ramips/dts/rt3052_netgear_wnce2001.dts
@@
-92,9
+92,20
@@
};
factory: partition@30000 {
};
factory: partition@30000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x30000 0x10000>;
label = "factory";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@40000 {
};
partition@40000 {
@@
-142,15
+153,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts
b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts
index c72d9372a548c0853fb7ba5104e837176b72a298..21e70d394e31a10fe8d3b7a1e62c8bbb527b027f 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
+++ b/
target/linux/ramips/dts/rt3052_nexaira_bc2.dts
@@
-31,9
+31,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-84,19
+95,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
index 4399467b290af34774338ad1fd3b812403551f43..caa374ceb1ef39347af0ee9f8824113e35d0abee 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
+++ b/
target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts
@@
-63,9
+63,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-94,19
+105,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
index ec46584381c65153e5b6542f44d2819f3b3b278d..d88892f2fafa593edc59db8f61cba51ce663f7bc 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
+++ b/
target/linux/ramips/dts/rt3052_petatel_psr-680w.dts
@@
-42,9
+42,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-93,19
+104,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
index 779443e70e2c90b480e429d31cbea414bacb6c83..1beed599e17852be697357b4d6799ea870c573da 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
+++ b/
target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@3e0000 {
};
partition@3e0000 {
@@
-117,15
+128,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
b/target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
index 7e6d47cc0214b3cc9d4847d90a812dda3e24c52a..815fd9e4ef16106ab36a6ce569275ed414b3c680 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
+++ b/
target/linux/ramips/dts/rt3052_planex_mzk-wdpr.dts
@@
-35,9
+35,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@7f0000 {
};
partition@7f0000 {
@@
-82,19
+93,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts
b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts
index 312007c68f07688cac1812fe04065102f25e4543..1b30dc9dd0a10cb1956d37e2b6e10c173f888f70 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_prolink_pwh2004.dts
+++ b/
target/linux/ramips/dts/rt3052_prolink_pwh2004.dts
@@
-38,9
+38,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-89,5
+96,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts
b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts
index 2689febf7fc33ac7954c6921a29f90cb01f8aa47..6f08cecacb037ff125c858c35c596141c0588a7c 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts
+++ b/
target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts
@@
-38,9
+38,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-95,7
+102,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
};
&otg {
diff --git
a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
index 13f1ae4e59d1fa0e08d7529214354e98a7ca9a1a..6abaa8e887aeafc36cd6b3fc5992df8a9ec7193c 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
+++ b/
target/linux/ramips/dts/rt3052_sitecom_wl-351.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-122,19
+133,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
index c897aac7c49b73f58786751be202d103c40db2da..31214361f608315173e83a3c051ec5a248d62777 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
+++ b/
target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-95,19
+106,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts
b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts
index 4ae42d71a58103ed15ffed2a68b28ce5a36ecb4a..577afd3a5c2143dac9cef60d1bd3fd88b049bd99 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
+++ b/
target/linux/ramips/dts/rt3052_tenda_3g300m.dts
@@
-94,9
+94,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-125,19
+136,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
index 8a60184959f21df5ba2fd414f47477c48bd4cc1f..ae998a27222613dc6166292c5db1b2a970f03219 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
+++ b/
target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-94,15
+105,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts
b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts
index eee3ac9552db01f2c17f82f8460886eebeec063e..ecc17fad4078a6a4bb45c8a6da732f5b999248c4 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts
+++ b/
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-4m.dts
@@
-28,9
+28,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
diff --git
a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts
b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts
index 99693865cbc73b53006b400ae7136b8145418b16..eb04e4662c3412e83cb6a5055f7bad435e36be61 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts
+++ b/
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn-8m.dts
@@
-28,9
+28,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
diff --git
a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi
b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi
index dad0da16d54e798ec209645315406418bd792f22..869cf32d787931092b264ff7a0da5b5e80d40326 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi
+++ b/
target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi
@@
-72,7
+72,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
};
&otg {
diff --git
a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
index 88c4c1fc8928a311cea89d09cb75c6ae5c7b1cbb..3d2d8686e62882d23663c6063d245cd595896639 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
+++ b/
target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-94,19
+105,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
index 211db1cbaba395cebee1a9e85fc2b034c45a4c1e..d3234bd9a333620768063cc1d39b0d7aeea6f094 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
+++ b/
target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-115,19
+126,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4004: macaddr@4004 {
- reg = <0x4004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
index 735f59f06706a3a942a758b86a90eab990e98314..0dffdddeb68d96b3b47238c6c604cd1f092e128f 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
+++ b/
target/linux/ramips/dts/rt3052_upvel_ur-336un.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-115,19
+126,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4004: macaddr@4004 {
- reg = <0x4004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
index c2f44ee5653620a77e0d11e04fcefc58c74d0eab..92d4304668ee8f26a7e357958ac26e6cc3ce799b 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
+++ b/
target/linux/ramips/dts/rt3052_zyxel_keenetic.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,19
+125,10
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
index c5990977dc572f94749e5ef228c5baa63f35d909..65446842bb17346b3fc273210d3821c06293053a 100644
(file)
--- a/
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
+++ b/
target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts
@@
-38,9
+38,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,15
+111,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3352_allnet_all5002.dts
b/target/linux/ramips/dts/rt3352_allnet_all5002.dts
index 28c677041a583e2db11832f63c10325ce9acc3d4..a1133464b37f2ec6ad40a0bbc83e36d6c22212b3 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_allnet_all5002.dts
+++ b/
target/linux/ramips/dts/rt3352_allnet_all5002.dts
@@
-69,9
+69,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,7
+111,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-110,13
+122,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
index 01393c2383b6bd51b7c52d0ecddc4f7e7493d20c..a8f1f0cd71bfd55ea65985fba86c32b541d39776 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
+++ b/
target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts
@@
-89,9
+89,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-122,15
+133,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
index bb36279016473e96383ba0da446c4a902f331a20..7d78ed333dff5fcc336283d188ee5822c909e852 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
+++ b/
target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts
@@
-66,9
+66,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-99,7
+110,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-109,13
+121,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3352_zte_mf283plus.dts
b/target/linux/ramips/dts/rt3352_zte_mf283plus.dts
index b733d68586e24f982103bb27ab6be059c41d1161..9108fc9b8cb295f76f0b6ed7e026d57941e962a7 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
+++ b/
target/linux/ramips/dts/rt3352_zte_mf283plus.dts
@@
-85,9
+85,20
@@
};
factory: partition@70000 {
};
factory: partition@70000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x70000 0x10000>;
label = "factory";
reg = <0x70000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@80000 {
};
partition@80000 {
@@
-120,7
+131,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-130,13
+142,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
index 8b7c47e88b57cea233203c8518961fd7b17cd74c..322609b958236b7c2ce61a8bd6109f8ff7d32bf1 100644
(file)
--- a/
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
+++ b/
target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts
@@
-83,9
+83,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,7
+125,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-124,13
+136,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
index 38191d2643a0aadd33dddb1ea8db6f831d1279ed..62b84207bd0f4f40b0c2c58cbea0c6f36699a4d3 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
+++ b/
target/linux/ramips/dts/rt3662_asus_rt-n56u.dts
@@
-37,9
+37,24
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x00040000 0x00010000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-129,14
+144,16
@@
wifi@0,0 {
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
wifi@0,0 {
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
&wmac {
status = "okay";
ralink,2ghz = <0>;
};
};
&wmac {
status = "okay";
ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-146,13
+163,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts
b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts
index b02c6b692af8f64689768f27e3c4cbee81e01344..8aad9974b50d291fadb7057d446b5f1baf49c97b 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
+++ b/
target/linux/ramips/dts/rt3662_dlink_dir-645.dts
@@
-94,9
+94,20
@@
};
factory: partition@34000 {
};
factory: partition@34000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x34000 0x4000>;
label = "factory";
reg = <0x34000 0x4000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@38000 {
};
partition@38000 {
@@
-137,7
+148,8
@@
&wmac {
ralink,5ghz = <0>;
&wmac {
ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-147,13
+159,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
index fc3a5549f207225434257c833315d72b83ef39a0..b9b44bd512830e8cceadedf01e3762c5954460c9 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
+++ b/
target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts
@@
-75,15
+75,33
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x00040000 0x00010000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
devdata: partition@50000 {
};
devdata: partition@50000 {
-
reg = <0x00050000 0x00020000>
;
+
compatible = "nvmem-cells"
;
label = "devdata";
label = "devdata";
+ reg = <0x00050000 0x00020000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ macaddr_devdata_d: macaddr@d {
+ reg = <0xd 0x6>;
+ };
};
partition@70000 {
};
partition@70000 {
@@
-149,7
+167,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pci {
};
&pci {
@@
-163,7
+182,8
@@
compatible = "pci0,0";
reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
compatible = "pci0,0";
reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
};
};
@@
-174,13
+194,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&devdata {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devdata_d: macaddr@d {
- reg = <0xd 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3662_engenius_esr600h.dts
b/target/linux/ramips/dts/rt3662_engenius_esr600h.dts
index cce44ed4c3aaeb02e38e6ff15d35e94972b4e5a5..6f0d633f97275c0de0b3e0d573e3a1535f708908 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_engenius_esr600h.dts
+++ b/
target/linux/ramips/dts/rt3662_engenius_esr600h.dts
@@
-89,9
+89,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-151,7
+162,8
@@
compatible = "pci1814,3091";
reg = <0x0 1 0 0 0>;
ralink,5ghz = <0>;
compatible = "pci1814,3091";
reg = <0x0 1 0 0 0>;
ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
};
};
@@
-159,7
+171,8
@@
status = "okay";
ralink,2ghz = <0>;
status = "okay";
ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
diff --git
a/target/linux/ramips/dts/rt3662_loewe_wmdr-143n.dts
b/target/linux/ramips/dts/rt3662_loewe_wmdr-143n.dts
index 2501c1725154ad337798fb0367598cce238ebb22..dfcdb760884082ab2aace10fb74d54cd83b1a748 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_loewe_wmdr-143n.dts
+++ b/
target/linux/ramips/dts/rt3662_loewe_wmdr-143n.dts
@@
-31,9
+31,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-62,5
+69,6
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt3662_omnima_hpm.dts
b/target/linux/ramips/dts/rt3662_omnima_hpm.dts
index 84ca468e3d2a5894ed5abd2bc72ff8be02acde38..644cc557b9c0c9fd33f85c158a50f1868c30bd5b 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_omnima_hpm.dts
+++ b/
target/linux/ramips/dts/rt3662_omnima_hpm.dts
@@
-110,9
+110,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x00040000 0x00010000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-147,7
+158,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-157,13
+169,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts
b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts
index ad417856b3a81a70229564bf9599d31d287840bd..7d1d8ef5539a91312c5a3ac4ef10242372812ca4 100644
(file)
--- a/
target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts
+++ b/
target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts
@@
-37,9
+37,20
@@
};
factory: partition@34000 {
};
factory: partition@34000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x34000 0x4000>;
label = "factory";
reg = <0x34000 0x4000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_2000: eeprom@2000 {
+ reg = <0x2000 0x200>;
+ };
};
partition@38000 {
};
partition@38000 {
@@
-135,14
+146,16
@@
wifi@0,0 {
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
wifi@0,0 {
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x2000>;
+ nvmem-cells = <&eeprom_factory_2000>;
+ nvmem-cell-names = "eeprom";
};
};
&wmac {
status = "okay";
ralink,2ghz = <0>;
};
};
&wmac {
status = "okay";
ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
diff --git
a/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
b/target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
index 0b2c7602d1c6b1c041c5bace129164b4308bbbf0..c6213a6b17bf16265735b965d73f6a1d58044df1 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
+++ b/
target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi
@@
-42,9
+42,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-78,7
+89,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&pci {
};
&pci {
@@
-92,7
+104,8
@@
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
};
};
diff --git
a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
index fc437c1f62c860f9a3b6483e90225978a7cfe1fa..03f7cae6a5db2ead4bb5e297c1467f2937bb2a7b 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
+++ b/
target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts
@@
-122,9
+122,24
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+
+ macaddr_factory_8004: macaddr@8004 {
+ reg = <0x8004 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-164,14
+179,16
@@
wifi@0,0 {
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
wifi@0,0 {
compatible = "pci1814,3091";
reg = <0x10000 0 0 0 0>;
- ralink,mtd-eeprom = <&factory 0x8000>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
};
};
&wmac {
status = "okay";
ralink,2ghz = <0>;
};
};
&wmac {
status = "okay";
ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {
@@
-181,13
+198,3
@@
&ohci {
status = "okay";
};
&ohci {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_8004: macaddr@8004 {
- reg = <0x8004 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
index fe503289a3d6259d4b93fe154ef7dce8416f57ef..112e5a6fbc8742f74b6f6d81e602d8c9e9a14d6a 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
+++ b/
target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
@@
-37,9
+37,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x00040000 0x00010000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-115,19
+126,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
ralink,5ghz = <0>;
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&
eeprom_factory_0>, <&
macaddr_factory_4>;
+ nvmem-cell-names = "
eeprom", "
mac-address";
mac-address-increment = <1>;
};
mac-address-increment = <1>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
index 26c8dfe2f295098a25d910e90285446732c8bfd4..680a0e06fe827cf3963bc13a3c390d08ec8d55c0 100644
(file)
--- a/
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
+++ b/
target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts
@@
-37,9
+37,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
reg = <0x00040000 0x00010000>
;
+
compatible = "nvmem-cells"
;
label = "factory";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-141,19
+152,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
ralink,5ghz = <0>;
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&
eeprom_factory_0>, <&
macaddr_factory_4>;
+ nvmem-cell-names = "
eeprom", "
mac-address";
mac-address-increment = <3>;
};
mac-address-increment = <3>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi
b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi
index 2d43e0a30d1f0e8b9b7f563e07012fa1f8ecf3f5..e64437cd94323da6d41fa930e050a9b8c45360ab 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_7links_px-4885.dtsi
+++ b/
target/linux/ramips/dts/rt5350_7links_px-4885.dtsi
@@
-67,9
+67,20
@@
};
devconf: partition@40000 {
};
devconf: partition@40000 {
+ compatible = "nvmem-cells";
label = "devconf";
reg = <0x40000 0x10000>;
label = "devconf";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devconf_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_devconf_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-98,15
+109,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&devconf 0x0>;
-};
-
-&devconf {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_devconf_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_devconf_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts
b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts
index 0082af958dc802e39172811b2adeb34e9e6f537e..fd4524f0fc94bba5f9d8fd37ba309e432bd46718 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
+++ b/
target/linux/ramips/dts/rt5350_airlive_air3gii.dts
@@
-61,9
+61,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-92,15
+103,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_allnet_all5003.dts
b/target/linux/ramips/dts/rt5350_allnet_all5003.dts
index e4e0ef1b62a475b0320974f0133916e20b7a9cf6..2db37120e9baf5d65fd05e40ceb2caba2b2d9f69 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_allnet_all5003.dts
+++ b/
target/linux/ramips/dts/rt5350_allnet_all5003.dts
@@
-69,9
+69,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,15
+111,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi
b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi
index 18e59431fbacf817c138d8734b84c2743f040af9..1bd7310d5a0ba199927a5c8157de5918da2d19bc 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi
+++ b/
target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi
@@
-69,9
+69,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-89,7
+100,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-102,13
+114,3
@@
&esw {
mediatek,portmap = <0x3f>;
};
&esw {
mediatek,portmap = <0x3f>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts
b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts
index e3691b75bdb47e6d81dbf7cb0c76fc0c9599992d..1a218e4f6cb69382d519c92a22ad83ad7d751fa0 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_belkin_f7c027.dts
+++ b/
target/linux/ramips/dts/rt5350_belkin_f7c027.dts
@@
-88,9
+88,16
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-128,7
+135,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
index 5b504bea650d6de0ce712dc61e842752637fba1a..1b1b02bb46389067e8239a51632cb86872160a1a 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts
@@
-72,9
+72,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-103,15
+114,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
index 62c68a3fc2a417fa2746509e015621a76039bf4a..00f4bd0d2c4ac14fb05f34272dec0c19fa7a783a 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts
@@
-72,9
+72,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-106,15
+117,6
@@
&wmac {
status = "okay";
ralink,led-polarity = <1>;
&wmac {
status = "okay";
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>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
index 5c5517ccb2931af9cc91079cd4af434ac7522b3b..8a1b4fe4b0fd22fdd8ea6f3dfb3f164eeaf12b21 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts
@@
-94,9
+94,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-126,15
+137,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
index 261346ce867d764a5578e8b987d2f8ce4f4c6fe2..780e92439b12a90bd8f2e2c93d0c9209c8a05ae5 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts
@@
-66,9
+66,20
@@
};
devdata: partition@30000 {
};
devdata: partition@30000 {
+ compatible = "nvmem-cells";
label = "devdata";
reg = <0x30000 0x10000>;
label = "devdata";
reg = <0x30000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
+
+ macaddr_devdata_4004: macaddr@4004 {
+ reg = <0x4004 0x6>;
+ };
};
factory: partition@40000 {
};
factory: partition@40000 {
@@
-107,15
+118,6
@@
&wmac {
status = "okay";
ralink,led-polarity = <1>;
&wmac {
status = "okay";
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>;
- };
+ nvmem-cells = <&eeprom_devdata_4000>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
index 7bb1d81abf9623735c98a7377ae4092edfb4ca7d..acf03bb732b2f5d0100474f095a68b739d7a606d 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
+++ b/
target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts
@@
-103,8
+103,19
@@
};
config: partition@7f0000 {
};
config: partition@7f0000 {
+ compatible = "nvmem-cells";
label = "config";
reg = <0x7f0000 0x10000>;
label = "config";
reg = <0x7f0000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e07e: macaddr@e07e {
+ reg = <0xe07e 0x6>;
+ };
+
+ eeprom_config_e08a: eeprom@e08a {
+ reg = <0xe08a 0x200>;
+ };
};
};
};
};
};
};
@@
-140,18
+151,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&config 0xe08a>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
- 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>;
- };
+ nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
b/target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
index 1b80382f6811595d468f08bc80e5872f989a0338..a83f5cf89bae67f23438fbd2513884695e7dabca 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
+++ b/
target/linux/ramips/dts/rt5350_easyacc_wizard-8800.dts
@@
-31,9
+31,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-62,15
+73,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
index a246c22c21527194b89db4041504911f8dec4681..f29c307c8296dacc5a683572d6909834e7f282d7 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
+++ b/
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
@@
-83,9
+83,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,15
+125,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
index 710fd2d6be28b81a969a20d82e2ac1157c68022d..129dc1ceefdbccd4008093b152aab4d8900acec1 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
+++ b/
target/linux/ramips/dts/rt5350_hame_mpr-a2.dts
@@
-83,9
+83,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-115,15
+126,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
b/target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
index 7dc56673a0496de5cae34bd00a8d64dd195d1ebb..c4f785d0308ba77b7be358595441909cc71307c2 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
+++ b/
target/linux/ramips/dts/rt5350_hilink_hlk-rm04.dts
@@
-76,9
+76,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-108,15
+119,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
index 387e4adfdc170ca99ea41d4e9d12413d06c06ad4..ce3f20fca97b110fde7acdda5c24e6cc7cb14dac 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
+++ b/
target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts
@@
-73,9
+73,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-105,15
+116,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts
b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts
index 8df91594b7e02538678a2c7843078384cb1b1ed7..b2368e4dcd303b834a068eb069e3182984d07e79 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
+++ b/
target/linux/ramips/dts/rt5350_intenso_memory2move.dts
@@
-76,9
+76,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-107,15
+118,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_28: macaddr@28 {
- reg = <0x28 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi
b/target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi
index 9783e5a7e5ab36770a0f44aac7ace80b64cc07b6..99ab0a939c15cc7d5c5c438cfd27d2c84721c0c6 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi
+++ b/
target/linux/ramips/dts/rt5350_nexx_wt1520.dtsi
@@
-44,9
+44,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-71,15
+82,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi
b/target/linux/ramips/dts/rt5350_nixcore_x1.dtsi
index ea10d501827b9c4352a4f86e047046add5f92cda..198934f5b4aa29a6b652729e01247fea627e052e 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_nixcore_x1.dtsi
+++ b/
target/linux/ramips/dts/rt5350_nixcore_x1.dtsi
@@
-134,9
+134,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-178,15
+189,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
b/target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
index 2d5d86ee1bc0e9e8b43d6e87449431451b490dc8..f3c2aedc96ecf5d367c6f36c189e8fc09d96e94f 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
+++ b/
target/linux/ramips/dts/rt5350_olimex_rt5350f-olinuxino.dtsi
@@
-34,9
+34,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-70,8
+81,9
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&i2c {
};
&i2c {
@@
-81,13
+93,3
@@
&uart {
status = "okay";
};
&uart {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
index 0e69cf8919c0609ae57faab46afc6f2a1e69d1b4..79eb6c3f4a0a4e0194425835fbcd7d71211fccb5 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
+++ b/
target/linux/ramips/dts/rt5350_omnima_miniembplug.dts
@@
-86,9
+86,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-110,15
+121,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
index 89a774a060a36ccc248ab858ad1162af21f3374c..0ff8cd7e1acac115a7afeb6a07a8063cf37f79f7 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
+++ b/
target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts
@@
-61,9
+61,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,16
+111,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_poray_m3.dts
b/target/linux/ramips/dts/rt5350_poray_m3.dts
index f02e7b024d3c9c37df574185c401cbc9f230f84a..24428ee96c702287a91e74e82f01f60bdce63a61 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_m3.dts
+++ b/
target/linux/ramips/dts/rt5350_poray_m3.dts
@@
-68,9
+68,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-100,16
+111,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_poray_m4.dtsi
b/target/linux/ramips/dts/rt5350_poray_m4.dtsi
index 4addfcbef8a146d743132a324d2fa739f50ee768..9891209e452ebd8b3b9129deb6333d8dbb411e41 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_m4.dtsi
+++ b/
target/linux/ramips/dts/rt5350_poray_m4.dtsi
@@
-60,9
+60,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-92,16
+103,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_poray_x5.dts
b/target/linux/ramips/dts/rt5350_poray_x5.dts
index 20e2a5257fa491b41cc2e7c5d3e025971e30110f..04387a63cad639885ed634fda19e1094382f7361 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_x5.dts
+++ b/
target/linux/ramips/dts/rt5350_poray_x5.dts
@@
-100,9
+100,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-132,16
+143,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_poray_x8.dts
b/target/linux/ramips/dts/rt5350_poray_x8.dts
index e84f28f783c4d79794ca8fa15512597fcb40434e..d8fcb67cb805e26705e81507c7cedbe054abe286 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_poray_x8.dts
+++ b/
target/linux/ramips/dts/rt5350_poray_x8.dts
@@
-61,9
+61,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-93,16
+104,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts
index 19b6d78009effbef71fc26d7c93fbb97e9010bd1..cf9b1338b9bc6d58f5593b6fb40772976fddc6c6 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
+++ b/
target/linux/ramips/dts/rt5350_tenda_3g150b.dts
@@
-79,9
+79,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-110,16
+121,7
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,led-polarity = <1>;
ralink,led-polarity = <1>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
index a03f33f3fc129f4e02fa07263d11d4273284e987..6d7d92cbc71d66d56549117705a67cabdbd45c52 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
+++ b/
target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts
@@
-82,9
+82,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,15
+125,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
index 5f2bad2b898bf2e4264a12872276433acbe463c4..8f71cc5bf10ad68629c15b6688b64c3980ae6b9c 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
+++ b/
target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts
@@
-84,9
+84,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-116,15
+127,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
index 652f9384e56cbaf0f91391c73b780803722fbd13..788c86f870b8686c2d7ab9b6e8bb56ad279685e8 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
+++ b/
target/linux/ramips/dts/rt5350_vocore_vocore.dtsi
@@
-182,9
+182,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
firmware: partition@50000 {
};
firmware: partition@50000 {
@@
-222,7
+233,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&spi1 {
};
&spi1 {
@@
-234,13
+246,3
@@
reg = <0>;
};
};
reg = <0>;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};
diff --git
a/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
b/target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
index 911e3e44edf004817a4110784b5dfba8a8fb6567..9f0cecdb9b8d8b9b0e3e4734d1b52e8558c62e2f 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
+++ b/
target/linux/ramips/dts/rt5350_wansview_ncs601w.dts
@@
-31,9
+31,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-62,15
+73,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
index 12d41e305e5724415b0e969ff820fc98b8983782..8611c50b14e0eeeaf5623de0007dcaa16b8bc13b 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
+++ b/
target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts
@@
-100,10
+100,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
-
#size-cells = <1>
;
+
compatible = "nvmem-cells"
;
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-139,15
+149,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
index 4ff2d57f72966da93bb1fe8869ba824b2477055c..69b725356e3d983230ca820169c7dc0fa1e350c6 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
+++ b/
target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts
@@
-66,9
+66,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-97,15
+108,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_zyxel_keenetic-4g-b.dts
b/target/linux/ramips/dts/rt5350_zyxel_keenetic-4g-b.dts
index 9b5c45347b3d4abb2e1ceca73b1011633f3d09c4..1fd52ba79f65662c5c86e67a80354c022ac18b08 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zyxel_keenetic-4g-b.dts
+++ b/
target/linux/ramips/dts/rt5350_zyxel_keenetic-4g-b.dts
@@
-89,9
+89,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-122,15
+133,6
@@
&wmac {
ralink,led-polarity = <1>;
&wmac {
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>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
b/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
index d044be395a8a0b95eb045e8e4ad4afe6aacd16ce..2c8b97f8a6a84a42528825af9575b8e8ba71ffdd 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
+++ b/
target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts
@@
-73,9
+73,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-106,15
+117,6
@@
&wmac {
ralink,led-polarity = <1>;
&wmac {
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>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};
diff --git
a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
index 69a1759f36fda33c8257cc9ce49dfd85f7875d95..67d72e0d4f3d49c4408cfecc671becc752c73176 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
+++ b/
target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts
@@
-75,9
+75,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-109,15
+120,6
@@
&wmac {
status = "okay";
ralink,led-polarity = <1>;
&wmac {
status = "okay";
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>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};