Commit | Line | Data |
---|---|---|
726b4d06 RM |
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 { | |
ba5c30ac | 52 | pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>; |
726b4d06 RM |
53 | phy-mode = "mii"; |
54 | #address-cells = <1>; | |
55 | #size-cells = <0>; | |
56 | status = "okay"; | |
57 | ||
58 | ethernet-phy@1 { | |
59 | reg = <0x1>; | |
60 | }; | |
61 | }; | |
62 | ||
63 | spi0: spi@fffc8000 { | |
64 | cs-gpios = <&pioC 11 0>, <0>, <0>, <0>; | |
65 | status = "okay"; | |
66 | ||
67 | flash@0 { | |
68 | compatible = "atmel,at45", "atmel,dataflash"; | |
69 | spi-max-frequency = <15000000>; | |
70 | reg = <0>; | |
71 | }; | |
72 | }; | |
73 | ||
74 | dbgu: serial@fffff200 { | |
75 | status = "okay"; | |
76 | }; | |
77 | ||
78 | pinctrl@fffff400 { | |
79 | mmc0 { | |
80 | pinctrl_board_mmc0: mmc0-board { | |
81 | atmel,pins = | |
82 | <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* CD pin */ | |
83 | AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* WP pin */ | |
84 | }; | |
85 | }; | |
86 | }; | |
87 | }; | |
88 | ||
89 | nand0: nand@40000000 { | |
90 | nand-bus-width = <8>; | |
91 | nand-ecc-mode = "soft"; | |
92 | nand-on-flash-bbt = <1>; | |
93 | status = "okay"; | |
94 | }; | |
95 | ||
96 | usb0: ohci@500000 { | |
97 | status = "okay"; | |
98 | }; | |
99 | ||
100 | }; | |
101 | ||
102 | i2c@0 { | |
103 | status = "okay"; | |
104 | }; | |
105 | ||
106 | leds { | |
107 | compatible = "gpio-leds"; | |
108 | ||
ee7657b0 RM |
109 | pwr_led { |
110 | label = "sam9-l9260:yellow:pwr"; | |
111 | gpios = <&pioA 9 GPIO_ACTIVE_HIGH>; | |
112 | linux,default-trigger = "cpu0"; | |
726b4d06 RM |
113 | }; |
114 | ||
ee7657b0 RM |
115 | status_led { |
116 | label = "sam9-l9260:green:status"; | |
117 | gpios = <&pioA 6 GPIO_ACTIVE_LOW>; | |
118 | linux,default-trigger = "timer"; | |
119 | }; | |
726b4d06 RM |
120 | }; |
121 | }; |