diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2023-05-09 15:29:48 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2023-07-14 11:38:12 +0200 |
commit | 42fbaf96cbc4bbe1350064a0182e6f7dc2c6addb (patch) | |
tree | 11f6ec9f98f6cd669510b4510af4927320545d1d /target/linux | |
parent | 2953d3c15677558fa45231ab31e8d4af4be11c63 (diff) |
ramips: set Netgear R6220 MAC NVMEM cell directly in the part node
There is no need to use reference if original node it specified in
exactly the same file. This is a minor cleanup simplifying DTS code.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/dts/mt7621_netgear_r6220.dts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dts b/target/linux/ramips/dts/mt7621_netgear_r6220.dts index 0f476ef060..7bb49c15b4 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6220.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6220.dts @@ -42,9 +42,17 @@ }; factory: partition@2e00000 { + compatible = "nvmem-cells"; label = "factory"; reg = <0x2e00000 0x100000>; read-only; + + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; }; partition@4200000 { @@ -65,13 +73,3 @@ nvmem-cell-names = "mac-address"; mac-address-increment = <1>; }; - -&factory { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_factory_4: macaddr@4 { - reg = <0x4 0x6>; - }; -}; |