arm64: dts: marvell: armada-37xx: move firmware node to generic dtsi file
authorPali Rohár <pali@kernel.org>
Thu, 20 May 2021 11:38:44 +0000 (13:38 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Thu, 17 Jun 2021 13:03:59 +0000 (15:03 +0200)
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 <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
arch/arm64/boot/dts/marvell/armada-37xx.dtsi

index 53e817c5f6f36bd867f7f6e8ae479a1892239ac7..ce2bcddf396f8a2efe7b162c30e1baefad9cb45e 100644 (file)
        };
 
        firmware {
-               turris-mox-rwtm {
-                       compatible = "cznic,turris-mox-rwtm";
-                       mboxes = <&rwtm 0>;
-                       status = "okay";
+               armada-3700-rwtm {
+                       compatible = "marvell,armada-3700-rwtm-firmware", "cznic,turris-mox-rwtm";
                };
        };
 };
index 456dcd4a7793f5576eb3ef9ae9e84ce560c44ccf..950eac5814b13e7e0f63c01f09f6d2e60c2be969 100644 (file)
                        };
                };
        };
+
+       firmware {
+               armada-3700-rwtm {
+                       compatible = "marvell,armada-3700-rwtm-firmware";
+                       mboxes = <&rwtm 0>;
+                       status = "okay";
+               };
+       };
 };