0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * at91-som60.dtsi - Device Tree file for the SOM60 module
0004 *
0005 * Copyright (C) 2018 Laird,
0006 * 2018 Ben Whitten <ben.whitten@lairdtech.com>
0007 *
0008 */
0009 #include "sama5d36.dtsi"
0010
0011 / {
0012 model = "Laird SOM60";
0013 compatible = "laird,som60", "atmel,sama5d36", "atmel,sama5d3", "atmel,sama5";
0014
0015 chosen {
0016 stdout-path = &dbgu;
0017 };
0018
0019 memory@20000000 {
0020 reg = <0x20000000 0x8000000>;
0021 };
0022
0023 clocks {
0024 slow_xtal {
0025 clock-frequency = <32768>;
0026 };
0027
0028 main_xtal {
0029 clock-frequency = <12000000>;
0030 };
0031 };
0032 };
0033
0034 &pinctrl {
0035 board {
0036 pinctrl_mmc0_cd: mmc0_cd {
0037 atmel,pins =
0038 <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
0039 };
0040
0041 pinctrl_mmc0_en: mmc0_en {
0042 atmel,pins =
0043 <AT91_PIOE 30 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
0044 };
0045
0046 pinctrl_nand0_wp: nand0_wp {
0047 atmel,pins =
0048 <AT91_PIOE 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
0049 };
0050
0051 pinctrl_usb_vbus: usb_vbus {
0052 atmel,pins =
0053 <AT91_PIOE 20 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
0054 /* Conflicts with USART2_SCK */
0055 };
0056
0057 pinctrl_usart2_sck: usart2_sck {
0058 atmel,pins =
0059 <AT91_PIOE 20 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0060 /* Conflicts with USB_VBUS */
0061 };
0062
0063 pinctrl_usb_oc: usb_oc {
0064 atmel,pins =
0065 <AT91_PIOE 15 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
0066 /* Conflicts with USART3_SCK */
0067 };
0068
0069 pinctrl_usart3_sck: usart3_sck {
0070 atmel,pins =
0071 <AT91_PIOE 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0072 /* Conflicts with USB_OC */
0073 };
0074
0075 pinctrl_usba_vbus: usba_vbus {
0076 atmel,pins =
0077 <AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
0078 };
0079
0080 pinctrl_geth_int: geth_int {
0081 atmel,pins =
0082 <AT91_PIOB 25 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
0083 /* Conflicts with USART1_SCK */
0084 };
0085
0086 pinctrl_usart1_sck: usart1_sck {
0087 atmel,pins =
0088 <AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE>;
0089 /* Conflicts with GETH_INT */
0090 };
0091
0092 pinctrl_eth_int: eth_int {
0093 atmel,pins =
0094 <AT91_PIOC 10 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
0095 };
0096
0097 pinctrl_pck2_as_audio_mck: pck2_as_audio_mck {
0098 atmel,pins =
0099 <AT91_PIOC 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;
0100 };
0101 };
0102 };
0103
0104 &mmc0 {
0105 slot@0 {
0106 reg = <0>;
0107 bus-width = <8>;
0108 };
0109 };
0110
0111 &mmc1 {
0112 status = "okay";
0113 slot@0 {
0114 reg = <0>;
0115 bus-width = <4>;
0116 };
0117 };
0118
0119 &spi0 {
0120 cs-gpios = <&pioD 13 0>, <0>, <0>, <0>;
0121 };
0122
0123 &usart0 {
0124 atmel,use-dma-rx;
0125 atmel,use-dma-tx;
0126 status = "okay";
0127 pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts_cts>;
0128 };
0129
0130 &usart1 {
0131 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
0132 };
0133
0134 &usart2 {
0135 pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rts_cts>;
0136 };
0137
0138 &usart3 {
0139 pinctrl-0 = <&pinctrl_usart3 &pinctrl_usart3_rts_cts>;
0140 };
0141
0142 &adc0 {
0143 pinctrl-0 = <
0144 &pinctrl_adc0_adtrg
0145 &pinctrl_adc0_ad0
0146 &pinctrl_adc0_ad1
0147 &pinctrl_adc0_ad2
0148 &pinctrl_adc0_ad3
0149 &pinctrl_adc0_ad4
0150 &pinctrl_adc0_ad5
0151 >;
0152 };
0153
0154 &macb0 {
0155 phy-mode = "rgmii";
0156 };
0157
0158 &macb1 {
0159 phy-mode = "rmii";
0160 };
0161
0162 &ebi {
0163 pinctrl-0 = <&pinctrl_ebi_nand_addr>;
0164 pinctrl-names = "default";
0165 status = "okay";
0166 };
0167
0168 &nand_controller {
0169 status = "okay";
0170
0171 nand: nand@3 {
0172 reg = <0x3 0x0 0x2>;
0173 atmel,rb = <0>;
0174 nand-bus-width = <8>;
0175 nand-ecc-mode = "hw";
0176 nand-ecc-strength = <8>;
0177 nand-ecc-step-size = <512>;
0178 nand-on-flash-bbt;
0179 label = "atmel_nand";
0180
0181 partitions {
0182 compatible = "fixed-partitions";
0183 #address-cells = <1>;
0184 #size-cells = <1>;
0185
0186 ubootspl@0 {
0187 label = "u-boot-spl";
0188 reg = <0x0 0x20000>;
0189 };
0190
0191 uboot@20000 {
0192 label = "u-boot";
0193 reg = <0x20000 0x80000>;
0194 };
0195
0196 ubootenv@a0000 {
0197 label = "u-boot-env";
0198 reg = <0xa0000 0x20000>;
0199 };
0200
0201 ubootenv@c0000 {
0202 label = "u-boot-env";
0203 reg = <0xc0000 0x20000>;
0204 };
0205
0206 ubi@e0000 {
0207 label = "ubi";
0208 reg = <0xe0000 0xfe00000>;
0209 };
0210 };
0211 };
0212 };
0213
0214 &usb0 {
0215 pinctrl-names = "default";
0216 pinctrl-0 = <&pinctrl_usba_vbus>;
0217 atmel,vbus-gpio = <&pioC 14 GPIO_ACTIVE_HIGH>;
0218 };
0219
0220 &usb1 {
0221 pinctrl-names = "default";
0222 pinctrl-0 = <&pinctrl_usb_vbus &pinctrl_usb_oc>;
0223 num-ports = <3>;
0224 atmel,vbus-gpio = <0
0225 &pioE 20 GPIO_ACTIVE_HIGH
0226 0>;
0227 atmel,oc-gpio = <0
0228 &pioE 15 GPIO_ACTIVE_LOW
0229 0>;
0230 };