Skip to content

Commit 3a52a48

Browse files
paligclement
authored andcommitted
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: Pali Rohár <[email protected]> Signed-off-by: Marek Behún <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]>
1 parent 6efb943 commit 3a52a48

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@
109109
};
110110

111111
firmware {
112-
turris-mox-rwtm {
113-
compatible = "cznic,turris-mox-rwtm";
114-
mboxes = <&rwtm 0>;
115-
status = "okay";
112+
armada-3700-rwtm {
113+
compatible = "marvell,armada-3700-rwtm-firmware", "cznic,turris-mox-rwtm";
116114
};
117115
};
118116
};

arch/arm64/boot/dts/marvell/armada-37xx.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,4 +504,12 @@
504504
};
505505
};
506506
};
507+
508+
firmware {
509+
armada-3700-rwtm {
510+
compatible = "marvell,armada-3700-rwtm-firmware";
511+
mboxes = <&rwtm 0>;
512+
status = "okay";
513+
};
514+
};
507515
};

0 commit comments

Comments
 (0)