1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
5 * Copyright (C) 2011 Atmel,
6 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
9 #include "at91sam9g45.dtsi"
10 #include <dt-bindings/pwm/pwm.h>
13 model = "Atmel AT91SAM9M10G45-EK";
14 compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
17 bootargs = "mem=64M root=/dev/mtdblock1 rw rootfstype=jffs2";
18 stdout-path = "serial0:115200n8";
22 reg = <0x70000000 0x4000000>;
27 clock-frequency = <32768>;
31 clock-frequency = <12000000>;
37 dbgu: serial@ffffee00 {
41 tcb0: timer@fff7c000 {
43 compatible = "atmel,tcb-timer";
48 compatible = "atmel,tcb-timer";
53 usart1: serial@fff90000 {
61 macb0: ethernet@fffbc000 {
69 compatible = "ovti,ov2640";
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_pck1_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
73 resetb-gpios = <&pioD 12 GPIO_ACTIVE_LOW>;
74 pwdn-gpios = <&pioD 13 GPIO_ACTIVE_HIGH>;
75 clocks = <&pmc PMC_TYPE_SYSTEM 9>;
76 clock-names = "xvclk";
77 assigned-clocks = <&pmc PMC_TYPE_SYSTEM 9>;
78 assigned-clock-rates = <25000000>;
82 remote-endpoint = <&isi_0>;
100 &pinctrl_mmc0_slot0_clk_cmd_dat0
101 &pinctrl_mmc0_slot0_dat1_3>;
102 pinctrl-names = "default";
107 cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
114 &pinctrl_mmc1_slot0_clk_cmd_dat0
115 &pinctrl_mmc1_slot0_dat1_3>;
116 pinctrl-names = "default";
121 cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
122 wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
128 pinctrl_pck1_as_isi_mck: pck1_as_isi_mck-0 {
130 <AT91_PIOB 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;
133 pinctrl_sensor_reset: sensor_reset-0 {
135 <AT91_PIOD 12 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
138 pinctrl_sensor_power: sensor_power-0 {
140 <AT91_PIOD 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
144 pinctrl_board_mmc0: mmc0-board {
146 <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */
151 pinctrl_board_mmc1: mmc1-board {
153 <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */
154 AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */
159 pinctrl_pwm_leds: pwm-led {
161 <AT91_PIOD 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PD0 periph B */
162 AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PD31 periph B */
169 cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
171 compatible = "atmel,at45", "atmel,dataflash";
172 spi-max-frequency = <13000000>;
177 usb2: gadget@fff78000 {
178 atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
182 ac97: sound@fffac000 {
187 pinctrl-names = "default";
197 atmel,adc-ts-wires = <4>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_isi_data_0_7>;
207 remote-endpoint = <&ov2640_0>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_pwm_leds>;
223 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
227 gpbr: syscon@fffffd60 {
237 display = <&display0>;
241 bits-per-pixel = <32>;
242 atmel,lcdcon-backlight;
243 atmel,dmacon = <0x1>;
244 atmel,lcdcon2 = <0x80008002>;
245 atmel,guard-time = <9>;
246 atmel,lcd-wiring-mode = "RGB";
249 native-mode = <&timing0>;
251 clock-frequency = <9000000>;
268 nand_controller: nand-controller {
270 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
271 pinctrl-names = "default";
274 reg = <0x3 0x0 0x800000>;
275 rb-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
276 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
277 nand-bus-width = <8>;
278 nand-ecc-mode = "soft";
280 label = "atmel_nand";
283 compatible = "fixed-partitions";
284 #address-cells = <1>;
288 label = "bootstrap/uboot/kernel";
289 reg = <0x0 0x400000>;
294 reg = <0x400000 0x3C00000>;
299 reg = <0x4000000 0xC000000>;
309 atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
310 &pioD 3 GPIO_ACTIVE_LOW>;
319 compatible = "gpio-leds";
323 gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
324 linux,default-trigger = "heartbeat";
329 compatible = "pwm-leds";
333 pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
334 max-brightness = <255>;
335 linux,default-trigger = "nand-disk";
340 pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
341 max-brightness = <255>;
342 linux,default-trigger = "mmc0";
347 compatible = "gpio-keys";
350 label = "left_click";
351 gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
357 label = "right_click";
358 gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
364 label = "Joystick Left";
365 gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
370 label = "Joystick Right";
371 gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
376 label = "Joystick Up";
377 gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
382 label = "Joystick Down";
383 gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
388 label = "Joystick Press";
389 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;