0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * at91-wb45n.dtsi - Device Tree file for WB45NBT board
0004 *
0005 * Copyright (C) 2018 Laird
0006 *
0007 */
0008
0009 #include "at91sam9g25.dtsi"
0010
0011 / {
0012 model = "Laird Workgroup Bridge 45N - Atmel AT91SAM (dt)";
0013 compatible = "laird,wb45n", "laird,wbxx", "atmel,at91sam9x5", "atmel,at91sam9";
0014
0015 chosen {
0016 bootargs = "ubi.mtd=6 root=ubi0:rootfs rootfstype=ubifs rw";
0017 stdout-path = "serial0:115200n8";
0018 };
0019
0020 memory@20000000 {
0021 reg = <0x20000000 0x4000000>;
0022 };
0023
0024 atheros {
0025 compatible = "atheros,ath6kl";
0026 atheros,board-id = "SD32";
0027 };
0028 };
0029
0030 &reset_controller {
0031 compatible = "atmel,sama5d3-rstc";
0032 };
0033
0034 &shutdown_controller {
0035 atmel,wakeup-mode = "low";
0036 };
0037
0038 &slow_xtal {
0039 clock-frequency = <32768>;
0040 };
0041
0042 &main_xtal {
0043 clock-frequency = <12000000>;
0044 };
0045
0046 &ebi {
0047 status = "okay";
0048 nand_controller: nand-controller {
0049 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb &pinctrl_nand_oe_we>;
0050 pinctrl-names = "default";
0051 status = "okay";
0052
0053 nand@3 {
0054 reg = <0x3 0x0 0x800000>;
0055 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
0056 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
0057 nand-bus-width = <8>;
0058 nand-ecc-mode = "hw";
0059 nand-ecc-strength = <4>;
0060 nand-ecc-step-size = <512>;
0061 nand-on-flash-bbt;
0062 label = "atmel_nand";
0063
0064 partitions {
0065 compatible = "fixed-partitions";
0066 #address-cells = <1>;
0067 #size-cells = <1>;
0068
0069 at91bootstrap@0 {
0070 label = "at91bs";
0071 reg = <0x0 0x20000>;
0072 };
0073
0074 uboot@20000 {
0075 label = "u-boot";
0076 reg = <0x20000 0x80000>;
0077 };
0078
0079 ubootenv@a0000 {
0080 label = "u-boot-env";
0081 reg = <0xa0000 0x20000>;
0082 };
0083
0084 ubootenv@c0000 {
0085 label = "redund-env";
0086 reg = <0xc0000 0x20000>;
0087 };
0088
0089 kernel-a@e0000 {
0090 label = "kernel-a";
0091 reg = <0xe0000 0x280000>;
0092 };
0093
0094 kernel-b@360000 {
0095 label = "kernel-b";
0096 reg = <0x360000 0x280000>;
0097 };
0098
0099 rootfs-a@5e0000 {
0100 label = "rootfs-a";
0101 reg = <0x5e0000 0x2600000>;
0102 };
0103
0104 rootfs-b@2be0000 {
0105 label = "rootfs-b";
0106 reg = <0x2be0000 0x2600000>;
0107 };
0108
0109 user@51e0000 {
0110 label = "user";
0111 reg = <0x51e0000 0x2dc0000>;
0112 };
0113
0114 logs@7fa0000 {
0115 label = "logs";
0116 reg = <0x7fa0000 0x60000>;
0117 };
0118
0119 };
0120 };
0121 };
0122 };
0123
0124 &usb0 {
0125 num-ports = <2>;
0126 atmel,vbus-gpio = <
0127 &pioB 12 GPIO_ACTIVE_HIGH
0128 &pioA 31 GPIO_ACTIVE_HIGH
0129 >;
0130 atmel,oc-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
0131 };
0132
0133 &macb0 {
0134 phy-mode = "rmii";
0135 };
0136
0137 &spi0 {
0138 cs-gpios = <&pioA 14 0>, <&pioA 7 0>, <0>, <0>;
0139 };
0140
0141 &usb2 {
0142 pinctrl-names = "default";
0143 pinctrl-0 = <&pinctrl_board_usb2>;
0144 atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
0145 };
0146
0147 &mmc0 {
0148 pinctrl-names = "default";
0149 pinctrl-0 = <
0150 &pinctrl_mmc0_slot0_clk_cmd_dat0
0151 &pinctrl_mmc0_slot0_dat1_3>;
0152 slot@0 {
0153 reg = <0>;
0154 bus-width = <4>;
0155 };
0156 };
0157
0158 &pinctrl {
0159 usb2 {
0160 pinctrl_board_usb2: usb2-board {
0161 atmel,pins =
0162 <AT91_PIOB 11 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB11 gpio vbus sense, deglitch */
0163 };
0164 };
0165 };
0166