xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/animeo_ip.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot#include "at91sam9260.dtsi"
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	model = "Somfy Animeo IP";
13*f126890aSEmmanuel Vadot	compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9";
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot	aliases {
16*f126890aSEmmanuel Vadot		serial0 = &usart1;
17*f126890aSEmmanuel Vadot		serial1 = &usart2;
18*f126890aSEmmanuel Vadot		serial2 = &usart0;
19*f126890aSEmmanuel Vadot		serial3 = &dbgu;
20*f126890aSEmmanuel Vadot		serial4 = &usart3;
21*f126890aSEmmanuel Vadot		serial5 = &uart0;
22*f126890aSEmmanuel Vadot		serial6 = &uart1;
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	chosen {
26*f126890aSEmmanuel Vadot		stdout-path = &usart2;
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot	memory@20000000 {
30*f126890aSEmmanuel Vadot		reg = <0x20000000 0x4000000>;
31*f126890aSEmmanuel Vadot	};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot	clocks {
34*f126890aSEmmanuel Vadot		slow_xtal {
35*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
36*f126890aSEmmanuel Vadot		};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot		main_xtal {
39*f126890aSEmmanuel Vadot			clock-frequency = <18432000>;
40*f126890aSEmmanuel Vadot		};
41*f126890aSEmmanuel Vadot	};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot	ahb {
44*f126890aSEmmanuel Vadot		apb {
45*f126890aSEmmanuel Vadot			tcb0: timer@fffa0000 {
46*f126890aSEmmanuel Vadot				timer@0 {
47*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
48*f126890aSEmmanuel Vadot					reg = <0>, <1>;
49*f126890aSEmmanuel Vadot				};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot				timer@2 {
52*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
53*f126890aSEmmanuel Vadot					reg = <2>;
54*f126890aSEmmanuel Vadot				};
55*f126890aSEmmanuel Vadot			};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot			usart0: serial@fffb0000 {
58*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
59*f126890aSEmmanuel Vadot				linux,rs485-enabled-at-boot-time;
60*f126890aSEmmanuel Vadot				status = "okay";
61*f126890aSEmmanuel Vadot			};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot			usart1: serial@fffb4000 {
64*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
65*f126890aSEmmanuel Vadot				linux,rs485-enabled-at-boot-time;
66*f126890aSEmmanuel Vadot				status = "okay";
67*f126890aSEmmanuel Vadot			};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot			usart2: serial@fffb8000 {
70*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart2>;
71*f126890aSEmmanuel Vadot				status = "okay";
72*f126890aSEmmanuel Vadot			};
73*f126890aSEmmanuel Vadot
74*f126890aSEmmanuel Vadot			macb0: ethernet@fffc4000 {
75*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
76*f126890aSEmmanuel Vadot				phy-mode = "mii";
77*f126890aSEmmanuel Vadot				status = "okay";
78*f126890aSEmmanuel Vadot			};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot			mmc0: mmc@fffa8000 {
81*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_mmc0_clk
82*f126890aSEmmanuel Vadot					     &pinctrl_mmc0_slot1_cmd_dat0
83*f126890aSEmmanuel Vadot					     &pinctrl_mmc0_slot1_dat1_3>;
84*f126890aSEmmanuel Vadot				pinctrl-names = "default";
85*f126890aSEmmanuel Vadot				status = "okay";
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot				slot@1 {
88*f126890aSEmmanuel Vadot					reg = <1>;
89*f126890aSEmmanuel Vadot					bus-width = <4>;
90*f126890aSEmmanuel Vadot				};
91*f126890aSEmmanuel Vadot			};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot			watchdog@fffffd40 {
94*f126890aSEmmanuel Vadot				status = "okay";
95*f126890aSEmmanuel Vadot			};
96*f126890aSEmmanuel Vadot		};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot		ebi: ebi@10000000 {
99*f126890aSEmmanuel Vadot			status = "okay";
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot			nand_controller: nand-controller {
102*f126890aSEmmanuel Vadot				status = "okay";
103*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
104*f126890aSEmmanuel Vadot				pinctrl-names = "default";
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot				nand@3 {
107*f126890aSEmmanuel Vadot					reg = <0x3 0x0 0x800000>;
108*f126890aSEmmanuel Vadot					rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
109*f126890aSEmmanuel Vadot					cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
110*f126890aSEmmanuel Vadot					nand-bus-width = <8>;
111*f126890aSEmmanuel Vadot					nand-ecc-mode = "soft";
112*f126890aSEmmanuel Vadot					nand-on-flash-bbt;
113*f126890aSEmmanuel Vadot					label = "atmel_nand";
114*f126890aSEmmanuel Vadot
115*f126890aSEmmanuel Vadot					partitions {
116*f126890aSEmmanuel Vadot						compatible = "fixed-partitions";
117*f126890aSEmmanuel Vadot						#address-cells = <1>;
118*f126890aSEmmanuel Vadot						#size-cells = <1>;
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot						barebox@0 {
121*f126890aSEmmanuel Vadot							label = "barebox";
122*f126890aSEmmanuel Vadot							reg = <0x0 0x58000>;
123*f126890aSEmmanuel Vadot						};
124*f126890aSEmmanuel Vadot
125*f126890aSEmmanuel Vadot						u_boot_env@58000 {
126*f126890aSEmmanuel Vadot							label = "u_boot_env";
127*f126890aSEmmanuel Vadot							reg = <0x58000 0x8000>;
128*f126890aSEmmanuel Vadot						};
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot						ubi@60000 {
131*f126890aSEmmanuel Vadot							label = "ubi";
132*f126890aSEmmanuel Vadot							reg = <0x60000 0x1FA0000>;
133*f126890aSEmmanuel Vadot						};
134*f126890aSEmmanuel Vadot					};
135*f126890aSEmmanuel Vadot				};
136*f126890aSEmmanuel Vadot			};
137*f126890aSEmmanuel Vadot		};
138*f126890aSEmmanuel Vadot
139*f126890aSEmmanuel Vadot		usb0: ohci@500000 {
140*f126890aSEmmanuel Vadot			num-ports = <2>;
141*f126890aSEmmanuel Vadot			atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
142*f126890aSEmmanuel Vadot			status = "okay";
143*f126890aSEmmanuel Vadot		};
144*f126890aSEmmanuel Vadot	};
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot	leds {
147*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot		power_green {
150*f126890aSEmmanuel Vadot			label = "power_green";
151*f126890aSEmmanuel Vadot			gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
152*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
153*f126890aSEmmanuel Vadot		};
154*f126890aSEmmanuel Vadot
155*f126890aSEmmanuel Vadot		power_red {
156*f126890aSEmmanuel Vadot			label = "power_red";
157*f126890aSEmmanuel Vadot			gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
158*f126890aSEmmanuel Vadot		};
159*f126890aSEmmanuel Vadot
160*f126890aSEmmanuel Vadot		tx_green {
161*f126890aSEmmanuel Vadot			label = "tx_green";
162*f126890aSEmmanuel Vadot			gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
163*f126890aSEmmanuel Vadot		};
164*f126890aSEmmanuel Vadot
165*f126890aSEmmanuel Vadot		tx_red {
166*f126890aSEmmanuel Vadot			label = "tx_red";
167*f126890aSEmmanuel Vadot			gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
168*f126890aSEmmanuel Vadot		};
169*f126890aSEmmanuel Vadot	};
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot	gpio-keys {
172*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot		key-switch-in {
175*f126890aSEmmanuel Vadot			label = "keyswitch_in";
176*f126890aSEmmanuel Vadot			gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
177*f126890aSEmmanuel Vadot			linux,code = <28>;
178*f126890aSEmmanuel Vadot			wakeup-source;
179*f126890aSEmmanuel Vadot		};
180*f126890aSEmmanuel Vadot
181*f126890aSEmmanuel Vadot		key-error-in {
182*f126890aSEmmanuel Vadot			label = "error_in";
183*f126890aSEmmanuel Vadot			gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
184*f126890aSEmmanuel Vadot			linux,code = <29>;
185*f126890aSEmmanuel Vadot			wakeup-source;
186*f126890aSEmmanuel Vadot		};
187*f126890aSEmmanuel Vadot
188*f126890aSEmmanuel Vadot		key-s {
189*f126890aSEmmanuel Vadot			label = "btn";
190*f126890aSEmmanuel Vadot			gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
191*f126890aSEmmanuel Vadot			linux,code = <31>;
192*f126890aSEmmanuel Vadot			wakeup-source;
193*f126890aSEmmanuel Vadot		};
194*f126890aSEmmanuel Vadot	};
195*f126890aSEmmanuel Vadot};
196