提交 5daa8212 编写于 作者: J Joel Stanley

ARM: dts: aspeed: Describe random number device

There is a random number generator that updates a register in the SCU
every second. This is compatible with the timeriomem rng driver in the
kernel.

From the timeriomem_rng bindings:

  quality: estimated number of bits of true entropy per 1024 bits read
  from the rng.  Defaults to zero which causes the kernel's default
  quality to be used instead.  Note that the default quality is usually
  zero which disables using this rng to automatically fill the kernel's
  entropy pool.

As to the recommended value for us to use:

 Rick Altherr <raltherr@google.com> wrote:
 > Quality is #bit of entropy per 1000 bits read.  100 is a
 > conservative value that was suggested by those in the know.
Signed-off-by: NJoel Stanley <joel@jms.id.au>
上级 6d08b06e
......@@ -125,6 +125,14 @@
pinctrl: pinctrl {
compatible = "aspeed,g4-pinctrl";
};
};
rng: hwrng@78 {
compatible = "timeriomem_rng";
reg = <0x78 0x4>;
period = <1>;
quality = <100>;
};
adc: adc@1e6e9000 {
......
......@@ -164,6 +164,13 @@
};
};
rng: hwrng@78 {
compatible = "timeriomem_rng";
reg = <0x78 0x4>;
period = <1>;
quality = <100>;
};
gfx: display@1e6e6000 {
compatible = "aspeed,ast2500-gfx", "syscon";
reg = <0x1e6e6000 0x1000>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册