Based on last subversion commit R368820
With guidance from mmel to move from standard memory access to syscon based methods.
Remove ti_scm_syscon.c due to interference with other SoCs (too generic compatible field "syscon", "simple-bus" in dts). Now the "scm_conf" node is picked up by syscon_generic.c
Due to the clocks uses the syscon interface it seems convenient that ti_prcm.c also derive from syscon_generic.c.
But "for now" its the best place to create parent clocks as clk_link aswell. But...i need to redefine the syscon_generic_attach() as public and it feels a lite bit wrong. Any suggestions?
I also need to define syscon_get_handle so i suspect i have done something wrong in ti_prcm.c in the DEFINE_CLASS_1() / EARLY_DRIVER_MODULE / ... ?
I cant find a way to get parents name from the devicetree without walking through everything first and pair clock reference with the actual name and a second turn through the device tree and pick up the parents name.
So i followed the example from arm64/rockchip/rk3399_cru and from your arm64/nvidia/tegra210 and did a lookup table for the nodes -> parents.
The system boots to login prompt on a beaglebone black, i have not tried anything else than query the sysctl hw.clock.
test and verify that the clocks are actually usable.