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