0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * at91-cosino_mega2560.dts - Device Tree file for Cosino board with
0004 * Mega 2560 extension
0005 *
0006 * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it>
0007 * HCE Engineering
0008 *
0009 * Derived from at91sam9g35ek.dts by:
0010 * Copyright (C) 2012 Atmel,
0011 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
0012 */
0013
0014 /dts-v1/;
0015 #include "at91-cosino.dtsi"
0016
0017 / {
0018 model = "HCE Cosino Mega 2560";
0019 compatible = "hce,cosino_mega2560", "atmel,at91sam9x5", "atmel,at91sam9";
0020 };
0021
0022 &adc0 {
0023 atmel,adc-ts-wires = <4>;
0024 atmel,adc-ts-pressure-threshold = <10000>;
0025 status = "okay";
0026 };
0027
0028 &macb0 {
0029 phy-mode = "rmii";
0030 status = "okay";
0031 };
0032
0033 &mmc1 {
0034 pinctrl-0 = <
0035 &pinctrl_mmc1_slot0_clk_cmd_dat0
0036 &pinctrl_mmc1_slot0_dat1_3>;
0037 pinctrl-names = "default";
0038 status = "okay";
0039
0040 slot@0 {
0041 reg = <0>;
0042 bus-width = <4>;
0043 non-removable;
0044 };
0045 };
0046
0047 &rtc {
0048 status = "okay";
0049 };
0050
0051 &usart1 {
0052 status = "okay";
0053 };
0054
0055 &usart2 {
0056 status = "okay";
0057 };
0058
0059 &usb0 {
0060 num-ports = <3>;
0061 atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW */
0062 &pioD 19 GPIO_ACTIVE_LOW
0063 &pioD 20 GPIO_ACTIVE_LOW
0064 >;
0065 status = "okay";
0066 };
0067
0068 &usb1 {
0069 status = "okay";
0070 };
0071
0072 &usb2 {
0073 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
0074 status = "okay";
0075 };