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