xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/at91sam9x5ek.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2012 Atmel,
6*f126890aSEmmanuel Vadot *                2012 Nicolas Ferre <nicolas.ferre@atmel.com>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot#include "at91sam9x5cm.dtsi"
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Atmel AT91SAM9X5-EK";
12*f126890aSEmmanuel Vadot	compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		bootargs = "root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
16*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
17*f126890aSEmmanuel Vadot	};
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot	sound {
20*f126890aSEmmanuel Vadot		compatible = "atmel,sam9x5-wm8731-audio";
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot		atmel,model = "wm8731 @ AT91SAM9X5EK";
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot		atmel,audio-routing =
25*f126890aSEmmanuel Vadot			"Headphone Jack", "RHPOUT",
26*f126890aSEmmanuel Vadot			"Headphone Jack", "LHPOUT",
27*f126890aSEmmanuel Vadot			"LLINEIN", "Line In Jack",
28*f126890aSEmmanuel Vadot			"RLINEIN", "Line In Jack";
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot		atmel,ssc-controller = <&ssc0>;
31*f126890aSEmmanuel Vadot		atmel,audio-codec = <&wm8731>;
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot&adc0 {
36*f126890aSEmmanuel Vadot	atmel,adc-ts-wires = <4>;
37*f126890aSEmmanuel Vadot	atmel,adc-ts-pressure-threshold = <10000>;
38*f126890aSEmmanuel Vadot	status = "okay";
39*f126890aSEmmanuel Vadot};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot&dbgu {
42*f126890aSEmmanuel Vadot	status = "okay";
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&i2c0 {
46*f126890aSEmmanuel Vadot	status = "okay";
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot	wm8731: wm8731@1a {
49*f126890aSEmmanuel Vadot		compatible = "wm8731";
50*f126890aSEmmanuel Vadot		reg = <0x1a>;
51*f126890aSEmmanuel Vadot	};
52*f126890aSEmmanuel Vadot};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot&mmc0 {
55*f126890aSEmmanuel Vadot	pinctrl-0 = <
56*f126890aSEmmanuel Vadot		&pinctrl_board_mmc0
57*f126890aSEmmanuel Vadot		&pinctrl_mmc0_slot0_clk_cmd_dat0
58*f126890aSEmmanuel Vadot		&pinctrl_mmc0_slot0_dat1_3>;
59*f126890aSEmmanuel Vadot	pinctrl-names = "default";
60*f126890aSEmmanuel Vadot	status = "okay";
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot	slot@0 {
63*f126890aSEmmanuel Vadot		reg = <0>;
64*f126890aSEmmanuel Vadot		bus-width = <4>;
65*f126890aSEmmanuel Vadot		cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
66*f126890aSEmmanuel Vadot	};
67*f126890aSEmmanuel Vadot};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot&mmc1 {
70*f126890aSEmmanuel Vadot	pinctrl-0 = <
71*f126890aSEmmanuel Vadot		&pinctrl_board_mmc1
72*f126890aSEmmanuel Vadot		&pinctrl_mmc1_slot0_clk_cmd_dat0
73*f126890aSEmmanuel Vadot		&pinctrl_mmc1_slot0_dat1_3>;
74*f126890aSEmmanuel Vadot	pinctrl-names = "default";
75*f126890aSEmmanuel Vadot	status = "okay";
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot	slot@0 {
78*f126890aSEmmanuel Vadot		reg = <0>;
79*f126890aSEmmanuel Vadot		bus-width = <4>;
80*f126890aSEmmanuel Vadot		cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
81*f126890aSEmmanuel Vadot	};
82*f126890aSEmmanuel Vadot};
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot&pinctrl {
85*f126890aSEmmanuel Vadot	camera_sensor {
86*f126890aSEmmanuel Vadot		pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 {
87*f126890aSEmmanuel Vadot			atmel,pins =
88*f126890aSEmmanuel Vadot				<AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* ISI_MCK */
89*f126890aSEmmanuel Vadot		};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot		pinctrl_sensor_power: sensor_power-0 {
92*f126890aSEmmanuel Vadot			atmel,pins =
93*f126890aSEmmanuel Vadot				<AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
94*f126890aSEmmanuel Vadot		};
95*f126890aSEmmanuel Vadot
96*f126890aSEmmanuel Vadot		pinctrl_sensor_reset: sensor_reset-0 {
97*f126890aSEmmanuel Vadot			atmel,pins =
98*f126890aSEmmanuel Vadot				<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
99*f126890aSEmmanuel Vadot		};
100*f126890aSEmmanuel Vadot	};
101*f126890aSEmmanuel Vadot
102*f126890aSEmmanuel Vadot	mmc0 {
103*f126890aSEmmanuel Vadot		pinctrl_board_mmc0: mmc0-board {
104*f126890aSEmmanuel Vadot			atmel,pins =
105*f126890aSEmmanuel Vadot				<AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD15 gpio CD pin pull up and deglitch */
106*f126890aSEmmanuel Vadot		};
107*f126890aSEmmanuel Vadot	};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot	mmc1 {
110*f126890aSEmmanuel Vadot		pinctrl_board_mmc1: mmc1-board {
111*f126890aSEmmanuel Vadot			atmel,pins =
112*f126890aSEmmanuel Vadot				<AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD14 gpio CD pin pull up and deglitch */
113*f126890aSEmmanuel Vadot		};
114*f126890aSEmmanuel Vadot	};
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot	usb2 {
117*f126890aSEmmanuel Vadot		pinctrl_board_usb2: usb2-board {
118*f126890aSEmmanuel Vadot			atmel,pins =
119*f126890aSEmmanuel Vadot				<AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;		/* PB16 gpio vbus sense, deglitch */
120*f126890aSEmmanuel Vadot		};
121*f126890aSEmmanuel Vadot	};
122*f126890aSEmmanuel Vadot};
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot&spi0 {
125*f126890aSEmmanuel Vadot	cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
126*f126890aSEmmanuel Vadot	status = "disabled"; /* conflicts with mmc1 */
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot	flash@0 {
129*f126890aSEmmanuel Vadot		compatible = "atmel,at25df321a";
130*f126890aSEmmanuel Vadot		spi-max-frequency = <50000000>;
131*f126890aSEmmanuel Vadot		reg = <0>;
132*f126890aSEmmanuel Vadot	};
133*f126890aSEmmanuel Vadot};
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot&ssc0 {
136*f126890aSEmmanuel Vadot	status = "okay";
137*f126890aSEmmanuel Vadot};
138*f126890aSEmmanuel Vadot
139*f126890aSEmmanuel Vadot&usart0 {
140*f126890aSEmmanuel Vadot	atmel,use-dma-rx;
141*f126890aSEmmanuel Vadot	atmel,use-dma-tx;
142*f126890aSEmmanuel Vadot	status = "okay";
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot&usb0 {
146*f126890aSEmmanuel Vadot	num-ports = <3>;
147*f126890aSEmmanuel Vadot	atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
148*f126890aSEmmanuel Vadot			   &pioD 19 GPIO_ACTIVE_LOW
149*f126890aSEmmanuel Vadot			   &pioD 20 GPIO_ACTIVE_LOW
150*f126890aSEmmanuel Vadot			  >;
151*f126890aSEmmanuel Vadot	status = "okay";
152*f126890aSEmmanuel Vadot};
153*f126890aSEmmanuel Vadot
154*f126890aSEmmanuel Vadot&usb1 {
155*f126890aSEmmanuel Vadot	status = "okay";
156*f126890aSEmmanuel Vadot};
157*f126890aSEmmanuel Vadot
158*f126890aSEmmanuel Vadot&usb2 {
159*f126890aSEmmanuel Vadot	pinctrl-names = "default";
160*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_board_usb2>;
161*f126890aSEmmanuel Vadot	atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
162*f126890aSEmmanuel Vadot	status = "okay";
163*f126890aSEmmanuel Vadot};
164*f126890aSEmmanuel Vadot
165*f126890aSEmmanuel Vadot&watchdog {
166*f126890aSEmmanuel Vadot	status = "okay";
167*f126890aSEmmanuel Vadot};
168