treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / boot / dts / at91-kizboxmini.dts
blobcb22f5fb055f196191dd8ea291d85fd7631e8fa0
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>
11 / {
12         model = "Overkiz Kizbox mini";
13         compatible = "overkiz,kizboxmini", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9";
15         chosen {
16                 bootargs = "ubi.mtd=ubi";
17                 stdout-path = &dbgu;
18         };
20         memory {
21                 reg = <0x20000000 0x8000000>;
22         };
24         clocks {
25                 slow_xtal {
26                         clock-frequency = <32768>;
27                 };
29                 main_xtal {
30                         clock-frequency = <12000000>;
31                 };
32         };
34         ahb {
35                 nand0: nand@40000000 {
36                         nand-bus-width = <8>;
37                         nand-ecc-mode = "hw";
38                         atmel,has-pmecc;
39                         atmel,pmecc-cap = <4>;
40                         atmel,pmecc-sector-size = <512>;
41                         nand-on-flash-bbt;
42                         status = "okay";
43                 };
44         };
46         gpio_keys {
47                 compatible = "gpio-keys";
48                 #address-cells = <1>;
49                 #size-cells = <0>;
51                 prog {
52                         label = "PB_PROG";
53                         gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
54                         linux,code = <0x102>;
55                         wakeup-source;
56                 };
58                 reset {
59                         label = "PB_RST";
60                         gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
61                         linux,code = <0x100>;
62                         wakeup-source;
63                 };
64         };
66         pwm_leds {
67                 compatible = "pwm-leds";
69                 green {
70                         label = "pwm:green:user";
71                         pwms = <&pwm0 0 10000000 0>;
72                         max-brightness = <255>;
73                         linux,default-trigger = "default-on";
74                 };
76                 red {
77                         label = "pwm:red:user";
78                         pwms = <&pwm0 1 10000000 0>;
79                         max-brightness = <255>;
80                         linux,default-trigger = "default-on";
81                 };
82         };
85 &dbgu {
86         status = "okay";
89 &ebi {
90         pinctrl-0 = <&pinctrl_ebi_addr_nand
91                      &pinctrl_ebi_data_0_7>;
92         pinctrl-names = "default";
93         status = "okay";
95         nand-controller {
96                 pinctrl-0 = <&pinctrl_nand_oe_we
97                              &pinctrl_nand_cs
98                              &pinctrl_nand_rb>;
99                 pinctrl-names = "default";
100                 status = "okay";
102                 nand@3 {
103                         reg = <0x3 0x0 0x800000>;
104                         rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
105                         cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
106                         nand-bus-width = <8>;
107                         nand-ecc-mode = "hw";
108                         nand-ecc-strength = <4>;
109                         nand-ecc-step-size = <512>;
110                         nand-on-flash-bbt;
111                         label = "atmel_nand";
113                         partitions {
114                                 compatible = "fixed-partitions";
115                                 #address-cells = <1>;
116                                 #size-cells = <1>;
118                                 bootstrap@0 {
119                                         label = "bootstrap";
120                                         reg = <0x0 0x20000>;
121                                 };
123                                 ubi@20000 {
124                                         label = "ubi";
125                                         reg = <0x20000 0x7fe0000>;
126                                 };
127                         };
128                 };
129         };
132 &macb0 {
133         phy-mode = "rmii";
134         status = "okay";
137 &pwm0 {
138         pinctrl-names = "default";
139         pinctrl-0 = <&pinctrl_pwm0_pwm0_1
140                      &pinctrl_pwm0_pwm1_1>;
141         status = "okay";
144 &tcb0 {
145         timer@0 {
146                 compatible = "atmel,tcb-timer";
147                 reg = <0>;
148         };
150         timer@1 {
151                 compatible = "atmel,tcb-timer";
152                 reg = <1>;
153         };
156 &usart0 {
157         status = "okay";
160 &usb0 {
161         num-ports = <1>;
162         status = "okay";
165 &usb1 {
166         status = "okay";
169 &watchdog {
170         status = "okay";