GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / at91-sam9_l9260.dts
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                         tcb0: timer@fffa0000 {
36                                 timer@0 {
37                                         compatible = "atmel,tcb-timer";
38                                         reg = <0>, <1>;
39                                 };
40
41                                 timer@2 {
42                                         compatible = "atmel,tcb-timer";
43                                         reg = <2>;
44                                 };
45                         };
46
47                         mmc0: mmc@fffa8000 {
48                                 pinctrl-0 = <
49                                         &pinctrl_board_mmc0
50                                         &pinctrl_mmc0_clk
51                                         &pinctrl_mmc0_slot1_cmd_dat0
52                                         &pinctrl_mmc0_slot1_dat1_3>;
53                                 status = "okay";
54
55                                 slot@1 {
56                                         reg = <1>;
57                                         bus-width = <4>;
58                                         cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
59                                         wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
60                                 };
61                         };
62
63                         macb0: ethernet@fffc4000 {
64                                 pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>;
65                                 phy-mode = "mii";
66                                 #address-cells = <1>;
67                                 #size-cells = <0>;
68                                 status = "okay";
69
70                                 ethernet-phy@1 {
71                                         reg = <0x1>;
72                                 };
73                         };
74
75                         spi0: spi@fffc8000 {
76                                 cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
77                                 status = "okay";
78
79                                 flash@0 {
80                                         compatible = "atmel,at45", "atmel,dataflash";
81                                         spi-max-frequency = <15000000>;
82                                         reg = <0>;
83                                 };
84                         };
85
86                         dbgu: serial@fffff200 {
87                                 status = "okay";
88                         };
89
90                         pinctrl@fffff400 {
91                                 mmc0 {
92                                         pinctrl_board_mmc0: mmc0-board {
93                                                 atmel,pins =
94                                                         <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH     /* CD pin */
95                                                          AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;    /* WP pin */
96                                         };
97                                 };
98                         };
99                 };
100
101                 nand0: nand@40000000 {
102                         nand-bus-width = <8>;
103                         nand-ecc-mode = "soft";
104                         nand-on-flash-bbt = <1>;
105                         status = "okay";
106                 };
107
108                 usb0: ohci@500000 {
109                         status = "okay";
110                 };
111
112         };
113
114         i2c-gpio-0 {
115                 status = "okay";
116         };
117
118         leds {
119                 compatible = "gpio-leds";
120
121                 pwr_led {
122                         label = "sam9-l9260:yellow:pwr";
123                         gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
124                         linux,default-trigger = "cpu0";
125                 };
126
127                 status_led {
128                         label = "sam9-l9260:green:status";
129                         gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
130                         linux,default-trigger = "timer";
131                 };
132         };
133 };