dts: stm32: Add rng node

Add rng node when supported by stm32 entropy driver in stm32 dtsi
Also add matching compatible binding.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-04-02 11:20:12 +02:00 committed by Kumar Gala
parent e68a699396
commit 760849646d
6 changed files with 57 additions and 0 deletions

View File

@ -210,6 +210,13 @@
phase-seg2 = <6>;
};
rng: rng@50060800 {
compatible = "st,stm32-rng";
reg = <0x50060800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>;
status = "disabled";
label = "RNG";
};
};
otghs_fs_phy: otghs_fs_phy {

View File

@ -135,6 +135,14 @@
};
};
rng: rng@50060800 {
compatible = "st,stm32-rng";
reg = <0x50060800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>;
status = "disabled";
label = "RNG";
};
usbotg_fs: usb@50000000 {
num-bidir-endpoints = <6>;
};

View File

@ -639,6 +639,14 @@
status = "disabled";
label = "DMA_2";
};
rng: rng@50060800 {
compatible = "st,stm32-rng";
reg = <0x50060800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>;
status = "disabled";
label = "RNG";
};
};
otghs_fs_phy: otghs_fs_phy {

View File

@ -425,6 +425,14 @@
label = "RTC_0";
};
rng: rng@50060800 {
compatible = "st,stm32-rng";
reg = <0x50060800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x04000000>;
status = "disabled";
label = "RNG";
};
usb: usb@40005c00 {
compatible = "st,stm32-usb";
reg = <0x40005c00 0x400>;

View File

@ -341,6 +341,14 @@
status = "disabled";
label = "LPTIM_1";
};
rng: rng@50060800 {
compatible = "st,stm32-rng";
reg = <0x50060800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00040000>;
status = "disabled";
label = "RNG";
};
};
};

View File

@ -0,0 +1,18 @@
# Copyright (c) 2020, Linaro Limited
# SPDX-License-Identifier: Apache-2.0
description: STM32 Random Number Generator
compatible: "st,stm32-rng"
include: base.yaml
properties:
reg:
required: true
label:
required: true
clocks:
required: true