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