Quantcast
Channel: Debian on Shuttle KD20 (PLX OXNAS 7821)
Viewing all articles
Browse latest Browse all 141

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
WarheadsSE Wrote:
-------------------------------------------------------
> It would probably be est to get the sata@ so that
> it doesn't think there are actually 2 entries, but
> that you can specify nr-ports 2, and it uses the
> second port @ +0x10000

I tried yesterday something like that - maybe I did it wrong - and adaped the syntax for the krikwood 2 port devices.
With these enteries
DTS:
sata@45900000{
			nr-ports = <2>;
			status = "okay";
DTSI:
	sata@45900000{
			compatible = "plxtech,nas782x-sata";
			/*	port		sgdma		core	*/
		reg = <0x45900000 0x100>, <0x459B0010 0x10>, <0x459E0000 0x2000>,
			/*	phy		descriptors (optional)	*/
			<0x44900000 0x0C>, <0x50000000 0x1000>;
		interrupts = <0 18 0x304>;
		clocks = <&stdclk 4>;
		resets = <&rst 11>, <&rst 12>, <&rst 13>;
		reset-names = "sata", "link", "phy";
		phys = <&sata_phy0>, <&sata_phy1>;
		phy-names = "port0", "port1";
		status = "disabled";
		};		
 sata_phy0: sata-phy@45900000 {
			compatible = "plxtech,nas782x-sata";
			reg = <0x45900000 0x100>;
			clock-names = "sata";
			#phy-cells = <0>;
			status = "ok";
		};

		sata_phy1: sata-phy@45910000 {
			compatible = plxtech,nas782x-sata";
			reg = <45910000 0x100>;
			clock-names = "sata";
			#phy-cells = <0>;
			status = "ok";
		};

But I get with these configs compiling errors with "no entery for sata_phy0" and something like these.
So I changed it to 2 sata enteries and now it compiles the kernel and somehow finds the second sata, but with errors.

Viewing all articles
Browse latest Browse all 141

Trending Articles