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