linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver
@ 2016-06-15 10:01 Neil Armstrong
  2016-06-15 10:01 ` [RESEND PATCH 1/2] dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator bindings Neil Armstrong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Neil Armstrong @ 2016-06-15 10:01 UTC (permalink / raw)
  To: Matt Mackall, Herbert Xu
  Cc: Neil Armstrong, linux-arm-kernel, linux-amlogic, linux-kernel,
	linux-crypto

NOTE: This is a resent of the DT Bindings and DTSI patches based on the Amlogic DT 64bit
GIT pull request from Kevin Hilman at [1].

Changes since v2 at http://lkml.kernel.org/r/1465546915-24229-1-git-send-email-narmstrong@baylibre.com :
- Move rng peripheral node into periphs simple-bus node

Add support for the Amlogic Meson SoCs Hardware Random generator as a hw_random char driver.
The generator is a single 32bit wide register.
Also adds the Meson GXBB SoC DTSI node and corresponding DT bindings.

Changes since v1 at http://lkml.kernel.org/r/1464943621-18278-1-git-send-email-narmstrong@baylibre.com :
- change to depend on ARCH_MESON || COMPILE_TEST
- check buffer max size in read

[1] [GIT PULL] Amlogic DT 64-bit changes for v4.8 : http://lkml.kernel.org/r/7hshwfbiit.fsf@baylibre.com

Neil Armstrong (2):
  dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator
    bindings
  ARM64: dts: meson-gxbb: Add Hardware Random Generator node

 .../devicetree/bindings/rng/amlogic,meson-rng.txt          | 14 ++++++++++++++
 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi                |  5 +++++
 2 files changed, 19 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt

-- 
2.7.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [RESEND PATCH 1/2] dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator bindings
  2016-06-15 10:01 [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Neil Armstrong
@ 2016-06-15 10:01 ` Neil Armstrong
  2016-06-15 10:01 ` [RESEND PATCH 2/2] ARM64: dts: meson-gxbb: Add Hardware Random Generator node Neil Armstrong
  2016-06-15 15:57 ` [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2016-06-15 10:01 UTC (permalink / raw)
  To: Matt Mackall, Herbert Xu
  Cc: Neil Armstrong, linux-arm-kernel, linux-amlogic, linux-kernel,
	linux-crypto, devicetree

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 .../devicetree/bindings/rng/amlogic,meson-rng.txt          | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt

diff --git a/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt b/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt
new file mode 100644
index 0000000..202f2d0
--- /dev/null
+++ b/Documentation/devicetree/bindings/rng/amlogic,meson-rng.txt
@@ -0,0 +1,14 @@
+Amlogic Meson Random number generator
+=====================================
+
+Required properties:
+
+- compatible : should be "amlogic,meson-rng"
+- reg : Specifies base physical address and size of the registers.
+
+Example:
+
+rng {
+        compatible = "amlogic,meson-rng";
+        reg = <0x0 0xc8834000 0x0 0x4>;
+};
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [RESEND PATCH 2/2] ARM64: dts: meson-gxbb: Add Hardware Random Generator node
  2016-06-15 10:01 [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Neil Armstrong
  2016-06-15 10:01 ` [RESEND PATCH 1/2] dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator bindings Neil Armstrong
@ 2016-06-15 10:01 ` Neil Armstrong
  2016-06-15 15:57 ` [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2016-06-15 10:01 UTC (permalink / raw)
  To: Matt Mackall, Herbert Xu
  Cc: Neil Armstrong, linux-arm-kernel, linux-amlogic, linux-kernel,
	linux-crypto, devicetree

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
index 063e3b6..806b903 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
@@ -221,6 +221,11 @@
 			#size-cells = <2>;
 			ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
 
+			rng {
+				compatible = "amlogic,meson-rng";
+				reg = <0x0 0x0 0x0 0x4>;
+			};
+
 			pinctrl_periphs: pinctrl@4b0 {
 				compatible = "amlogic,meson-gxbb-periphs-pinctrl";
 				#address-cells = <2>;
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver
  2016-06-15 10:01 [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Neil Armstrong
  2016-06-15 10:01 ` [RESEND PATCH 1/2] dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator bindings Neil Armstrong
  2016-06-15 10:01 ` [RESEND PATCH 2/2] ARM64: dts: meson-gxbb: Add Hardware Random Generator node Neil Armstrong
@ 2016-06-15 15:57 ` Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2016-06-15 15:57 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: Matt Mackall, Herbert Xu, linux-arm-kernel, linux-amlogic,
	linux-kernel, linux-crypto

Neil Armstrong <narmstrong@baylibre.com> writes:

> NOTE: This is a resent of the DT Bindings and DTSI patches based on the Amlogic DT 64bit
> GIT pull request from Kevin Hilman at [1].
>
> Changes since v2 at http://lkml.kernel.org/r/1465546915-24229-1-git-send-email-narmstrong@baylibre.com :
> - Move rng peripheral node into periphs simple-bus node

Thanks for the update.

Applied to the dt64 branch of the amlogic tree.

Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-15 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15 10:01 [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Neil Armstrong
2016-06-15 10:01 ` [RESEND PATCH 1/2] dt-bindings: hwrng: Add Amlogic Meson Hardware Random Generator bindings Neil Armstrong
2016-06-15 10:01 ` [RESEND PATCH 2/2] ARM64: dts: meson-gxbb: Add Hardware Random Generator node Neil Armstrong
2016-06-15 15:57 ` [RESEND PATCH 0/2] hw_random: Add Amlogic Meson SoCs Random Generator driver Kevin Hilman

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).