[PATCH v2 0/2] 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(+)

Add support for hardware random number generator of Amlogic Meson SoCs.
Signed-off-by: Alexey Romanov avromanov@salutedevices.com --- arch/arm/dts/meson-a1.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/arm/dts/meson-a1.dtsi b/arch/arm/dts/meson-a1.dtsi index 6509329b85..e6e72d4004 100644 --- a/arch/arm/dts/meson-a1.dtsi +++ b/arch/arm/dts/meson-a1.dtsi @@ -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 {

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)
Signed-off-by: Alexey Romanov avromanov@salutedevices.com --- arch/arm/dts/meson-a1.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/arm/dts/meson-a1.dtsi b/arch/arm/dts/meson-a1.dtsi index e6e72d4004..e3a42c5b24 100644 --- a/arch/arm/dts/meson-a1.dtsi +++ b/arch/arm/dts/meson-a1.dtsi @@ -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 {

From: Neil Armstrong neil.armstrong@linaro.org
Hi,
On Tue, 10 Oct 2023 13:06:15 +0300, Alexey Romanov wrote:
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/87dfb37d54e... [2/2] meson-a1: dts: add ao secure node https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/7b4116f8f78...
participants (2)
-
Alexey Romanov
-
neil.armstrong@linaro.org