Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 1 | /* |
| 2 | * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board |
| 3 | * |
| 4 | * Copyright (C) 2012 Atmel, |
| 5 | * 2012 Nicolas Ferre <nicolas.ferre@atmel.com> |
| 6 | * |
| 7 | * Licensed under GPLv2 or later. |
| 8 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 9 | #include "at91sam9x5cm.dtsi" |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "Atmel AT91SAM9X5-EK"; |
| 13 | compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9"; |
| 14 | |
| 15 | chosen { |
Nicolas Ferre | b090e5f | 2013-03-22 12:32:09 +0100 | [diff] [blame] | 16 | bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs"; |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | ahb { |
| 20 | apb { |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 21 | mmc0: mmc@f0008000 { |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 22 | pinctrl-0 = < |
| 23 | &pinctrl_board_mmc0 |
| 24 | &pinctrl_mmc0_slot0_clk_cmd_dat0 |
| 25 | &pinctrl_mmc0_slot0_dat1_3>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 26 | status = "okay"; |
| 27 | slot@0 { |
| 28 | reg = <0>; |
| 29 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 30 | cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 31 | }; |
| 32 | }; |
| 33 | |
| 34 | mmc1: mmc@f000c000 { |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 35 | pinctrl-0 = < |
| 36 | &pinctrl_board_mmc1 |
| 37 | &pinctrl_mmc1_slot0_clk_cmd_dat0 |
| 38 | &pinctrl_mmc1_slot0_dat1_3>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 39 | status = "okay"; |
| 40 | slot@0 { |
| 41 | reg = <0>; |
| 42 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 43 | cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 44 | }; |
| 45 | }; |
| 46 | |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 47 | dbgu: serial@fffff200 { |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | usart0: serial@f801c000 { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
Jean-Christophe PLAGNIOL-VILLARD | 17bcaaa | 2013-05-03 20:49:51 +0800 | [diff] [blame] | 55 | usb2: gadget@f803c000 { |
| 56 | atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>; |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 60 | i2c0: i2c@f8010000 { |
| 61 | status = "okay"; |
Richard Genoud | 4dc6e27 | 2013-08-12 14:31:00 +0200 | [diff] [blame] | 62 | |
| 63 | wm8731: wm8731@1a { |
| 64 | compatible = "wm8731"; |
| 65 | reg = <0x1a>; |
| 66 | }; |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 67 | }; |
| 68 | |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 69 | pinctrl@fffff400 { |
| 70 | mmc0 { |
| 71 | pinctrl_board_mmc0: mmc0-board { |
| 72 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 73 | <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */ |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 74 | }; |
| 75 | }; |
| 76 | |
| 77 | mmc1 { |
| 78 | pinctrl_board_mmc1: mmc1-board { |
| 79 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 80 | <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */ |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 81 | }; |
| 82 | }; |
| 83 | }; |
Richard Genoud | b6811e9 | 2013-04-03 14:03:05 +0800 | [diff] [blame] | 84 | |
| 85 | spi0: spi@f0000000 { |
| 86 | status = "okay"; |
| 87 | cs-gpios = <&pioA 14 0>, <0>, <0>, <0>; |
| 88 | m25p80@0 { |
| 89 | compatible = "atmel,at25df321a"; |
| 90 | spi-max-frequency = <50000000>; |
| 91 | reg = <0>; |
| 92 | }; |
| 93 | }; |
Wenyou Yang | c77bcef | 2013-05-31 11:11:33 +0800 | [diff] [blame] | 94 | |
| 95 | watchdog@fffffe40 { |
| 96 | status = "okay"; |
| 97 | }; |
Richard Genoud | 45b7635 | 2013-08-12 14:31:01 +0200 | [diff] [blame] | 98 | |
| 99 | ssc0: ssc@f0010000 { |
| 100 | status = "okay"; |
| 101 | }; |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | usb0: ohci@00600000 { |
| 105 | status = "okay"; |
Nicolas Ferre | 69b90f1 | 2013-07-03 12:51:36 +0200 | [diff] [blame] | 106 | num-ports = <3>; |
| 107 | atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */ |
| 108 | &pioD 19 GPIO_ACTIVE_LOW |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 109 | &pioD 20 GPIO_ACTIVE_LOW |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 110 | >; |
| 111 | }; |
| 112 | |
| 113 | usb1: ehci@00700000 { |
| 114 | status = "okay"; |
| 115 | }; |
| 116 | }; |
Richard Genoud | 90d0192 | 2013-08-12 14:31:02 +0200 | [diff] [blame] | 117 | |
| 118 | sound { |
| 119 | compatible = "atmel,sam9x5-wm8731-audio"; |
| 120 | |
| 121 | atmel,model = "wm8731 @ AT91SAM9X5EK"; |
| 122 | |
| 123 | atmel,audio-routing = |
| 124 | "Headphone Jack", "RHPOUT", |
| 125 | "Headphone Jack", "LHPOUT", |
| 126 | "LLINEIN", "Line In Jack", |
| 127 | "RLINEIN", "Line In Jack"; |
| 128 | |
| 129 | atmel,ssc-controller = <&ssc0>; |
| 130 | atmel,audio-codec = <&wm8731>; |
| 131 | }; |
Jean-Christophe PLAGNIOL-VILLARD | ec6754a | 2012-07-05 16:56:09 +0800 | [diff] [blame] | 132 | }; |