/* * mymachine.dts - Device Tree file for board, base AT91sam9g25 * - Board rev V1R1 * * Copyright (C) 2014 Lucas Zampar Bernardi * * Licensed under GPLv2 or later. */ /dts-v1/; #include "at91sam9g25.dtsi" / { model = "MyMachine"; compatible = "zampar,mymachine-v1r1", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; aliases { serial0 = &dbgu; serial1 = &usart0; serial2 = &usart1; serial3 = &usart2; serial4 = &usart3; serial5 = &uart0; serial6 = &uart1; }; chosen { bootargs = "console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw"; }; memory { /* 128 MB, change this for 256 MB revision */ reg = <0x20000000 0x8000000>; }; clocks { #address-cells = <1>; #size-cells = <1>; ranges; main_clock: clock@0 { compatible = "atmel,osc", "fixed-clock"; clock-frequency = <12000000>; }; mcp2515_clock: mcp25515_clock { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <20000000>; }; }; ahb { apb { mmc0: mmc@f0008000 { /* N.B. Aria has no SD card detect (CD), assumed present */ pinctrl-0 = < &pinctrl_mmc0_slot0_clk_cmd_dat0 &pinctrl_mmc0_slot0_dat1_3>; status = "okay"; slot@0 { reg = <0>; bus-width = <4>; }; }; i2c0: i2c@f8010000 { status = "okay"; 24c512@50 { compatible = "24c512"; reg = <0x50>; pagesize = <128>; }; }; i2c1: i2c@f8014000 { status = "okay"; }; /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */ usart0: serial@f801c000 { pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts &pinctrl_usart0_cts>; status = "disabled"; }; usart1: serial@f8020000 { pinctrl-0 = <&pinctrl_usart1 /* &pinctrl_usart1_rts */ /* &pinctrl_usart1_cts */ >; status = "disabled"; }; usart2: serial@f8024000 { /* cannot activate RTS2+CTS2, clash with * ethernet on PB0 and PB1 */ pinctrl-0 = <&pinctrl_usart2>; status = "disabled"; }; usart3: serial@f8028000 { compatible = "atmel,at91sam9260-usart"; reg = <0xf8028000 0x200>; interrupts = <8 4 5>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart3 /* &pinctrl_usart3_rts */ /* &pinctrl_usart3_cts */ >; status = "disabled"; }; macb0: ethernet@f802c000 { phy-mode = "rmii"; /* * following can be overwritten by bootloader: * for example u-boot 'ftd set' command */ local-mac-address = [00 00 00 00 00 00]; status = "okay"; }; /* * UART0/1 pins are marked as GPIO on * Aria documentation. * Change to "okay" if you need additional serial ports */ uart0: serial@f8040000 { status = "disabled"; }; uart1: serial@f8044000 { status = "disabled"; }; adc0: adc@f804c000 { status = "okay"; atmel,adc-channels-used = <0xf>; atmel,adc-num-channels = <4>; }; dbgu: serial@fffff200 { status = "okay"; }; pinctrl@fffff400 { w1_0 { pinctrl_w1_0: w1_0-0 { atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */ }; }; mcp251x_0 { pinctrl_mcp251x_0: mcp251x_0-0 { atmel,pins = ; /* PC12 periph GPIO - INT */ }; }; }; rtc@fffffeb0 { status = "okay"; }; spi0: spi@f0000000 { status = "okay"; interrupts = <13 4 5>; cs-gpios = <&pioA 14 0>, <&pioA 7 0>, <&pioA 1 0>, <0>; mtd_dataflash@0 { compatible = "atmel,at45", "atmel,dataflash"; spi-max-frequency = <10000000>; reg = <0>; }; can0: can@1 { compatible = "microchip,mcp2515"; reg = <2>; spi-max-frequency = <10000000>; clocks = <&mcp2515_clock>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mcp251x_0>; interrupt-parent = <&pioC>; interrupts = <12 2>; }; }; }; usb0: ohci@00600000 { status = "okay"; num-ports = <3>; }; usb1: ehci@00700000 { status = "okay"; }; nand0: nand@40000000 { nand-bus-width = <8>; nand-ecc-mode = "hw"; atmel,has-pmecc; /* Enable PMECC */ atmel,pmecc-cap = <2>; atmel,pmecc-sector-size = <512>; nand-on-flash-bbt; status = "okay"; at91bootstrap@0 { label = "at91bootstrap"; reg = <0x0 0x40000>; }; uboot@40000 { label = "u-boot"; reg = <0x40000 0x80000>; }; ubootenv@c0000 { label = "U-Boot Env"; reg = <0xc0000 0x140000>; }; kernel@200000 { label = "kernel"; reg = <0x200000 0x600000>; }; rootfs@800000 { label = "rootfs"; reg = <0x800000 0x1f800000>; }; }; }; leds { compatible = "gpio-leds"; /* little green LED in middle of cpu module */ module_led { label = "module_led"; gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */ linux,default-trigger = "heartbeat"; }; cpu_led { label = "cpu_led"; gpios = <&pioA 29 GPIO_ACTIVE_HIGH>; /* PA29 */ linux,default-trigger = "heartbeat"; }; busy_led { label = "busy_led"; gpios = <&pioA 28 GPIO_ACTIVE_HIGH>; /* PA28 */ linux,default-trigger = "heartbeat"; }; fail_led { label = "fail_led"; gpios = <&pioA 27 GPIO_ACTIVE_HIGH>; /* PA27 */ linux,default-trigger = "heartbeat"; }; }; gpio_keys { compatible = "gpio-keys"; transfer_button { label = "transfer_button"; gpios = <&pioA 26 GPIO_ACTIVE_LOW>; linux,code = <183>; /* F13 Key */ gpio-key,wakeup; }; custom_button { label = "custom_button"; gpios = <&pioA 25 GPIO_ACTIVE_LOW>; linux,code = <184>; /* F14 Key */ gpio-key,wakeup; }; }; onewire@0 { compatible = "w1-gpio"; gpios = <&pioA 21 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_w1_0>; }; };