Skip to content

Commit

Permalink
ramips: mt7628: use nvmem-layout
Browse files Browse the repository at this point in the history
Will allow using mac-base.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb authored and pull[bot] committed Feb 13, 2024
1 parent 19944fd commit 2782ed3
Show file tree
Hide file tree
Showing 61 changed files with 780 additions and 590 deletions.
19 changes: 11 additions & 8 deletions target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts
Expand Up @@ -114,19 +114,22 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

macaddr_factory_2e: macaddr@2e {
reg = <0x2e 0x6>;
macaddr_factory_2e: macaddr@2e {
reg = <0x2e 0x6>;
};
};
};

Expand Down
25 changes: 14 additions & 11 deletions target/linux/ramips/dts/mt7628an_asus_rt-ac1200.dtsi
Expand Up @@ -73,23 +73,26 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};

macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};
};

Expand Down
19 changes: 11 additions & 8 deletions target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi
Expand Up @@ -75,19 +75,22 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};
};

Expand Down
19 changes: 11 additions & 8 deletions target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts
Expand Up @@ -141,19 +141,22 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};
};
};

Expand Down
31 changes: 17 additions & 14 deletions target/linux/ramips/dts/mt7628an_comfast_cf-wr617ac.dts
Expand Up @@ -70,27 +70,30 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
};
eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};

macaddr_factory_8004: macaddr@8004 {
reg = <0x8004 0x6>;
};

macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};
};

Expand Down
25 changes: 14 additions & 11 deletions target/linux/ramips/dts/mt7628an_comfast_cf-wr758ac.dtsi
Expand Up @@ -85,23 +85,26 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};

macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};
};

Expand Down
25 changes: 14 additions & 11 deletions target/linux/ramips/dts/mt7628an_cudy_wr1000.dts
Expand Up @@ -89,23 +89,26 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
};

Expand Down
20 changes: 10 additions & 10 deletions target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts
Expand Up @@ -116,6 +116,16 @@
label = "factory";
reg = <0x40000 0x10000>;
read-only;

nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
};

partition@50000 {
Expand Down Expand Up @@ -160,13 +170,3 @@
status = "okay";
mediatek,cd-high;
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
19 changes: 11 additions & 8 deletions target/linux/ramips/dts/mt7628an_dlink_dap-1325-a1.dts
Expand Up @@ -115,19 +115,22 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
};

Expand Down
20 changes: 10 additions & 10 deletions target/linux/ramips/dts/mt7628an_duzun_dm06.dts
Expand Up @@ -120,6 +120,16 @@
label = "factory";
reg = <0x40000 0x10000>;
read-only;

nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};
};

partition@50000 {
Expand All @@ -130,13 +140,3 @@
};
};
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};
25 changes: 14 additions & 11 deletions target/linux/ramips/dts/mt7628an_elecom_wrc-1167fs.dts
Expand Up @@ -102,23 +102,26 @@
};

factory: partition@40000 {
compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
read-only;

eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};

eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x200>;
};

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
};

Expand Down

0 comments on commit 2782ed3

Please sign in to comment.