• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
3 *
4 * Copyright (C) 2014 Gaël PORTAY <g.portay@overkiz.com>
5 *
6 * Licensed under GPLv2 or later.
7 */
8/dts-v1/;
9#include "at91sam9g25.dtsi"
10#include <dt-bindings/pwm/pwm.h>
11
12/ {
13	model = "Overkiz Kizbox mini";
14	compatible = "overkiz,kizboxmini", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9";
15
16	chosen {
17		bootargs = "ubi.mtd=ubi";
18		stdout-path = &dbgu;
19	};
20
21	memory {
22		reg = <0x20000000 0x8000000>;
23	};
24
25	clocks {
26		slow_xtal {
27			clock-frequency = <32768>;
28		};
29
30		main_xtal {
31			clock-frequency = <12000000>;
32		};
33	};
34
35	ahb {
36		apb {
37			usart0: serial@f801c000 {
38				status = "okay";
39			};
40
41			macb0: ethernet@f802c000 {
42				phy-mode = "rmii";
43				status = "okay";
44			};
45
46			pwm0: pwm@f8034000 {
47				pinctrl-names = "default";
48				pinctrl-0 = <&pinctrl_pwm0_pwm0_1
49					     &pinctrl_pwm0_pwm1_1>;
50				status = "okay";
51			};
52
53			dbgu: serial@fffff200 {
54				status = "okay";
55			};
56
57			watchdog@fffffe40 {
58				status = "okay";
59			};
60		};
61
62		usb0: ohci@00600000 {
63			num-ports = <1>;
64			status = "okay";
65		};
66
67		usb1: ehci@00700000 {
68			status = "okay";
69		};
70
71		ebi: ebi@10000000 {
72			pinctrl-0 = <&pinctrl_ebi_addr_nand
73				     &pinctrl_ebi_data_0_7>;
74			pinctrl-names = "default";
75			status = "okay";
76
77			nand_controller: nand-controller {
78				status = "okay";
79				pinctrl-0 = <&pinctrl_nand_oe_we
80					     &pinctrl_nand_cs
81					     &pinctrl_nand_rb>;
82				pinctrl-names = "default";
83
84				nand@3 {
85					reg = <0x3 0x0 0x800000>;
86					rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
87					cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
88					nand-bus-width = <8>;
89					nand-ecc-mode = "hw";
90					nand-ecc-strength = <4>;
91					nand-ecc-step-size = <512>;
92					nand-on-flash-bbt;
93					label = "atmel_nand";
94
95					partitions {
96						compatible = "fixed-partitions";
97						#address-cells = <1>;
98						#size-cells = <1>;
99
100						bootstrap@0 {
101							label = "bootstrap";
102							reg = <0x0 0x20000>;
103						};
104
105						ubi@20000 {
106							label = "ubi";
107							reg = <0x20000 0x7fe0000>;
108						};
109					};
110				};
111			};
112		};
113
114		nand0: nand@40000000 {
115			nand-bus-width = <8>;
116			nand-ecc-mode = "hw";
117			atmel,has-pmecc;
118			atmel,pmecc-cap = <4>;
119			atmel,pmecc-sector-size = <512>;
120			nand-on-flash-bbt;
121			status = "okay";
122
123		};
124	};
125
126	gpio_keys {
127		compatible = "gpio-keys";
128		#address-cells = <1>;
129		#size-cells = <0>;
130
131		prog {
132			label = "PB_PROG";
133			gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
134			linux,code = <0x102>;
135			wakeup-source;
136		};
137
138		reset {
139			label = "PB_RST";
140			gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
141			linux,code = <0x100>;
142			wakeup-source;
143		};
144	};
145
146	pwm_leds {
147		compatible = "pwm-leds";
148
149		green {
150			label = "pwm:green:user";
151			pwms = <&pwm0 0 10000000 0>;
152			max-brightness = <255>;
153			linux,default-trigger = "default-on";
154		};
155
156		red {
157			label = "pwm:red:user";
158			pwms = <&pwm0 1 10000000 0>;
159			max-brightness = <255>;
160			linux,default-trigger = "default-on";
161		};
162	};
163};
164