Skip to content

Commit c3fb99f

Browse files
committed
ARM: dts: Configure rstctrl reset for am335x SGX
The following can be tested via sysfs with the following to ensure the SGX module gets enabled and disabled properly: # echo on > /sys/bus/platform/devices/5600fe00.target-module/power/control # rwmem 0x5600fe00 # revision register 0x5600fe00 = 0x40000000 # echo auto > /sys/bus/platform/devices/5600fe00.target-module/power/control # rwmem 0x5000fe00 Bus error Note that this patch depends on the PRM rstctrl driver that has been recently posted. If the child device driver(s) need to prevent rstctrl reset on PM runtime suspend, the drivers need to increase the usecount for the shared rstctrl reset that can be mapped also for the child device(s) or accessed via dev->parent. Cc: Adam Ford <[email protected]> Cc: Filip Matijević <[email protected]> Cc: "H. Nikolaus Schaller" <[email protected]> Cc: Ivaylo Dimitrov <[email protected]> Cc: moaz korena <[email protected]> Cc: Merlijn Wajer <[email protected]> Cc: Paweł Chmiel <[email protected]> Cc: Philipp Rossak <[email protected]> Cc: Tomi Valkeinen <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent d7a9d45 commit c3fb99f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

arch/arm/boot/dts/am33xx.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,31 @@
457457
<&edma 5 0>;
458458
dma-names = "tx", "rx";
459459
};
460+
461+
target-module@56000000 {
462+
compatible = "ti,sysc-omap4", "ti,sysc";
463+
reg = <0x5600fe00 0x4>,
464+
<0x5600fe10 0x4>;
465+
reg-names = "rev", "sysc";
466+
ti,sysc-midle = <SYSC_IDLE_FORCE>,
467+
<SYSC_IDLE_NO>,
468+
<SYSC_IDLE_SMART>;
469+
ti,sysc-sidle = <SYSC_IDLE_FORCE>,
470+
<SYSC_IDLE_NO>,
471+
<SYSC_IDLE_SMART>;
472+
clocks = <&gfx_l3_clkctrl AM3_GFX_L3_GFX_CLKCTRL 0>;
473+
clock-names = "fck";
474+
resets = <&prm_gfx 0>;
475+
reset-names = "rstctrl";
476+
#address-cells = <1>;
477+
#size-cells = <1>;
478+
ranges = <0 0x56000000 0x1000000>;
479+
480+
/*
481+
* Closed source PowerVR driver, no child device
482+
* binding or driver in mainline
483+
*/
484+
};
460485
};
461486
};
462487

0 commit comments

Comments
 (0)