0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Device Tree file for Exegin Q5xR5 board
0004 *
0005 * Copyright (C) 2014 Owen Kirby <osk@exegin.com>
0006 */
0007
0008 /dts-v1/;
0009 #include "at91sam9g20.dtsi"
0010
0011 / {
0012 model = "Exegin Q5x (rev5)";
0013 compatible = "exegin,q5xr5", "atmel,at91sam9g20", "atmel,at91sam9";
0014
0015 chosen {
0016 bootargs = "console=ttyS0,115200 rootfstype=squashfs,jffs2";
0017 };
0018
0019 memory {
0020 reg = <0x20000000 0x0>;
0021 };
0022
0023 clocks {
0024 #address-cells = <1>;
0025 #size-cells = <1>;
0026 ranges;
0027
0028 main_clock: clock@0 {
0029 compatible = "atmel,osc", "fixed-clock";
0030 clock-frequency = <18432000>;
0031 };
0032
0033 slow_xtal {
0034 clock-frequency = <32768>;
0035 };
0036
0037 main_xtal {
0038 clock-frequency = <18432000>;
0039 };
0040 };
0041 };
0042
0043 &dbgu {
0044 status = "okay";
0045 };
0046
0047 &ebi {
0048 status = "okay";
0049
0050 flash: flash@0 {
0051 compatible = "cfi-flash";
0052 #address-cells = <1>;
0053 #size-cells = <1>;
0054 reg = <0x0 0x1000000 0x800000>;
0055 bank-width = <2>;
0056
0057 partitions {
0058 compatible = "fixed-partitions";
0059 #address-cells = <1>;
0060 #size-cells = <1>;
0061
0062 kernel@0 {
0063 label = "kernel";
0064 reg = <0x0 0x200000>;
0065 };
0066
0067 rootfs@200000 {
0068 label = "rootfs";
0069 reg = <0x200000 0x600000>;
0070 };
0071 };
0072 };
0073 };
0074
0075 &macb0 {
0076 phy-mode = "mii";
0077 status = "okay";
0078 };
0079
0080 &pinctrl {
0081 board {
0082 pinctrl_pck0_as_mck: pck0_as_mck {
0083 atmel,pins = <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0084 };
0085 };
0086
0087 spi0 {
0088 pinctrl_spi0: spi0-0 {
0089 atmel,pins =
0090 <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE
0091 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE
0092 AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;
0093 };
0094
0095 pinctrl_spi0_npcs0: spi0_npcs0 {
0096 atmel,pins = <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_NONE>;
0097 };
0098
0099 pinctrl_spi0_npcs1: spi0_npcs1 {
0100 atmel,pins = <AT91_PIOC 11 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0101 };
0102 };
0103
0104 spi1 {
0105 pinctrl_spi1: spi1-0 {
0106 atmel,pins =
0107 <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE
0108 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE
0109 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;
0110 };
0111
0112 pinctrl_spi1_npcs0: spi1_npcs0 {
0113 atmel,pins = <AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE>;
0114 };
0115
0116 pinctrl_spi1_npcs1: spi1_npcs1 {
0117 atmel,pins = <AT91_PIOC 5 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0118 };
0119 };
0120 };
0121
0122 &spi0 {
0123 pinctrl-names = "default";
0124 pinctrl-0 = <&pinctrl_spi0 &pinctrl_spi0_npcs0 &pinctrl_spi0_npcs1>;
0125 cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>, <&pioC 11 GPIO_ACTIVE_LOW>, <0>, <0>;
0126 status = "okay";
0127
0128 flash@0 {
0129 compatible = "jedec,spi-nor";
0130 spi-max-frequency = <20000000>;
0131 reg = <0>;
0132 #address-cells = <1>;
0133 #size-cells = <1>;
0134
0135 at91boot@0 {
0136 label = "at91boot";
0137 reg = <0x0 0x4000>;
0138 };
0139
0140 uenv@4000 {
0141 label = "uboot-env";
0142 reg = <0x4000 0x4000>;
0143 };
0144
0145 uboot@8000 {
0146 label = "uboot";
0147 reg = <0x8000 0x3E000>;
0148 };
0149 };
0150 };
0151
0152 &spi1 {
0153 pinctrl-names = "default";
0154 pinctrl-0 = <&pinctrl_spi1 &pinctrl_spi1_npcs0 &pinctrl_spi1_npcs1>;
0155 cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>, <&pioC 5 GPIO_ACTIVE_LOW>, <0>, <0>;
0156 status = "okay";
0157 };
0158
0159 &usart0 {
0160 pinctrl-0 =
0161 <&pinctrl_usart0
0162 &pinctrl_usart0_rts
0163 &pinctrl_usart0_cts
0164 &pinctrl_usart0_dtr_dsr
0165 &pinctrl_usart0_dcd
0166 &pinctrl_usart0_ri>;
0167 status = "okay";
0168 };
0169
0170 &usb0 {
0171 num-ports = <2>;
0172 status = "okay";
0173 };
0174
0175 &usb1 {
0176 status = "okay";
0177 };
0178
0179 &watchdog {
0180 status = "okay";
0181 };