xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/aks-cdu.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * aks-cdu.dts - Device Tree file for AK signal CDU
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2012 AK signal Brno a.s.
6*f126890aSEmmanuel Vadot *               2012 Jiri Prchal <jiri.prchal@aksignal.cz>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/dts-v1/;
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot#include "ge863-pro3.dtsi"
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot/ {
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	clocks {
19*f126890aSEmmanuel Vadot		slow_xtal {
20*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
21*f126890aSEmmanuel Vadot		};
22*f126890aSEmmanuel Vadot	};
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot	ahb {
25*f126890aSEmmanuel Vadot		apb {
26*f126890aSEmmanuel Vadot			usart0: serial@fffb0000 {
27*f126890aSEmmanuel Vadot				status = "okay";
28*f126890aSEmmanuel Vadot			};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot			usart1: serial@fffb4000 {
31*f126890aSEmmanuel Vadot				status = "okay";
32*f126890aSEmmanuel Vadot				linux,rs485-enabled-at-boot-time;
33*f126890aSEmmanuel Vadot				rs485-rts-delay = <0 0>;
34*f126890aSEmmanuel Vadot				};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot			usart2: serial@fffb8000 {
37*f126890aSEmmanuel Vadot				status = "okay";
38*f126890aSEmmanuel Vadot				linux,rs485-enabled-at-boot-time;
39*f126890aSEmmanuel Vadot				rs485-rts-delay = <0 0>;
40*f126890aSEmmanuel Vadot			};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot			usart3: serial@fffd0000 {
43*f126890aSEmmanuel Vadot				status = "okay";
44*f126890aSEmmanuel Vadot				linux,rs485-enabled-at-boot-time;
45*f126890aSEmmanuel Vadot				rs485-rts-delay = <0 0>;
46*f126890aSEmmanuel Vadot			};
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot			macb0: ethernet@fffc4000 {
49*f126890aSEmmanuel Vadot				phy-mode = "rmii";
50*f126890aSEmmanuel Vadot				status = "okay";
51*f126890aSEmmanuel Vadot			};
52*f126890aSEmmanuel Vadot
53*f126890aSEmmanuel Vadot			usb1: gadget@fffa4000 {
54*f126890aSEmmanuel Vadot				atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
55*f126890aSEmmanuel Vadot				status = "okay";
56*f126890aSEmmanuel Vadot			};
57*f126890aSEmmanuel Vadot		};
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot		usb0: ohci@500000 {
60*f126890aSEmmanuel Vadot			num-ports = <2>;
61*f126890aSEmmanuel Vadot			status = "okay";
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		ebi: ebi@10000000 {
65*f126890aSEmmanuel Vadot			nand_controller: nand-controller {
66*f126890aSEmmanuel Vadot				nand: nand@3 {
67*f126890aSEmmanuel Vadot					partitions {
68*f126890aSEmmanuel Vadot						bootstrap@0 {
69*f126890aSEmmanuel Vadot							label = "bootstrap";
70*f126890aSEmmanuel Vadot							reg = <0x0 0x40000>;
71*f126890aSEmmanuel Vadot						};
72*f126890aSEmmanuel Vadot
73*f126890aSEmmanuel Vadot						uboot@40000 {
74*f126890aSEmmanuel Vadot							label = "uboot";
75*f126890aSEmmanuel Vadot							reg = <0x40000 0x80000>;
76*f126890aSEmmanuel Vadot						};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot						ubootenv@c0000 {
79*f126890aSEmmanuel Vadot							label = "ubootenv";
80*f126890aSEmmanuel Vadot							reg = <0xc0000 0x40000>;
81*f126890aSEmmanuel Vadot						};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot						kernel@100000 {
84*f126890aSEmmanuel Vadot							label = "kernel";
85*f126890aSEmmanuel Vadot							reg = <0x100000 0x400000>;
86*f126890aSEmmanuel Vadot						};
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot						rootfs@500000 {
89*f126890aSEmmanuel Vadot							label = "rootfs";
90*f126890aSEmmanuel Vadot							reg = <0x500000 0x7b00000>;
91*f126890aSEmmanuel Vadot						};
92*f126890aSEmmanuel Vadot					};
93*f126890aSEmmanuel Vadot				};
94*f126890aSEmmanuel Vadot			};
95*f126890aSEmmanuel Vadot		};
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot	leds {
99*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot		red {
102*f126890aSEmmanuel Vadot			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
103*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
104*f126890aSEmmanuel Vadot		};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot		green {
107*f126890aSEmmanuel Vadot			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
108*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
109*f126890aSEmmanuel Vadot			default-state = "on";
110*f126890aSEmmanuel Vadot		};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot		yellow {
113*f126890aSEmmanuel Vadot			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
114*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
115*f126890aSEmmanuel Vadot		};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot		blue {
118*f126890aSEmmanuel Vadot			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
119*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
120*f126890aSEmmanuel Vadot		};
121*f126890aSEmmanuel Vadot	};
122*f126890aSEmmanuel Vadot};
123