It's deprecated.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
&gsw {
phy-mode = "rmii";
phy-handle = <&phy0>;
- nvmem-cells = <&macaddr_ath9k_cal_a91>;
+ nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
mdio-bus {
#address-cells = <1>;
label = "urlader";
reg = <0x00000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_ath9k_cal_a91: macaddr@a91 {
+ compatible = "mac-base";
+ reg = <0xa91 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@20000 {
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
};
};
-
-&ath9k_cal {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_ath9k_cal_a91: macaddr@a91 {
- reg = <0xa91 0x6>;
- };
-};
&gsw {
phy-mode = "mii";
phy-handle = <&phy0>;
- nvmem-cells = <&macaddr_ath9k_cal_a91>;
+ nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
mdio-bus {
#address-cells = <1>;
label = "urlader";
reg = <0x00000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_ath9k_cal_a91: macaddr@a91 {
+ compatible = "mac-base";
+ reg = <0xa91 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@20000 {
status = "okay";
vbus-supply = <&usb1_vbus>;
};
-
-&ath9k_cal {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_ath9k_cal_a91: macaddr@a91 {
- reg = <0xa91 0x6>;
- };
-};
label = "board";
reg = <0x1fc0000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_10024: macaddr@10024 {
+ reg = <0x10024 0x6>;
+ };
+ };
};
partition@1fe0000 {
status = "okay";
vbus-supply = <&usb_vbus>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_10024: macaddr@10024 {
- reg = <0x10024 0x6>;
- };
-};
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
gpios = <&gpio 31 GPIO_ACTIVE_HIGH
&gpiomm 7 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "boardconfig";
reg = <0x3f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
gpios = <&gpio 31 GPIO_ACTIVE_HIGH
&gpiomm 7 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
/* GPIO 19: switch reset */
&gsw {
phy-mode = "rmii";
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 0>;
nvmem-cell-names = "mac-address";
};
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ compatible = "mac-base";
+ reg = <0x16 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
};
};
reg = <0x7000 0 0 0 0>;
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,eeprom-swap;
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
- };
-};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
};
};
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
*/
&gsw {
phy-mode = "mii";
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 0>;
nvmem-cell-names = "mac-address";
};
label = "boardconfig";
reg = <0x7f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ compatible = "mac-base";
+ reg = <0x16 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
};
};
compatible = "pci168c,0029";
reg = <0x7000 0 0 0 0>;
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
&vmmc {
status = "okay";
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
&vmmc {
status = "okay";
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "board_config";
reg = <0x3f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "board_config";
reg = <0x7f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
&gsw {
phy-mode = "mii";
- nvmem-cells = <&macaddr_art_16>;
+ nvmem-cells = <&macaddr_art_16 0>;
nvmem-cell-names = "mac-address";
};
label = "art";
reg = <0x7f0000 0x10000>; /* 64 KiB*/
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_16: macaddr@16 {
+ compatible = "mac-base";
+ reg = <0x16 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
};
};
compatible = "pci168c,0029";
reg = <0x7000 0 0 0 0>;
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
- nvmem-cells = <&macaddr_art_16>;
+ nvmem-cells = <&macaddr_art_16 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
status = "okay";
gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
label = "boardconfig";
reg = <0x1f80000 0x80000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ reg = <0x16 0x6>;
+ };
+ };
};
};
};
status = "okay";
vbus-supply = <&usb_vbus>;
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
};
ð0 {
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 0>;
nvmem-cell-names = "mac-address";
};
label = "board_config";
reg = <0xfe0000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ compatible = "mac-base";
+ reg = <0x16 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
};
};
reg = <0x7000 0 0 0 0>;
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,eeprom-swap;
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
&gpio 31 GPIO_ACTIVE_HIGH //still unknown
&gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
};
ð0 {
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&gphy0 {
label = "board_config";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_boardconfig_16: macaddr@16 {
+ compatible = "mac-base";
+ reg = <0x16 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
};
};
reg = <0x7000 0 0 0 0>;
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,eeprom-swap;
- nvmem-cells = <&macaddr_boardconfig_16>;
+ nvmem-cells = <&macaddr_boardconfig_16 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
&gpio 31 GPIO_ACTIVE_HIGH //still unknown
&gpio 3 GPIO_ACTIVE_HIGH>; //reset_slic?
};
-
-&boardconfig {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_boardconfig_16: macaddr@16 {
- reg = <0x16 0x6>;
- };
-};
reg = <0x00000 0x20000>;
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- cal_urlader_985: cal@985 {
- reg = <0x985 0x440>;
- };
-
- macaddr_urlader_a91: macaddr@a91 {
- reg = <0xa91 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ cal_urlader_985: cal@985 {
+ reg = <0x985 0x440>;
+ };
+
+ macaddr_urlader_a91: macaddr@a91 {
+ compatible = "mac-base";
+ reg = <0xa91 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
};
};
};
ð0 {
- nvmem-cells = <&macaddr_urlader_a91>;
+ nvmem-cells = <&macaddr_urlader_a91 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
};
&phy0 {
label = "urlader";
reg = <0x00000 0x20000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_urlader_a91: macaddr@a91 {
+ compatible = "mac-base";
+ reg = <0xa91 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@20000 {
};
ð0 {
- nvmem-cells = <&macaddr_urlader_a91>;
+ nvmem-cells = <&macaddr_urlader_a91 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
};
&phy0 {
&phy1 {
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
-
-&urlader {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_urlader_a91: macaddr@a91 {
- reg = <0xa91 0x6>;
- };
-};
reg = <0x0 0x40000>;
label = "urlader";
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_urlader_a91: macaddr@a91 {
+ compatible = "mac-base";
+ reg = <0xa91 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@40000 {
};
ð0 {
- nvmem-cells = <&macaddr_urlader_a91>;
+ nvmem-cells = <&macaddr_urlader_a91 (-2)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
};
&phy0 {
&phy1 {
reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
-
-&urlader {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_urlader_a91: macaddr@a91 {
- reg = <0xa91 0x6>;
- };
-};
};
ð0 {
- nvmem-cells = <&macaddr_ath9k_cal_f100>;
+ nvmem-cells = <&macaddr_ath9k_cal_f100 0>;
nvmem-cell-names = "mac-address";
};
gpio-controller;
qca,no-eeprom;
ieee80211-freq-limit = <2402000 2482000>;
- nvmem-cells = <&macaddr_ath9k_cal_f100>;
+ nvmem-cells = <&macaddr_ath9k_cal_f100 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
};
};
reg = <0x7d0000 0x30000>;
label = "boardconfig";
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_ath9k_cal_f100: macaddr@f100 {
+ compatible = "mac-base";
+ reg = <0xf100 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
};
};
status = "okay";
vbus-supply = <&usb_vbus>;
};
-
-&ath9k_cal {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_ath9k_cal_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};
};
ð0 {
- nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cells = <&macaddr_romfile_f100 0>;
nvmem-cell-names = "mac-address";
};
mediatek,mtd-eeprom = <&radio 0x0000>;
big-endian;
ieee80211-freq-limit = <5000000 6000000>;
- nvmem-cells = <&macaddr_romfile_f100>;
+ nvmem-cells = <&macaddr_romfile_f100 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
};
};
reg = <0xfd0000 0x10000>;
label = "romfile";
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_romfile_f100: macaddr@f100 {
+ compatible = "mac-base";
+ reg = <0xf100 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@fe0000 {
status = "okay";
vbus-supply = <&usb_vbus>;
};
-
-&romfile {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_romfile_f100: macaddr@f100 {
- reg = <0xf100 0x6>;
- };
-};