ste-nomadik-stn8815.dtsi 8.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
 * Device Tree for the ST-Ericsson Nomadik 8815 STn8815 SoC
 */
/include/ "skeleton.dtsi"

/ {
	#address-cells = <1>;
	#size-cells = <1>;

	memory {
		reg = <0x00000000 0x04000000>,
		    <0x08000000 0x04000000>;
	};

	L2: l2-cache {
		compatible = "arm,l210-cache";
		reg = <0x10210000 0x1000>;
		interrupt-parent = <&vica>;
		interrupts = <30>;
		cache-unified;
		cache-level = <2>;
	};

24
	mtu0: mtu@101e2000 {
25
		/* Nomadik system timer */
26
		compatible = "st,nomadik-mtu";
27 28 29
		reg = <0x101e2000 0x1000>;
		interrupt-parent = <&vica>;
		interrupts = <4>;
30 31
		clocks = <&timclk>, <&pclk>;
		clock-names = "timclk", "apb_pclk";
32 33
	};

34
	mtu1: mtu@101e3000 {
35 36 37 38
		/* Secondary timer */
		reg = <0x101e3000 0x1000>;
		interrupt-parent = <&vica>;
		interrupts = <5>;
39 40
		clocks = <&timclk>, <&pclk>;
		clock-names = "timclk", "apb_pclk";
41 42
	};

43 44 45 46 47 48 49 50 51 52
	gpio0: gpio@101e4000 {
		compatible = "st,nomadik-gpio";
		reg =  <0x101e4000 0x80>;
		interrupt-parent = <&vica>;
		interrupts = <6>;
		interrupt-controller;
		#interrupt-cells = <2>;
		gpio-controller;
		#gpio-cells = <2>;
		gpio-bank = <0>;
53
		clocks = <&pclk>;
54 55 56 57 58 59 60 61 62 63 64 65
	};

	gpio1: gpio@101e5000 {
		compatible = "st,nomadik-gpio";
		reg =  <0x101e5000 0x80>;
		interrupt-parent = <&vica>;
		interrupts = <7>;
		interrupt-controller;
		#interrupt-cells = <2>;
		gpio-controller;
		#gpio-cells = <2>;
		gpio-bank = <1>;
66
		clocks = <&pclk>;
67 68 69 70 71 72 73 74 75 76 77 78
	};

	gpio2: gpio@101e6000 {
		compatible = "st,nomadik-gpio";
		reg =  <0x101e6000 0x80>;
		interrupt-parent = <&vica>;
		interrupts = <8>;
		interrupt-controller;
		#interrupt-cells = <2>;
		gpio-controller;
		#gpio-cells = <2>;
		gpio-bank = <2>;
79
		clocks = <&pclk>;
80 81 82 83 84 85 86 87 88 89 90 91
	};

	gpio3: gpio@101e7000 {
		compatible = "st,nomadik-gpio";
		reg =  <0x101e7000 0x80>;
		interrupt-parent = <&vica>;
		interrupts = <9>;
		interrupt-controller;
		#interrupt-cells = <2>;
		gpio-controller;
		#gpio-cells = <2>;
		gpio-bank = <3>;
92
		clocks = <&pclk>;
93 94 95
	};

	pinctrl {
96
		compatible = "stericsson,stn8815-pinctrl";
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
		/* Pin configurations */
		uart0 {
			uart0_default_mux: uart0_mux {
				u0_default_mux {
					ste,function = "u0";
					ste,pins = "u0_a_1";
				};
			};
		};
		uart1 {
			uart1_default_mux: uart1_mux {
				u1_default_mux {
					ste,function = "u1";
					ste,pins = "u1_a_1";
				};
			};
		};
		mmcsd {
			mmcsd_default_mux: mmcsd_mux {
				mmcsd_default_mux {
					ste,function = "mmcsd";
					ste,pins = "mmcsd_a_1";
				};
			};
			mmcsd_default_mode: mmcsd_default {
				mmcsd_default_cfg1 {
					/* MCCLK */
					ste,pins = "GPIO8_B10";
					ste,output = <0>;
				};
				mmcsd_default_cfg2 {
					/* MCCMDDIR, MCDAT0DIR, MCDAT31DIR */
					ste,pins = "GPIO10_C11", "GPIO15_A12",
					"GPIO16_C13";
					ste,output = <1>;
				};
				mmcsd_default_cfg3 {
					/* MCCMD, MCDAT3-0, MCMSFBCLK */
					ste,pins = "GPIO9_A10", "GPIO11_B11",
					"GPIO12_A11", "GPIO13_C12",
					"GPIO14_B12", "GPIO24_C15";
					ste,input = <1>;
				};
			};
		};
		i2c0 {
			i2c0_default_mode: i2c0_default {
				i2c0_default_cfg {
					ste,pins = "GPIO62_D3", "GPIO63_D2";
					ste,input = <1>;
				};
			};
		};
		i2c1 {
			i2c1_default_mode: i2c1_default {
				i2c1_default_cfg {
					ste,pins = "GPIO53_L4", "GPIO54_L3";
					ste,input = <1>;
				};
			};
		};
		i2c2 {
			i2c2_default_mode: i2c2_default {
				i2c2_default_cfg {
					ste,pins = "GPIO73_C21", "GPIO74_C20";
					ste,input = <1>;
				};
			};
		};
166 167
	};

168 169 170 171 172 173 174 175 176 177
	src: src@101e0000 {
		compatible = "stericsson,nomadik-src";
		reg = <0x101e0000 0x1000>;
		clocks {
			/*
			 * Dummy clock for primecells
			 */
			pclk: pclk@0 {
				#clock-cells = <0>;
				compatible = "fixed-clock";
178
				clock-frequency = <0>;
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
			};
			/*
			 * The 2.4 MHz TIMCLK reference clock is active at
			 * boot time, this is actually the MXTALCLK @19.2 MHz
			 * divided by 8. This clock is used by the timers and
			 * watchdog. See page 105 ff.
			 */
			timclk: timclk@2.4M {
				#clock-cells = <0>;
				compatible = "fixed-clock";
				clock-frequency = <2400000>;
			};
			/*
			 * At boot time, PLL2 is set to generate a set of
			 * fixed clocks, one of them is CLK48, the 48 MHz
			 * clock, routed to the UART, MMC/SD, I2C, IrDA,
			 * USB and SSP blocks.
			 */
			clk48: clk48@48M {
				#clock-cells = <0>;
				compatible = "fixed-clock";
				clock-frequency = <48000000>;
			};
		};
	};

L
Linus Walleij 已提交
205 206 207 208 209 210 211 212 213 214
	/* A NAND flash of 128 MiB */
	fsmc: flash@40000000 {
		compatible = "stericsson,fsmc-nand";
		#address-cells = <1>;
		#size-cells = <1>;
		reg = <0x10100000 0x1000>,	/* FSMC Register*/
			<0x40000000 0x2000>,	/* NAND Base DATA */
			<0x41000000 0x2000>,	/* NAND Base ADDR */
			<0x40800000 0x2000>;	/* NAND Base CMD */
		reg-names = "fsmc_regs", "nand_data", "nand_addr", "nand_cmd";
215
		clocks = <&pclk>;
L
Linus Walleij 已提交
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
		status = "okay";

		partition@0 {
		label = "X-Loader(NAND)";
			reg = <0x0 0x40000>;
		};
		partition@40000 {
			label = "MemInit(NAND)";
			reg = <0x40000 0x40000>;
		};
		partition@80000 {
			label = "BootLoader(NAND)";
			reg = <0x80000 0x200000>;
		};
		partition@280000 {
			label = "Kernel zImage(NAND)";
			reg = <0x280000 0x300000>;
		};
		partition@580000 {
			label = "Root Filesystem(NAND)";
			reg = <0x580000 0x1600000>;
		};
		partition@1b80000 {
			label = "User Filesystem(NAND)";
			reg = <0x1b80000 0x6480000>;
		};
	};

244 245 246 247 248 249 250 251 252 253 254 255
	external-bus@34000000 {
		compatible = "simple-bus";
		reg = <0x34000000 0x1000000>;
		#address-cells = <1>;
		#size-cells = <1>;
		ranges = <0 0x34000000 0x1000000>;
		ethernet@300 {
			compatible = "smsc,lan91c111";
			reg = <0x300 0x0fd00>;
		};
	};

256 257 258 259 260 261 262
	/* I2C0 connected to the STw4811 power management chip */
	i2c0 {
		compatible = "i2c-gpio";
		gpios = <&gpio1 31 0>, /* sda */
			<&gpio1 30 0>; /* scl */
		#address-cells = <1>;
		#size-cells = <0>;
263 264
		pinctrl-names = "default";
		pinctrl-0 = <&i2c0_default_mode>;
265 266 267 268 269 270 271 272 273 274 275 276 277 278

		stw4811@2d {
			   compatible = "st,stw4811";
			   reg = <0x2d>;
		};
	};

	/* I2C1 connected to various sensors */
	i2c1 {
		compatible = "i2c-gpio";
		gpios = <&gpio1 22 0>, /* sda */
			<&gpio1 21 0>; /* scl */
		#address-cells = <1>;
		#size-cells = <0>;
279 280
		pinctrl-names = "default";
		pinctrl-0 = <&i2c1_default_mode>;
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302

		camera@2d {
			   compatible = "st,camera";
			   reg = <0x10>;
		};
		stw5095@1a {
			   compatible = "st,stw5095";
			   reg = <0x1a>;
		};
		lis3lv02dl@1d {
			   compatible = "st,lis3lv02dl";
			   reg = <0x1d>;
		};
	};

	/* I2C2 connected to the USB portions of the STw4811 only */
	i2c2 {
		compatible = "i2c-gpio";
		gpios = <&gpio2 10 0>, /* sda */
			<&gpio2 9 0>; /* scl */
		#address-cells = <1>;
		#size-cells = <0>;
303 304 305
		pinctrl-names = "default";
		pinctrl-0 = <&i2c2_default_mode>;

306 307 308 309 310 311
		stw4811@2d {
			   compatible = "st,stw4811-usb";
			   reg = <0x2d>;
		};
	};

312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
	amba {
		compatible = "arm,amba-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		vica: intc@0x10140000 {
			compatible = "arm,versatile-vic";
			interrupt-controller;
			#interrupt-cells = <1>;
			reg = <0x10140000 0x20>;
		};

		vicb: intc@0x10140020 {
			compatible = "arm,versatile-vic";
			interrupt-controller;
			#interrupt-cells = <1>;
			reg = <0x10140020 0x20>;
		};

		uart0: uart@101fd000 {
			compatible = "arm,pl011", "arm,primecell";
			reg = <0x101fd000 0x1000>;
			interrupt-parent = <&vica>;
			interrupts = <12>;
337 338
			clocks = <&clk48>, <&pclk>;
			clock-names = "uartclk", "apb_pclk";
339 340
			pinctrl-names = "default";
			pinctrl-0 = <&uart0_default_mux>;
341 342 343 344 345 346 347
		};

		uart1: uart@101fb000 {
			compatible = "arm,pl011", "arm,primecell";
			reg = <0x101fb000 0x1000>;
			interrupt-parent = <&vica>;
			interrupts = <17>;
348 349
			clocks = <&clk48>, <&pclk>;
			clock-names = "uartclk", "apb_pclk";
350 351
			pinctrl-names = "default";
			pinctrl-0 = <&uart1_default_mux>;
352 353 354 355 356 357 358
		};

		uart2: uart@101f2000 {
			compatible = "arm,pl011", "arm,primecell";
			reg = <0x101f2000 0x1000>;
			interrupt-parent = <&vica>;
			interrupts = <28>;
359 360
			clocks = <&clk48>, <&pclk>;
			clock-names = "uartclk", "apb_pclk";
361 362
			status = "disabled";
		};
363 364 365 366

		rng: rng@101b0000 {
			compatible = "arm,primecell";
			reg = <0x101b0000 0x1000>;
367 368
			clocks = <&clk48>, <&pclk>;
			clock-names = "rng", "apb_pclk";
369 370 371 372 373
		};

		rtc: rtc@101e8000 {
			compatible = "arm,pl031", "arm,primecell";
			reg = <0x101e8000 0x1000>;
374 375
			clocks = <&pclk>;
			clock-names = "apb_pclk";
376 377 378
			interrupt-parent = <&vica>;
			interrupts = <10>;
		};
379 380 381 382

		mmcsd: sdi@101f6000 {
			compatible = "arm,pl18x", "arm,primecell";
			reg = <0x101f6000 0x1000>;
383 384
			clocks = <&clk48>, <&pclk>;
			clock-names = "mclk", "apb_pclk";
385 386 387 388 389 390 391 392
			interrupt-parent = <&vica>;
			interrupts = <22>;
			max-frequency = <48000000>;
			bus-width = <4>;
			mmc-cap-mmc-highspeed;
			mmc-cap-sd-highspeed;
			cd-gpios = <&gpio3 15 0x1>;
			cd-inverted;
393 394
			pinctrl-names = "default";
			pinctrl-0 = <&mmcsd_default_mux>, <&mmcsd_default_mode>;
395
		};
396 397
	};
};