ath79: utilize ath9k 'nvmem-cells' on ALFA Network boards
Drop custom 'mtd-cal-data' and switch to 'nvmem-cells' based solution for fetching radio calibration data and its MAC address. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
parent
f645bacd06
commit
53ac6ee552
@ -96,10 +96,26 @@
|
|||||||
reg = <0x030000 0x010000>;
|
reg = <0x030000 0x010000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
art: partition@40000 {
|
partition@40000 {
|
||||||
label = "art";
|
label = "art";
|
||||||
reg = <0x040000 0x010000>;
|
reg = <0x040000 0x010000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
cal_art_1000: cal@1000 {
|
||||||
|
reg = <0x1000 0x440>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_0: macaddr@0 {
|
||||||
|
reg = <0x0 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_1002: macaddr@1002 {
|
||||||
|
reg = <0x1002 0x6>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@50000 {
|
partition@50000 {
|
||||||
@ -122,15 +138,6 @@
|
|||||||
&wmac {
|
&wmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-cal-data = <&art 0x1000>;
|
nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
|
||||||
};
|
nvmem-cell-names = "calibration", "mac-address";
|
||||||
|
|
||||||
&art {
|
|
||||||
compatible = "nvmem-cells";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
|
|
||||||
macaddr_art_0: macaddr@0 {
|
|
||||||
reg = <0x0 0x6>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
@ -131,10 +131,30 @@
|
|||||||
reg = <0x060000 0x010000>;
|
reg = <0x060000 0x010000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
art: partition@70000 {
|
partition@70000 {
|
||||||
label = "art";
|
label = "art";
|
||||||
reg = <0x070000 0x010000>;
|
reg = <0x070000 0x010000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
cal_art_1000: cal@1000 {
|
||||||
|
reg = <0x1000 0x440>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_0: macaddr@0 {
|
||||||
|
reg = <0x0 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_6: macaddr@6 {
|
||||||
|
reg = <0x6 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_1002: macaddr@1002 {
|
||||||
|
reg = <0x1002 0x6>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@80000 {
|
partition@80000 {
|
||||||
@ -149,19 +169,6 @@
|
|||||||
&wmac {
|
&wmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-cal-data = <&art 0x1000>;
|
nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
|
||||||
};
|
nvmem-cell-names = "calibration", "mac-address";
|
||||||
|
|
||||||
&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>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
reg = <0x060000 0x010000>;
|
reg = <0x060000 0x010000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
art: partition@70000 {
|
partition@70000 {
|
||||||
label = "art";
|
label = "art";
|
||||||
reg = <0x070000 0x010000>;
|
reg = <0x070000 0x010000>;
|
||||||
read-only;
|
read-only;
|
||||||
@ -91,6 +91,10 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
cal_art_1000: cal@1000 {
|
||||||
|
reg = <0x1000 0x440>;
|
||||||
|
};
|
||||||
|
|
||||||
macaddr_art_1002: macaddr@1002 {
|
macaddr_art_1002: macaddr@1002 {
|
||||||
reg = <0x1002 0x6>;
|
reg = <0x1002 0x6>;
|
||||||
};
|
};
|
||||||
@ -124,5 +128,6 @@
|
|||||||
&wmac {
|
&wmac {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-cal-data = <&art 0x1000>;
|
nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
|
||||||
|
nvmem-cell-names = "calibration", "mac-address";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user