sun4i-a10.dtsi 20 KB
Newer Older
1 2 3 4
/*
 * Copyright 2012 Stefan Roese
 * Stefan Roese <sr@denx.de>
 *
5 6 7 8
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
9
 *
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
 *  a) This library 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.
 *
 *     This library is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
42 43
 */

44
#include "skeleton.dtsi"
45

46
#include <dt-bindings/thermal/thermal.h>
47
#include <dt-bindings/dma/sun4i-a10.h>
48 49
#include <dt-bindings/clock/sun4i-a10-ccu.h>
#include <dt-bindings/reset/sun4i-a10-ccu.h>
50 51

/ {
52 53
	interrupt-parent = <&intc>;

54 55 56 57
	aliases {
		ethernet0 = &emac;
	};

58 59 60 61 62
	chosen {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

63
		framebuffer@0 {
64 65
			compatible = "allwinner,simple-framebuffer",
				     "simple-framebuffer";
66
			allwinner,pipeline = "de_be0-lcd0-hdmi";
67 68 69
			clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
				 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
				 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>;
70 71
			status = "disabled";
		};
72 73

		framebuffer@1 {
74 75
			compatible = "allwinner,simple-framebuffer",
				     "simple-framebuffer";
76
			allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
77 78 79 80 81
			clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
				 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
				 <&ccu CLK_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
				 <&ccu CLK_TCON0_CH1>, <&ccu CLK_HDMI>,
				 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
82 83
			status = "disabled";
		};
84 85 86 87 88

		framebuffer@2 {
			compatible = "allwinner,simple-framebuffer",
				     "simple-framebuffer";
			allwinner,pipeline = "de_fe0-de_be0-lcd0";
89 90 91 92
			clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_DE_BE0>,
				 <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_BE0>,
				 <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_TCON0_CH0>,
				 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
93 94 95 96 97 98 99
			status = "disabled";
		};

		framebuffer@3 {
			compatible = "allwinner,simple-framebuffer",
				     "simple-framebuffer";
			allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
100 101 102 103 104
			clocks = <&ccu CLK_AHB_TVE0>, <&ccu CLK_AHB_LCD0>,
				 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
				 <&ccu CLK_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
				 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_TVE0>,
				 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
105 106
			status = "disabled";
		};
107 108
	};

109
	cpus {
110 111
		#address-cells = <1>;
		#size-cells = <0>;
112
		cpu0: cpu@0 {
113
			device_type = "cpu";
114
			compatible = "arm,cortex-a8";
115
			reg = <0x0>;
116
			clocks = <&ccu CLK_CPU>;
117 118
			clock-latency = <244144>; /* 8 32k periods */
			operating-points = <
119
				/* kHz	  uV */
120
				1008000 1400000
121 122 123
				912000	1350000
				864000	1300000
				624000	1250000
124 125 126
				>;
			#cooling-cells = <2>;
			cooling-min-level = <0>;
127
			cooling-max-level = <3>;
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
	thermal-zones {
		cpu_thermal {
			/* milliseconds */
			polling-delay-passive = <250>;
			polling-delay = <1000>;
			thermal-sensors = <&rtp>;

			cooling-maps {
				map0 {
					trip = <&cpu_alert0>;
					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
				};
			};

			trips {
				cpu_alert0: cpu_alert0 {
					/* milliCelsius */
					temperature = <850000>;
					hysteresis = <2000>;
					type = "passive";
				};

				cpu_crit: cpu_crit {
					/* milliCelsius */
					temperature = <100000>;
					hysteresis = <2000>;
					type = "critical";
				};
			};
160 161 162
		};
	};

163 164 165
	memory {
		reg = <0x40000000 0x80000000>;
	};
166

167 168 169 170 171
	clocks {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

172
		osc24M: clk@1c20050 {
173
			#clock-cells = <0>;
174
			compatible = "fixed-clock";
175
			clock-frequency = <24000000>;
176
			clock-output-names = "osc24M";
177 178
		};

179
		osc32k: clk@0 {
180 181 182
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <32768>;
183
			clock-output-names = "osc32k";
184 185 186
		};
	};

187
	soc@1c00000 {
188 189 190 191 192
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

193
		sram-controller@1c00000 {
194 195 196 197 198 199
			compatible = "allwinner,sun4i-a10-sram-controller";
			reg = <0x01c00000 0x30>;
			#address-cells = <1>;
			#size-cells = <1>;
			ranges;

200
			sram_a: sram@0 {
201 202 203 204 205 206 207 208 209 210 211 212 213
				compatible = "mmio-sram";
				reg = <0x00000000 0xc000>;
				#address-cells = <1>;
				#size-cells = <1>;
				ranges = <0 0x00000000 0xc000>;

				emac_sram: sram-section@8000 {
					compatible = "allwinner,sun4i-a10-sram-a3-a4";
					reg = <0x8000 0x4000>;
					status = "disabled";
				};
			};

214
			sram_d: sram@10000 {
215 216 217 218 219 220
				compatible = "mmio-sram";
				reg = <0x00010000 0x1000>;
				#address-cells = <1>;
				#size-cells = <1>;
				ranges = <0 0x00010000 0x1000>;

221
				otg_sram: sram-section@0 {
222 223 224 225 226 227 228
					compatible = "allwinner,sun4i-a10-sram-d";
					reg = <0x0000 0x1000>;
					status = "disabled";
				};
			};
		};

229
		dma: dma-controller@1c02000 {
230 231 232
			compatible = "allwinner,sun4i-a10-dma";
			reg = <0x01c02000 0x1000>;
			interrupts = <27>;
233
			clocks = <&ccu CLK_AHB_DMA>;
234 235 236
			#dma-cells = <2>;
		};

237
		nfc: nand@1c03000 {
238 239 240
			compatible = "allwinner,sun4i-a10-nand";
			reg = <0x01c03000 0x1000>;
			interrupts = <37>;
241
			clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
242 243 244 245 246 247 248 249
			clock-names = "ahb", "mod";
			dmas = <&dma SUN4I_DMA_DEDICATED 3>;
			dma-names = "rxtx";
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

250
		spi0: spi@1c05000 {
251 252 253
			compatible = "allwinner,sun4i-a10-spi";
			reg = <0x01c05000 0x1000>;
			interrupts = <10>;
254
			clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
255
			clock-names = "ahb", "mod";
256 257
			dmas = <&dma SUN4I_DMA_DEDICATED 27>,
			       <&dma SUN4I_DMA_DEDICATED 26>;
258
			dma-names = "rx", "tx";
259 260 261 262 263
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

264
		spi1: spi@1c06000 {
265 266 267
			compatible = "allwinner,sun4i-a10-spi";
			reg = <0x01c06000 0x1000>;
			interrupts = <11>;
268
			clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
269
			clock-names = "ahb", "mod";
270 271
			dmas = <&dma SUN4I_DMA_DEDICATED 9>,
			       <&dma SUN4I_DMA_DEDICATED 8>;
272
			dma-names = "rx", "tx";
273 274 275 276 277
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

278
		emac: ethernet@1c0b000 {
279
			compatible = "allwinner,sun4i-a10-emac";
280 281
			reg = <0x01c0b000 0x1000>;
			interrupts = <55>;
282
			clocks = <&ccu CLK_AHB_EMAC>;
283
			allwinner,sram = <&emac_sram 1>;
284 285 286
			status = "disabled";
		};

287
		mdio: mdio@1c0b080 {
288
			compatible = "allwinner,sun4i-a10-mdio";
289 290 291 292 293 294
			reg = <0x01c0b080 0x14>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

295
		mmc0: mmc@1c0f000 {
296 297
			compatible = "allwinner,sun4i-a10-mmc";
			reg = <0x01c0f000 0x1000>;
298 299
			clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
			clock-names = "ahb", "mmc";
300 301
			interrupts = <32>;
			status = "disabled";
302 303
			#address-cells = <1>;
			#size-cells = <0>;
304 305
		};

306
		mmc1: mmc@1c10000 {
307 308
			compatible = "allwinner,sun4i-a10-mmc";
			reg = <0x01c10000 0x1000>;
309 310
			clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
			clock-names = "ahb", "mmc";
311 312
			interrupts = <33>;
			status = "disabled";
313 314
			#address-cells = <1>;
			#size-cells = <0>;
315 316
		};

317
		mmc2: mmc@1c11000 {
318 319
			compatible = "allwinner,sun4i-a10-mmc";
			reg = <0x01c11000 0x1000>;
320 321
			clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
			clock-names = "ahb", "mmc";
322 323
			interrupts = <34>;
			status = "disabled";
324 325
			#address-cells = <1>;
			#size-cells = <0>;
326 327
		};

328
		mmc3: mmc@1c12000 {
329 330
			compatible = "allwinner,sun4i-a10-mmc";
			reg = <0x01c12000 0x1000>;
331 332
			clocks = <&ccu CLK_AHB_MMC3>, <&ccu CLK_MMC3>;
			clock-names = "ahb", "mmc";
333 334
			interrupts = <35>;
			status = "disabled";
335 336
			#address-cells = <1>;
			#size-cells = <0>;
337 338
		};

339
		usb_otg: usb@1c13000 {
340 341
			compatible = "allwinner,sun4i-a10-musb";
			reg = <0x01c13000 0x0400>;
342
			clocks = <&ccu CLK_AHB_OTG>;
343 344 345 346 347 348 349 350 351
			interrupts = <38>;
			interrupt-names = "mc";
			phys = <&usbphy 0>;
			phy-names = "usb";
			extcon = <&usbphy 0>;
			allwinner,sram = <&otg_sram 1>;
			status = "disabled";
		};

352
		usbphy: phy@1c13400 {
353 354 355 356
			#phy-cells = <1>;
			compatible = "allwinner,sun4i-a10-usb-phy";
			reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
			reg-names = "phy_ctrl", "pmu1", "pmu2";
357
			clocks = <&ccu CLK_USB_PHY>;
358
			clock-names = "usb_phy";
359 360 361
			resets = <&ccu RST_USB_PHY0>,
				 <&ccu RST_USB_PHY1>,
				 <&ccu RST_USB_PHY2>;
362
			reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
363 364 365
			status = "disabled";
		};

366
		ehci0: usb@1c14000 {
367 368 369
			compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
			reg = <0x01c14000 0x100>;
			interrupts = <39>;
370
			clocks = <&ccu CLK_AHB_EHCI0>;
371 372 373 374 375
			phys = <&usbphy 1>;
			phy-names = "usb";
			status = "disabled";
		};

376
		ohci0: usb@1c14400 {
377 378 379
			compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
			reg = <0x01c14400 0x100>;
			interrupts = <64>;
380
			clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
381 382 383 384 385
			phys = <&usbphy 1>;
			phy-names = "usb";
			status = "disabled";
		};

386
		crypto: crypto-engine@1c15000 {
387 388 389
			compatible = "allwinner,sun4i-a10-crypto";
			reg = <0x01c15000 0x1000>;
			interrupts = <86>;
390
			clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
391 392 393
			clock-names = "ahb", "mod";
		};

394
		spi2: spi@1c17000 {
395 396 397
			compatible = "allwinner,sun4i-a10-spi";
			reg = <0x01c17000 0x1000>;
			interrupts = <12>;
398
			clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
399
			clock-names = "ahb", "mod";
400 401
			dmas = <&dma SUN4I_DMA_DEDICATED 29>,
			       <&dma SUN4I_DMA_DEDICATED 28>;
402
			dma-names = "rx", "tx";
403 404 405 406 407
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

408
		ahci: sata@1c18000 {
409 410 411
			compatible = "allwinner,sun4i-a10-ahci";
			reg = <0x01c18000 0x1000>;
			interrupts = <56>;
412
			clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
413 414 415
			status = "disabled";
		};

416
		ehci1: usb@1c1c000 {
417 418 419
			compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
			reg = <0x01c1c000 0x100>;
			interrupts = <40>;
420
			clocks = <&ccu CLK_AHB_EHCI1>;
421 422 423 424 425
			phys = <&usbphy 2>;
			phy-names = "usb";
			status = "disabled";
		};

426
		ohci1: usb@1c1c400 {
427 428 429
			compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
			reg = <0x01c1c400 0x100>;
			interrupts = <65>;
430
			clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
431 432 433 434 435
			phys = <&usbphy 2>;
			phy-names = "usb";
			status = "disabled";
		};

436
		spi3: spi@1c1f000 {
437 438 439
			compatible = "allwinner,sun4i-a10-spi";
			reg = <0x01c1f000 0x1000>;
			interrupts = <50>;
440
			clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
441
			clock-names = "ahb", "mod";
442 443
			dmas = <&dma SUN4I_DMA_DEDICATED 31>,
			       <&dma SUN4I_DMA_DEDICATED 30>;
444
			dma-names = "rx", "tx";
445 446 447 448 449
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

450
		ccu: clock@1c20000 {
451 452 453 454 455 456 457 458
			compatible = "allwinner,sun4i-a10-ccu";
			reg = <0x01c20000 0x400>;
			clocks = <&osc24M>, <&osc32k>;
			clock-names = "hosc", "losc";
			#clock-cells = <1>;
			#reset-cells = <1>;
		};

459
		intc: interrupt-controller@1c20400 {
460
			compatible = "allwinner,sun4i-a10-ic";
461 462 463 464 465
			reg = <0x01c20400 0x400>;
			interrupt-controller;
			#interrupt-cells = <1>;
		};

466
		pio: pinctrl@1c20800 {
467 468
			compatible = "allwinner,sun4i-a10-pinctrl";
			reg = <0x01c20800 0x400>;
469
			interrupts = <28>;
470
			clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
471
			clock-names = "apb", "hosc", "losc";
472
			gpio-controller;
473
			interrupt-controller;
474
			#interrupt-cells = <3>;
475
			#gpio-cells = <3>;
476

477 478 479 480 481
			can0_pins_a: can0@0 {
				pins = "PH20", "PH21";
				function = "can";
			};

482
			emac_pins_a: emac0@0 {
483 484 485 486 487 488
				pins = "PA0", "PA1", "PA2",
				       "PA3", "PA4", "PA5", "PA6",
				       "PA7", "PA8", "PA9", "PA10",
				       "PA11", "PA12", "PA13", "PA14",
				       "PA15", "PA16";
				function = "emac";
489 490
			};

491
			i2c0_pins_a: i2c0@0 {
492 493
				pins = "PB0", "PB1";
				function = "i2c0";
494 495
			};

496
			i2c1_pins_a: i2c1@0 {
497 498
				pins = "PB18", "PB19";
				function = "i2c1";
499 500
			};

501
			i2c2_pins_a: i2c2@0 {
502 503
				pins = "PB20", "PB21";
				function = "i2c2";
504
			};
505

506
			ir0_rx_pins_a: ir0@0 {
507 508
				pins = "PB4";
				function = "ir0";
509 510
			};

511
			ir0_tx_pins_a: ir0@1 {
512 513
				pins = "PB3";
				function = "ir0";
514 515
			};

516
			ir1_rx_pins_a: ir1@0 {
517 518
				pins = "PB23";
				function = "ir1";
519
			};
520

521
			ir1_tx_pins_a: ir1@1 {
522 523
				pins = "PB22";
				function = "ir1";
524
			};
525 526

			mmc0_pins_a: mmc0@0 {
527 528 529 530
				pins = "PF0", "PF1", "PF2",
				       "PF3", "PF4", "PF5";
				function = "mmc0";
				drive-strength = <30>;
531
				bias-pull-up;
532 533
			};

534
			ps20_pins_a: ps20@0 {
535 536
				pins = "PI20", "PI21";
				function = "ps2";
537 538
			};

539
			ps21_pins_a: ps21@0 {
540 541
				pins = "PH12", "PH13";
				function = "ps2";
542 543
			};

544
			pwm0_pins_a: pwm0@0 {
545 546
				pins = "PB2";
				function = "pwm";
547 548
			};

549
			pwm1_pins_a: pwm1@0 {
550 551
				pins = "PI3";
				function = "pwm";
552
			};
553

554
			spdif_tx_pins_a: spdif@0 {
555 556 557
				pins = "PB13";
				function = "spdif";
				bias-pull-up;
558 559
			};

560
			spi0_pins_a: spi0@0 {
561 562
				pins = "PI11", "PI12", "PI13";
				function = "spi0";
563 564 565
			};

			spi0_cs0_pins_a: spi0_cs0@0 {
566 567
				pins = "PI10";
				function = "spi0";
568 569 570
			};

			spi1_pins_a: spi1@0 {
571 572
				pins = "PI17", "PI18", "PI19";
				function = "spi1";
573 574 575
			};

			spi1_cs0_pins_a: spi1_cs0@0 {
576 577
				pins = "PI16";
				function = "spi1";
578 579 580
			};

			spi2_pins_a: spi2@0 {
581 582
				pins = "PC20", "PC21", "PC22";
				function = "spi2";
583 584 585
			};

			spi2_pins_b: spi2@1 {
586 587
				pins = "PB15", "PB16", "PB17";
				function = "spi2";
588 589 590
			};

			spi2_cs0_pins_a: spi2_cs0@0 {
591 592
				pins = "PC19";
				function = "spi2";
593 594 595
			};

			spi2_cs0_pins_b: spi2_cs0@1 {
596 597
				pins = "PB14";
				function = "spi2";
598
			};
599

600
			uart0_pins_a: uart0@0 {
601 602
				pins = "PB22", "PB23";
				function = "uart0";
603 604
			};

605
			uart0_pins_b: uart0@1 {
606 607
				pins = "PF2", "PF4";
				function = "uart0";
608
			};
609

610
			uart1_pins_a: uart1@0 {
611 612
				pins = "PA10", "PA11";
				function = "uart1";
613
			};
614
		};
615

616
		timer@1c20c00 {
617
			compatible = "allwinner,sun4i-a10-timer";
618 619 620 621 622
			reg = <0x01c20c00 0x90>;
			interrupts = <22>;
			clocks = <&osc24M>;
		};

623
		wdt: watchdog@1c20c90 {
624
			compatible = "allwinner,sun4i-a10-wdt";
625 626 627
			reg = <0x01c20c90 0x10>;
		};

628
		rtc: rtc@1c20d00 {
629
			compatible = "allwinner,sun4i-a10-rtc";
630 631 632 633
			reg = <0x01c20d00 0x20>;
			interrupts = <24>;
		};

634
		pwm: pwm@1c20e00 {
635 636 637 638 639 640 641
			compatible = "allwinner,sun4i-a10-pwm";
			reg = <0x01c20e00 0xc>;
			clocks = <&osc24M>;
			#pwm-cells = <3>;
			status = "disabled";
		};

642
		spdif: spdif@1c21000 {
643 644 645 646
			#sound-dai-cells = <0>;
			compatible = "allwinner,sun4i-a10-spdif";
			reg = <0x01c21000 0x400>;
			interrupts = <13>;
647
			clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
648 649 650 651 652 653 654
			clock-names = "apb", "spdif";
			dmas = <&dma SUN4I_DMA_NORMAL 2>,
			       <&dma SUN4I_DMA_NORMAL 2>;
			dma-names = "rx", "tx";
			status = "disabled";
		};

655
		ir0: ir@1c21800 {
656
			compatible = "allwinner,sun4i-a10-ir";
657
			clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
658 659 660 661 662 663
			clock-names = "apb", "ir";
			interrupts = <5>;
			reg = <0x01c21800 0x40>;
			status = "disabled";
		};

664
		ir1: ir@1c21c00 {
665
			compatible = "allwinner,sun4i-a10-ir";
666
			clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
667 668 669 670 671 672
			clock-names = "apb", "ir";
			interrupts = <6>;
			reg = <0x01c21c00 0x40>;
			status = "disabled";
		};

673
		i2s0: i2s@1c22400 {
674 675 676 677 678 679 680 681 682 683 684 685
			#sound-dai-cells = <0>;
			compatible = "allwinner,sun4i-a10-i2s";
			reg = <0x01c22400 0x400>;
			interrupts = <16>;
			clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
			clock-names = "apb", "mod";
			dmas = <&dma SUN4I_DMA_NORMAL 3>,
			       <&dma SUN4I_DMA_NORMAL 3>;
			dma-names = "rx", "tx";
			status = "disabled";
		};

686
		lradc: lradc@1c22800 {
687 688 689 690 691 692
			compatible = "allwinner,sun4i-a10-lradc-keys";
			reg = <0x01c22800 0x100>;
			interrupts = <31>;
			status = "disabled";
		};

693
		codec: codec@1c22c00 {
694 695 696 697
			#sound-dai-cells = <0>;
			compatible = "allwinner,sun4i-a10-codec";
			reg = <0x01c22c00 0x40>;
			interrupts = <30>;
698
			clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
699 700 701 702 703 704 705
			clock-names = "apb", "codec";
			dmas = <&dma SUN4I_DMA_NORMAL 19>,
			       <&dma SUN4I_DMA_NORMAL 19>;
			dma-names = "rx", "tx";
			status = "disabled";
		};

706
		sid: eeprom@1c23800 {
707
			compatible = "allwinner,sun4i-a10-sid";
708 709 710
			reg = <0x01c23800 0x10>;
		};

711
		rtp: rtp@1c25000 {
712
			compatible = "allwinner,sun4i-a10-ts";
713 714
			reg = <0x01c25000 0x100>;
			interrupts = <29>;
715
			#thermal-sensor-cells = <0>;
716 717
		};

718
		uart0: serial@1c28000 {
719 720 721 722 723
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28000 0x400>;
			interrupts = <1>;
			reg-shift = <2>;
			reg-io-width = <4>;
724
			clocks = <&ccu CLK_APB1_UART0>;
725 726
			status = "disabled";
		};
727

728
		uart1: serial@1c28400 {
729 730 731 732 733
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28400 0x400>;
			interrupts = <2>;
			reg-shift = <2>;
			reg-io-width = <4>;
734
			clocks = <&ccu CLK_APB1_UART1>;
735 736 737
			status = "disabled";
		};

738
		uart2: serial@1c28800 {
739 740 741 742 743
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28800 0x400>;
			interrupts = <3>;
			reg-shift = <2>;
			reg-io-width = <4>;
744
			clocks = <&ccu CLK_APB1_UART2>;
745 746 747
			status = "disabled";
		};

748
		uart3: serial@1c28c00 {
749 750 751 752 753
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28c00 0x400>;
			interrupts = <4>;
			reg-shift = <2>;
			reg-io-width = <4>;
754
			clocks = <&ccu CLK_APB1_UART3>;
755 756 757
			status = "disabled";
		};

758
		uart4: serial@1c29000 {
759 760 761 762 763
			compatible = "snps,dw-apb-uart";
			reg = <0x01c29000 0x400>;
			interrupts = <17>;
			reg-shift = <2>;
			reg-io-width = <4>;
764
			clocks = <&ccu CLK_APB1_UART4>;
765 766 767
			status = "disabled";
		};

768
		uart5: serial@1c29400 {
769 770 771 772 773
			compatible = "snps,dw-apb-uart";
			reg = <0x01c29400 0x400>;
			interrupts = <18>;
			reg-shift = <2>;
			reg-io-width = <4>;
774
			clocks = <&ccu CLK_APB1_UART5>;
775 776 777
			status = "disabled";
		};

778
		uart6: serial@1c29800 {
779 780 781 782 783
			compatible = "snps,dw-apb-uart";
			reg = <0x01c29800 0x400>;
			interrupts = <19>;
			reg-shift = <2>;
			reg-io-width = <4>;
784
			clocks = <&ccu CLK_APB1_UART6>;
785 786 787
			status = "disabled";
		};

788
		uart7: serial@1c29c00 {
789 790 791 792 793
			compatible = "snps,dw-apb-uart";
			reg = <0x01c29c00 0x400>;
			interrupts = <20>;
			reg-shift = <2>;
			reg-io-width = <4>;
794
			clocks = <&ccu CLK_APB1_UART7>;
795 796
			status = "disabled";
		};
797

798
		ps20: ps2@1c2a000 {
799 800 801
			compatible = "allwinner,sun4i-a10-ps2";
			reg = <0x01c2a000 0x400>;
			interrupts = <62>;
802
			clocks = <&ccu CLK_APB1_PS20>;
803 804 805
			status = "disabled";
		};

806
		ps21: ps2@1c2a400 {
807 808 809
			compatible = "allwinner,sun4i-a10-ps2";
			reg = <0x01c2a400 0x400>;
			interrupts = <63>;
810
			clocks = <&ccu CLK_APB1_PS21>;
811 812 813
			status = "disabled";
		};

814
		i2c0: i2c@1c2ac00 {
815
			compatible = "allwinner,sun4i-a10-i2c";
816 817
			reg = <0x01c2ac00 0x400>;
			interrupts = <7>;
818
			clocks = <&ccu CLK_APB1_I2C0>;
819
			status = "disabled";
820 821
			#address-cells = <1>;
			#size-cells = <0>;
822 823
		};

824
		i2c1: i2c@1c2b000 {
825
			compatible = "allwinner,sun4i-a10-i2c";
826 827
			reg = <0x01c2b000 0x400>;
			interrupts = <8>;
828
			clocks = <&ccu CLK_APB1_I2C1>;
829
			status = "disabled";
830 831
			#address-cells = <1>;
			#size-cells = <0>;
832 833
		};

834
		i2c2: i2c@1c2b400 {
835
			compatible = "allwinner,sun4i-a10-i2c";
836 837
			reg = <0x01c2b400 0x400>;
			interrupts = <9>;
838
			clocks = <&ccu CLK_APB1_I2C2>;
839
			status = "disabled";
840 841
			#address-cells = <1>;
			#size-cells = <0>;
842
		};
843

844
		can0: can@1c2bc00 {
845 846 847
			compatible = "allwinner,sun4i-a10-can";
			reg = <0x01c2bc00 0x400>;
			interrupts = <26>;
848
			clocks = <&ccu CLK_APB1_CAN>;
849 850
			status = "disabled";
		};
851
	};
852
};