Skip to content

Commit 5f1f152

Browse files
committed
Merge tag 'omap-for-v5.5/dt-late-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/dt
Few late dts changes for omaps for v5.5 merge window Let's configure omap3 rng as we can now easily do it with a dts change only by tagging it with status = "disabled" for n900 where it's not accessible. This improves the boot-up time with distros quite a bit with proper entropy source around. There's also another minor update for logicpd-torpedo that does not have USB host pins wired. * tag 'omap-for-v5.5/dt-late-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: dts: logicpd-torpedo: Disable USB Host ARM: dts: Configure omap3 rng Link: https://lore.kernel.org/r/pull-1573579927-542764@atomide.com Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents f1deadb + abb0e36 commit 5f1f152

5 files changed

Lines changed: 42 additions & 1 deletion

File tree

‎arch/arm/boot/dts/am3517.dtsi‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@
115115
};
116116
};
117117

118+
/* Not currently working, probably needs at least different clocks */
119+
&rng_target {
120+
status = "disabled";
121+
/delete-property/ clocks;
122+
};
123+
118124
/* Table Table 5-79 of the TRM shows 480ab000 is reserved */
119125
&usb_otg_hs {
120126
status = "disabled";

‎arch/arm/boot/dts/logicpd-torpedo-som.dtsi‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
};
3636
};
3737

38+
/* The Torpedo doesn't route the USB host pins */
39+
&usbhshost {
40+
status = "disabled";
41+
};
42+
3843
&gpmc {
3944
ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
4045

‎arch/arm/boot/dts/omap3-n900.dts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,11 @@
10131013
};
10141014
};
10151015

1016+
/* RNG not directly accessible on n900, see omap3-rom-rng instead */
1017+
&rng_target {
1018+
status = "disabled";
1019+
};
1020+
10161021
&usb_otg_hs {
10171022
interface-type = <0>;
10181023
usb-phy = <&usb2_phy>;

‎arch/arm/boot/dts/omap3.dtsi‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* kind, whether express or implied.
99
*/
1010

11+
#include <dt-bindings/bus/ti-sysc.h>
1112
#include <dt-bindings/gpio/gpio.h>
1213
#include <dt-bindings/interrupt-controller/irq.h>
1314
#include <dt-bindings/pinctrl/omap.h>
@@ -502,6 +503,30 @@
502503
status = "disabled";
503504
};
504505

506+
/* Likely needs to be tagged disabled on HS devices */
507+
rng_target: target-module@480a0000 {
508+
compatible = "ti,sysc-omap2", "ti,sysc";
509+
reg = <0x480a003c 0x4>,
510+
<0x480a0040 0x4>,
511+
<0x480a0044 0x4>;
512+
reg-names = "rev", "sysc", "syss";
513+
ti,sysc-mask = <(SYSC_OMAP2_AUTOIDLE)>;
514+
ti,sysc-sidle = <SYSC_IDLE_FORCE>,
515+
<SYSC_IDLE_NO>;
516+
ti,syss-mask = <1>;
517+
clocks = <&rng_ick>;
518+
clock-names = "ick";
519+
#address-cells = <1>;
520+
#size-cells = <1>;
521+
ranges = <0 0x480a0000 0x2000>;
522+
523+
rng: rng@0 {
524+
compatible = "ti,omap2-rng";
525+
reg = <0x0 0x2000>;
526+
interrupts = <52>;
527+
};
528+
};
529+
505530
mcbsp2: mcbsp@49022000 {
506531
compatible = "ti,omap3-mcbsp";
507532
reg = <0x49022000 0xff>,

‎arch/arm/boot/dts/omap34xx-omap36xx-clocks.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,6 @@
260260
<&gpt10_ick>, <&mcbsp5_ick>, <&mcbsp1_ick>,
261261
<&omapctrl_ick>, <&aes2_ick>, <&sha12_ick>, <&icr_ick>,
262262
<&des2_ick>, <&mspro_ick>, <&mailboxes_ick>,
263-
<&mspro_fck>;
263+
<&rng_ick>, <&mspro_fck>;
264264
};
265265
};

0 commit comments

Comments
 (0)