1 // SPDX-License-Identifier: GPL-2.0
3 * at91-kizbox3.dts - Device Tree Include file for Overkiz Kizbox 3
6 * Copyright (C) 2018 Overkiz SAS
8 * Authors: Dorian Rocipon <d.rocipon@overkiz.com>
9 * Kevin Carli <k.carli@overkiz.com>
10 * Mickael Gardet <m.gardet@overkiz.com>
13 #include "sama5d2.dtsi"
14 #include "sama5d2-pinfunc.h"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/mfd/atmel-flexcom.h>
17 #include <dt-bindings/pinctrl/at91.h>
18 #include <dt-bindings/pwm/pwm.h>
21 model = "Overkiz Kizbox3";
22 compatible = "overkiz,kizbox3", "atmel,sama5d2", "atmel,sama5";
35 bootargs = "ubi.mtd=ubi";
36 stdout-path = "serial1:115200n8";
41 clock-frequency = <32768>;
45 clock-frequency = <12000000>;
49 vdd_adc_vddana: supply_3v3_ana {
50 compatible = "regulator-fixed";
51 regulator-name = "adc-vddana";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
57 vdd_adc_vref: supply_3v3_ref {
58 compatible = "regulator-fixed";
59 regulator-name = "adc-vref";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
66 compatible = "pwm-leds";
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_pwm0_pwm_h0
71 &pinctrl_pwm0_pwm_h3>;
75 label = "pwm:red:user";
76 pwms = <&pwm0 0 10000000 0>;
77 max-brightness = <255>;
78 linux,default-trigger = "default-on";
83 label = "pwm:green:user";
84 pwms = <&pwm0 1 10000000 0>;
85 max-brightness = <255>;
86 linux,default-trigger = "default-on";
91 label = "pwm:blue:user";
92 pwms = <&pwm0 2 10000000 0>;
93 max-brightness = <255>;
98 label = "pwm:white:user";
99 pwms = <&pwm0 3 10000000 0>;
100 max-brightness = <255>;
114 pinctrl-0 = <&pinctrl_ebi_nand_addr>;
115 pinctrl-names = "default";
116 reg = <0x3 0x0 0x800000>;
119 nand-bus-width = <8>;
120 nand-ecc-mode = "hw";
121 nand-ecc-strength = <4>;
122 nand-ecc-step-size = <512>;
124 label = "atmel_nand";
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 reg = <0x20000 0x140000>;
141 u-boot-factory@160000 {
142 label = "u-boot-factory";
143 reg = <0x160000 0x140000>;
148 reg = <0x2A0000 0x7D60000>;
160 pinctrl_ebi_nand_addr: ebi-addr-1 {
161 pinmux = <PIN_PA0__D0>,
169 <PIN_PA8__NWE_NANDWE>,
171 <PIN_PA10__A21_NANDALE>,
172 <PIN_PA11__A22_NANDCLE>,
178 pinctrl_usart_0: usart0-0 {
179 pinmux = < PIN_PB26__URXD0>, <PIN_PB27__UTXD0>;
182 pinctrl_usart_1: usart1-0 {
183 pinmux = < PIN_PD2__URXD1>, <PIN_PD3__UTXD1>;
186 pinctrl_usart_2: usart2-0 {
187 pinmux = < PIN_PD4__URXD2>, <PIN_PD5__UTXD2>;
190 pinctrl_usart_3: usart3-0 {
191 pinmux = < PIN_PC12__URXD3>, <PIN_PC13__UTXD3>;
194 pinctrl_usart_4: usart4-0 {
195 pinmux = < PIN_PB3__URXD4>, <PIN_PB4__UTXD4>;
198 pinctrl_flx0_default: flx0_usart_default {
199 pinmux = <PIN_PB28__FLEXCOM0_IO0>, //TX
200 <PIN_PB29__FLEXCOM0_IO1>; //RX
203 pinctrl_flx3_default: flx3_usart_default {
204 pinmux = <PIN_PB22__FLEXCOM3_IO1>, //RX
205 <PIN_PB23__FLEXCOM3_IO0>; //TX
210 pinctrl_flx4_default: flx4_i2c2_default {
211 pinmux = <PIN_PD12__FLEXCOM4_IO0>, //DATA
212 <PIN_PD13__FLEXCOM4_IO1>; //CLK
214 drive-open-drain = <1>;
218 pinctrl_pwm0_pwm_h0: pwm0_pwm_h0 {
219 pinmux = <PIN_PA30__PWMH0>;
222 pinctrl_pwm0_pwm_h1: pwm0_pwmh1 {
223 pinmux = <PIN_PB0__PWMH1>;
226 pinctrl_pwm0_pwm_h2: pwm0_pwm_h2 {
227 pinmux = <PIN_PB5__PWMH2>;
230 pinctrl_pwm0_pwm_h3: pwm0_pwm_h3 {
231 pinmux = <PIN_PB7__PWMH3>;
238 pinmux = <PIN_PD21__GPIO>;
242 pinmux = <PIN_PD22__GPIO>;
246 pinmux = <PIN_PD23__GPIO>;
250 pinmux = <PIN_PD24__GPIO>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&pinctrl_usart_0>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_usart_1>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&pinctrl_usart_2>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&pinctrl_usart_3>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&pinctrl_usart_4>;
298 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
302 compatible = "atmel,at91sam9260-usart";
304 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
306 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
307 | AT91_XDMAC_DT_PERID(11))>,
309 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
310 | AT91_XDMAC_DT_PERID(12))>;
311 dma-names = "tx", "rx";
312 clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
313 clock-names = "usart";
314 pinctrl-names = "default";
315 pinctrl-0 = <&pinctrl_flx0_default>;
316 atmel,fifo-size = <32>;
324 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
328 compatible = "atmel,at91sam9260-usart";
330 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
332 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
333 | AT91_XDMAC_DT_PERID(17))>,
335 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
336 | AT91_XDMAC_DT_PERID(18))>;
337 dma-names = "tx", "rx";
338 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>;
339 clock-names = "usart";
340 pinctrl-names = "default";
341 pinctrl-0 = <&pinctrl_flx3_default>;
342 atmel,fifo-size = <32>;
350 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
354 compatible = "atmel,sama5d2-i2c";
356 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
358 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
359 | AT91_XDMAC_DT_PERID(19))>,
361 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
362 | AT91_XDMAC_DT_PERID(20))>;
363 dma-names = "tx", "rx";
364 #address-cells = <1>;
366 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&pinctrl_flx4_default>;
369 atmel,fifo-size = <16>;
378 &shutdown_controller {
379 atmel,shdwc-debouncer = <976>;
380 atmel,wakeup-rtc-timer;
384 atmel,wakeup-type = "low";
393 pinctrl-names = "default";
394 pinctrl-0 = <&pinctrl_adc2
399 vddana-supply = <&vdd_adc_vddana>;
400 vref-supply = <&vdd_adc_vref>;
407 /* export overkiz u-boot mode/version and factory */