0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
0004 *
0005 * Copyright (C) 2012 Atmel,
0006 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
0007 */
0008 #include "at91sam9x5cm.dtsi"
0009
0010 / {
0011 model = "Atmel AT91SAM9X5-EK";
0012 compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
0013
0014 chosen {
0015 bootargs = "root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
0016 stdout-path = "serial0:115200n8";
0017 };
0018
0019 sound {
0020 compatible = "atmel,sam9x5-wm8731-audio";
0021
0022 atmel,model = "wm8731 @ AT91SAM9X5EK";
0023
0024 atmel,audio-routing =
0025 "Headphone Jack", "RHPOUT",
0026 "Headphone Jack", "LHPOUT",
0027 "LLINEIN", "Line In Jack",
0028 "RLINEIN", "Line In Jack";
0029
0030 atmel,ssc-controller = <&ssc0>;
0031 atmel,audio-codec = <&wm8731>;
0032 };
0033 };
0034
0035 &adc0 {
0036 atmel,adc-ts-wires = <4>;
0037 atmel,adc-ts-pressure-threshold = <10000>;
0038 status = "okay";
0039 };
0040
0041 &dbgu {
0042 status = "okay";
0043 };
0044
0045 &i2c0 {
0046 status = "okay";
0047
0048 wm8731: wm8731@1a {
0049 compatible = "wm8731";
0050 reg = <0x1a>;
0051 };
0052 };
0053
0054 &mmc0 {
0055 pinctrl-0 = <
0056 &pinctrl_board_mmc0
0057 &pinctrl_mmc0_slot0_clk_cmd_dat0
0058 &pinctrl_mmc0_slot0_dat1_3>;
0059 pinctrl-names = "default";
0060 status = "okay";
0061
0062 slot@0 {
0063 reg = <0>;
0064 bus-width = <4>;
0065 cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
0066 };
0067 };
0068
0069 &mmc1 {
0070 pinctrl-0 = <
0071 &pinctrl_board_mmc1
0072 &pinctrl_mmc1_slot0_clk_cmd_dat0
0073 &pinctrl_mmc1_slot0_dat1_3>;
0074 pinctrl-names = "default";
0075 status = "okay";
0076
0077 slot@0 {
0078 reg = <0>;
0079 bus-width = <4>;
0080 cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
0081 };
0082 };
0083
0084 &pinctrl {
0085 camera_sensor {
0086 pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 {
0087 atmel,pins =
0088 <AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* ISI_MCK */
0089 };
0090
0091 pinctrl_sensor_power: sensor_power-0 {
0092 atmel,pins =
0093 <AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
0094 };
0095
0096 pinctrl_sensor_reset: sensor_reset-0 {
0097 atmel,pins =
0098 <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
0099 };
0100 };
0101
0102 mmc0 {
0103 pinctrl_board_mmc0: mmc0-board {
0104 atmel,pins =
0105 <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */
0106 };
0107 };
0108
0109 mmc1 {
0110 pinctrl_board_mmc1: mmc1-board {
0111 atmel,pins =
0112 <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */
0113 };
0114 };
0115
0116 usb2 {
0117 pinctrl_board_usb2: usb2-board {
0118 atmel,pins =
0119 <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */
0120 };
0121 };
0122 };
0123
0124 &spi0 {
0125 cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
0126 status = "disabled"; /* conflicts with mmc1 */
0127
0128 flash@0 {
0129 compatible = "atmel,at25df321a";
0130 spi-max-frequency = <50000000>;
0131 reg = <0>;
0132 };
0133 };
0134
0135 &ssc0 {
0136 status = "okay";
0137 };
0138
0139 &usart0 {
0140 atmel,use-dma-rx;
0141 atmel,use-dma-tx;
0142 status = "okay";
0143 };
0144
0145 &usb0 {
0146 num-ports = <3>;
0147 atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
0148 &pioD 19 GPIO_ACTIVE_LOW
0149 &pioD 20 GPIO_ACTIVE_LOW
0150 >;
0151 status = "okay";
0152 };
0153
0154 &usb1 {
0155 status = "okay";
0156 };
0157
0158 &usb2 {
0159 pinctrl-names = "default";
0160 pinctrl-0 = <&pinctrl_board_usb2>;
0161 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
0162 status = "okay";
0163 };
0164
0165 &watchdog {
0166 status = "okay";
0167 };