Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / arch / arm / boot / dts / at91-cosino_mega2560.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * at91-cosino_mega2560.dts - Device Tree file for Cosino board with
4  *                            Mega 2560 extension
5  *
6  * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it>
7  *                      HCE Engineering
8  *
9  * Derived from at91sam9g35ek.dts by:
10  *      Copyright (C) 2012 Atmel,
11  *      2012 Nicolas Ferre <nicolas.ferre@atmel.com>
12  */
13
14 /dts-v1/;
15 #include "at91-cosino.dtsi"
16
17 / {
18         model = "HCE Cosino Mega 2560";
19         compatible = "hce,cosino_mega2560", "atmel,at91sam9x5", "atmel,at91sam9";
20
21         ahb {
22                 apb {
23                         macb0: ethernet@f802c000 {
24                                 phy-mode = "rmii";
25                                 status = "okay";
26                         };
27
28                         adc0: adc@f804c000 {
29                                 atmel,adc-ts-wires = <4>;
30                                 atmel,adc-ts-pressure-threshold = <10000>;
31                                 status = "okay";
32                         };
33
34                         rtc@fffffeb0 {
35                                 status = "okay";
36                         };
37
38                         usart1: serial@f8020000 {
39                                 status = "okay";
40                         };
41
42                         usart2: serial@f8024000 {
43                                 status = "okay";
44                         };
45
46                         usb2: gadget@f803c000 {
47                                 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
48                                 status = "okay";
49                         };
50
51                         mmc1: mmc@f000c000 {
52                                 pinctrl-0 = <
53                                         &pinctrl_mmc1_slot0_clk_cmd_dat0
54                                         &pinctrl_mmc1_slot0_dat1_3>;
55                                 status = "okay";
56                                 slot@0 {
57                                         reg = <0>;
58                                         bus-width = <4>;
59                                         non-removable;
60                                 };
61                         };
62                 };
63
64                 usb0: ohci@600000 {
65                         status = "okay";
66                         num-ports = <3>;
67                         atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW */
68                                            &pioD 19 GPIO_ACTIVE_LOW
69                                            &pioD 20 GPIO_ACTIVE_LOW
70                                           >;
71                 };
72
73                 usb1: ehci@700000 {
74                         status = "okay";
75                 };
76         };
77 };