xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/at91-sam9_l9260.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2016 Raashid Muhammed <raashidmuhammed@zilogic.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot/dts-v1/;
8*f126890aSEmmanuel Vadot#include "at91sam9260.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Olimex sam9-l9260";
12*f126890aSEmmanuel Vadot	compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	memory@20000000 {
19*f126890aSEmmanuel Vadot		reg = <0x20000000 0x4000000>;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	clocks {
23*f126890aSEmmanuel Vadot		slow_xtal {
24*f126890aSEmmanuel Vadot			clock-frequency = <32768>;
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot		main_xtal {
28*f126890aSEmmanuel Vadot			clock-frequency = <18432000>;
29*f126890aSEmmanuel Vadot		};
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	ahb {
33*f126890aSEmmanuel Vadot		apb {
34*f126890aSEmmanuel Vadot			tcb0: timer@fffa0000 {
35*f126890aSEmmanuel Vadot				timer@0 {
36*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
37*f126890aSEmmanuel Vadot					reg = <0>, <1>;
38*f126890aSEmmanuel Vadot				};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot				timer@2 {
41*f126890aSEmmanuel Vadot					compatible = "atmel,tcb-timer";
42*f126890aSEmmanuel Vadot					reg = <2>;
43*f126890aSEmmanuel Vadot				};
44*f126890aSEmmanuel Vadot			};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot			mmc0: mmc@fffa8000 {
47*f126890aSEmmanuel Vadot				pinctrl-0 = <
48*f126890aSEmmanuel Vadot					&pinctrl_board_mmc0
49*f126890aSEmmanuel Vadot					&pinctrl_mmc0_clk
50*f126890aSEmmanuel Vadot					&pinctrl_mmc0_slot1_cmd_dat0
51*f126890aSEmmanuel Vadot					&pinctrl_mmc0_slot1_dat1_3>;
52*f126890aSEmmanuel Vadot				pinctrl-names = "default";
53*f126890aSEmmanuel Vadot				status = "okay";
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot				slot@1 {
56*f126890aSEmmanuel Vadot					reg = <1>;
57*f126890aSEmmanuel Vadot					bus-width = <4>;
58*f126890aSEmmanuel Vadot					cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
59*f126890aSEmmanuel Vadot					wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
60*f126890aSEmmanuel Vadot				};
61*f126890aSEmmanuel Vadot			};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot			macb0: ethernet@fffc4000 {
64*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>;
65*f126890aSEmmanuel Vadot				phy-mode = "mii";
66*f126890aSEmmanuel Vadot				#address-cells = <1>;
67*f126890aSEmmanuel Vadot				#size-cells = <0>;
68*f126890aSEmmanuel Vadot				status = "okay";
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot				ethernet-phy@1 {
71*f126890aSEmmanuel Vadot					reg = <0x1>;
72*f126890aSEmmanuel Vadot				};
73*f126890aSEmmanuel Vadot			};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot			spi0: spi@fffc8000 {
76*f126890aSEmmanuel Vadot				cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
77*f126890aSEmmanuel Vadot				status = "okay";
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot				flash@0 {
80*f126890aSEmmanuel Vadot					compatible = "atmel,at45", "atmel,dataflash";
81*f126890aSEmmanuel Vadot					spi-max-frequency = <15000000>;
82*f126890aSEmmanuel Vadot					reg = <0>;
83*f126890aSEmmanuel Vadot				};
84*f126890aSEmmanuel Vadot			};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot			dbgu: serial@fffff200 {
87*f126890aSEmmanuel Vadot				status = "okay";
88*f126890aSEmmanuel Vadot			};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot			pinctrl@fffff400 {
91*f126890aSEmmanuel Vadot				mmc0 {
92*f126890aSEmmanuel Vadot					pinctrl_board_mmc0: mmc0-board {
93*f126890aSEmmanuel Vadot						atmel,pins =
94*f126890aSEmmanuel Vadot							<AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH	/* CD pin */
95*f126890aSEmmanuel Vadot							 AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* WP pin */
96*f126890aSEmmanuel Vadot					};
97*f126890aSEmmanuel Vadot				};
98*f126890aSEmmanuel Vadot			};
99*f126890aSEmmanuel Vadot		};
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot		nand0: nand@40000000 {
102*f126890aSEmmanuel Vadot			nand-bus-width = <8>;
103*f126890aSEmmanuel Vadot			nand-ecc-mode = "soft";
104*f126890aSEmmanuel Vadot			nand-on-flash-bbt;
105*f126890aSEmmanuel Vadot			status = "okay";
106*f126890aSEmmanuel Vadot		};
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot		usb0: ohci@500000 {
109*f126890aSEmmanuel Vadot			status = "okay";
110*f126890aSEmmanuel Vadot		};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot	};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot	i2c-gpio-0 {
115*f126890aSEmmanuel Vadot		status = "okay";
116*f126890aSEmmanuel Vadot	};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot	leds {
119*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot		pwr_led {
122*f126890aSEmmanuel Vadot			label = "sam9-l9260:yellow:pwr";
123*f126890aSEmmanuel Vadot			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
124*f126890aSEmmanuel Vadot			linux,default-trigger = "cpu0";
125*f126890aSEmmanuel Vadot		};
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot		status_led {
128*f126890aSEmmanuel Vadot			label = "sam9-l9260:green:status";
129*f126890aSEmmanuel Vadot			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
130*f126890aSEmmanuel Vadot			linux,default-trigger = "timer";
131*f126890aSEmmanuel Vadot		};
132*f126890aSEmmanuel Vadot	};
133*f126890aSEmmanuel Vadot};
134