Pull the calibration data from the nvmem subsystem. This allows us to
move userspace caldata extraction into the device-tree definition.
Merge art into partition node.
Signed-off-by: Nick Hainke <vincent@systemli.org>
reg = <0x8c0000 0x700000>;
};
reg = <0x8c0000 0x700000>;
};
- art: partition@fc0000 {
label = "ART";
reg = <0xfc0000 0x040000>;
read-only;
label = "ART";
reg = <0xfc0000 0x040000>;
read-only;
+
+ 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>;
+ };
+
+ calibration_art_1000: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
wifi@0,0 {
compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>;
wifi@0,0 {
compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&calibration_art_1000>;
+ nvmem-cell-names = "calibration";
#gpio-cells = <2>;
gpio-controller;
};
};
#gpio-cells = <2>;
gpio-controller;
};
};
-
-&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>;
- };
-};
tplink,tl-wr842n-v1)
caldata_extract "art" 0x1000 0x1000
;;
tplink,tl-wr842n-v1)
caldata_extract "art" 0x1000 0x1000
;;
- openmesh,om2p-v1)
- caldata_extract "ART" 0x1000 0x440
- ;;
wd,mynet-n600|\
wd,mynet-n750)
caldata_extract "art" 0x5000 0x440
wd,mynet-n600|\
wd,mynet-n750)
caldata_extract "art" 0x5000 0x440