blob: e07afaefcf76a8674f04ac4613fccbc79944ba03 [file] [log] [blame]
Boris BREZILLONdf826742012-04-20 14:37:50 +02001/*
Gaƫl PORTAYd8b18342015-04-30 09:33:32 +02002 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
Boris BREZILLONdf826742012-04-20 14:37:50 +02003 *
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 };
Alexandre Bellonid7389892014-06-18 21:05:05 +020033
34 main_xtal {
35 clock-frequency = <18432000>;
36 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020037 };
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";
Boris BREZILLONb45c9982012-12-13 14:03:08 +000055 pinctrl-0 = <&pinctrl_macb_rmii
56 &pinctrl_macb_rmii_mii_alt>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020057 status = "okay";
58 };
59
Boris BREZILLON705b6752013-10-04 09:24:15 +020060 watchdog@fffffd40 {
61 timeout-sec = <15>;
62 atmel,max-heartbeat-sec = <16>;
63 atmel,min-heartbeat-sec = <0>;
64 status = "okay";
65 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020066 };
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";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800107 gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200108 linux,default-trigger = "none";
109 };
110
111 led1r {
112 label = "led1:red";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800113 gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200114 linux,default-trigger = "none";
115 };
116
117 led2g {
118 label = "led2:green";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800119 gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200120 linux,default-trigger = "none";
121 default-state = "on";
122 };
123
124 led2r {
125 label = "led2:red";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800126 gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200127 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";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800138 gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200139 linux,code = <0x100>;
140 gpio-key,wakeup;
141 };
142
143 mode {
144 label = "mode";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800145 gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200146 linux,code = <0x101>;
147 gpio-key,wakeup;
148 };
149 };
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +0800150};