diff options
author | Shiji Yang <yangshiji66@qq.com> | 2023-10-02 10:12:02 +0800 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-10-09 11:15:52 +0200 |
commit | fb4cea45ec55b7625e870c0375d4d7971d2fbb53 (patch) | |
tree | 38d9047f008e0ecba25699d2b2617851633d525a /target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts | |
parent | 230d5de707e4a31603ccb0a7e2b32df45127b38d (diff) | |
download | openwrt-fb4cea45ec55b7625e870c0375d4d7971d2fbb53.tar.gz openwrt-fb4cea45ec55b7625e870c0375d4d7971d2fbb53.tar.bz2 openwrt-fb4cea45ec55b7625e870c0375d4d7971d2fbb53.zip |
ramips: convert MT7603 EEPROM to NVMEM format
This patch converts MT7603 WiFi calibration data to NVMEM format. The
EEPROM size is 0x400.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index 8a09675bff..f2cd28ad1c 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -89,9 +89,20 @@ }; factory: partition@40000 { + compatible = "nvmem-cells"; label = "factory"; reg = <0x40000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; read-only; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x400>; + }; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; }; partition@50000 { @@ -186,20 +197,11 @@ &pcie0 { mt76@0,0 { reg = <0x0000 0 0 0 0>; - mediatek,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; }; }; &xhci { status = "disabled"; }; - -&factory { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_factory_4: macaddr@4 { - reg = <0x4 0x6>; - }; -}; |