kizbox.dts revision 284090
1/*
2 * kizbox.dts - Device Tree file for Overkiz Kizbox board
3 *
4 * Copyright (C) 2012 Boris BREZILLON <linux-arm@overkiz.com>
5 *
6 * Licensed under GPLv2.
7 */
8/dts-v1/;
9#include "at91sam9g20.dtsi"
10
11/ {
12
13	model = "Overkiz kizbox";
14	compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
15
16	chosen {
17		bootargs = "panic=5 ubi.mtd=1 rootfstype=ubifs root=ubi0:root";
18	};
19
20	memory {
21		reg = <0x20000000 0x2000000>;
22	};
23
24	clocks {
25		#address-cells = <1>;
26		#size-cells = <1>;
27		ranges;
28
29		main_clock: clock@0 {
30			compatible = "atmel,osc", "fixed-clock";
31			clock-frequency = <18432000>;
32		};
33
34		main_xtal {
35			clock-frequency = <18432000>;
36		};
37	};
38
39	ahb {
40		apb {
41			dbgu: serial@fffff200 {
42				status = "okay";
43			};
44
45			usart0: serial@fffb0000 {
46				status = "okay";
47			};
48
49			usart1: serial@fffb4000 {
50				status = "okay";
51			};
52
53			macb0: ethernet@fffc4000 {
54				phy-mode = "mii";
55				pinctrl-0 = <&pinctrl_macb_rmii
56				             &pinctrl_macb_rmii_mii_alt>;
57				status = "okay";
58			};
59
60			watchdog@fffffd40 {
61				timeout-sec = <15>;
62				atmel,max-heartbeat-sec = <16>;
63				atmel,min-heartbeat-sec = <0>;
64				status = "okay";
65			};
66		};
67
68		nand0: nand@40000000 {
69			nand-bus-width = <8>;
70			nand-ecc-mode = "soft";
71			status = "okay";
72
73			bootloaderkernel@0 {
74				label = "bootloader-kernel";
75				reg = <0x0 0xc0000>;
76			};
77
78			ubi@c0000 {
79				label = "ubi";
80				reg = <0xc0000 0x7f40000>;
81			};
82
83		};
84
85		usb0: ohci@00500000 {
86			num-ports = <1>;
87			status = "okay";
88		};
89	};
90
91	i2c@0 {
92		status = "okay";
93
94		pcf8563@51 {
95			/* nxp pcf8563 rtc */
96			compatible = "nxp,pcf8563";
97			reg = <0x51>;
98		};
99
100	};
101
102	leds {
103		compatible = "gpio-leds";
104
105		led1g {
106			label = "led1:green";
107			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
108			linux,default-trigger = "none";
109		};
110
111		led1r {
112			label = "led1:red";
113			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
114			linux,default-trigger = "none";
115		};
116
117		led2g {
118			label = "led2:green";
119			gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
120			linux,default-trigger = "none";
121			default-state = "on";
122		};
123
124		led2r {
125			label = "led2:red";
126			gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
127			linux,default-trigger = "none";
128		};
129	};
130
131	gpio_keys {
132		compatible = "gpio-keys";
133		#address-cells = <1>;
134		#size-cells = <0>;
135
136		reset {
137			label = "reset";
138			gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
139			linux,code = <0x100>;
140			gpio-key,wakeup;
141		};
142
143		mode {
144			label = "mode";
145			gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
146			linux,code = <0x101>;
147			gpio-key,wakeup;
148		};
149	};
150};
151