0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * at91-cosino.dtsi - Device Tree file for Cosino core module
0004 *
0005 * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it>
0006 * HCE Engineering
0007 *
0008 * Derived from at91sam9x5ek.dtsi by:
0009 * Copyright (C) 2012 Atmel,
0010 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
0011 */
0012
0013 #include "at91sam9g35.dtsi"
0014
0015 / {
0016 model = "HCE Cosino core module";
0017 compatible = "hce,cosino", "atmel,at91sam9x5", "atmel,at91sam9";
0018
0019 chosen {
0020 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait";
0021 };
0022
0023 memory@20000000 {
0024 reg = <0x20000000 0x8000000>;
0025 };
0026
0027 clocks {
0028 slow_xtal {
0029 clock-frequency = <32768>;
0030 };
0031
0032 main_xtal {
0033 clock-frequency = <12000000>;
0034 };
0035 };
0036 };
0037
0038 &adc0 {
0039 atmel,adc-ts-wires = <4>;
0040 atmel,adc-ts-pressure-threshold = <10000>;
0041 status = "okay";
0042 };
0043
0044 &dbgu {
0045 status = "okay";
0046 };
0047
0048 &ebi {
0049 pinctrl-0 = <&pinctrl_ebi_addr_nand
0050 &pinctrl_ebi_data_0_7>;
0051 pinctrl-names = "default";
0052 status = "okay";
0053
0054 nand-controller {
0055 pinctrl-0 = <&pinctrl_nand_oe_we
0056 &pinctrl_nand_cs
0057 &pinctrl_nand_rb>;
0058 pinctrl-names = "default";
0059 status = "okay";
0060
0061 nand@3 {
0062 reg = <0x3 0x0 0x800000>;
0063 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
0064 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
0065 nand-bus-width = <8>;
0066 nand-ecc-mode = "hw";
0067 nand-ecc-strength = <4>;
0068 nand-ecc-step-size = <512>;
0069 nand-on-flash-bbt;
0070 label = "atmel_nand";
0071
0072 partitions {
0073 compatible = "fixed-partitions";
0074 #address-cells = <1>;
0075 #size-cells = <1>;
0076
0077 at91bootstrap@0 {
0078 label = "at91bootstrap";
0079 reg = <0x0 0x40000>;
0080 };
0081
0082 uboot@40000 {
0083 label = "u-boot";
0084 reg = <0x40000 0x80000>;
0085 };
0086
0087 ubootenv@c0000 {
0088 label = "U-Boot Env";
0089 reg = <0xc0000 0x140000>;
0090 };
0091
0092 kernel@200000 {
0093 label = "kernel";
0094 reg = <0x200000 0x600000>;
0095 };
0096
0097 rootfs@800000 {
0098 label = "rootfs";
0099 reg = <0x800000 0x0f800000>;
0100 };
0101 };
0102 };
0103 };
0104 };
0105
0106 &i2c0 {
0107 status = "okay";
0108 };
0109
0110 &mmc0 {
0111 pinctrl-0 = <
0112 &pinctrl_board_mmc0
0113 &pinctrl_mmc0_slot0_clk_cmd_dat0
0114 &pinctrl_mmc0_slot0_dat1_3>;
0115 pinctrl-names = "default";
0116 status = "okay";
0117
0118 slot@0 {
0119 reg = <0>;
0120 bus-width = <4>;
0121 cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
0122 };
0123 };
0124
0125 &pinctrl {
0126 mmc0 {
0127 pinctrl_board_mmc0: mmc0-board {
0128 atmel,pins =
0129 <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */
0130 };
0131 };
0132 };
0133
0134 &tcb0 {
0135 timer@0 {
0136 compatible = "atmel,tcb-timer";
0137 reg = <0>;
0138 };
0139
0140 timer@1 {
0141 compatible = "atmel,tcb-timer";
0142 reg = <1>;
0143 };
0144 };
0145
0146 &usart0 {
0147 status = "okay";
0148 };
0149
0150 &watchdog {
0151 status = "okay";
0152 };