Merge branch 'next' into for-linus
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / at91-kizbox.dts
1 /*
2  * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
3  *
4  * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
5  *               2014-2015 GaĆ«l PORTAY <g.portay@overkiz.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9 /dts-v1/;
10 #include "at91sam9g20.dtsi"
11 #include <dt-bindings/pwm/pwm.h>
12
13 / {
14         model = "Overkiz Kizbox";
15         compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
16
17         chosen {
18                 bootargs = "ubi.mtd=ubi";
19                 stdout-path = &dbgu;
20         };
21
22         memory {
23                 reg = <0x20000000 0x2000000>;
24         };
25
26         clocks {
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29                 ranges;
30
31                 main_clock: clock@0 {
32                         compatible = "atmel,osc", "fixed-clock";
33                         clock-frequency = <18432000>;
34                 };
35
36                 main_xtal {
37                         clock-frequency = <18432000>;
38                 };
39         };
40
41         ahb {
42                 apb {
43                         macb0: ethernet@fffc4000 {
44                                 phy-mode = "mii";
45                                 pinctrl-0 = <&pinctrl_macb_rmii
46                                              &pinctrl_macb_rmii_mii_alt>;
47                                 status = "okay";
48                         };
49
50                         usart3: serial@fffd0000 {
51                                 status = "okay";
52                         };
53
54                         dbgu: serial@fffff200 {
55                                 status = "okay";
56                         };
57
58                         watchdog@fffffd40 {
59                                 timeout-sec = <15>;
60                                 atmel,max-heartbeat-sec = <16>;
61                                 atmel,min-heartbeat-sec = <0>;
62                                 status = "okay";
63                         };
64                 };
65
66                 usb0: ohci@00500000 {
67                         num-ports = <1>;
68                         status = "okay";
69                 };
70
71                 nand0: nand@40000000 {
72                         nand-bus-width = <8>;
73                         nand-ecc-mode = "soft";
74                         status = "okay";
75
76                         bootstrap@0 {
77                                 label = "bootstrap";
78                                 reg = <0x0 0x20000>;
79                         };
80
81                         ubi@20000 {
82                                 label = "ubi";
83                                 reg = <0x20000 0x7fe0000>;
84                         };
85                 };
86         };
87
88         gpio_keys {
89                 compatible = "gpio-keys";
90                 #address-cells = <1>;
91                 #size-cells = <0>;
92
93                 reset {
94                         label = "PB_RST";
95                         gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
96                         linux,code = <0x100>;
97                         gpio-key,wakeup;
98                 };
99
100                 user {
101                         label = "PB_USER";
102                         gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
103                         linux,code = <0x101>;
104                         gpio-key,wakeup;
105                 };
106         };
107
108         i2c@0 {
109                 status = "okay";
110
111                 rtc: pcf8563@51 {
112                         compatible = "nxp,pcf8563";
113                         reg = <0x51>;
114                 };
115         };
116
117         pwm_leds {
118                 compatible = "pwm-leds";
119
120                 network_green {
121                         label = "pwm:green:network";
122                         pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
123                         max-brightness = <255>;
124                         linux,default-trigger = "default-on";
125                 };
126
127                 network_red {
128                         label = "pwm:red:network";
129                         pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
130                         max-brightness = <255>;
131                         linux,default-trigger = "default-on";
132                 };
133
134                 user_green {
135                         label = "pwm:green:user";
136                         pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
137                         max-brightness = <255>;
138                         linux,default-trigger = "default-on";
139                 };
140
141                 user_red {
142                         label = "pwm:red:user";
143                         pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
144                         max-brightness = <255>;
145                         linux,default-trigger = "default-on";
146                 };
147         };
148
149         tcb_pwm: pwm {
150                 compatible = "atmel,tcb-pwm";
151                 #pwm-cells = <3>;
152                 tc-block = <1>;
153                 pinctrl-names = "default";
154                 pinctrl-0 = <&pinctrl_tcb1_tioa0
155                              &pinctrl_tcb1_tioa1
156                              &pinctrl_tcb1_tioa2
157                              &pinctrl_tcb1_tiob0>;
158         };
159 };