All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rockchip: enable RNG on RockPro64
@ 2020-05-23 12:18 Marcin Juszkiewicz
  2020-05-25  2:57 ` Kever Yang
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Juszkiewicz @ 2020-05-23 12:18 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
---
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++
 configs/rockpro64-rk3399_defconfig        | 2 ++
 2 files changed, 6 insertions(+)

diff --git arch/arm/dts/rk3399-rockpro64-u-boot.dtsi arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
index deaa3efd39..824ee4e3ce 100644
--- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
+++ arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
@@ -23,3 +23,7 @@
 &vdd_log {
 	regulator-init-microvolt = <950000>;
 };
+
+&rng {
+	status = "okay";
+};
diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig
index 53abce0057..04ba151475 100644
--- configs/rockpro64-rk3399_defconfig
+++ configs/rockpro64-rk3399_defconfig
@@ -43,6 +43,8 @@ CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_RK3399_LPDDR4=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_ROCKCHIP_SPI=y
-- 
2.26.2

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

* [PATCH] rockchip: enable RNG on RockPro64
  2020-05-23 12:18 [PATCH] rockchip: enable RNG on RockPro64 Marcin Juszkiewicz
@ 2020-05-25  2:57 ` Kever Yang
  2020-05-25  8:52   ` Marcin Juszkiewicz
  0 siblings, 1 reply; 5+ messages in thread
From: Kever Yang @ 2020-05-25  2:57 UTC (permalink / raw)
  To: u-boot

Hi Marcin,

 ??? Could you add a brief commit message for this patch?


Thanks,

- Kever

On 2020/5/23 ??8:18, Marcin Juszkiewicz wrote:
> Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
> ---
>   arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++
>   configs/rockpro64-rk3399_defconfig        | 2 ++
>   2 files changed, 6 insertions(+)
>
> diff --git arch/arm/dts/rk3399-rockpro64-u-boot.dtsi arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
> index deaa3efd39..824ee4e3ce 100644
> --- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
> +++ arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
> @@ -23,3 +23,7 @@
>   &vdd_log {
>   	regulator-init-microvolt = <950000>;
>   };
> +
> +&rng {
> +	status = "okay";
> +};
> diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig
> index 53abce0057..04ba151475 100644
> --- configs/rockpro64-rk3399_defconfig
> +++ configs/rockpro64-rk3399_defconfig
> @@ -43,6 +43,8 @@ CONFIG_REGULATOR_PWM=y
>   CONFIG_REGULATOR_RK8XX=y
>   CONFIG_PWM_ROCKCHIP=y
>   CONFIG_RAM_RK3399_LPDDR4=y
> +CONFIG_DM_RNG=y
> +CONFIG_RNG_ROCKCHIP=y
>   CONFIG_BAUDRATE=1500000
>   CONFIG_DEBUG_UART_SHIFT=2
>   CONFIG_ROCKCHIP_SPI=y

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

* [PATCH] rockchip: enable RNG on RockPro64
  2020-05-25  2:57 ` Kever Yang
@ 2020-05-25  8:52   ` Marcin Juszkiewicz
  2020-05-29  9:57     ` Kever Yang
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Juszkiewicz @ 2020-05-25  8:52 UTC (permalink / raw)
  To: u-boot

RNG module works fine on RockPro64 so let's enable it by default.

=>  rng
00000000: 77 08 dd 04 2c 4d b8 cf 25 07 29 2d c0 ce 28 3b  w...,M..%.)-..(;
00000010: d4 5a 38 68 b1 40 97 59 b8 a5 7c 42 f8 4c 38 28  .Z8h. at .Y..|B.L8(
00000020: 25 20 0b 4b f0 1a d5 c1 e6 a2 c2 34 5a 5e 64 26  % .K.......4Z^d&
00000030: 41 8b d8 7e c4 d6 9e e3 da 0e 98 a2 2f 38 0d 9f  A..~......../8..

Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
---
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++
 configs/rockpro64-rk3399_defconfig        | 2 ++
 2 files changed, 6 insertions(+)

diff --git arch/arm/dts/rk3399-rockpro64-u-boot.dtsi arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
index deaa3efd39..824ee4e3ce 100644
--- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
+++ arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
@@ -23,3 +23,7 @@
 &vdd_log {
 	regulator-init-microvolt = <950000>;
 };
+
+&rng {
+	status = "okay";
+};
diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig
index 53abce0057..04ba151475 100644
--- configs/rockpro64-rk3399_defconfig
+++ configs/rockpro64-rk3399_defconfig
@@ -43,6 +43,8 @@ CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_RK3399_LPDDR4=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_ROCKCHIP_SPI=y
-- 
2.26.2

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

* [PATCH] rockchip: enable RNG on RockPro64
  2020-05-25  8:52   ` Marcin Juszkiewicz
@ 2020-05-29  9:57     ` Kever Yang
  0 siblings, 0 replies; 5+ messages in thread
From: Kever Yang @ 2020-05-29  9:57 UTC (permalink / raw)
  To: u-boot

Hi Marcin,

 ??? The commit message is acceptable, but you will need to send a new 
V2 patch for this instead of reply this by the comment.


Thanks,

- Kever

On 2020/5/25 ??4:52, Marcin Juszkiewicz wrote:
> RNG module works fine on RockPro64 so let's enable it by default.
>
> =>  rng
> 00000000: 77 08 dd 04 2c 4d b8 cf 25 07 29 2d c0 ce 28 3b  w...,M..%.)-..(;
> 00000010: d4 5a 38 68 b1 40 97 59 b8 a5 7c 42 f8 4c 38 28  .Z8h. at .Y..|B.L8(
> 00000020: 25 20 0b 4b f0 1a d5 c1 e6 a2 c2 34 5a 5e 64 26  % .K.......4Z^d&
> 00000030: 41 8b d8 7e c4 d6 9e e3 da 0e 98 a2 2f 38 0d 9f  A..~......../8..
>
> Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
> ---
>   arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++
>   configs/rockpro64-rk3399_defconfig        | 2 ++
>   2 files changed, 6 insertions(+)
>
> diff --git arch/arm/dts/rk3399-rockpro64-u-boot.dtsi arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
> index deaa3efd39..824ee4e3ce 100644
> --- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
> +++ arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
> @@ -23,3 +23,7 @@
>   &vdd_log {
>   	regulator-init-microvolt = <950000>;
>   };
> +
> +&rng {
> +	status = "okay";
> +};
> diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig
> index 53abce0057..04ba151475 100644
> --- configs/rockpro64-rk3399_defconfig
> +++ configs/rockpro64-rk3399_defconfig
> @@ -43,6 +43,8 @@ CONFIG_REGULATOR_PWM=y
>   CONFIG_REGULATOR_RK8XX=y
>   CONFIG_PWM_ROCKCHIP=y
>   CONFIG_RAM_RK3399_LPDDR4=y
> +CONFIG_DM_RNG=y
> +CONFIG_RNG_ROCKCHIP=y
>   CONFIG_BAUDRATE=1500000
>   CONFIG_DEBUG_UART_SHIFT=2
>   CONFIG_ROCKCHIP_SPI=y

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

* [PATCH] rockchip: enable RNG on RockPro64
@ 2020-05-29 17:53 Marcin Juszkiewicz
  0 siblings, 0 replies; 5+ messages in thread
From: Marcin Juszkiewicz @ 2020-05-29 17:53 UTC (permalink / raw)
  To: u-boot

RNG module works fine on RockPro64 so let's enable it by default.

=>  rng
00000000: 77 08 dd 04 2c 4d b8 cf 25 07 29 2d c0 ce 28 3b  w...,M..%.)-..(;
00000010: d4 5a 38 68 b1 40 97 59 b8 a5 7c 42 f8 4c 38 28  .Z8h. at .Y..|B.L8(
00000020: 25 20 0b 4b f0 1a d5 c1 e6 a2 c2 34 5a 5e 64 26  % .K.......4Z^d&
00000030: 41 8b d8 7e c4 d6 9e e3 da 0e 98 a2 2f 38 0d 9f  A..~......../8..

Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
---
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++
 configs/rockpro64-rk3399_defconfig        | 2 ++
 2 files changed, 6 insertions(+)

diff --git arch/arm/dts/rk3399-rockpro64-u-boot.dtsi arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
index deaa3efd39..824ee4e3ce 100644
--- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
+++ arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
@@ -23,3 +23,7 @@
 &vdd_log {
 	regulator-init-microvolt = <950000>;
 };
+
+&rng {
+	status = "okay";
+};
diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig
index 9d4343a5a7..eb83b1376b 100644
--- configs/rockpro64-rk3399_defconfig
+++ configs/rockpro64-rk3399_defconfig
@@ -43,6 +43,8 @@ CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_RK3399_LPDDR4=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_ROCKCHIP_SPI=y
-- 
2.26.2

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

end of thread, other threads:[~2020-05-29 17:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-23 12:18 [PATCH] rockchip: enable RNG on RockPro64 Marcin Juszkiewicz
2020-05-25  2:57 ` Kever Yang
2020-05-25  8:52   ` Marcin Juszkiewicz
2020-05-29  9:57     ` Kever Yang
2020-05-29 17:53 Marcin Juszkiewicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.