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