blob: 02df1914a47c8f971cbe8fb852cea0963833bcff [file] [log] [blame]
Boris BREZILLONdf826742012-04-20 14:37:50 +02001/*
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/;
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +08009#include "at91sam9g20.dtsi"
Boris BREZILLONdf826742012-04-20 14:37:50 +020010
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
35 ahb {
36 apb {
37 dbgu: serial@fffff200 {
38 status = "okay";
39 };
40
41 usart0: serial@fffb0000 {
42 status = "okay";
43 };
44
45 usart1: serial@fffb4000 {
46 status = "okay";
47 };
48
49 macb0: ethernet@fffc4000 {
50 phy-mode = "mii";
Boris BREZILLONb45c9982012-12-13 14:03:08 +000051 pinctrl-0 = <&pinctrl_macb_rmii
52 &pinctrl_macb_rmii_mii_alt>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020053 status = "okay";
54 };
55
56 };
57
58 nand0: nand@40000000 {
59 nand-bus-width = <8>;
60 nand-ecc-mode = "soft";
61 status = "okay";
62
63 bootloaderkernel@0 {
64 label = "bootloader-kernel";
65 reg = <0x0 0xc0000>;
66 };
67
68 ubi@c0000 {
69 label = "ubi";
70 reg = <0xc0000 0x7f40000>;
71 };
72
73 };
74
75 usb0: ohci@00500000 {
76 num-ports = <1>;
77 status = "okay";
78 };
79 };
80
81 i2c@0 {
82 status = "okay";
83
84 pcf8563@51 {
85 /* nxp pcf8563 rtc */
86 compatible = "nxp,pcf8563";
87 reg = <0x51>;
88 };
89
90 };
91
92 leds {
93 compatible = "gpio-leds";
94
95 led1g {
96 label = "led1:green";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +080097 gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020098 linux,default-trigger = "none";
99 };
100
101 led1r {
102 label = "led1:red";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800103 gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200104 linux,default-trigger = "none";
105 };
106
107 led2g {
108 label = "led2:green";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800109 gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200110 linux,default-trigger = "none";
111 default-state = "on";
112 };
113
114 led2r {
115 label = "led2:red";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800116 gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200117 linux,default-trigger = "none";
118 };
119 };
120
121 gpio_keys {
122 compatible = "gpio-keys";
123 #address-cells = <1>;
124 #size-cells = <0>;
125
126 reset {
127 label = "reset";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800128 gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200129 linux,code = <0x100>;
130 gpio-key,wakeup;
131 };
132
133 mode {
134 label = "mode";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800135 gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200136 linux,code = <0x101>;
137 gpio-key,wakeup;
138 };
139 };
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +0800140};