aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaashid Muhammed <raashidmuhammed@zilogic.com>2016-06-03 02:15:39 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-06-07 14:05:44 -0400
commit726b4d062e29bacfa686e036f7cd2e3919a20808 (patch)
tree41fe9d12ea01a3feb70ed6ab9229a1b4a6146589
parentcfdc7fa5daccd2063bd4963cddfe9a6b9eaaa61b (diff)
ARM: dts: at91: Add DT support for Olimex SAM9-L9260 board.
sam9-l9260 is a low cost board designed by Olimex. More information is available at: https://www.olimex.com/Products/ARM/Atmel/SAM9-L9260/ Signed-off-by: Raashid Muhammed <raashidmuhammed@zilogic.com> Reviewed-by: Vijay Kumar B. <vijaykumar@bravegnu.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--Documentation/devicetree/bindings/arm/olimex.txt8
-rw-r--r--arch/arm/boot/dts/Makefile1
-rw-r--r--arch/arm/boot/dts/at91-sam9_l9260.dts115
3 files changed, 122 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/arm/olimex.txt b/Documentation/devicetree/bindings/arm/olimex.txt
index 007fb5c685a1..d726aeca56be 100644
--- a/Documentation/devicetree/bindings/arm/olimex.txt
+++ b/Documentation/devicetree/bindings/arm/olimex.txt
@@ -1,5 +1,9 @@
1Olimex i.MX Platforms Device Tree Bindings 1Olimex Device Tree Bindings
2------------------------------------------ 2---------------------------
3
4SAM9-L9260 Board
5Required root node properties:
6 - compatible = "olimex,sam9-l9260", "atmel,at91sam9260";
3 7
4i.MX23 Olinuxino Low Cost Board 8i.MX23 Olinuxino Low Cost Board
5Required root node properties: 9Required root node properties:
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 06b6c2d695bf..0ee9e6134ee9 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -19,6 +19,7 @@ dtb-$(CONFIG_SOC_SAM_V4_V5) += \
19 usb_a9260.dtb \ 19 usb_a9260.dtb \
20 at91sam9261ek.dtb \ 20 at91sam9261ek.dtb \
21 at91sam9263ek.dtb \ 21 at91sam9263ek.dtb \
22 at91-sam9_l9260.dtb \
22 tny_a9263.dtb \ 23 tny_a9263.dtb \
23 usb_a9263.dtb \ 24 usb_a9263.dtb \
24 at91-foxg20.dtb \ 25 at91-foxg20.dtb \
diff --git a/arch/arm/boot/dts/at91-sam9_l9260.dts b/arch/arm/boot/dts/at91-sam9_l9260.dts
new file mode 100644
index 000000000000..349a46189bf1
--- /dev/null
+++ b/arch/arm/boot/dts/at91-sam9_l9260.dts
@@ -0,0 +1,115 @@
1/*
2 * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
3 *
4 * Copyright (C) 2016 Raashid Muhammed <raashidmuhammed@zilogic.com>
5 *
6 * Licensed under GPLv2 or later.
7 */
8/dts-v1/;
9#include "at91sam9260.dtsi"
10
11/ {
12 model = "Olimex sam9-l9260";
13 compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
14
15 chosen {
16 stdout-path = "serial0:115200n8";
17 };
18
19 memory {
20 reg = <0x20000000 0x4000000>;
21 };
22
23 clocks {
24 slow_xtal {
25 clock-frequency = <32768>;
26 };
27
28 main_xtal {
29 clock-frequency = <18432000>;
30 };
31 };
32
33 ahb {
34 apb {
35 mmc0: mmc@fffa8000 {
36 pinctrl-0 = <
37 &pinctrl_board_mmc0
38 &pinctrl_mmc0_clk
39 &pinctrl_mmc0_slot1_cmd_dat0
40 &pinctrl_mmc0_slot1_dat1_3>;
41 status = "okay";
42
43 slot@1 {
44 reg = <1>;
45 bus-width = <4>;
46 cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
47 wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
48 };
49 };
50
51 macb0: ethernet@fffc4000 {
52 phy-mode = "mii";
53 #address-cells = <1>;
54 #size-cells = <0>;
55 status = "okay";
56
57 ethernet-phy@1 {
58 reg = <0x1>;
59 };
60 };
61
62 spi0: spi@fffc8000 {
63 cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
64 status = "okay";
65
66 flash@0 {
67 compatible = "atmel,at45", "atmel,dataflash";
68 spi-max-frequency = <15000000>;
69 reg = <0>;
70 };
71 };
72
73 dbgu: serial@fffff200 {
74 status = "okay";
75 };
76
77 pinctrl@fffff400 {
78 mmc0 {
79 pinctrl_board_mmc0: mmc0-board {
80 atmel,pins =
81 <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* CD pin */
82 AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* WP pin */
83 };
84 };
85 };
86 };
87
88 nand0: nand@40000000 {
89 nand-bus-width = <8>;
90 nand-ecc-mode = "soft";
91 nand-on-flash-bbt = <1>;
92 status = "okay";
93 };
94
95 usb0: ohci@500000 {
96 status = "okay";
97 };
98
99 };
100
101 i2c@0 {
102 status = "okay";
103 };
104
105 leds {
106 compatible = "gpio-leds";
107
108 b0 {
109 label = "b0";
110 gpios = <&pioA 6 GPIO_ACTIVE_HIGH>;
111 linux,default-trigger = "heartbeat";
112 };
113
114 };
115};