Commit 3a52a489 authored by Pali Rohár's avatar Pali Rohár Committed by Gregory CLEMENT

arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file

Move the turris-mox-rwtm firmware node from Turris MOX' device tree into
the generic armada-37xx.dtsi file and use the generic compatible string
'marvell,armada-3700-rwtm-firmware' instead of the current one.

Turris MOX DTS file contains also old compatible string for backward
compatibility.

The Turris MOX rWTM firmware can be used on any Armada 37xx device,
giving them access to the rWTM hardware random number generator, which
is otherwise unavailable.

This change allows Linux to load the turris-mox-rwtm.ko module on these
boards.

Tested on ESPRESSObin v5 with both default Marvell WTMI firmware and
CZ.NIC's firmware. With default WTMI firmware the turris-mox-rwtm fails
to probe, while with CZ.NIC's firmware it registers the HW random number
generator.
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
parent 6efb943b
...@@ -109,10 +109,8 @@ sfp: sfp { ...@@ -109,10 +109,8 @@ sfp: sfp {
}; };
firmware { firmware {
turris-mox-rwtm { armada-3700-rwtm {
compatible = "cznic,turris-mox-rwtm"; compatible = "marvell,armada-3700-rwtm-firmware", "cznic,turris-mox-rwtm";
mboxes = <&rwtm 0>;
status = "okay";
}; };
}; };
}; };
......
...@@ -504,4 +504,12 @@ pcie_intc: interrupt-controller { ...@@ -504,4 +504,12 @@ pcie_intc: interrupt-controller {
}; };
}; };
}; };
firmware {
armada-3700-rwtm {
compatible = "marvell,armada-3700-rwtm-firmware";
mboxes = <&rwtm 0>;
status = "okay";
};
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment