Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * at91-ariag25.dts - Device Tree file for Acme Systems Aria G25 (AT91SAM9G25 based)
0004  *
0005  * Copyright (C) 2013 Douglas Gilbert <dgilbert@interlog.com>,
0006  *                    Robert Nelson <robertcnelson@gmail.com>
0007  */
0008 /dts-v1/;
0009 #include "at91sam9g25.dtsi"
0010 
0011 / {
0012         model = "Acme Systems Aria G25";
0013         compatible = "acme,ariag25", "atmel,at91sam9x5ek",
0014                      "atmel,at91sam9x5", "atmel,at91sam9";
0015 
0016         aliases {
0017                 serial5 = &uart0;
0018                 serial6 = &uart1;
0019         };
0020 
0021         chosen {
0022                 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
0023         };
0024 
0025         memory@20000000 {
0026                 /* 128 MB, change this for 256 MB revision */
0027                 reg = <0x20000000 0x8000000>;
0028         };
0029 
0030         clocks {
0031                 slow_xtal {
0032                         clock-frequency = <32768>;
0033                 };
0034 
0035                 main_xtal {
0036                         clock-frequency = <12000000>;
0037                 };
0038         };
0039 
0040         leds {
0041                 compatible = "gpio-leds";
0042 
0043                 /* little green LED in middle of Aria G25 module */
0044                 aria_led {
0045                         label = "aria_led";
0046                         gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */
0047                         linux,default-trigger = "heartbeat";
0048                 };
0049 
0050         };
0051 
0052         onewire {
0053                 compatible = "w1-gpio";
0054                 gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
0055                 pinctrl-names = "default";
0056                 pinctrl-0 = <&pinctrl_w1_0>;
0057         };
0058 };
0059 
0060 &adc0 {
0061         status = "okay";
0062         atmel,adc-channels-used = <0xf>;
0063 };
0064 
0065 &dbgu {
0066         status = "okay";
0067 };
0068 
0069 &i2c0 {
0070         status = "okay";
0071 };
0072 
0073 &i2c1 {
0074         status = "okay";
0075 };
0076 
0077 /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */
0078 
0079 &macb0 {
0080         phy-mode = "rmii";
0081         /*
0082          * following can be overwritten by bootloader:
0083          * for example u-boot 'ftd set' command
0084          */
0085         local-mac-address = [00 00 00 00 00 00];
0086         status = "okay";
0087 };
0088 
0089 
0090 &mmc0 {
0091         /* N.B. Aria has no SD card detect (CD), assumed present */
0092 
0093         pinctrl-0 = <
0094                 &pinctrl_mmc0_slot0_clk_cmd_dat0
0095                 &pinctrl_mmc0_slot0_dat1_3>;
0096         pinctrl-names = "default";
0097         status = "okay";
0098 
0099         slot@0 {
0100                 reg = <0>;
0101                 bus-width = <4>;
0102         };
0103 };
0104 
0105 &pinctrl {
0106         w1_0 {
0107                 pinctrl_w1_0: w1_0-0 {
0108                         atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
0109                 };
0110         };
0111 };
0112 
0113 &rtc {
0114         status = "okay";
0115 };
0116 
0117 &tcb0 {
0118         timer@0 {
0119                 compatible = "atmel,tcb-timer";
0120                 reg = <0>;
0121         };
0122 
0123         timer@1 {
0124                 compatible = "atmel,tcb-timer";
0125                 reg = <1>;
0126         };
0127 };
0128 
0129 /*
0130  * UART0/1 pins are marked as GPIO on
0131  * Aria documentation.
0132  * Change to "okay" if you need additional serial ports
0133  */
0134 &uart0 {
0135         status = "disabled";
0136 };
0137 
0138 &uart1 {
0139         status = "disabled";
0140 };
0141 
0142 &usart0 {
0143         pinctrl-0 = <&pinctrl_usart0
0144                      &pinctrl_usart0_rts
0145                      &pinctrl_usart0_cts>;
0146         status = "okay";
0147 };
0148 
0149 &usart1 {
0150         pinctrl-0 = <&pinctrl_usart1
0151                      /* &pinctrl_usart1_rts */
0152                      /* &pinctrl_usart1_cts */
0153                     >;
0154         status = "okay";
0155 };
0156 
0157 &usart2 {
0158         /* cannot activate RTS2+CTS2, clash with
0159          * ethernet on PB0 and PB1 */
0160         pinctrl-0 = <&pinctrl_usart2>;
0161         status = "okay";
0162 };
0163 
0164 &usart3 {
0165         compatible = "atmel,at91sam9260-usart";
0166         reg = <0xf8028000 0x200>;
0167         interrupts = <8 4 5>;
0168         pinctrl-names = "default";
0169         pinctrl-0 = <&pinctrl_usart3
0170                      /* &pinctrl_usart3_rts */
0171                      /* &pinctrl_usart3_cts */
0172                     >;
0173         status = "okay";
0174 };
0175 
0176 &usb0 {
0177         status = "okay";
0178         num-ports = <3>;
0179 };
0180 
0181 &usb1 {
0182         status = "okay";
0183 };