0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * at91sam9x5cm.dtsi - Device Tree Include file for AT91SAM9x5 CPU Module
0004 *
0005 * Copyright (C) 2012 Atmel,
0006 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
0007 */
0008
0009 / {
0010 memory@20000000 {
0011 reg = <0x20000000 0x8000000>;
0012 };
0013
0014 clocks {
0015 slow_xtal {
0016 clock-frequency = <32768>;
0017 };
0018
0019 main_xtal {
0020 clock-frequency = <12000000>;
0021 };
0022 };
0023
0024 ahb {
0025 apb {
0026 tcb0: timer@f8008000 {
0027 timer@0 {
0028 compatible = "atmel,tcb-timer";
0029 reg = <0>;
0030 };
0031
0032 timer@1 {
0033 compatible = "atmel,tcb-timer";
0034 reg = <1>;
0035 };
0036 };
0037
0038 pinctrl@fffff400 {
0039 1wire_cm {
0040 pinctrl_1wire_cm: 1wire_cm-0 {
0041 atmel,pins = <AT91_PIOB 18 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PB18 multidrive, conflicts with led */
0042 };
0043 };
0044 };
0045
0046 rtc@fffffeb0 {
0047 status = "okay";
0048 };
0049 };
0050
0051 ebi: ebi@10000000 {
0052 pinctrl-0 = <&pinctrl_ebi_addr_nand
0053 &pinctrl_ebi_data_0_7>;
0054 pinctrl-names = "default";
0055 status = "okay";
0056
0057 nand_controller: nand-controller {
0058 status = "okay";
0059 pinctrl-0 = <&pinctrl_nand_oe_we
0060 &pinctrl_nand_cs
0061 &pinctrl_nand_rb>;
0062 pinctrl-names = "default";
0063
0064 nand@3 {
0065 reg = <0x3 0x0 0x800000>;
0066 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
0067 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
0068 nand-bus-width = <8>;
0069 nand-ecc-mode = "hw";
0070 nand-ecc-strength = <2>;
0071 nand-ecc-step-size = <512>;
0072 nand-on-flash-bbt;
0073 label = "atmel_nand";
0074
0075 partitions {
0076 compatible = "fixed-partitions";
0077 #address-cells = <1>;
0078 #size-cells = <1>;
0079
0080 at91bootstrap@0 {
0081 label = "at91bootstrap";
0082 reg = <0x0 0x40000>;
0083 };
0084
0085 uboot@40000 {
0086 label = "u-boot";
0087 reg = <0x40000 0xc0000>;
0088 };
0089
0090 ubootenvred@100000 {
0091 label = "U-Boot Env Redundant";
0092 reg = <0x100000 0x40000>;
0093 };
0094
0095 ubootenv@140000 {
0096 label = "U-Boot Env";
0097 reg = <0x140000 0x40000>;
0098 };
0099
0100 dtb@180000 {
0101 label = "device tree";
0102 reg = <0x180000 0x80000>;
0103 };
0104
0105 kernel@200000 {
0106 label = "kernel";
0107 reg = <0x200000 0x600000>;
0108 };
0109
0110 rootfs@800000 {
0111 label = "rootfs";
0112 reg = <0x800000 0x0f800000>;
0113 };
0114 };
0115 };
0116 };
0117 };
0118 };
0119
0120 leds {
0121 compatible = "gpio-leds";
0122
0123 pb18 {
0124 label = "pb18";
0125 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
0126 linux,default-trigger = "heartbeat";
0127 };
0128
0129 pd21 {
0130 label = "pd21";
0131 gpios = <&pioD 21 GPIO_ACTIVE_HIGH>;
0132 };
0133 };
0134
0135 1wire_cm {
0136 compatible = "w1-gpio";
0137 gpios = <&pioB 18 GPIO_ACTIVE_HIGH>;
0138 linux,open-drain;
0139 pinctrl-names = "default";
0140 pinctrl-0 = <&pinctrl_1wire_cm>;
0141 status = "okay";
0142 };
0143
0144 };