blob: 26112ebd15fc4e896d576932b330b846fc4cc397 [file] [log] [blame]
Nicolas Ferre467f1cf2012-01-26 11:59:20 +01001/*
2 * at91sam9x5cm.dtsi - Device Tree Include file for AT91SAM9x5 CPU Module
3 *
4 * Copyright (C) 2012 Atmel,
5 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9
10/ {
Ludovic Desrochesdcce6ce2012-04-02 20:44:20 +020011 memory {
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010012 reg = <0x20000000 0x8000000>;
13 };
Jean-Christophe PLAGNIOL-VILLARDf75622f2012-02-23 23:09:41 +080014
Jean-Christophe PLAGNIOL-VILLARDeb5e76f2012-03-02 20:44:23 +080015 clocks {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 ranges;
19
20 main_clock: clock@0 {
21 compatible = "atmel,osc", "fixed-clock";
22 clock-frequency = <12000000>;
23 };
24 };
25
Alexandre Belloni12dde442014-06-17 15:30:19 +020026 clocks {
27 slow_xtal {
28 clock-frequency = <32768>;
29 };
Boris BREZILLON0d04fca2014-05-12 18:23:36 +020030
Alexandre Belloni12dde442014-06-17 15:30:19 +020031 main_xtal {
32 clock-frequency = <12000000>;
33 };
Boris BREZILLON0d04fca2014-05-12 18:23:36 +020034 };
35
Jean-Christophe PLAGNIOL-VILLARD86a89f42012-02-21 21:38:18 +080036 ahb {
Richard Genoud6901d942013-03-20 12:23:40 +010037 apb {
38 pinctrl@fffff400 {
39 1wire_cm {
40 pinctrl_1wire_cm: 1wire_cm-0 {
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +080041 atmel,pins = <AT91_PIOB 18 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PB18 multidrive, conflicts with led */
Richard Genoud6901d942013-03-20 12:23:40 +010042 };
43 };
44 };
Nicolas Ferre59349732015-03-19 17:23:13 +010045
46 rtc@fffffeb0 {
47 status = "okay";
48 };
Richard Genoud6901d942013-03-20 12:23:40 +010049 };
50
Jean-Christophe PLAGNIOL-VILLARD86a89f42012-02-21 21:38:18 +080051 nand0: nand@40000000 {
52 nand-bus-width = <8>;
Josh Wu5314bc22013-01-23 20:47:09 +080053 nand-ecc-mode = "hw";
54 atmel,has-pmecc; /* Enable PMECC */
55 atmel,pmecc-cap = <2>;
56 atmel,pmecc-sector-size = <512>;
Jean-Christophe PLAGNIOL-VILLARD86a89f42012-02-21 21:38:18 +080057 nand-on-flash-bbt;
58 status = "okay";
59
60 at91bootstrap@0 {
61 label = "at91bootstrap";
62 reg = <0x0 0x40000>;
63 };
64
65 uboot@40000 {
66 label = "u-boot";
67 reg = <0x40000 0x80000>;
68 };
69
70 ubootenv@c0000 {
71 label = "U-Boot Env";
72 reg = <0xc0000 0x140000>;
73 };
74
75 kernel@200000 {
76 label = "kernel";
77 reg = <0x200000 0x600000>;
78 };
79
80 rootfs@800000 {
81 label = "rootfs";
82 reg = <0x800000 0x1f800000>;
83 };
84 };
85 };
86
Jean-Christophe PLAGNIOL-VILLARDf75622f2012-02-23 23:09:41 +080087 leds {
88 compatible = "gpio-leds";
89
90 pb18 {
91 label = "pb18";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +080092 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
Jean-Christophe PLAGNIOL-VILLARDf75622f2012-02-23 23:09:41 +080093 linux,default-trigger = "heartbeat";
94 };
95
96 pd21 {
97 label = "pd21";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +080098 gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
Jean-Christophe PLAGNIOL-VILLARDf75622f2012-02-23 23:09:41 +080099 };
100 };
Richard Genoud6901d942013-03-20 12:23:40 +0100101
102 1wire_cm {
103 compatible = "w1-gpio";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800104 gpios = <&pioB 18 GPIO_ACTIVE_HIGH>;
Richard Genoud6901d942013-03-20 12:23:40 +0100105 linux,open-drain;
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_1wire_cm>;
108 status = "okay";
109 };
110
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100111};