Skip to content

Commit

Permalink
DO NOT UPSTREAM: Fix nvmem device description
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
  • Loading branch information
miquelraynal committed Nov 15, 2022
1 parent 9d87299 commit 230ee68
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions arch/arm64/boot/dts/marvell/armada-7040-tn48m.dts
Expand Up @@ -32,7 +32,7 @@
prestera {
status = "okay";
compatible = "marvell,prestera";
base-mac-provider = <&onie_eeprom>;
base-mac-provider = <&eeprom_at24>;

ports {
port49 {
Expand Down Expand Up @@ -104,14 +104,6 @@
};
};

onie_eeprom: onie-eeprom {
status = "okay";
compatible = "onie,nvmem-cells";

nvmem-name = "1-00563";
nvmem = <&eeprom_at24>;
};

i2c-mux {
compatible = "i2c-mux-gpio";
#address-cells = <1>;
Expand Down Expand Up @@ -274,9 +266,18 @@
status = "okay";
clock-frequency = <100000>;

eeprom_at24: at24@56 {
eeprom_at24: eeprom@56 {
compatible = "atmel,24c64";
read-only;
reg = <0x56>;

nvmem-layout {
compatible = "onie,tlv-layout";

mac_address: mac-address {
#nvmem-cell-cells = <1>;
};
};
};

adt7473@2e {
Expand Down Expand Up @@ -335,6 +336,8 @@
phy = <&ethphy0>;
phy-mode = "sgmii";
phys = <&cp0_comphy5 2>;
nvmem-cells = <&mac_address 2>;
nvmem-cell-names = "mac-address";
};

&cp0_pcie0 {
Expand Down

0 comments on commit 230ee68

Please sign in to comment.