* [PATCH 2/2] n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
@ 2016-01-13 21:44 Anatoly Pugachev
0 siblings, 0 replies; 5+ messages in thread
From: Anatoly Pugachev @ 2016-01-13 21:44 UTC (permalink / raw)
To: linux-crypto; +Cc: sparclinux
2. n2rng: documentation, add DT bindings, vendor prefixes
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
---
.../bindings/rng/sparc_sun_oracle_rng.txt | 31 ++++++++++++++++++++++
.../devicetree/bindings/vendor-prefixes.txt | 2 ++
2 files changed, 33 insertions(+)
diff --git b/Documentation/devicetree/bindings/rng/sparc_sun_oracle_rng.txt b/Documentation/devicetree/bindings/rng/sparc_sun_oracle_rng.txt
new file mode 100644
index 0000000..bec6b83
--- /dev/null
+++ b/Documentation/devicetree/bindings/rng/sparc_sun_oracle_rng.txt
@@ -0,0 +1,31 @@
+HWRNG support for the n2_rng driver
+
+Required properties:
+- compatible : should contain one of the following
+ RNG versions:
+ - 'SUNW,n2-rng' for Niagara 2 Platform (SUN UltraSPARC T2 CPU)
+ - 'SUNW,vf-rng' for Victoria Falls Platform (SUN UltraSPARC T2 Plus CPU)
+ - 'SUNW,kt-rng' for Rainbow/Yosemite Falls Platform (SUN SPARC T3/T4), (UltraSPARC KT/Niagara 3 - development names)
+ more recent systems (after Oracle acquisition of SUN)
+ - 'ORCL,m4-rng' for SPARC T5/M5
+ - 'ORCL,m7-rng' for SPARC T7/M7
+- reg : base address to sample from
+
+Examples:
+/* linux LDOM on SPARC T5-2 */
+ Node 0xf029a4f4
+ .node: f029a4f4
+ rng-#units: 00000002
+ compatible: 'ORCL,m4-rng'
+ reg: 0000000e
+ name: 'random-number-generator'
+
+/* solaris on SPARC M7-8 */
+ Node 0xf028c08c
+ rng-#units: 00000003
+ compatible: 'ORCL,m7-rng'
+ reg: 0000000e
+ name: 'random-number-generator'
+
+
+PS: see as well prtconfs.git by DaveM
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 55df1d4..6b8007f 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -166,6 +166,7 @@ opencores OpenCores.org
option Option NV
ortustech Ortus Technology Co., Ltd.
ovti OmniVision Technologies
+ORCL Oracle Corporation
panasonic Panasonic Corporation
parade Parade Technologies Inc.
pericom Pericom Technology Inc.
@@ -221,6 +222,7 @@ st STMicroelectronics
ste ST-Ericsson
stericsson ST-Ericsson
synology Synology, Inc.
+SUNW Sun Microsystems, Inc
tbs TBS Technologies
tcl Toby Churchill Ltd.
thine THine Electronics, Inc.
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
@ 2016-01-25 16:09 Anatoly Pugachev
2016-01-25 18:53 ` David Miller
2016-01-25 21:19 ` Anatoly Pugachev
0 siblings, 2 replies; 5+ messages in thread
From: Anatoly Pugachev @ 2016-01-25 16:09 UTC (permalink / raw)
To: linux-crypto; +Cc: sparclinux, Herbert Xu
n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
---
drivers/char/hw_random/n2-drv.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c
index 843d6f6..8bee43a 100644
--- a/drivers/char/hw_random/n2-drv.c
+++ b/drivers/char/hw_random/n2-drv.c
@@ -743,6 +743,16 @@ static const struct of_device_id n2rng_match[] = {
.compatible = "SUNW,kt-rng",
.data = (void *) 1,
},
+ {
+ .name = "random-number-generator",
+ .compatible = "ORCL,m4-rng",
+ .data = (void *) 1,
+ },
+ {
+ .name = "random-number-generator",
+ .compatible = "ORCL,m7-rng",
+ .data = (void *) 1,
+ },
{},
};
MODULE_DEVICE_TABLE(of, n2rng_match);
--
2.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
2016-01-25 16:09 Anatoly Pugachev
@ 2016-01-25 18:53 ` David Miller
2016-01-25 21:19 ` Anatoly Pugachev
1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2016-01-25 18:53 UTC (permalink / raw)
To: matorola; +Cc: linux-crypto, sparclinux, herbert
From: Anatoly Pugachev <matorola@gmail.com>
Date: Mon, 25 Jan 2016 19:09:39 +0300
> n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
>
> Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
2016-01-25 16:09 Anatoly Pugachev
2016-01-25 18:53 ` David Miller
@ 2016-01-25 21:19 ` Anatoly Pugachev
2016-01-26 14:48 ` Herbert Xu
1 sibling, 1 reply; 5+ messages in thread
From: Anatoly Pugachev @ 2016-01-25 21:19 UTC (permalink / raw)
To: linux-crypto; +Cc: sparclinux, Herbert Xu
n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
(space to tab fixes after variable names)
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
---
drivers/char/hw_random/n2-drv.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c
index 843d6f6..3b06c1d6 100644
--- a/drivers/char/hw_random/n2-drv.c
+++ b/drivers/char/hw_random/n2-drv.c
@@ -743,6 +743,16 @@ static const struct of_device_id n2rng_match[] = {
.compatible = "SUNW,kt-rng",
.data = (void *) 1,
},
+ {
+ .name = "random-number-generator",
+ .compatible = "ORCL,m4-rng",
+ .data = (void *) 1,
+ },
+ {
+ .name = "random-number-generator",
+ .compatible = "ORCL,m7-rng",
+ .data = (void *) 1,
+ },
{},
};
MODULE_DEVICE_TABLE(of, n2rng_match);
--
2.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
2016-01-25 21:19 ` Anatoly Pugachev
@ 2016-01-26 14:48 ` Herbert Xu
0 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2016-01-26 14:48 UTC (permalink / raw)
To: Anatoly Pugachev; +Cc: linux-crypto, sparclinux
On Tue, Jan 26, 2016 at 12:19:02AM +0300, Anatoly Pugachev wrote:
> n2rng: Attach on T5/M5, T7/M7 SPARC CPUs
>
> (space to tab fixes after variable names)
>
> Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
Both patches applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-26 14:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13 21:44 [PATCH 2/2] n2rng: Attach on T5/M5, T7/M7 SPARC CPUs Anatoly Pugachev
-- strict thread matches above, loose matches on Subject: below --
2016-01-25 16:09 Anatoly Pugachev
2016-01-25 18:53 ` David Miller
2016-01-25 21:19 ` Anatoly Pugachev
2016-01-26 14:48 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).