Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * at91-foxg20.dts - Device Tree file for Acme Systems FoxG20 board
0004  *
0005  * Based on DT files for at91sam9g20ek evaluation board (AT91SAM9G20 SoC)
0006  *
0007  * Copyright (C) 2013 Douglas Gilbert <dgilbert@interlog.com>
0008  */
0009 /dts-v1/;
0010 #include "at91sam9g20.dtsi"
0011 
0012 / {
0013         model = "Acme Systems FoxG20";
0014         compatible = "acme,foxg20", "atmel,at91sam9g20", "atmel,at91sam9";
0015 
0016         chosen {
0017                 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
0018         };
0019 
0020         memory@20000000 {
0021                 reg = <0x20000000 0x4000000>;
0022         };
0023 
0024         clocks {
0025                 slow_xtal {
0026                         clock-frequency = <32768>;
0027                 };
0028 
0029                 main_xtal {
0030                         clock-frequency = <18432000>;
0031                 };
0032         };
0033 
0034         ahb {
0035                 apb {
0036                         tcb0: timer@fffa0000 {
0037                                 timer@0 {
0038                                         compatible = "atmel,tcb-timer";
0039                                         reg = <0>, <1>;
0040                                 };
0041 
0042                                 timer@2 {
0043                                         compatible = "atmel,tcb-timer";
0044                                         reg = <2>;
0045                                 };
0046                         };
0047 
0048                         usb1: gadget@fffa4000 {
0049                                 atmel,vbus-gpio = <&pioC 6 GPIO_ACTIVE_HIGH>;
0050                                 status = "okay";
0051                         };
0052 
0053                         mmc0: mmc@fffa8000 {
0054                                 pinctrl-0 = <
0055                                         &pinctrl_mmc0_clk
0056                                         &pinctrl_mmc0_slot1_cmd_dat0
0057                                         &pinctrl_mmc0_slot1_dat1_3>;
0058                                 pinctrl-names = "default";
0059                                 status = "okay";
0060 
0061                                 slot@1 {
0062                                         reg = <1>;
0063                                         bus-width = <4>;
0064                                 };
0065                         };
0066 
0067                         usart0: serial@fffb0000 {
0068                                 pinctrl-0 =
0069                                         <&pinctrl_usart0
0070                                          &pinctrl_usart0_rts
0071                                          &pinctrl_usart0_cts
0072                                         >;
0073                                 status = "okay";
0074                         };
0075 
0076                         usart1: serial@fffb4000 {
0077                                 status = "okay";
0078                         };
0079 
0080                         usart2: serial@fffb8000 {
0081                                 status = "okay";
0082                         };
0083 
0084                         macb0: ethernet@fffc4000 {
0085                                 phy-mode = "rmii";
0086                                 status = "okay";
0087                         };
0088 
0089                         usart3: serial@fffd0000 {
0090                                 status = "okay";
0091                         };
0092 
0093                         uart0: serial@fffd4000 {
0094                                 status = "okay";
0095                         };
0096 
0097                         uart1: serial@fffd8000 {
0098                                 status = "okay";
0099                         };
0100 
0101                         dbgu: serial@fffff200 {
0102                                 status = "okay";
0103                         };
0104 
0105                         pinctrl@fffff400 {
0106                                 board {
0107                                         pinctrl_pck0_as_mck: pck0_as_mck {
0108                                                 atmel,pins =
0109                                                         <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0110                                         };
0111                                 };
0112 
0113                                 mmc0_slot1 {
0114                                         pinctrl_board_mmc0_slot1: mmc0_slot1-board {
0115                                                 atmel,pins =
0116                                                         <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;   /* CD pin */
0117                                         };
0118                                 };
0119 
0120                                 i2c0 {
0121                                         pinctrl_i2c0: i2c0-0 {
0122                                                 atmel,pins =
0123                                                         <AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE    /* TWD (SDA), open drain */
0124                                                          AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE>;  /* TWCK (SCL), open drain */
0125                                         };
0126                                 };
0127                         };
0128 
0129                         watchdog@fffffd40 {
0130                                 status = "okay";
0131                         };
0132                 };
0133 
0134                 usb0: ohci@500000 {
0135                         num-ports = <2>;
0136                         status = "okay";
0137                 };
0138         };
0139 
0140         i2c-gpio-0 {
0141                 pinctrl-names = "default";
0142                 pinctrl-0 = <&pinctrl_i2c0>;
0143                 i2c-gpio,delay-us = <5>;        /* ~85 kHz */
0144                 status = "okay";
0145         };
0146 
0147         leds {
0148                 compatible = "gpio-leds";
0149 
0150                 /* red LED marked "PC7" near mini USB (device) receptacle */
0151                 user_led {
0152                         label = "user_led";
0153                         gpios = <&pioC 7 GPIO_ACTIVE_HIGH>;     /* PC7 */
0154                         linux,default-trigger = "heartbeat";
0155                 };
0156         };
0157 
0158         gpio-keys {
0159                 compatible = "gpio-keys";
0160 
0161                 button {
0162                         label = "Button";
0163                         gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
0164                         linux,code = <0x103>;
0165                         wakeup-source;
0166                 };
0167         };
0168 };