Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / at91-kizbox.dts
blob7d938ccf71b0232016245e6d9ad6ec23edf3dafa
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
4  *
5  * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
6  *               2014-2015 GaĆ«l PORTAY <g.portay@overkiz.com>
7  */
8 /dts-v1/;
9 #include "at91sam9g20.dtsi"
10 #include <dt-bindings/pwm/pwm.h>
12 / {
13         model = "Overkiz Kizbox";
14         compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
16         chosen {
17                 bootargs = "ubi.mtd=ubi";
18                 stdout-path = &dbgu;
19         };
21         memory {
22                 reg = <0x20000000 0x2000000>;
23         };
25         clocks {
26                 main_xtal {
27                         clock-frequency = <18432000>;
28                 };
29         };
31         gpio_keys {
32                 compatible = "gpio-keys";
33                 #address-cells = <1>;
34                 #size-cells = <0>;
36                 reset {
37                         label = "PB_RST";
38                         gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
39                         linux,code = <0x100>;
40                         wakeup-source;
41                 };
43                 user {
44                         label = "PB_USER";
45                         gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
46                         linux,code = <0x101>;
47                         wakeup-source;
48                 };
49         };
51         pwm_leds {
52                 compatible = "pwm-leds";
54                 network_green {
55                         label = "pwm:green:network";
56                         pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>;
57                         max-brightness = <255>;
58                         linux,default-trigger = "default-on";
59                 };
61                 network_red {
62                         label = "pwm:red:network";
63                         pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
64                         max-brightness = <255>;
65                         linux,default-trigger = "default-on";
66                 };
68                 user_green {
69                         label = "pwm:green:user";
70                         pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>;
71                         max-brightness = <255>;
72                         linux,default-trigger = "default-on";
73                 };
75                 user_red {
76                         label = "pwm:red:user";
77                         pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>;
78                         max-brightness = <255>;
79                         linux,default-trigger = "default-on";
80                 };
81         };
83         tcb_pwm: pwm {
84                 compatible = "atmel,tcb-pwm";
85                 #pwm-cells = <3>;
86                 tc-block = <1>;
87                 pinctrl-names = "default";
88                 pinctrl-0 = <&pinctrl_tcb1_tioa0
89                              &pinctrl_tcb1_tioa1
90                              &pinctrl_tcb1_tioa2
91                              &pinctrl_tcb1_tiob0>;
92         };
95 &tcb0 {
96         timer@0 {
97                 compatible = "atmel,tcb-timer";
98                 reg = <0>, <1>;
99         };
101         timer@2 {
102                 compatible = "atmel,tcb-timer";
103                 reg = <2>;
104         };
107 &ebi {
108         status = "okay";
111 &nand_controller {
112         status = "okay";
113         pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
114         pinctrl-names = "default";
116         nand@3 {
117                 reg = <0x3 0x0 0x800000>;
118                 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
119                 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
120                 nand-bus-width = <8>;
121                 nand-ecc-mode = "soft";
122                 nand-on-flash-bbt;
123                 label = "atmel_nand";
125                 partitions {
126                         compatible = "fixed-partitions";
127                         #address-cells = <1>;
128                         #size-cells = <1>;
130                         bootstrap@0 {
131                                 label = "bootstrap";
132                                 reg = <0x0 0x20000>;
133                         };
135                         ubi@20000 {
136                                 label = "ubi";
137                                 reg = <0x20000 0x7fe0000>;
138                         };
139                 };
140         };
143 &macb0 {
144         phy-mode = "mii";
145         pinctrl-0 = <&pinctrl_macb_rmii
146                      &pinctrl_macb_rmii_mii_alt>;
147         status = "okay";
150 &usart3 {
151         status = "okay";
154 &dbgu {
155         status = "okay";
158 &watchdog {
159         timeout-sec = <15>;
160         atmel,max-heartbeat-sec = <16>;
161         atmel,min-heartbeat-sec = <0>;
162         status = "okay";
165 &usb0 {
166         num-ports = <1>;
167         status = "okay";
170 &i2c_gpio0 {
171         status = "okay";
173         rtc: pcf8563@51 {
174                 compatible = "nxp,pcf8563";
175                 reg = <0x51>;
176         };