1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * at91-ariag25.dts - Device Tree file for Acme Systems Aria G25 (AT91SAM9G25 based) 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2013 Douglas Gilbert <dgilbert@interlog.com>, 6*f126890aSEmmanuel Vadot * Robert Nelson <robertcnelson@gmail.com> 7*f126890aSEmmanuel Vadot */ 8*f126890aSEmmanuel Vadot/dts-v1/; 9*f126890aSEmmanuel Vadot#include "at91sam9g25.dtsi" 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot/ { 12*f126890aSEmmanuel Vadot model = "Acme Systems Aria G25"; 13*f126890aSEmmanuel Vadot compatible = "acme,ariag25", "atmel,at91sam9x5ek", 14*f126890aSEmmanuel Vadot "atmel,at91sam9x5", "atmel,at91sam9"; 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot aliases { 17*f126890aSEmmanuel Vadot serial5 = &uart0; 18*f126890aSEmmanuel Vadot serial6 = &uart1; 19*f126890aSEmmanuel Vadot }; 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot chosen { 22*f126890aSEmmanuel Vadot bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait"; 23*f126890aSEmmanuel Vadot }; 24*f126890aSEmmanuel Vadot 25*f126890aSEmmanuel Vadot memory@20000000 { 26*f126890aSEmmanuel Vadot /* 128 MB, change this for 256 MB revision */ 27*f126890aSEmmanuel Vadot reg = <0x20000000 0x8000000>; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot clocks { 31*f126890aSEmmanuel Vadot slow_xtal { 32*f126890aSEmmanuel Vadot clock-frequency = <32768>; 33*f126890aSEmmanuel Vadot }; 34*f126890aSEmmanuel Vadot 35*f126890aSEmmanuel Vadot main_xtal { 36*f126890aSEmmanuel Vadot clock-frequency = <12000000>; 37*f126890aSEmmanuel Vadot }; 38*f126890aSEmmanuel Vadot }; 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot leds { 41*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 42*f126890aSEmmanuel Vadot 43*f126890aSEmmanuel Vadot /* little green LED in middle of Aria G25 module */ 44*f126890aSEmmanuel Vadot aria_led { 45*f126890aSEmmanuel Vadot label = "aria_led"; 46*f126890aSEmmanuel Vadot gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */ 47*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 48*f126890aSEmmanuel Vadot }; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot }; 51*f126890aSEmmanuel Vadot 52*f126890aSEmmanuel Vadot onewire { 53*f126890aSEmmanuel Vadot compatible = "w1-gpio"; 54*f126890aSEmmanuel Vadot gpios = <&pioA 21 GPIO_ACTIVE_LOW>; 55*f126890aSEmmanuel Vadot pinctrl-names = "default"; 56*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_w1_0>; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot}; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot&adc0 { 61*f126890aSEmmanuel Vadot status = "okay"; 62*f126890aSEmmanuel Vadot atmel,adc-channels-used = <0xf>; 63*f126890aSEmmanuel Vadot}; 64*f126890aSEmmanuel Vadot 65*f126890aSEmmanuel Vadot&dbgu { 66*f126890aSEmmanuel Vadot status = "okay"; 67*f126890aSEmmanuel Vadot}; 68*f126890aSEmmanuel Vadot 69*f126890aSEmmanuel Vadot&i2c0 { 70*f126890aSEmmanuel Vadot status = "okay"; 71*f126890aSEmmanuel Vadot}; 72*f126890aSEmmanuel Vadot 73*f126890aSEmmanuel Vadot&i2c1 { 74*f126890aSEmmanuel Vadot status = "okay"; 75*f126890aSEmmanuel Vadot}; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot/* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */ 78*f126890aSEmmanuel Vadot 79*f126890aSEmmanuel Vadot&macb0 { 80*f126890aSEmmanuel Vadot phy-mode = "rmii"; 81*f126890aSEmmanuel Vadot /* 82*f126890aSEmmanuel Vadot * following can be overwritten by bootloader: 83*f126890aSEmmanuel Vadot * for example u-boot 'ftd set' command 84*f126890aSEmmanuel Vadot */ 85*f126890aSEmmanuel Vadot local-mac-address = [00 00 00 00 00 00]; 86*f126890aSEmmanuel Vadot status = "okay"; 87*f126890aSEmmanuel Vadot}; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot&mmc0 { 91*f126890aSEmmanuel Vadot /* N.B. Aria has no SD card detect (CD), assumed present */ 92*f126890aSEmmanuel Vadot 93*f126890aSEmmanuel Vadot pinctrl-0 = < 94*f126890aSEmmanuel Vadot &pinctrl_mmc0_slot0_clk_cmd_dat0 95*f126890aSEmmanuel Vadot &pinctrl_mmc0_slot0_dat1_3>; 96*f126890aSEmmanuel Vadot pinctrl-names = "default"; 97*f126890aSEmmanuel Vadot status = "okay"; 98*f126890aSEmmanuel Vadot 99*f126890aSEmmanuel Vadot slot@0 { 100*f126890aSEmmanuel Vadot reg = <0>; 101*f126890aSEmmanuel Vadot bus-width = <4>; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot}; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot&pinctrl { 106*f126890aSEmmanuel Vadot w1_0 { 107*f126890aSEmmanuel Vadot pinctrl_w1_0: w1_0-0 { 108*f126890aSEmmanuel Vadot atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */ 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot }; 111*f126890aSEmmanuel Vadot}; 112*f126890aSEmmanuel Vadot 113*f126890aSEmmanuel Vadot&rtc { 114*f126890aSEmmanuel Vadot status = "okay"; 115*f126890aSEmmanuel Vadot}; 116*f126890aSEmmanuel Vadot 117*f126890aSEmmanuel Vadot&tcb0 { 118*f126890aSEmmanuel Vadot timer@0 { 119*f126890aSEmmanuel Vadot compatible = "atmel,tcb-timer"; 120*f126890aSEmmanuel Vadot reg = <0>; 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot 123*f126890aSEmmanuel Vadot timer@1 { 124*f126890aSEmmanuel Vadot compatible = "atmel,tcb-timer"; 125*f126890aSEmmanuel Vadot reg = <1>; 126*f126890aSEmmanuel Vadot }; 127*f126890aSEmmanuel Vadot}; 128*f126890aSEmmanuel Vadot 129*f126890aSEmmanuel Vadot/* 130*f126890aSEmmanuel Vadot * UART0/1 pins are marked as GPIO on 131*f126890aSEmmanuel Vadot * Aria documentation. 132*f126890aSEmmanuel Vadot * Change to "okay" if you need additional serial ports 133*f126890aSEmmanuel Vadot */ 134*f126890aSEmmanuel Vadot&uart0 { 135*f126890aSEmmanuel Vadot status = "disabled"; 136*f126890aSEmmanuel Vadot}; 137*f126890aSEmmanuel Vadot 138*f126890aSEmmanuel Vadot&uart1 { 139*f126890aSEmmanuel Vadot status = "disabled"; 140*f126890aSEmmanuel Vadot}; 141*f126890aSEmmanuel Vadot 142*f126890aSEmmanuel Vadot&usart0 { 143*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usart0 144*f126890aSEmmanuel Vadot &pinctrl_usart0_rts 145*f126890aSEmmanuel Vadot &pinctrl_usart0_cts>; 146*f126890aSEmmanuel Vadot status = "okay"; 147*f126890aSEmmanuel Vadot}; 148*f126890aSEmmanuel Vadot 149*f126890aSEmmanuel Vadot&usart1 { 150*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usart1 151*f126890aSEmmanuel Vadot /* &pinctrl_usart1_rts */ 152*f126890aSEmmanuel Vadot /* &pinctrl_usart1_cts */ 153*f126890aSEmmanuel Vadot >; 154*f126890aSEmmanuel Vadot status = "okay"; 155*f126890aSEmmanuel Vadot}; 156*f126890aSEmmanuel Vadot 157*f126890aSEmmanuel Vadot&usart2 { 158*f126890aSEmmanuel Vadot /* cannot activate RTS2+CTS2, clash with 159*f126890aSEmmanuel Vadot * ethernet on PB0 and PB1 */ 160*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usart2>; 161*f126890aSEmmanuel Vadot status = "okay"; 162*f126890aSEmmanuel Vadot}; 163*f126890aSEmmanuel Vadot 164*f126890aSEmmanuel Vadot&usart3 { 165*f126890aSEmmanuel Vadot compatible = "atmel,at91sam9260-usart"; 166*f126890aSEmmanuel Vadot reg = <0xf8028000 0x200>; 167*f126890aSEmmanuel Vadot interrupts = <8 4 5>; 168*f126890aSEmmanuel Vadot pinctrl-names = "default"; 169*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usart3 170*f126890aSEmmanuel Vadot /* &pinctrl_usart3_rts */ 171*f126890aSEmmanuel Vadot /* &pinctrl_usart3_cts */ 172*f126890aSEmmanuel Vadot >; 173*f126890aSEmmanuel Vadot status = "okay"; 174*f126890aSEmmanuel Vadot}; 175*f126890aSEmmanuel Vadot 176*f126890aSEmmanuel Vadot&usb0 { 177*f126890aSEmmanuel Vadot status = "okay"; 178*f126890aSEmmanuel Vadot num-ports = <3>; 179*f126890aSEmmanuel Vadot}; 180*f126890aSEmmanuel Vadot 181*f126890aSEmmanuel Vadot&usb1 { 182*f126890aSEmmanuel Vadot status = "okay"; 183*f126890aSEmmanuel Vadot}; 184