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