xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/at91-sam9_l9260.dts (revision 5b56413d04e608379c9a306373554a8e4d321bc0)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
4 *
5 *  Copyright (C) 2016 Raashid Muhammed <raashidmuhammed@zilogic.com>
6 */
7/dts-v1/;
8#include "at91sam9260.dtsi"
9
10/ {
11	model = "Olimex sam9-l9260";
12	compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
13
14	chosen {
15		stdout-path = "serial0:115200n8";
16	};
17
18	memory@20000000 {
19		reg = <0x20000000 0x4000000>;
20	};
21
22	clocks {
23		slow_xtal {
24			clock-frequency = <32768>;
25		};
26
27		main_xtal {
28			clock-frequency = <18432000>;
29		};
30	};
31
32	ahb {
33		apb {
34			tcb0: timer@fffa0000 {
35				timer@0 {
36					compatible = "atmel,tcb-timer";
37					reg = <0>, <1>;
38				};
39
40				timer@2 {
41					compatible = "atmel,tcb-timer";
42					reg = <2>;
43				};
44			};
45
46			mmc0: mmc@fffa8000 {
47				pinctrl-0 = <
48					&pinctrl_board_mmc0
49					&pinctrl_mmc0_clk
50					&pinctrl_mmc0_slot1_cmd_dat0
51					&pinctrl_mmc0_slot1_dat1_3>;
52				pinctrl-names = "default";
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;
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};
134