Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 46949

Re: Ox820 device tree

$
0
0
bodhi Wrote:
-------------------------------------------------------
> Or this
>
> linux-oxnas-3.12-tld-2/arch/arm/boot/dts/ox820-pog
> oplug-pro.dts
>
>          sata@45900000 {
>  		status = "okay";
> 	        nr-ports = <2>;
>  	};
>
>
> The idea is just cloning the first SATA port,
> whatever definition that needs to be cloned. If
> you can't find any thing else related to SATA 1 in
> the kernel dts, then that's all you would need.
> Try both and see if you can get the kernel
> recognize SATA 2 in dtb.

The only things found related to second SATA in old kernel source are base address and sgdma setting. That's why it sounds so odd and it's not easy to get it going. If I only change those settings, there will be something overlapping while kernel boots. I just don't know what else to change and how.

Can clock and IRQ be same for both SATA? I suppose they must need some other memory settings not to be same. Is this correct?

Base address and SGDMA are simply because they can be found from old source, but there are still core, phy descriptors, irq and clock settings that I don't know if they must be changed or not.

Viewing all articles
Browse latest Browse all 46949

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>