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