| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  |  * MPC5121E ADS Device Tree Source | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  |  * Copyright 2007-2008 Freescale Semiconductor Inc. | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute  it and/or modify it | 
					
						
							|  |  |  |  * under  the terms of  the GNU General  Public License as published by the | 
					
						
							|  |  |  |  * Free Software Foundation;  either version 2 of the  License, or (at your | 
					
						
							|  |  |  |  * option) any later version. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-06-03 19:38:30 +02:00
										 |  |  | #include <mpc5121.dtsi> | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 
 | 
					
						
							|  |  |  | / { | 
					
						
							|  |  |  | 	model = "mpc5121ads"; | 
					
						
							| 
									
										
										
										
											2013-04-04 03:57:30 +00:00
										 |  |  | 	compatible = "fsl,mpc5121ads", "fsl,mpc5121"; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	nfc@40000000 { | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		/* | 
					
						
							|  |  |  | 		 * ADS has two Hynix 512MB Nand flash chips in a single | 
					
						
							|  |  |  | 		 * stacked package. | 
					
						
							|  |  |  | 		 */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		chips = <2>; | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-02-16 11:12:04 -07:00
										 |  |  | 		nand@0 { | 
					
						
							|  |  |  | 			label = "nand"; | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 			reg = <0x00000000 0x40000000>;	/* 512MB + 512MB */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 	localbus@80000020 { | 
					
						
							|  |  |  | 		ranges = <0x0 0x0 0xfc000000 0x04000000 | 
					
						
							|  |  |  | 			  0x2 0x0 0x82000000 0x00008000>; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		flash@0,0 { | 
					
						
							|  |  |  | 			compatible = "cfi-flash"; | 
					
						
							|  |  |  | 			reg = <0 0x0 0x4000000>; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			#address-cells = <1>; | 
					
						
							|  |  |  | 			#size-cells = <1>; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 			bank-width = <4>; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			device-width = <2>; | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			protected@0 { | 
					
						
							|  |  |  | 				label = "protected"; | 
					
						
							|  |  |  | 				reg = <0x00000000 0x00040000>;  // first sector is protected | 
					
						
							|  |  |  | 				read-only; | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 			filesystem@40000 { | 
					
						
							|  |  |  | 				label = "filesystem"; | 
					
						
							|  |  |  | 				reg = <0x00040000 0x03c00000>;  // 60M for filesystem | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 			kernel@3c40000 { | 
					
						
							|  |  |  | 				label = "kernel"; | 
					
						
							|  |  |  | 				reg = <0x03c40000 0x00280000>;  // 2.5M for kernel | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 			device-tree@3ec0000 { | 
					
						
							|  |  |  | 				label = "device-tree"; | 
					
						
							|  |  |  | 				reg = <0x03ec0000 0x00040000>;  // one sector for device tree | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 			u-boot@3f00000 { | 
					
						
							|  |  |  | 				label = "u-boot"; | 
					
						
							|  |  |  | 				reg = <0x03f00000 0x00100000>;  // 1M for u-boot | 
					
						
							|  |  |  | 				read-only; | 
					
						
							|  |  |  | 			}; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		board-control@2,0 { | 
					
						
							|  |  |  | 			compatible = "fsl,mpc5121ads-cpld"; | 
					
						
							|  |  |  | 			reg = <0x2 0x0 0x8000>; | 
					
						
							|  |  |  | 		}; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		cpld_pic: pic@2,a { | 
					
						
							|  |  |  | 			compatible = "fsl,mpc5121ads-cpld-pic"; | 
					
						
							|  |  |  | 			interrupt-controller; | 
					
						
							|  |  |  | 			#interrupt-cells = <2>; | 
					
						
							|  |  |  | 			reg = <0x2 0xa 0x5>; | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 			/* irq routing: | 
					
						
							|  |  |  | 			 * all irqs but touch screen are routed to irq0 (ipic 48) | 
					
						
							|  |  |  | 			 * touch screen is statically routed to irq1 (ipic 17) | 
					
						
							|  |  |  | 			 * so don't use it here | 
					
						
							|  |  |  | 			 */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			interrupts = <48 0x8>; | 
					
						
							|  |  |  | 		}; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	soc@80000000 { | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		i2c@1700 { | 
					
						
							| 
									
										
										
										
											2010-02-16 11:12:04 -07:00
										 |  |  | 			fsl,preserve-clocking; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			hwmon@4a { | 
					
						
							|  |  |  | 				compatible = "adi,ad7414"; | 
					
						
							|  |  |  | 				reg = <0x4a>; | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			eeprom@50 { | 
					
						
							|  |  |  | 				compatible = "at,24c32"; | 
					
						
							|  |  |  | 				reg = <0x50>; | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			rtc@68 { | 
					
						
							|  |  |  | 				compatible = "stm,m41t62"; | 
					
						
							|  |  |  | 				reg = <0x68>; | 
					
						
							|  |  |  | 			}; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		eth0: ethernet@2800 { | 
					
						
							|  |  |  | 			phy-handle = <&phy0>; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		can@2300 { | 
					
						
							|  |  |  | 			status = "disabled"; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		can@2380 { | 
					
						
							|  |  |  | 			status = "disabled"; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		viu@2400 { | 
					
						
							|  |  |  | 			status = "disabled"; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		mdio@2800 { | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 			phy0: ethernet-phy@0 { | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 				reg = <1>; | 
					
						
							|  |  |  | 			}; | 
					
						
							|  |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		/* mpc5121ads only uses USB0 */ | 
					
						
							|  |  |  | 		usb@3000 { | 
					
						
							|  |  |  | 			status = "disabled"; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		/* USB0 using internal UTMI PHY */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		usb@4000 { | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 			dr_mode = "host"; | 
					
						
							| 
									
										
										
										
											2010-02-16 11:12:04 -07:00
										 |  |  | 			fsl,invert-drvvbus; | 
					
						
							|  |  |  | 			fsl,invert-pwr-fault; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		/* PSC3 serial port A aka ttyPSC0 */ | 
					
						
							|  |  |  | 		psc@11300 { | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		/* PSC4 serial port B aka ttyPSC1 */ | 
					
						
							|  |  |  | 		psc@11400 { | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 		}; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 		/* PSC5 in ac97 mode */ | 
					
						
							|  |  |  | 		ac97: psc@11500 { | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 			compatible = "fsl,mpc5121-psc-ac97", "fsl,mpc5121-psc"; | 
					
						
							|  |  |  | 			fsl,mode = "ac97-slave"; | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 			fsl,rx-fifo-size = <384>; | 
					
						
							|  |  |  | 			fsl,tx-fifo-size = <384>; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 		}; | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	pci: pci@80008500 { | 
					
						
							|  |  |  | 		interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | 
					
						
							|  |  |  | 		interrupt-map = < | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 				/* IDSEL 0x15 - Slot 1 PCI */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 				 0xa800 0x0 0x0 0x1 &cpld_pic 0x0 0x8 | 
					
						
							|  |  |  | 				 0xa800 0x0 0x0 0x2 &cpld_pic 0x1 0x8 | 
					
						
							|  |  |  | 				 0xa800 0x0 0x0 0x3 &cpld_pic 0x2 0x8 | 
					
						
							|  |  |  | 				 0xa800 0x0 0x0 0x4 &cpld_pic 0x3 0x8 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 				/* IDSEL 0x16 - Slot 2 MiniPCI */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 				 0xb000 0x0 0x0 0x1 &cpld_pic 0x4 0x8 | 
					
						
							|  |  |  | 				 0xb000 0x0 0x0 0x2 &cpld_pic 0x5 0x8 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-10 17:15:38 +01:00
										 |  |  | 				/* IDSEL 0x17 - Slot 3 MiniPCI */ | 
					
						
							| 
									
										
										
										
											2008-07-09 14:54:01 -06:00
										 |  |  | 				 0xb800 0x0 0x0 0x1 &cpld_pic 0x6 0x8 | 
					
						
							|  |  |  | 				 0xb800 0x0 0x0 0x2 &cpld_pic 0x7 0x8 | 
					
						
							|  |  |  | 				>; | 
					
						
							| 
									
										
										
										
											2008-01-29 04:28:54 +11:00
										 |  |  | 	}; | 
					
						
							|  |  |  | }; |