summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/rng/mtk-rng.txt
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2017-04-20 18:24:25 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-21 14:30:55 +0200
commitc2b06bcd4b5f8e9a64b5e266441cc61ebfb2a4a5 (patch)
tree2d306da04372a54d7fe2987e34bc05d36049e0c2 /Documentation/devicetree/bindings/rng/mtk-rng.txt
parentcrypto: crct10dif-vpmsum - Fix missing preempt_disable() (diff)
downloadlinux-c2b06bcd4b5f8e9a64b5e266441cc61ebfb2a4a5.tar.xz
linux-c2b06bcd4b5f8e9a64b5e266441cc61ebfb2a4a5.zip
dt-bindings: hwrng: Add Mediatek hardware random generator bindings
Document the devicetree bindings for Mediatek random number generator which could be found on MT7623 SoC or other similar Mediatek SoCs. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Documentation/devicetree/bindings/rng/mtk-rng.txt')
-rw-r--r--Documentation/devicetree/bindings/rng/mtk-rng.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.txt b/Documentation/devicetree/bindings/rng/mtk-rng.txt
new file mode 100644
index 000000000000..a6d62a2abd39
--- /dev/null
+++ b/Documentation/devicetree/bindings/rng/mtk-rng.txt
@@ -0,0 +1,18 @@
+Device-Tree bindings for Mediatek random number generator
+found in Mediatek SoC family
+
+Required properties:
+- compatible : Should be "mediatek,mt7623-rng"
+- clocks : list of clock specifiers, corresponding to
+ entries in clock-names property;
+- clock-names : Should contain "rng" entries;
+- reg : Specifies base physical address and size of the registers
+
+Example:
+
+rng: rng@1020f000 {
+ compatible = "mediatek,mt7623-rng";
+ reg = <0 0x1020f000 0 0x1000>;
+ clocks = <&infracfg CLK_INFRA_TRNG>;
+ clock-names = "rng";
+};