Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / at91-kizboxmini-common.dtsi
blobfddf267b2d17649a87968c7e839dd8cbae07bfaa
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
4  *
5  * Copyright (C) 2014-2018 Overkiz SAS
6  *   Author: Antoine Aubert <a.aubert@overkiz.com>
7  *           Gaël Portay <g.portay@overkiz.com>
8  *           Kévin Raymond <k.raymond@overkiz.com>
9  *           Dorian Rocipon <d.rocipon@overkiz.com>
10  */
11 #include "at91sam9g25.dtsi"
13 / {
14         chosen {
15                 bootargs = "ubi.mtd=ubi";
16                 stdout-path = &dbgu;
17         };
19         memory {
20                 reg = <0x20000000 0x8000000>;
21         };
23         clocks {
24                 main_xtal {
25                         clock-frequency = <12000000>;
26                 };
28                 slow_xtal {
29                         clock-frequency = <32768>;
30                 };
32                 adc_op_clk {
33                         status = "disabled";
34                 };
35         };
37         gpio_keys {
38                 compatible = "gpio-keys";
39                 #address-cells = <1>;
40                 #size-cells = <0>;
42                 prog {
43                         label = "PB_PROG";
44                         gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
45                         linux,code = <0x102>;
46                         wakeup-source;
47                 };
49                 reset {
50                         label = "PB_RST";
51                         gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
52                         linux,code = <0x100>;
53                         wakeup-source;
54                 };
55         };
57         leds: pwm_leds {
58                 compatible = "pwm-leds";
60                 led_blue: pwm_blue {
61                         label = "pwm:blue:user";
62                         pwms = <&pwm0 2 10000000 0>;
63                         max-brightness = <255>;
64                         linux,default-trigger = "none";
65                         status = "disabled";
66                 };
68                 led_green: pwm_green {
69                         label = "pwm:green:user";
70                         pwms = <&pwm0 0 10000000 0>;
71                         max-brightness = <255>;
72                         linux,default-trigger = "default-on";
73                 };
75                 led_red: pwm_red {
76                         label = "pwm:red:user";
77                         pwms = <&pwm0 1 10000000 0>;
78                         max-brightness = <255>;
79                         linux,default-trigger = "default-on";
80                 };
81         };
84 &usart0 {
85         atmel,use-dma-rx;
86         atmel,use-dma-tx;
87         status = "okay";
90 &macb0 {
91         phy-mode = "rmii";
92         status = "okay";
95 &pwm0 {
96         pinctrl-names = "default";
97         pinctrl-0 = <&pinctrl_pwm0_pwm0_1
98                      &pinctrl_pwm0_pwm1_1
99                      &pinctrl_pwm0_pwm2_1>;
100         status = "okay";
103 &dbgu {
104         status = "okay";
107 &watchdog {
108         status = "okay";
111 &adc0 {
112         status = "disabled";
115 &rtc {
116         status = "disabled";
119 &ebi {
120         pinctrl-0 = <&pinctrl_ebi_addr_nand
121                         &pinctrl_ebi_data_0_7>;
122         pinctrl-names = "default";
123         status = "okay";
126 &nand_controller {
127         status = "okay";
128         pinctrl-0 = <&pinctrl_nand_oe_we
129                      &pinctrl_nand_cs
130                      &pinctrl_nand_rb>;
131         pinctrl-names = "default";
133         nand@3 {
134                 reg = <0x3 0x0 0x800000>;
135                 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
136                 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
137                 nand-bus-width = <8>;
138                 nand-ecc-mode = "hw";
139                 nand-ecc-strength = <4>;
140                 nand-ecc-step-size = <512>;
141                 nand-on-flash-bbt;
142                 label = "atmel_nand";
144                 partitions {
145                         compatible = "fixed-partitions";
146                         #address-cells = <1>;
147                         #size-cells = <1>;
149                         bootstrap@0 {
150                                 label = "bootstrap";
151                                 reg = <0x0 0x20000>;
152                         };
154                         ubi@20000 {
155                                 label = "ubi";
156                                 reg = <0x20000 0x7fe0000>;
157                         };
158                 };
159         };
162 &usb0 {
163         num-ports = <1>;
164         status = "okay";
167 &usb1 {
168         status = "okay";