Re: [PATCH 6/6] ARM: dts: Configure rstctrl reset for SGX
From: H. Nikolaus Schaller <hidden>
Date: 2019-09-13 09:50:13
Also in:
linux-clk
Hi Tony,
Am 14.08.2019 um 15:14 schrieb Tony Lindgren [off-list ref]: 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.
Do you have a list of these patches or a git for pulling the complete set of changes? Does it depend on mainline or linux-next? I tried to find the correct patches but it does not seem to work for me on beaglebone.
quoted hunk ↗ jump to hunk
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 <redacted> Cc: Filip Matijević <redacted> Cc: "H. Nikolaus Schaller" <redacted> Cc: Ivaylo Dimitrov <redacted> Cc: moaz korena <redacted> Cc: Merlijn Wajer <redacted> Cc: Paweł Chmiel <redacted> Cc: Philipp Rossak <redacted> Cc: Tomi Valkeinen <redacted> Signed-off-by: Tony Lindgren <tony@atomide.com> --- arch/arm/boot/dts/am33xx.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi@@ -460,6 +460,31 @@<&edma 5 0>; dma-names = "tx", "rx"; }; + + target-module@56000000 { + compatible = "ti,sysc-omap4", "ti,sysc"; + reg = <0x5600fe00 0x4>, + <0x5600fe10 0x4>; + reg-names = "rev", "sysc"; + ti,sysc-midle = <SYSC_IDLE_FORCE>, + <SYSC_IDLE_NO>, + <SYSC_IDLE_SMART>; + ti,sysc-sidle = <SYSC_IDLE_FORCE>, + <SYSC_IDLE_NO>, + <SYSC_IDLE_SMART>; + clocks = <&gfx_l3_clkctrl AM3_GFX_L3_GFX_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_gfx 0>; + reset-names = "rstctrl"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x56000000 0x1000000>; + + /* + * Closed source PowerVR driver, no child device + * binding or driver in mainline + */ + }; }; }; -- 2.21.0
BR and thanks,