xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/ethernut5.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * ethernut5.dts - Device Tree file for Ethernut 5 board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2012 egnite GmbH <info@egnite.de>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot#include "at91sam9xe.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Ethernut 5";
12*f126890aSEmmanuel Vadot	compatible = "egnite,ethernut5", "atmel,at91sam9260", "atmel,at91sam9";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200 root=/dev/mtdblock0 rw rootfstype=jffs2";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	memory@20000000 {
19*f126890aSEmmanuel Vadot		reg = <0x20000000 0x08000000>;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	clocks {
23*f126890aSEmmanuel Vadot		slow_xtal {
24*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot		main_xtal {
28*f126890aSEmmanuel Vadot			clock-frequency = <18432000>;
29*f126890aSEmmanuel Vadot		};
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	ahb {
33*f126890aSEmmanuel Vadot		apb {
34*f126890aSEmmanuel Vadot			dbgu: serial@fffff200 {
35*f126890aSEmmanuel Vadot				status = "okay";
36*f126890aSEmmanuel Vadot			};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot			tcb0: timer@fffa0000 {
39*f126890aSEmmanuel Vadot				timer@0 {
40*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
41*f126890aSEmmanuel Vadot					reg = <0>, <1>;
42*f126890aSEmmanuel Vadot				};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot				timer@2 {
45*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
46*f126890aSEmmanuel Vadot					reg = <2>;
47*f126890aSEmmanuel Vadot				};
48*f126890aSEmmanuel Vadot			};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot			usart0: serial@fffb0000 {
51*f126890aSEmmanuel Vadot				status = "okay";
52*f126890aSEmmanuel Vadot			};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot			usart1: serial@fffb4000 {
55*f126890aSEmmanuel Vadot				status = "okay";
56*f126890aSEmmanuel Vadot			};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot			macb0: ethernet@fffc4000 {
59*f126890aSEmmanuel Vadot				phy-mode = "rmii";
60*f126890aSEmmanuel Vadot				status = "okay";
61*f126890aSEmmanuel Vadot			};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot			usb1: gadget@fffa4000 {
64*f126890aSEmmanuel Vadot				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
65*f126890aSEmmanuel Vadot				status = "okay";
66*f126890aSEmmanuel Vadot			};
67*f126890aSEmmanuel Vadot		};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot		ebi: ebi@10000000 {
70*f126890aSEmmanuel Vadot			status = "okay";
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot			nand_controller: nand-controller {
73*f126890aSEmmanuel Vadot				status = "okay";
74*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_nand_cs>;
75*f126890aSEmmanuel Vadot				pinctrl-names = "default";
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot				nand: nand@3 {
78*f126890aSEmmanuel Vadot					reg = <0x3 0x0 0x800000>;
79*f126890aSEmmanuel Vadot					cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
80*f126890aSEmmanuel Vadot					nand-bus-width = <8>;
81*f126890aSEmmanuel Vadot					nand-ecc-mode = "soft";
82*f126890aSEmmanuel Vadot					nand-on-flash-bbt;
83*f126890aSEmmanuel Vadot					label = "atmel_nand";
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot					partitions {
86*f126890aSEmmanuel Vadot						compatible = "fixed-partitions";
87*f126890aSEmmanuel Vadot						#address-cells = <1>;
88*f126890aSEmmanuel Vadot						#size-cells = <1>;
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot						root@0 {
91*f126890aSEmmanuel Vadot							label = "root";
92*f126890aSEmmanuel Vadot							reg = <0x0 0x08000000>;
93*f126890aSEmmanuel Vadot						};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot						data@20000 {
96*f126890aSEmmanuel Vadot							label = "data";
97*f126890aSEmmanuel Vadot							reg = <0x08000000 0x38000000>;
98*f126890aSEmmanuel Vadot						};
99*f126890aSEmmanuel Vadot					};
100*f126890aSEmmanuel Vadot				};
101*f126890aSEmmanuel Vadot			};
102*f126890aSEmmanuel Vadot		};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot		usb0: ohci@500000 {
105*f126890aSEmmanuel Vadot			num-ports = <2>;
106*f126890aSEmmanuel Vadot			status = "okay";
107*f126890aSEmmanuel Vadot		};
108*f126890aSEmmanuel Vadot	};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot	i2c-gpio-0 {
111*f126890aSEmmanuel Vadot		status = "okay";
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot		pcf8563@50 {
114*f126890aSEmmanuel Vadot			compatible = "nxp,pcf8563";
115*f126890aSEmmanuel Vadot			reg = <0x51>;
116*f126890aSEmmanuel Vadot		};
117*f126890aSEmmanuel Vadot	};
118*f126890aSEmmanuel Vadot};
119