diff options
author | Adam Ford <[email protected]> | 2019-08-26 08:47:09 -0700 |
---|---|---|
committer | Tony Lindgren <[email protected]> | 2019-08-26 08:47:09 -0700 |
commit | 6cb0ac0fb9786d01f140dcfcd3d09ce850dd0a64 (patch) | |
tree | e9c0f75695b83b12ff776e56c393fa22e0b4937b | |
parent | 3b72fc895a2e57f70276b46f386f35d752adf555 (diff) |
ARM: dts: ARM: dts: Configure interconnect target module for am3517sgx
Based on Tony Lindgren's work for omap34xx, this patch applies the same
functionality to the AM3517.
The following can be tested via sysfs with the following to ensure the SGX
module gets enabled and disabled properly:
0x00010201
Bus error
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: Adam Ford <[email protected]>
[[email protected]: updated subject, dropped rstctrl info]
Signed-off-by: Tony Lindgren <[email protected]>
-rw-r--r-- | arch/arm/boot/dts/am3517.dtsi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am3517.dtsi b/arch/arm/boot/dts/am3517.dtsi index 23ea381d363f..bf3002009b00 100644 --- a/arch/arm/boot/dts/am3517.dtsi +++ b/arch/arm/boot/dts/am3517.dtsi @@ -88,6 +88,30 @@ interrupts = <24>; clocks = <&hecc_ck>; }; + + /* + * On am3517 the OCP registers do not seem to be accessible + * similar to the omap34xx. Maybe SGX is permanently set to + * "OCP bypass mode", or maybe there is OCP_SYSCONFIG that is + * write-only at 0x50000e10. We detect SGX based on the SGX + * revision register instead of the unreadable OCP revision + * register. + */ + sgx_module: target-module@50000000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x50000014 0x4>; + reg-names = "rev"; + clocks = <&sgx_fck>, <&sgx_ick>; + clock-names = "fck", "ick"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x50000000 0x4000>; + + /* + * Closed source PowerVR driver, no child device + * binding or driver in mainline + */ + }; }; }; |