diff mbox

[v2,1/2] dt/bindings: Add bindings for the PIC32 random number generator

Message ID 1454966283-14965-1-git-send-email-joshua.henderson@microchip.com (mailing list archive)
State Accepted
Headers show

Commit Message

Joshua Henderson Feb. 8, 2016, 9:17 p.m. UTC
Document the devicetree bindings for the random number generator found
on Microchip PIC32 class devices.

Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 .../bindings/rng/microchip,pic32-rng.txt           |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt

Comments

Herbert Xu Feb. 16, 2016, 8:21 p.m. UTC | #1
On Mon, Feb 08, 2016 at 02:17:52PM -0700, Joshua Henderson wrote:
> Document the devicetree bindings for the random number generator found
> on Microchip PIC32 class devices.
> 
> Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>
> Acked-by: Rob Herring <robh@kernel.org>

All applied.
Joshua Henderson Feb. 19, 2016, 5:23 p.m. UTC | #2
On 02/16/2016 01:21 PM, Herbert Xu wrote:
> On Mon, Feb 08, 2016 at 02:17:52PM -0700, Joshua Henderson wrote:
>> Document the devicetree bindings for the random number generator found
>> on Microchip PIC32 class devices.
>>
>> Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com>
>> Acked-by: Rob Herring <robh@kernel.org>
> 
> All applied.

Thank you Herbert.

Josh
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt b/Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt
new file mode 100644
index 0000000..c6d1003
--- /dev/null
+++ b/Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt
@@ -0,0 +1,17 @@ 
+* Microchip PIC32 Random Number Generator
+
+The PIC32 RNG provides a pseudo random number generator which can be seeded by
+another true random number generator.
+
+Required properties:
+- compatible : should be "microchip,pic32mzda-rng"
+- reg : Specifies base physical address and size of the registers.
+- clocks: clock phandle.
+
+Example:
+
+	rng: rng@1f8e6000 {
+		compatible = "microchip,pic32mzda-rng";
+		reg = <0x1f8e6000 0x1000>;
+		clocks = <&PBCLK5>;
+	};