Linux 2.6 frame buffer for XUPV2P

mingqian xilinx at live.cn
Sun Dec 21 12:34:00 EST 2008


Hi Grant, thank you for your quick reply:-)
Here is my dts:

/dts-v1/;
/ {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "xlnx,virtex405", "xlnx,virtex";
	model = "testing";
	DDR_512MB_64Mx64_rank2_row13_col10_cl2_5: memory at 0 {
		device_type = "memory";
		reg = < 0x0 0x10000000 >;
	} ;
	DDR_512MB_64Mx64_rank2_row13_col10_cl2_5: memory at 10000000 {
		device_type = "memory";
		reg = < 0x10000000 0x10000000 >;
	} ;
	chosen {
		bootargs = "console=ttyUL0 root=/dev/ram";
		linux,stdout-path = "/plb at 0/opb at 40000000/serial at 40600000";
	} ;
	cpus {
		#address-cells = <1>;
		#cpus = <0x1>;
		#size-cells = <0>;
		ppc405_0: cpu at 0 {
			clock-frequency = <300000000>;
			compatible = "PowerPC,405", "ibm,ppc405";
			d-cache-line-size = <0x20>;
			d-cache-size = <0x4000>;
			dcr-access-method = "native";
			dcr-controller ;
			device_type = "cpu";
			i-cache-line-size = <0x20>;
			i-cache-size = <0x4000>;
			model = "PowerPC,405";
			reg = <0>;
			timebase-frequency = <300000000>;
			xlnx,dcr-resync = <0x0>;
			xlnx,deterministic-mult = <0x0>;
			xlnx,disable-operand-forwarding = <0x1>;
			xlnx,mmu-enable = <0x1>;
		} ;
	} ;
	plb: plb at 0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "xlnx,plb-v34-1.02.a", "simple-bus";
		ranges ;
		opb: opb at 40000000 {
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "xlnx,opb-v20-1.10.c", "simple-bus";
			ranges = < 0x40000000 0x40000000 0x40000000 0xa08f8000 0xa08f8000 0x1000 >;
			Ethernet_MAC: ethernet at 40c00000 {
				compatible = "xlnx,opb-ethernet-1.04.a";
				device_type = "network";
				interrupt-parent = <&opb_intc_0>;
				interrupts = < 0 2 >;
				local-mac-address = [ 02 00 00 00 00 00 ];
				reg = < 0x40c00000 0x10000 >;
				xlnx,cam-bram-0-srl-1 = <0x1>;
				xlnx,cam-exist = <0x0>;
				xlnx,dev-blk-id = <0x1>;
				xlnx,dev-mir-enable = <0x1>;
				xlnx,dma-intr-coalesce = <0x1>;
				xlnx,dma-present = <0x1>;
				xlnx,err-count-exist = <0x1>;
				xlnx,family = "virtex2p";
				xlnx,fcs-insert-exist = <0x1>;
				xlnx,half-duplex-exist = <0x1>;
				xlnx,include-dev-pencoder = <0x1>;
				xlnx,ipif-rdfifo-depth = <0x8000>;
				xlnx,ipif-wrfifo-depth = <0x8000>;
				xlnx,jumbo-exist = <0x0>;
				xlnx,mac-fifo-bram-1-srl-0 = <0x0>;
				xlnx,mac-fifo-depth = <0x40>;
				xlnx,mii-exist = <0x1>;
				xlnx,miim-clkdvd = <0x1f>;
				xlnx,pad-insert-exist = <0x1>;
				xlnx,reset-present = <0x1>;
				xlnx,rx-dre-type = <0x0>;
				xlnx,rx-include-csum = <0x0>;
				xlnx,source-addr-insert-exist = <0x1>;
				xlnx,tx-dre-type = <0x0>;
				xlnx,tx-include-csum = <0x0>;
			} ;
			RS232_Uart_1: serial at 40600000 {
				clock-frequency = "";
				compatible = "xlnx,opb-uartlite-1.00.b";
				current-speed = <9600>;
				device_type = "serial";
				interrupt-parent = <&opb_intc_0>;
				interrupts = < 1 0 >;
				port-number = <0>;
				reg = < 0x40600000 0x10000 >;
				xlnx,baudrate = <0x2580>;
				xlnx,clk-freq = <0x5f5e100>;
				xlnx,data-bits = <0x8>;
				xlnx,odd-parity = <0x0>;
				xlnx,use-parity = <0x0>;
			} ;
			dcr_v29_0: dcr at 0 {
				#address-cells = <1>;
				#size-cells = <1>;
				compatible = "xlnx,dcr-v29-1.00.a", "simple-bus";
				ranges = < 0x0 0xa08f8000 0x1000 >;
				VGA_FrameBuffer: tft at 2c0 {
					compatible = "xlnx,plb-tft-cntlr-ref-1.00.d";
					dcr-parent = <&opb2dcr_bridge_0>;
					dcr-reg = < 0x2c0 0x10 >;
					reg = < 0xb00 0x40 >;
					xlnx,default-tft-base-addr = <0x3f>;
					xlnx,dps-init = <0x1>;
					xlnx,on-init = <0x1>;
					xlnx,pixclk-is-busclk-divby4 = <0x1>;
				} ;
			} ;
			opb2dcr_bridge_0: opb2dcr-bridge at a08f8000 {
				compatible = "xlnx,opb2dcr-bridge-1.00.b";
				dcr-access-method = "mmio";
				dcr-controller ;
				dcr-mmio-range = < 0xa08f8000 0x1000 >;
				dcr-mmio-stride = <4>;
				reg = < 0xa08f8000 0x1000 >;
				xlnx,family = "virtex2p";
			} ;
			opb_intc_0: interrupt-controller at 41200000 {
				#interrupt-cells = <0x2>;
				compatible = "xlnx,opb-intc-1.00.c";
				interrupt-controller ;
				reg = < 0x41200000 0x10000 >;
				xlnx,num-intr-inputs = <0x2>;
			} ;
		} ;
	} ;
}  ;


Best regards & Merry Christmas!

--------------------------------------------------
From: "Grant Likely" <grant.likely at secretlab.ca>
Sent: Sunday, December 21, 2008 4:45 AM
To: "mingqian" <xilinx at live.cn>
Cc: <linuxppc-embedded at ozlabs.org>
Subject: Re: Linux 2.6 frame buffer for XUPV2P

> On Sat, Dec 20, 2008 at 5:52 AM, mingqian <xilinx at live.cn> wrote:
>> Hi Grant,
>> My .config is:
> [...]
> 
> Hi Ming,
> 
> Can you please post your .dts file also?
> 
> Thanks,
> g.
> 
> -- 
> Grant Likely, B.Sc., P.Eng.
> Secret Lab Technologies Ltd.
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 


More information about the Linuxppc-embedded mailing list