diff options
author | Shiji Yang <yangshiji66@qq.com> | 2023-10-02 10:12:02 +0800 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-10-17 12:07:26 +0200 |
commit | e93f41adee3e5fa4046811890b92c9b86875911b (patch) | |
tree | 96b26c91ef71d5bb8dd5a2382c3fa7c5a13eae55 /target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts | |
parent | da42c329c6c73b5f4eb40f894195c488ba76d76b (diff) | |
download | openwrt-e93f41adee3e5fa4046811890b92c9b86875911b.tar.gz openwrt-e93f41adee3e5fa4046811890b92c9b86875911b.tar.bz2 openwrt-e93f41adee3e5fa4046811890b92c9b86875911b.zip |
ramips: convert MT7628 EEPROM to NVMEM format
This patch converts MT7628 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/mt7628an_mercury_mac1200r-v2.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts index f712a280c5..4a7915b9f0 100644 --- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -43,9 +43,20 @@ }; factory: partition@1d800 { + compatible = "nvmem-cells"; label = "factory_info"; reg = <0x1d800 0x800>; + #address-cells = <1>; + #size-cells = <1>; read-only; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x400>; + }; + + macaddr_factory_d: macaddr@d { + reg = <0xd 0x6>; + }; }; art: partition@1e000 { @@ -86,7 +97,8 @@ &wmac { status = "okay"; - mediatek,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; }; &pcie { @@ -100,13 +112,3 @@ ieee80211-freq-limit = <5000000 6000000>; }; }; - -&factory { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_factory_d: macaddr@d { - reg = <0xd 0x6>; - }; -}; |