Skip to contentSkip to conversation

Meson A1: add HW RNG and AO Secure nodes

PATCH In review Alexey Romanov 2 participants 4 messages Oct 10, 2023 – Oct 15, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Meson A1: add HW RNG and AO Secure nodes

Hello!

This patchest adds HW RNG and AO Secure definition in device tree for Amlogic A1-series.

V2:

- Rebased over latest amlogic U-Boot branch.

Alexey Romanov (2):
meson-a1: dts: add hw rng node
meson-a1: dts: add ao secure node

 arch/arm/dts/meson-a1.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 meson-a1: dts: add hw rng node

Add support for hardware random number generator
of Amlogic Meson SoCs.

---
 arch/arm/dts/meson-a1.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/dts/meson-a1.dtsi +5 -0
index 6509329b85..e6e72d4004 100644
@@ -124,6 +124,11 @@
 				clock-names = "xtal", "pclk", "baud";
 				status = "disabled";
 			};
+
+			hwrng: rng@5118 {
+				compatible = "amlogic,meson-rng";
+				reg = <0x0 0x5118 0x0 0x4>;
+			};
 		};
 
 		gic: interrupt-controller@ff901000 {
Signature · 1 line
2.25.1
#2 lore raw

PATCH v2 2/2 meson-a1: dts: add ao secure node

In reply to Alexey Romanov

ao-secure node can be used to get information about the board, so, for example, using show_board_info() we can get following information for board with Meson A1 SoC:

SoC: Amlogic Meson A1 (A113L) Revision 2c:a (1:a)

---
 arch/arm/dts/meson-a1.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/dts/meson-a1.dtsi +6 -0
index e6e72d4004..e3a42c5b24 100644
@@ -129,6 +129,12 @@
 				compatible = "amlogic,meson-rng";
 				reg = <0x0 0x5118 0x0 0x4>;
 			};
+
+			sec_AO: ao-secure@5a20 {
+				compatible = "amlogic,meson-gx-ao-secure", "syscon";
+				reg = <0x0 0x5a20 0x0 0x140>;
+				amlogic,has-chip-id;
+			};
 		};
 
 		gic: interrupt-controller@ff901000 {
Signature · 1 line
2.25.1
#3 lore raw
In reply to Alexey Romanov

From: Neil Armstrong <[email protected]>

Hi,

Quoted 8 lines · Alexey Romanov

This patchest adds HW RNG and AO Secure definition in device tree for Amlogic A1-series.

V2:

- Rebased over latest amlogic U-Boot branch.

[...]

Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot-amlogic)

[1/2] meson-a1: dts: add hw rng node

      https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/87dfb37d54e59f89b61d43970861ad81d66f38ca
[2/2] meson-a1: dts: add ao secure node
      https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/7b4116f8f78f73906da59cbc93c7874948323e4b
Signature · 1 line
Neil