Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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ć <filip.matijevic.pz@gmail.com>
Cc: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Cc: moaz korena <moaz@korena.xyz>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Cc: Philipp Rossak <embed3d@gmail.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
[tony@atomide.com: updated subject, dropped rstctrl info]
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Adam Ford and committed by
Tony Lindgren
6cb0ac0f 3b72fc89

+24
+24
arch/arm/boot/dts/am3517.dtsi
··· 88 88 interrupts = <24>; 89 89 clocks = <&hecc_ck>; 90 90 }; 91 + 92 + /* 93 + * On am3517 the OCP registers do not seem to be accessible 94 + * similar to the omap34xx. Maybe SGX is permanently set to 95 + * "OCP bypass mode", or maybe there is OCP_SYSCONFIG that is 96 + * write-only at 0x50000e10. We detect SGX based on the SGX 97 + * revision register instead of the unreadable OCP revision 98 + * register. 99 + */ 100 + sgx_module: target-module@50000000 { 101 + compatible = "ti,sysc-omap2", "ti,sysc"; 102 + reg = <0x50000014 0x4>; 103 + reg-names = "rev"; 104 + clocks = <&sgx_fck>, <&sgx_ick>; 105 + clock-names = "fck", "ick"; 106 + #address-cells = <1>; 107 + #size-cells = <1>; 108 + ranges = <0 0x50000000 0x4000>; 109 + 110 + /* 111 + * Closed source PowerVR driver, no child device 112 + * binding or driver in mainline 113 + */ 114 + }; 91 115 }; 92 116 }; 93 117